This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib and endianness problems
- To: Jamie Lokier <egcs at tantalophile dot demon dot co dot uk>
- Subject: Re: cpplib and endianness problems
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Mon, 15 Jan 2001 07:49:28 +0000
- Cc: Dave Brolley <brolley at redhat dot com>, gcc at gcc dot gnu dot org,Zack Weinberg <zackw at Stanford dot EDU>, gcc-patches at gcc dot gnu dot org
- References: <20001217144034.D13575@daikokuya.demon.co.uk> <3A3E35F7.7060503@redhat.com> <20010109234936.B10605@daikokuya.demon.co.uk> <20010110154444.F30055@pcep-jamie.cern.ch>
Jamie Lokier wrote:-
> Does it pass with 0x1234? If so, wchar_t is signed and getting
> sign-extended.
Yes, it appears OK. So I'll comment out the old test, with this patch.
Neil.
* gcc.dg/cpp/if-2.c: Comment out occasionally bogus test; we
have an equivalent working one below it.
Index: gcc.dg/cpp/if-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cpp/if-2.c,v
retrieving revision 1.4
diff -u -p -r1.4 if-2.c
--- if-2.c 2001/01/11 08:11:29 1.4
+++ if-2.c 2001/01/15 07:47:12
@@ -9,8 +9,10 @@
#error L'a' /* { dg-bogus "error" "wide charconst recognition 1" } */
#endif
+#if 0 /* This test doesn't work on targets with signed 16-bit wchar_t. */
#if L'\xfeed' != 0xfeed
#error 0xfeed /* { dg-bogus "error" "wide charconst recognition 2" } */
+#endif
#endif
#if L'\x1234' != 0x1234