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.

Reply via email to