aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-inline.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2401fd2..8a416a5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2011-04-22 Martin Jambor <mjambor@suse.cz>
+
+ PR middle-end/48585
+ * tree-inline.c (copy_bb): Create new edges only for analyzed
+ nodes.
+
2011-04-22 Alexander Monakov <amonakov@ispras.ru>
PR c/36750
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index c255f52..797ea8b 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1725,6 +1725,7 @@ copy_bb (copy_body_data *id, basic_block bb, int frequency_scale,
if ((!edge
|| (edge->indirect_inlining_edge
&& id->transform_call_graph_edges == CB_CGE_MOVE_CLONES))
+ && id->dst_node->analyzed
&& (fn = gimple_call_fndecl (stmt)) != NULL)
{
struct cgraph_node *dest = cgraph_get_node (fn);