https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65302
Bug ID: 65302 Summary: [5 Regression] LTO: ICE internal compiler error: verify_flow_info failed Product: gcc Version: 5.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: hubicka at gcc dot gnu.org Created attachment 34938 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34938&action=edit one.ii Follow up to PR65276. The following code fails with an ICE. The ICE is gone if one removes the "-O0" from the LTO stage: g++ -c -flto -O2 one.ii two.ii gcc -r -nostdlib -O0 one.o two.o fails with one.ii: In member function ‘Init’: one.ii:93:6: error: BB 5 can not throw but has an EH edge void ZRubberBand2P::Init () { ^ one.ii:93:6: internal compiler error: verify_flow_info failed 0x690a8b verify_flow_info() ../../gcc/cfghooks.c:280 Both PR65276 and this PR are for the same big code; I fear that neither the fixed PR65276 nor this PR are fully representative for the big code as the latter should be compiled with some "-O" while the two PRs involve -O0. Thus, expect another follow-up PR once this PR is fixed. The compilation of the big program fails with an ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158.