http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
Bug #: 52773 Summary: internal error: in replace_pseudos_in, at reload1.c:577 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: fdarkan...@gmail.com Created attachment 27035 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27035 An excerpt from SGDK v0.90 that demonstrates the bug Using m68k-elf-gcc 4.7.0 with m68k-elf-gcc -c -m68000 -Wall -O2 -funroll-loops -fomit-frame-pointer -fno-builtin-memset -fno-builtin-memcpy bug.c The problem disappears without -funroll-loops parameter (or -O0). I was able to compile the code on my host machine (x86_64, gcc 4.6.3) without any problems. More details on the cross compiler: m68k-elf-gcc -v Using built-in specs. COLLECT_GCC=m68k-elf-gcc COLLECT_LTO_WRAPPER=/opt/toolchains/sega/m68k-elf/libexec/gcc/m68k-elf/4.7.0/lto-wrapper Target: m68k-elf Configured with: ../gcc-4.7.0/configure --target=m68k-elf --prefix=/opt/toolchains/sega/m68k-elf --without-headers --with-newlib --enable-languages=c --disable-libssp --disable-tls --with-cpu=m68000 --disable-werror : (reconfigured) ../gcc-4.7.0/configure --target=m68k-elf --prefix=/opt/toolchains/sega/m68k-elf --with-newlib --disable-libssp --disable-tls --enable-threads=single --enable-languages=c,c++,objc,obj-c++ --with-cpu=m68000 --disable-werror Thread model: single gcc version 4.7.0 (GCC)