re PR middle-end/48585 (483.xalancbmk in SPEC CPU 2006 failed to build)
authorMartin Jambor <mjambor@suse.cz>
Fri, 22 Apr 2011 12:52:30 +0000 (14:52 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 22 Apr 2011 12:52:30 +0000 (14:52 +0200)
2011-04-22  Martin Jambor  <mjambor@suse.cz>

PR middle-end/48585
* tree-inline.c (copy_bb): Create new edges only for analyzed
nodes.

From-SVN: r172858

gcc/ChangeLog
gcc/tree-inline.c

index 2401fd2..8a416a5 100644 (file)
@@ -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
index c255f52..797ea8b 100644 (file)
@@ -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);