From: Mallikarjun Goudar <mallikarjun.gouda@gmail.com>
To: Ian Lance Taylor <iant@google.com>
Cc: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: wide char support and -fshort-wchar option
Date: Mon, 04 Aug 2014 06:23:00 -0000 [thread overview]
Message-ID: <CACz30gAj7Th+mgVogQbUOC0Z39wyaAoi85W6JWDppzX+=CMgiw@mail.gmail.com> (raw)
In-Reply-To: <CAKOQZ8wewrcM5vjJAVUD48pr75Je4tmyF_tRFCSGF0ziB5MNwA@mail.gmail.com>
On 1 August 2014 21:04, Ian Lance Taylor <iant@google.com> wrote:
> On Thu, Jul 31, 2014 at 1:31 AM, Mallikarjun Goudar
> <mallikarjun.gouda@gmail.com> wrote:
>>
>> I would like to use wchar_t as unsigned short. I used -fshort-wchar
>> option to make this happen.
>> But i get following warnings when compile and link a test case.
>>
>> 'libc.a(ansi_files.o) uses 4-byte wchar_t yet the output is to use
>> 2-byte wchar_t; use of wchar_t values across objects may fail"'
>>
>> To resolve this, i should be rebuilding gcc libraries with -fshort-wchar option?
>
> libc.a is not a GCC library. It's the C library, which does not come
> with GCC. To avoid that warning you will have to rebuild libc.a. Or,
> of course, you can ignore the warning and be careful not to pass
> wchar_t values to libc.
>
> Ian
Hi Ian,
Thanks for the reply.
//mallikarjuna
prev parent reply other threads:[~2014-08-04 6:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-31 8:31 Mallikarjun Goudar
2014-08-01 15:34 ` Ian Lance Taylor
2014-08-04 6:23 ` Mallikarjun Goudar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACz30gAj7Th+mgVogQbUOC0Z39wyaAoi85W6JWDppzX+=CMgiw@mail.gmail.com' \
--to=mallikarjun.gouda@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=iant@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).