aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2013-09-13 14:04:54 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2013-09-13 14:04:54 +0200
commitae6d090748df54cb09a9bd7dc5d4d9b4668296f9 (patch)
treec11146b3477f2d04a5d8253a7159ecb329eadc47
parente660fa8b9de564b505246a65ce0f1e3b4541b43b (diff)
downloadgcc-ae6d090748df54cb09a9bd7dc5d4d9b4668296f9.zip
gcc-ae6d090748df54cb09a9bd7dc5d4d9b4668296f9.tar.gz
gcc-ae6d090748df54cb09a9bd7dc5d4d9b4668296f9.tar.bz2
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 <mjambor@suse.cz> 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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/ipa-prop.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a219a1a..213943d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2013-09-13 Martin Jambor <mjambor@suse.cz>
+
+ 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 <rguenther@suse.de>
* tree-data-ref.h (known_dependences_p): Move here ...
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 9054d90..b511afd7 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);