https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102388
Bug ID: 102388 Summary: [12 Regression] ICE in duplicate, at ipa-prop.c:4436 since r12-2523-g13586172d0b70c9d Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jamborm at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Created attachment 51474 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51474&action=edit test-case It's reduced from 523.xalancbmk_r. $ g++ ice2/*.ii -O2 -flto -fno-ipa-modref ... during IPA pass: inline lto1: internal compiler error: in duplicate, at ipa-prop.c:4436 0x6c5062 ipa_edge_args_sum_t::duplicate(cgraph_edge*, cgraph_edge*, ipa_edge_args*, ipa_edge_args*) /home/marxin/Programming/gcc/gcc/ipa-prop.c:4436 0x91c69b symbol_table::call_edge_duplication_hooks(cgraph_edge*, cgraph_edge*) /home/marxin/Programming/gcc/gcc/cgraph.c:454 0x9214f6 cgraph_edge::make_speculative(cgraph_node*, profile_count, unsigned int) /home/marxin/Programming/gcc/gcc/cgraph.c:1127 0xba03ae try_make_edge_direct_simple_call /home/marxin/Programming/gcc/gcc/ipa-prop.c:3780 0xba03ae update_indirect_edges_after_inlining /home/marxin/Programming/gcc/gcc/ipa-prop.c:4000 0xba03ae propagate_info_to_inlined_callees /home/marxin/Programming/gcc/gcc/ipa-prop.c:4092 0xb9fcf0 propagate_info_to_inlined_callees /home/marxin/Programming/gcc/gcc/ipa-prop.c:4096 0xba0bbb ipa_propagate_indirect_call_infos(cgraph_edge*, vec<cgraph_edge*, va_heap, vl_ptr>*) /home/marxin/Programming/gcc/gcc/ipa-prop.c:4272 0xb6c98d inline_call(cgraph_edge*, bool, vec<cgraph_edge*, va_heap, vl_ptr>*, int*, bool, bool*) /home/marxin/Programming/gcc/gcc/ipa-inline-transform.c:508 0x1aa8ff9 inline_to_all_callers_1 /home/marxin/Programming/gcc/gcc/ipa-inline.c:2462 0x1aa8ff9 inline_to_all_callers /home/marxin/Programming/gcc/gcc/ipa-inline.c:2487 0x1aaa6ba cgraph_node::call_for_symbol_and_aliases(bool (*)(cgraph_node*, void*), void*, bool) /home/marxin/Programming/gcc/gcc/cgraph.h:3403 0x1aaa6ba ipa_inline /home/marxin/Programming/gcc/gcc/ipa-inline.c:2812 0x1aaa6ba execute /home/marxin/Programming/gcc/gcc/ipa-inline.c:3142 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /usr/bin/ld: fatal error: lto-wrapper failed collect2: error: ld returned 1 exit status