[cfe-dev] -fno-signed-char ignored

Jonathan Roelofs jonathan at codesourcery.com
Tue May 26 17:09:08 PDT 2015



On 5/26/15 5:56 PM, Nikola Smiljanic wrote:
> You're right Javier, can you file a bug for this, or even better send a
> patch :)

It almost seems natural to introduce -f(no-)signed-wchar and 
-funsigned-wchar as `char` and `wchar_t` are different types.

Does gcc's version of this flag affect both types?


Jon

>
> On Wed, May 27, 2015 at 1:15 AM, Javier Múgica <javier_3 at runbox.com
> <mailto:javier_3 at runbox.com>> wrote:
>
>
>
>     On Sat, 23 May 2015 11:55:53 -0700, David Majnemer
>     <david.majnemer at gmail.com <mailto:david.majnemer at gmail.com>> wrote:
>
>     > We had a bug where we silently ignored -fno-signed-char, I've fixed this
>     > with r238105.  As a workaround, you can also use -funsigned-char to achieve
>     > the desired effect.
>
>     Indeed, -funsigned-char seems the natural option for me, but I wrote
>     -fno-signed-char because that is the one that  is explained when you
>     type clang -help. If I remember correctly -funsigned-char does not
>     appear among the options listed there.
>
>     _______________________________________________
>     cfe-dev mailing list
>     cfe-dev at cs.uiuc.edu <mailto:cfe-dev at cs.uiuc.edu>
>     http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded




More information about the cfe-dev mailing list