https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87201
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marxin at gcc dot gnu.org
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
[Now did clean bootstrap; result below is the same for the Stage1 compiler
(compiled by GCC 8) as for the incremental build of GCC 9.]
Culprit is probably r264050:
Make __builtin_expect effective in switch statements (PR
middle-end/PR59521).
Running cc1plus in the debugger shows that the crash is for:
tree_switch_conversion::switch_decision_tree::balance_case_nodes at
../../gcc/tree-switch-conversion.c:1944
1944 prob -= (*npp)->m_c->m_prob;
where
(gdb) p npp
$1 = (tree_switch_conversion::case_tree_node **) 0x2934f28
(gdb) p *npp
$2 = (tree_switch_conversion::case_tree_node *) 0x0
(gdb) p *npp