https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91291
Bug ID: 91291
Summary: [10 regression] gcc.dg/20020312-2.c FAILs
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: ro at gcc dot gnu.org
CC: rguenth at gcc dot gnu.org
Target Milestone: ---
Target: sparc-sun-solaris2.11, i?86-*-*, x86_64-*-*,
powerpc64le-unknown-linux-gnu, s390x-ibm-linux-gnu
Between 20190728 (r273850) and 20190729 (r273879), gcc.dg/20020312-2.c started
to FAIL:
+FAIL: gcc.dg/20020312-2.c (internal compiler error)
+FAIL: gcc.dg/20020312-2.c (test for excess errors)
+UNRESOLVED: gcc.dg/20020312-2.c compilation failed to produce executable
I'm seeing it on 32-bit Solaris/x86 and 32 and 64-bit Solaris/SPARC; there are
also reports for several other x86 targets, powerpc64le, and s390x.
during GIMPLE pass: fre
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/20020312-2.c: In function 'f':
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/20020312-2.c:181:1: internal
compiler error: tree check: expected ssa_name, have integer_cst in VN_INFO, at
tree-ssa-sccvn.c:380
0x9433c7f tree_check_failed(tree_node const*, char const*, int, char const*,
...)
/vol/gcc/src/hg/trunk/local/gcc/tree.c:9905
0x92fa221 tree_check(tree_node*, char const*, int, char const*, tree_code)
/vol/gcc/src/hg/trunk/local/gcc/tree.h:3257
0x92fa221 VN_INFO(tree_node*)
/vol/gcc/src/hg/trunk/local/gcc/tree-ssa-sccvn.c:380
0x92ebd31 rpo_elim::eliminate_push_avail(basic_block_def*, tree_node*)
/vol/gcc/src/hg/trunk/local/gcc/tree-ssa-sccvn.c:6266
0x92ed1f1 eliminate_dom_walker::eliminate_stmt(basic_block_def*,
gimple_stmt_iterator*)
/vol/gcc/src/hg/trunk/local/gcc/tree-ssa-sccvn.c:5815
0x92f4f83 process_bb
/vol/gcc/src/hg/trunk/local/gcc/tree-ssa-sccvn.c:6654
0x92f67f4 do_rpo_vn
/vol/gcc/src/hg/trunk/local/gcc/tree-ssa-sccvn.c:7138
0x92f7a94 execute
/vol/gcc/src/hg/trunk/local/gcc/tree-ssa-sccvn.c:7292
This is probably caused by r273877:
2019-07-29 Richard Biener <[email protected]>
PR tree-optimization/91257
* tree-ssa-sccvn.h (struct vn_avail): New.
(struct vn_ssa_aux): Add avail member.
* tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
member, add m_avail_freelist one.
(rpo_elim::~rpo_elim): Remove.
(rpo_elim::eliminate_avail): Adjust to new avail tracking
data structure.
(rpo_elim::eliminate_push_avail): Likewise.
(do_unwind): Likewise.
(do_rpo_vn): Likewise.