https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85522
Bug ID: 85522
Summary: ICE: in model_update_limit_points_in_group, at
haifa-sched.c:1985 with -O2 -ftracer
--param=max-sched-extend-regions-iters=5
Product: gcc
Version: 8.0.1
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: aarch64-unknown-linux-gnu
Created attachment 44016
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44016&action=edit
reduced testcase
Compiler output:
$ aarch64-unknown-linux-gnu-gcc -O2 -ftracer
--param=max-sched-extend-regions-iters=5 testcase.c
during RTL pass: sched1
testcase.c: In function 'foo':
testcase.c:11:1: internal compiler error: in
model_update_limit_points_in_group, at haifa-sched.c:1985
}
^
0x149b095 model_update_limit_points_in_group
/repo/gcc-trunk/gcc/haifa-sched.c:1985
0x149b095 model_update_limit_points
/repo/gcc-trunk/gcc/haifa-sched.c:1996
0x149b095 schedule_insn
/repo/gcc-trunk/gcc/haifa-sched.c:4080
0x149d64c schedule_block(basic_block_def**, void*)
/repo/gcc-trunk/gcc/haifa-sched.c:6871
0xc25e5a schedule_region
/repo/gcc-trunk/gcc/sched-rgn.c:3177
0xc25e5a schedule_insns()
/repo/gcc-trunk/gcc/sched-rgn.c:3516
0xc26283 schedule_insns()
/repo/gcc-trunk/gcc/sched-rgn.c:3501
0xc26283 rest_of_handle_sched
/repo/gcc-trunk/gcc/sched-rgn.c:3720
0xc26283 execute
/repo/gcc-trunk/gcc/sched-rgn.c:3828
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.
$ aarch64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-259628-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/8.0.1/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl
--with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu
--with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld
--with-as=/usr/bin/aarch64-unknown-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-259628-checking-yes-rtl-df-extra-aarch64
Thread model: posix
gcc version 8.0.1 20180425 (experimental) (GCC)