From ae6d090748df54cb09a9bd7dc5d4d9b4668296f9 Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Fri, 13 Sep 2013 14:04:54 +0200 Subject: [PATCH] re PR bootstrap/58388 (LTO profiledbootstrap fails in stage feedback for tree-ssa-structalias.c with "internal compiler error: in try_make_edge_direct_simple_call, at ipa-prop.c:2606") 2013-09-13 Martin Jambor PR bootstrap/58388 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in the assert if the edge was a speculative one. From-SVN: r202563 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-prop.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a219a1a67595..213943da83f2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2013-09-13 Martin Jambor + + PR bootstrap/58388 + * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in + the assert if the edge was a speculative one. + 2013-09-13 Richard Biener * tree-data-ref.h (known_dependences_p): Move here ... diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 9054d9065824..b511afd7ab9e 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -2603,7 +2603,8 @@ try_make_edge_direct_simple_call (struct cgraph_edge *ie, { bool ok; gcc_checking_assert (cs->callee - && (jfunc->type != IPA_JF_CONST + && (cs != ie + || jfunc->type != IPA_JF_CONST || !cgraph_node_for_jfunc (jfunc) || cs->callee == cgraph_node_for_jfunc (jfunc))); ok = try_decrement_rdesc_refcount (jfunc); -- 2.47.2