From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29801 invoked by alias); 23 Jan 2003 19:56:30 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 29788 invoked from network); 23 Jan 2003 19:56:30 -0000 Received: from unknown (HELO caip.rutgers.edu) (128.6.236.10) by 172.16.49.205 with SMTP; 23 Jan 2003 19:56:30 -0000 Received: (from ghazi@localhost) by caip.rutgers.edu (8.9.3/8.9.3) id OAA11982; Thu, 23 Jan 2003 14:56:14 -0500 (EST) Date: Fri, 24 Jan 2003 00:44:00 -0000 From: "Kaveh R. Ghazi" Message-Id: <200301231956.OAA11982@caip.rutgers.edu> To: kai@qualify.domain.khms.westfalen.de Subject: Re: mainline bootstrap failure Cc: gcc-patches@gcc.gnu.org, gcc@gcc.gnu.org References: <20030123170745.GA10829@khms.westfalen.de> X-SW-Source: 2003-01/txt/msg01062.txt.bz2 > 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 * 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,