https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99034
Bug ID: 99034
Summary: [10/11 Regression] ICE in emit_to_new_bb_before, at
except.c:932
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
This changed between 20190929 and 20191006 at -O2+ :
$ g++-10-20190929 -c pr90208-2.c -finstrument-functions -O2
$
$ g++-11-20210207 -c pr90208-2.c -finstrument-functions -O2
during RTL pass: expand
pr90208-2.c: In function 'void baz()':
pr90208-2.c:20:1: internal compiler error: Segmentation fault
20 | }
| ^
0xcd922f crash_signal
../../gcc/toplev.c:327
0x9bd1e6 emit_to_new_bb_before
../../gcc/except.c:932
0x9c185a dw2_build_landing_pads
../../gcc/except.c:1013
0x9c185a finish_eh_generation()
../../gcc/except.c:1521
0x8e2e7d execute
../../gcc/cfgexpand.c:6837
---
pr90208-2.c: In function 'void baz()':
pr90208-2.c:16:1: error: EH landing pad label
16 | baz (void)
| ^~~
<L3> is not first in a sequence of labels in bb 5during IPA pass: inline
pr90208-2.c:16:1: internal compiler error: verify_flow_info failed
0xae3ac4 verify_flow_info()
../../gcc/cfghooks.c:269
0x1046ba4 checking_verify_flow_info
../../gcc/cfghooks.h:212
0x1046ba4 cleanup_tree_cfg_noloop
../../gcc/tree-cfgcleanup.c:1136
0x1046ba4 cleanup_tree_cfg(unsigned int)
../../gcc/tree-cfgcleanup.c:1187
0xef8a44 execute_function_todo
../../gcc/passes.c:2008
0xef97f2 execute_todo
../../gcc/passes.c:2096
0xefba43 execute_one_ipa_transform_pass
../../gcc/passes.c:2293
0xefba43 execute_all_ipa_transforms(bool)
../../gcc/passes.c:2337
0xb22995 cgraph_node::expand()
../../gcc/cgraphunit.c:1820
0xb24316 expand_all_functions
../../gcc/cgraphunit.c:1995
0xb24316 symbol_table::compile()
../../gcc/cgraphunit.c:2359
0xb2784f symbol_table::compile()
../../gcc/cgraphunit.c:2543
0xb2784f symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.c:2540