diff options
author | Jan Hubicka <jh@suse.cz> | 2010-09-16 19:11:38 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-09-16 17:11:38 +0000 |
commit | 0cac82a0d30c211d3d0b093df4f5452cec11ef06 (patch) | |
tree | 2a2125a45a84290bd78aea1dd0bd4f7f0e06dafc /gcc/lto-cgraph.c | |
parent | 5ee996a2c62317d11b9ef0df4e2d7a1ac28d5759 (diff) | |
download | gcc-0cac82a0d30c211d3d0b093df4f5452cec11ef06.tar.gz |
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/lto-cgraph.c')
-rw-r--r-- | gcc/lto-cgraph.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index 78c809b5520..5410e8fcbc5 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -447,11 +447,14 @@ lto_output_node (struct lto_simple_output_block *ob, struct cgraph_node *node, clone_of = node->clone_of; while (clone_of - && (ref = lto_cgraph_encoder_lookup (encoder, node->clone_of)) == LCC_NOT_FOUND) + && (ref = lto_cgraph_encoder_lookup (encoder, clone_of)) == LCC_NOT_FOUND) if (clone_of->prev_sibling_clone) clone_of = clone_of->prev_sibling_clone; else clone_of = clone_of->clone_of; + + if (LTO_cgraph_analyzed_node) + gcc_assert (clone_of || !node->clone_of); if (!clone_of) lto_output_sleb128_stream (ob->main_stream, LCC_NOT_FOUND); else |