aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-09-16 19:11:38 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-09-16 17:11:38 +0000
commit0cac82a0d30c211d3d0b093df4f5452cec11ef06 (patch)
tree2a2125a45a84290bd78aea1dd0bd4f7f0e06dafc /gcc/tree-inline.c
parent5ee996a2c62317d11b9ef0df4e2d7a1ac28d5759 (diff)
downloadgcc-0cac82a0d30c211d3d0b093df4f5452cec11ef06.zip
gcc-0cac82a0d30c211d3d0b093df4f5452cec11ef06.tar.gz
gcc-0cac82a0d30c211d3d0b093df4f5452cec11ef06.tar.bz2
pr45679-1_0.C: New file.
* g++.dg/lto/pr45679-1_0.C: New file. * g++.dg/lto/pr45679-1_1.C: New file. * g++.dg/lto/pr45679-0_0.C: New file. * g++.dg/lto/pr45679-0_1.C: New file. * lto-cgraph.c (lto_output_node): Fix handling of clones. * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of unreachable clones with reachable clones. * tree-inline.c (copy_bb): Fix sanity checking when producing unreachable clone. From-SVN: r164344
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 362211a..2d3958f 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1741,7 +1741,8 @@ copy_bb (copy_body_data *id, basic_block bb, int frequency_scale,
most common reason for missing edges). */
gcc_assert (dest->needed || !dest->analyzed
|| dest->address_taken
- || !id->src_node->analyzed);
+ || !id->src_node->analyzed
+ || !id->dst_node->analyzed);
if (id->transform_call_graph_edges == CB_CGE_MOVE_CLONES)
cgraph_create_edge_including_clones
(id->dst_node, dest, orig_stmt, stmt, bb->count,