Bug 57410 - [4.9 Regression] ICE: in emit_spill_move, at lra-constraints.c:863 with -fpeel-loops and uninitialised variable
Summary: [4.9 Regression] ICE: in emit_spill_move, at lra-constraints.c:863 with -fpee...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 4.9.0
: P1 normal
Target Milestone: 4.9.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2013-05-25 07:53 UTC by Zdenek Sojka
Modified: 2013-11-27 16:34 UTC (History)
3 users (show)

See Also:
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Build:
Known to work: 4.8.1
Known to fail: 4.9.0
Last reconfirmed:


Attachments
reduced testcase (119 bytes, text/x-csrc)
2013-05-25 07:53 UTC, Zdenek Sojka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zdenek Sojka 2013-05-25 07:53:44 UTC
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
Comment 1 Vladimir Makarov 2013-10-30 18:32:26 UTC
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.
Comment 2 Jakub Jelinek 2013-11-27 15:24:48 UTC
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)?
Comment 3 Vladimir Makarov 2013-11-27 16:30:51 UTC
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
Comment 4 Jakub Jelinek 2013-11-27 16:34:08 UTC
Fixed then.