cpplib and endianness problems
Dave Brolley
brolley@redhat.com
Mon Dec 18 08:05:00 GMT 2000
Neil Booth wrote:
> I noticed a few weeks ago that Sparc was failing on gcc.dg/cpp/if-2.c
>
> Unfortunately, there was more than one test on the line it was failing
> on, so I separated the tests to see which one it was.
>
> >From recent posts to gcc-testresults, like Kaveh's, we see the
> following fails on Sparc:
>
> #if L'\xfeed' != 0xfeed
> #error 0xfeed /* { dg-bogus "error" "wide charconst recognition 2" } */
> #endif
>
> I have no idea if this test is valid; i.e. how should we be
> interpreting L'\xfeed'? Should it be equal to 0xfeed?
The escape sequence, \xfeed represents one character of type wchar_t.
This character is then converted to type 'int'. So the answer depends on
the size of wchat_t and whether it is signed or not.
Dave
More information about the Gcc
mailing list