https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65607
Bug ID: 65607 Summary: [5 Regression] LTO: ICE (segfault) with -fno-use-linker-plugin in symtab_node::semantically_equivalent_p 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 35165 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35165&action=edit input.ii - compile with g++ -std=c++11 -flto -fno-use-linker-plugin -O3 That's with GCC 5 (r221725) on a x86-64 CentOS 6.6 with binutils-2.20.51.0.2-5.42.el6.x86_64. $ g++ -std=c++11 -flto -fno-use-linker-plugin -O3 input.ii compilation fails with: 0xce160f crash_signal ../../gcc/toplev.c:383 0x928b40 symtab_node::semantically_equivalent_p(symtab_node*) ../../gcc/symtab.c:1631 0x932c86 cgraph_edge::resolve_speculation(tree_node*) ../../gcc/cgraph.c:1169 0xb326a3 redirect_to_unreachable ../../gcc/ipa-inline-analysis.c:771 0xb326a3 edge_set_predicate ../../gcc/ipa-inline-analysis.c:797 0xb37ffd inline_summary_t::duplicate(cgraph_node*, cgraph_node*, inline_summary*, inline_summary*) ../../gcc/ipa-inline-analysis.c:1249 0x92e2cb symbol_table::call_cgraph_duplication_hooks(cgraph_node*, cgraph_node*) ../../gcc/cgraph.c:500 0x94141d cgraph_node::create_virtual_clone(vec<cgraph_edge*, va_heap, vl_ptr>, vec<ipa_replace_map*, va_gc, vl_embed>*, bitmap_head*, char const*) ../../gcc/cgraphclones.c:649 0x12ca927 create_specialized_node ../../gcc/ipa-cp.c:3275 0x12cbeb6 decide_about_value<tree_node*> ../../gcc/ipa-cp.c:4096 0x12cecd8 decide_whether_version_node ../../gcc/ipa-cp.c:4141 0x12cecd8 ipcp_decision_stage ../../gcc/ipa-cp.c:4302 0x12cecd8 ipcp_driver ../../gcc/ipa-cp.c:4417 0x12cecd8 execute ../../gcc/ipa-cp.c:4510