This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib and endianness problems
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: cpplib and endianness problems
- From: Dave Brolley <brolley at redhat dot com>
- Date: Mon, 18 Dec 2000 11:06:15 -0500
- CC: gcc at gcc dot gnu dot org, Zack Weinberg <zackw at Stanford dot EDU>
- References: <20001217144034.D13575@daikokuya.demon.co.uk>
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