Created attachment 30187 [details] reduced testcase Compiler output: $ gcc -O -fpeel-loops testcase.c testcase.c: In function 'foo': testcase.c:9:1: internal compiler error: in emit_spill_move, at lra-constraints.c:863 } ^ 0x8f5567 emit_spill_move /mnt/svn/gcc-trunk/gcc/lra-constraints.c:862 0x8feb0d curr_insn_transform /mnt/svn/gcc-trunk/gcc/lra-constraints.c:3033 0x8ffc94 lra_constraints(bool) /mnt/svn/gcc-trunk/gcc/lra-constraints.c:3785 0x8ee8a3 lra(_IO_FILE*) /mnt/svn/gcc-trunk/gcc/lra.c:2278 0x8a1c78 do_reload /mnt/svn/gcc-trunk/gcc/ira.c:4641 0x8a1c78 rest_of_handle_reload /mnt/svn/gcc-trunk/gcc/ira.c:4753 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. $ gcc -v Using built-in specs. COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-199312-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.9.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-199312-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 4.9.0 20130524 (experimental) (GCC) Tested revisions: r199312 - fail 4.8 r198018 - OK
I can not reproduce it on today trunk. I guess it was fixed by some LRA patch but I ca not say by what patch exactly as there were too many LRA patches since May.
Likely fixed by r199764 (r199763 fails, r199769 works, no other commits that could affect i?86/x86_64), likely introduced by r199298 (works r199200, fails r199300). Vlad, is there anything needed but to include the testcase into the testsuite (will test it in the next bootstrap/regtest cycle)?
Author: vmakarov Date: Wed Nov 27 16:30:48 2013 New Revision: 205451 URL: http://gcc.gnu.org/viewcvs?rev=205451&root=gcc&view=rev Log: 2013-11-27 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/57410 * gcc.target/i386/pr57410.c: New. Added: trunk/gcc/testsuite/gcc.target/i386/pr57410.c
Fixed then.