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

Reply via email to