http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55458
Bug #: 55458 Summary: [4.8 Regression] ICE: in assign_by_spills, at lra-assigns.c:1212 with -fPIC -m32 and simple asm volatile Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Created attachment 28767 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28767 reduced testcase Compiler output: $ gcc -v Using built-in specs. COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-193712-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df --enable-languages=c,c++,lto,fortran --prefix=/mnt/svn/gcc-trunk/binary-193712-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 4.8.0 20121121 (experimental) (GCC) $ gcc -fPIC -m32 testcase.c testcase.c: In function 'foo': testcase.c:7:1: internal compiler error: in assign_by_spills, at lra-assigns.c:1212 } ^ 0x8e29a1 assign_by_spills /mnt/svn/gcc-trunk/gcc/lra-assigns.c:1212 0x8e493b lra_assign() /mnt/svn/gcc-trunk/gcc/lra-assigns.c:1364 0x8e05dd lra(_IO_FILE*) /mnt/svn/gcc-trunk/gcc/lra.c:2298 0x896aa8 do_reload /mnt/svn/gcc-trunk/gcc/ira.c:4624 0x896aa8 rest_of_handle_reload /mnt/svn/gcc-trunk/gcc/ira.c:4737 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. I don't have a x86 compiler, so I don't know if this ICEs the same way on an x86.