cpplib and endianness problems
Neil Booth
neil@daikokuya.demon.co.uk
Sun Jan 14 23:49:00 GMT 2001
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
More information about the Gcc
mailing list