This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/83620] New: [8 Regression] ICE: in assign_by_spills, at lra-assigns.c:1470: unable to find a register to spill with -flive-range-shrinkage --param=max-sched-ready-insns=0
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Dec 2017 11:57:23 +0000
- Subject: [Bug rtl-optimization/83620] New: [8 Regression] ICE: in assign_by_spills, at lra-assigns.c:1470: unable to find a register to spill with -flive-range-shrinkage --param=max-sched-ready-insns=0
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83620
Bug ID: 83620
Summary: [8 Regression] ICE: in assign_by_spills, at
lra-assigns.c:1470: unable to find a register to spill
with -flive-range-shrinkage
--param=max-sched-ready-insns=0
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 42978
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42978&action=edit
reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -O2 -flive-range-shrinkage
--param=max-sched-ready-insns=0 testcase.c
testcase.c: In function 'foo':
testcase.c:7:1: warning: AVX512F vector return without AVX512F enabled changes
the ABI [-Wpsabi]
{
^
testcase.c:11:1: error: unable to find a register to spill
}
^
testcase.c:11:1: error: this is the insn:
(insn 292 296 297 2 (parallel [
(set (reg:DI 130 [ f ])
(ashiftrt:DI (reg:DI 37 r8 [ f ])
(reg:QI 240)))
(clobber (reg:CC 17 flags))
]) "testcase.c":8 580 {*ashrdi3_1}
(expr_list:REG_DEAD (reg:QI 240)
(expr_list:REG_DEAD (reg:DI 37 r8 [ f ])
(expr_list:REG_UNUSED (reg:CC 17 flags)
(nil)))))
during RTL pass: reload
testcase.c:11:1: internal compiler error: in assign_by_spills, at
lra-assigns.c:1470
0x699b61 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
/repo/gcc-trunk/gcc/rtl-error.c:108
0xcfe545 assign_by_spills
/repo/gcc-trunk/gcc/lra-assigns.c:1470
0xcff09c lra_assign()
/repo/gcc-trunk/gcc/lra-assigns.c:1664
0xcf9a74 lra(_IO_FILE*)
/repo/gcc-trunk/gcc/lra.c:2469
0xca72c9 do_reload
/repo/gcc-trunk/gcc/ira.c:5462
0xca72c9 execute
/repo/gcc-trunk/gcc/ira.c:5646
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-trunk-256002-checking-yes-rtl-df-extra-nobootstrap-nographite-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-256002-checking-yes-rtl-df-extra-nobootstrap-nographite-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --without-cloog --without-ppl --without-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-256002-checking-yes-rtl-df-extra-nobootstrap-nographite-amd64
Thread model: posix
gcc version 8.0.0 20171226 (experimental) (GCC)