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 2401fd2fee503d35e5bd27463bee8921bd03908f..8a416a55acf4493222c182cf72b094b0f8b03eee 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 c255f52f7398fbeea06418dc0d23451df601eeda..797ea8bd5725be971944fe2d1f186e9d0ec7a352 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);