[RFA] Fix wide char definitions in mips/iris5.h
Neil Booth
neil@daikokuya.demon.co.uk
Thu Mar 1 12:18:00 GMT 2001
This patch has been tested by David Billinghurst on mips-sgi-irix6.5.
It eliminates 33 gcc testsuite failures with -mabi=64.
I would almost call it an obvious fix, but I'd like to apply it to the
branch too, so I'd like an official go ahead.
To recap, I noticed that the existing definitions cause wide characters to
occupy 8 bytes with -mabi=64, which causes lexer warnings and testsuite
failures.
Neil.
* config/mips/iris5.h: Change WCHAR_TYPE to int.
Index: gcc/config/mips/iris5.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/mips/iris5.h,v
retrieving revision 1.8
diff -u -r1.8 iris5.h
--- iris5.h 2000/11/02 23:29:11 1.8
+++ iris5.h 2001/02/28 06:58:11
@@ -51,9 +51,9 @@
#undef WCHAR_TYPE_SIZE
#undef MAX_WCHAR_TYPE_SIZE
-#define WCHAR_TYPE "long int"
-#define WCHAR_TYPE_SIZE LONG_TYPE_SIZE
-#define MAX_WCHAR_TYPE_SIZE MAX_LONG_TYPE_SIZE
+#define WCHAR_TYPE "int"
+#define WCHAR_TYPE_SIZE INT_TYPE_SIZE
+#define MAX_WCHAR_TYPE_SIZE MAX_INT_TYPE_SIZE
#define WORD_SWITCH_TAKES_ARG(STR) \
(DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
More information about the Gcc-patches
mailing list