diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-16 17:11:38 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-16 17:11:38 +0000 |
commit | 083e227abd3b154e69db6ea4d6a5c855a93e734e (patch) | |
tree | 2a2125a45a84290bd78aea1dd0bd4f7f0e06dafc /gcc/lto-cgraph.c | |
parent | d25f2c6f71b6641ad7233db61a80cc2f19740c05 (diff) | |
download | gcc-083e227abd3b154e69db6ea4d6a5c855a93e734e.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164344 138bc75d-0d04-0410-961f-82ee72b054a4
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 |