diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-03 19:18:51 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-03 19:18:51 +0000 |
commit | cab51373e8f5a41e9d7ac588627d7f603225eefa (patch) | |
tree | 2294355ab614437edfa67828c9fc0bd639029523 | |
parent | 6914ada6f556fe0552ce0471565995972be2cdc8 (diff) | |
download | gcc-cab51373e8f5a41e9d7ac588627d7f603225eefa.tar.gz |
PR middle-end/53106
* ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187114 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index adb0f868bee..90b78756ea9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-05-03 Jan Hubicka <jh@suse.cz> + + PR middle-end/53106 + * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones. + 2012-05-03 Jason Merrill <jason@redhat.com> * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of diff --git a/gcc/ipa.c b/gcc/ipa.c index a722386934b..42e90615da7 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -276,7 +276,7 @@ cgraph_remove_unreachable_nodes (bool before_inlining_p, FILE *file) { bool noninline = node->clone_of->symbol.decl != node->symbol.decl; node = node->clone_of; - if (noninline && !pointer_set_insert (reachable, node) && !node->symbol.aux) + if (noninline && !pointer_set_contains (reachable, node) && !node->symbol.aux) { enqueue_cgraph_node (node, &first, reachable); break; |