https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82545
Bug ID: 82545
Summary: -O2: ICE in gimple_split_edge, at tree-cfg.c:2838,
during GIMPLE pass sanopt
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: ivo.raisr at oracle dot com
Target Milestone: ---
gcc 8 and 7 produce an internal compiler error on the following program (also)
attached.
$ gcc --version
gcc (GCC) 8.0.0 20171012 (experimental)
$ uname -a
Linux 4.10.0-37-generic #41-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
$ gcc -O2 -fsanitize=address -c reduced.c
during GIMPLE pass: sanopt
reduced.c: In function ‘a’:
reduced.c:4:6: internal compiler error: in gimple_split_edge, at
tree-cfg.c:2838
void a(void) {
^
0x6b9315 gimple_split_edge
../../src/gcc/tree-cfg.c:2838
0x99a5cd split_edge(edge_def*)
../../src/gcc/cfghooks.c:638
0xafc5d7 gimple_find_edge_insert_loc
../../src/gcc/gimple-iterator.c:793
0xafd36d gsi_commit_one_edge_insert(edge_def*, basic_block_def**)
../../src/gcc/gimple-iterator.c:884
0xafd43e gsi_commit_edge_inserts()
../../src/gcc/gimple-iterator.c:863
0x6b0d11 execute
../../src/gcc/sanopt.c:1359
gcc 8: FAIL, ICE produced. SVN version 253695.
gcc 7: FAIL, ICE produced. SVN version 253695, gcc-7-branch.
gcc 6: PASS, ICE not produced. SVN version 253695, gcc-6-branch.