http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48173
Summary: [4.6 regression] bootstrap error on arm-linux-gnueabi (defaulting to armv4t) Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: d...@ubuntu.com according to https://buildd.debian.org/fetch.cgi?pkg=gcc-4.6&arch=armel&ver=4.6.0~rc1-1&stamp=1300253746&file=log&as=raw the bootstrap build fails with: /build/buildd-gcc-4.6_4.6.0~rc1-1-armel-5jpjEr/gcc-4.6-4.6.0~rc1/build/./prev-gcc/xgcc -B/build/buildd-gcc-4.6_4.6.0~rc1-1-armel-5jpjEr/gcc-4.6-4.6.0~rc1/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 -g -O2 -gtoggle -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -Wno-error -DHAVE_CONFIG_H -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include -I../../src/gcc/../libcpp/include -I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/dpd -I../libdecnumber ../../src/gcc/expmed.c -o expmed.o ../../src/gcc/expmed.c: In function 'init_expmed': ../../src/gcc/expmed.c:134:3: warning: array subscript is above array bounds [-Warray-bounds] xgcc: internal compiler error: Segmentation fault (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. make[5]: *** [expmed.o] Error 4 make[5]: Leaving directory `/build/buildd-gcc-4.6_4.6.0~rc1-1-armel-5jpjEr/gcc-4.6-4.6.0~rc1/build/gcc' make[4]: *** [all-stage2-gcc] Error 2 make[4]: Leaving directory `/build/buildd-gcc-4.6_4.6.0~rc1-1-armel-5jpjEr/gcc-4.6-4.6.0~rc1/build' make[3]: *** [stage2-bubble] Error 2 make[3]: Leaving directory `/build/buildd-gcc-4.6_4.6.0~rc1-1-armel-5jpjEr/gcc-4.6-4.6.0~rc1/build' make[2]: *** [bootstrap-lean] Error 2 make[2]: Leaving directory `/build/buildd-gcc-4.6_4.6.0~rc1-1-armel-5jpjEr/gcc-4.6-4.6.0~rc1/build' s=`cat status`; rm -f status; test $s -eq 0 make[1]: *** [stamps/05-build-stamp] Error 1 configured as: --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-sjlj-exceptions --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi and the patch: --- a/src/gcc/config/arm/linux-eabi.h +++ b/src/gcc/config/arm/linux-eabi.h @@ -44,7 +44,7 @@ The ARM10TDMI core is the default for armv5t, so set SUBTARGET_CPU_DEFAULT to achieve this. */ #undef SUBTARGET_CPU_DEFAULT -#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi +#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9tdmi /* TARGET_BIG_ENDIAN_DEFAULT is set in config.gcc for big endian configurations. */