This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: mainline bootstrap failure
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: kai at qualify dot domain dot khms dot westfalen dot de
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 23 Jan 2003 14:56:14 -0500 (EST)
- Subject: Re: mainline bootstrap failure
- References: <20030123170745.GA10829@khms.westfalen.de>
> Configure arguments:
> --prefix=/opt/gcc-head --enable-multilib --enable-checking
> --enable-c-mbchar --enable-threads --enable-objc-gc --enable-nls
> --enable-version-specific-runtime-libs --enable-languages=all
>
> End of log:
> [...]
> stage1/xgcc -Bstage1/ -B/opt/gcc-head/i686-pc-linux-gnu/bin/ -c -g -O2
> -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
> --fno-common -Werror -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc
> --I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include
> -../../gcc/gcc/cpplex.c -o cpplex.o ../../gcc/gcc/cpplex.c: In
> -function `cpp_interpret_charconst': ../../gcc/gcc/cpplex.c:1940:
> -warning: pointer targets in passing arg 2 of `local_mbtowc' differ
> -in signedness
> make[2]: *** [cpplex.o] Fehler 1
> make[2]: Leaving directory `/Partition/gcc/gcc/build/build/gcc'
> make[1]: *** [stage2_build] Fehler 2
> make[1]: Leaving directory `/Partition/gcc/gcc/build/build/gcc'
> make: *** [bootstrap] Fehler 2
Fixed with this patch. Patch tested via three-stage compile on
sparc-sun-solaris2.7 with configure flags --enable-languages=c
--disable-checking --disable-nls --enable-multilib=no
--enable-c-mbchar.
Installed as obvious.
2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
diff -rup orig/egcc-CVS20030123/gcc/cpplex.c egcc-CVS20030123/gcc/cpplex.c
--- orig/egcc-CVS20030123/gcc/cpplex.c 2003-01-17 22:01:57.000000000 -0500
+++ egcc-CVS20030123/gcc/cpplex.c 2003-01-23 14:38:50.817748000 -0500
@@ -1937,7 +1937,7 @@ cpp_interpret_charconst (pfile, token, p
wchar_t wc;
int char_len;
- char_len = local_mbtowc (&wc, str, limit - str);
+ char_len = local_mbtowc (&wc, (const char *)str, limit - str);
if (char_len == -1)
{
cpp_error (pfile, DL_WARNING,