https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65600
Bug ID: 65600 Summary: [5 Regression] bost testsuite failure: ICE: Segmentation fault Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: hubicka at gcc dot gnu.org Host: powerpc64le-unknown-linux-gnu Target: powerpc64le-unknown-linux-gnu Build: powerpc64le-unknown-linux-gnu Running the boost testsuite on ppc64le shows: trippels@gcc2-power8 tools % cat weak_ptr_move_test.ii class A { public: virtual void m_fn1() {} int weak_release___trans_tmp_1; void m_fn2() { __asm__("0\n\tlwarx %2\n\taddi 1\n\tstwcx. %2\n\tbne 0b\n\tisync"); if (weak_release___trans_tmp_1) m_fn1(); } }; class weak_count { A *pi_; public: weak_count() : pi_() {} ~weak_count() { if (pi_) pi_->m_fn2(); } }; class B { weak_count pn; }; int main() { B a; } trippels@gcc2-power8 tools % g++ -O2 -std=c++11 weak_ptr_move_test.ii weak_ptr_move_test.ii:25:15: internal compiler error: Segmentation fault main() { B a; } ^ 0x10a1f773 crash_signal ../../gcc/gcc/toplev.c:383 0x1053958c symtab_node::semantically_equivalent_p(symtab_node*) ../../gcc/gcc/symtab.c:1631 0x10547177 cgraph_edge::resolve_speculation(tree_node*) ../../gcc/gcc/cgraph.c:1169 0x107e7653 redirect_to_unreachable ../../gcc/gcc/ipa-inline-analysis.c:771 0x107e7653 edge_set_predicate ../../gcc/gcc/ipa-inline-analysis.c:797 0x107ec4b3 remap_edge_summaries ../../gcc/gcc/ipa-inline-analysis.c:3506 0x107eefef inline_merge_summary(cgraph_edge*) ../../gcc/gcc/ipa-inline-analysis.c:3653 0x11079ed7 inline_call(cgraph_edge*, bool, vec<cgraph_edge*, va_heap, vl_ptr>*, int*, bool, bool*) ../../gcc/gcc/ipa-inline-transform.c:357 0x1107085b inline_small_functions ../../gcc/gcc/ipa-inline.c:1949 0x1107085b ipa_inline ../../gcc/gcc/ipa-inline.c:2352 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.