http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54139
--- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2013-01-11 18:01:57 UTC --- I have built a cross cc1/cc1plus with: blah/configure --enable-languages=c,c++ --target=armv5tel-unknown-linux-gnueabi but I get a totally different error on testsuite/gcc.target/arm/mmx-2.c, not the unrecognized __builtin_arm* errors reported. I get an IRA ice: cp /source_dir/gcc/testsuite/gcc.target/arm/mmx-2.c a.c ./cc1 -quiet -mcpu=iwmmxt -flax-vector-conversions -std=gnu99 a.c -I /tmp a.c: In function 'foo': a.c:166:1: internal compiler error: in find_costs_and_classes, at ira-costs.c:1710 } ^ 0x7a7fdf find_costs_and_classes /source/gcc/gcc/ira-costs.c:1709 0x7a8147 ira_costs() /source/gcc/gcc/ira-costs.c:2043 0x7a321c ira_build() /source/gcc/gcc/ira-build.c:3195 0x79bc0b ira /source/gcc/gcc/ira.c:4475 0x79bc0b rest_of_handle_ira /source/gcc/gcc/ira.c:4709 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Unrecognized __builtin* sound like -mcpu=iwmmxt is not being passed to the compiler command line. Can you try "make check-gcc RUNTESTFLAGS=arm.exp" in your build/gcc directory and attach the the entire gcc/testsuite/gcc/gcc.log file? And just for kicks, could you include the result from: /build_directory$ grep 'with options' config.status and /build_directory$ grep 'with options' gcc/config.status This would help enormously, as I don't have an armv5tel machine to test on. Thanks.