From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8694 invoked by alias); 26 Dec 2009 12:03:38 -0000 Received: (qmail 8671 invoked by uid 48); 26 Dec 2009 12:03:25 -0000 Date: Sat, 26 Dec 2009 12:03:00 -0000 Subject: [Bug target/42509] New: bootstrap failure in stage3 (integer overflow in preprocessor expression) X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "doko at ubuntu dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg02418.txt.bz2 current trunk (including all changes from 20091223), native build configured with --with-arch=armv7-a --with-float=softfp --with-fpu=vfpv3-d16 --with-mode=thumb, fails in stage3 (--with-mode=thumb the option to trigger this): if [ x"-fPIC" != x ]; then \ /home/packages/gcc/4.5/gcc-4.5-4.5-20091223/build/./prev-gcc/xgcc -B/home/packages/gcc/4.5/gcc-4.5-4.5-20091223/build/./prev-gcc/ -B/usr/arm-linux-gnueabi/bin/ -B/usr/arm-linux-gnueabi/bin/ -B/usr/arm-linux-gnueabi/lib/ -isystem /usr/arm-linux-gnueabi/include -isystem /usr/arm-linux-gnueabi/sys-include -c -DHAVE_CONFIG_H -g -O2 -fno-stack-protector -I. -I../../src/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fPIC ../../src/libiberty/sha1.c -o pic/sha1.o; \ else true; fi ../../src/libiberty/sha1.c:46:3: error: #error "invalid BLOCKSIZE" make[5]: *** [sha1.o] Error 1 make[5]: Leaving directory `/home/packages/gcc/4.5/gcc-4.5-4.5-20091223/build/libiberty' make[4]: *** [all-stage3-libiberty] Error 2 #define BLOCKSIZE 4096 #if BLOCKSIZE % 64 != 0 # error "invalid BLOCKSIZE" #endif building with -O0 doesn't show the error, just adding -save-temps as well :-/ going on with the build, more warnings: ../../src/gcc/hwint.h:59:5: warning: integer overflow in preprocessor expression #if HOST_BITS_PER_LONG >= 64 || !defined NEED_64BIT_HOST_WIDE_INT ../../src/gcc/../libcpp/include/cpplib.h:251:27: warning: integer overflow in preprocessor expression #if CHAR_BIT * SIZEOF_INT >= 32 -- Summary: bootstrap failure in stage3 (integer overflow in preprocessor expression) Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: doko at ubuntu dot com GCC target triplet: arm-linux-gnueabi http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42509