http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48344
Summary: powerpc ICE error: unrecognizable insn Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: raj.k...@gmail.com when compiling following testcase void foo () { int N = 2; int slots[N]; } with -fstack-limit-register=r2 for ppc32 gcc ICEs $ powerpc-linux-uclibc-gcc-4.6.0 -fstack-limit-register=r2 a.c a.c: In function ‘foo’: a.c:6:1: error: unrecognizable insn: (insn 35 34 36 3 (set (reg:SI 144) (reg 2 2)) a.c:4 -1 (nil)) a.c:6:1: internal compiler error: in extract_insn, at recog.c:2109 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Here is how I configured gcc Using built-in specs. COLLECT_GCC=powerpc-linux-uclibc-gcc-4.6.0 COLLECT_LTO_WRAPPER=/home/kraj/work/cross/powerpc-linux-uclibc/tools/libexec/gcc/powerpc-linux-uclibc/4.6.0/lto-wrapper Target: powerpc-linux-uclibc Configured with: /home/kraj/work/cross/powerpc-linux-uclibc/../../gcc.git/configure --target=powerpc-linux-uclibc --prefix=/home/kraj/work/cross/powerpc-linux-uclibc/tools --with-sysroot=/home/kraj/work/cross/powerpc-linux-uclibc/sysroot --enable-__cxa_atexit --disable-libssp --disable-libgomp --disable-libmudflap --enable-languages=c,c++ --disable-multilib