This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC build failed for mips-elf with your patch on 2002-05-04T08:57:11Z.


GCC regression checker wrote:-

> With your recent patch, GCC does not compile on:
>  mips-elf

> /anubis/mummy/tbox/mips-elf/build/gcc/xgcc -B/anubis/mummy/tbox/mips-elf/build/gcc/ -B/anubis/mummy/tbox/objs/mips-elf/bin/ -B/anubis/mummy/tbox/objs/mips-elf/lib/ -isystem /anubis/mummy/tbox/objs/mips-elf/include -S tmp-dum.c
> cc1: CPP cannot handle (wide) character constants over 32 bits
> make[1]: *** [s-under] Error 1

Eric,

Is this patch OK?  I find it hard to believe that WCHAR_SIZE is ever
64 (the iris5.h used to have 64, but a while ago David Billinghurst
fixed that and made it 32).  If it is, then currently we can't support
cross-compilers properly, and maybe I should downgrade this error to
a warning?

Neil.

	* config/mips/mips.h: Set MAX_WCHAR_TYPE_SIZE to 32.

Index: mips.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.h,v
retrieving revision 1.179
diff -u -p -r1.179 mips.h
--- mips.h	25 Apr 2002 19:31:44 -0000	1.179
+++ mips.h	4 May 2002 16:29:41 -0000
@@ -1607,7 +1607,7 @@ do {							\
 /* Tell the preprocessor the maximum size of wchar_t.  */
 #ifndef MAX_WCHAR_TYPE_SIZE
 #ifndef WCHAR_TYPE_SIZE
-#define MAX_WCHAR_TYPE_SIZE 64
+#define MAX_WCHAR_TYPE_SIZE 32
 #endif
 #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]