This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/81747] [8 Regression] ICE in operator[], at vec.h:749
- From: "amodra at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 Aug 2017 01:56:42 +0000
- Subject: [Bug rtl-optimization/81747] [8 Regression] ICE in operator[], at vec.h:749
- Auto-submitted: auto-generated
- References: <bug-81747-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81747
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amodra at gmail dot com
--- Comment #3 from Alan Modra <amodra at gmail dot com> ---
The ICE occurs on this line in cse.c
bool taken = (next_bb == BRANCH_EDGE (bb)->dest);
looking at the definition of BRANCH_EDGE,
EDGE_SUCC ((bb), 0)->flags & EDGE_FALLTHRU is true
but
p *bb->succs
$4 = {m_vecpfx = {m_alloc = 4, m_using_auto_storage = 0, m_num = 1}, m_vecdata
= {0x7ffff6a32658}}
So only one successor, and attempting to access EDGE_SUCC(bb,1) is what
triggers the ICE.