http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49398
Summary: [4.7 ] bootstrap broken for arm-linux-gnueabi with thumb mode. Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: ram...@gcc.gnu.org CC: rearn...@arm.com, ram...@gcc.gnu.org, car...@gcc.gnu.org, michael.h...@linaro.org Created attachment 24513 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24513 Original test case. Originally found by Michael Hope's bootstrap builds . Rev 174940 appears to break bootstrap for --target=arm-linux-gnueabi --with-cpu=cortex-a9 --with-fpu=neon --with-float=softfp --with-mode=thumb. Bootstrap fails during the build of libiberty - from Michaels' logs here. http://builds.linaro.org/toolchain/gcc-4.7~svn174981/logs/armv7l-maverick-cbuild130-ursa4-cortexa9r1/gcc-build.txt Bisecting using a cross-compiler lead me to this revision. The cross-compiler was configured as follows : /home/ramrad01/sources/fsf/trunk/configure --target=arm-linux-gnueabi --with-cpu=cortex-a9 --with-fpu=neon --with-float=softfp --enable-languages=c ramrad01@e102742:/work/cross-build/build-174940/gcc$ !./xgcc ./xgcc -B`pwd` -mthumb -g -O2 ~/Downloads/regex.i -S ../../../gcc-4.7~/libiberty/regex.c: In function ‘xre_search_2’: ../../../gcc-4.7~/libiberty/regex.c:4961:1: internal compiler error: in cselib_record_set, at cselib.c:2224 Please submit a full bug report, with preprocessed source if appropriate. ramrad01@e102742:/work/cross-build/build-174938/gcc$ !./xgcc ./xgcc -B`pwd` -mthumb -g -O2 ~/Downloads/regex.i -S ICE disappears without -g - (So not sure if 174940 is the cause or it just appears to trigger it) . cheers Ramana