* ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
From-SVN: r159413
This commit is contained in:
parent
4d2ab9e36b
commit
bc8ddfe635
@ -1,3 +1,7 @@
|
||||
2010-05-14 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
|
||||
|
||||
2010-05-14 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/44119
|
||||
|
15
gcc/ipa.c
15
gcc/ipa.c
@ -320,21 +320,6 @@ cgraph_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
|
||||
first_varpool = (struct varpool_node *)first_varpool->aux;
|
||||
vnode->aux = NULL;
|
||||
process_references (&vnode->ref_list, &first, &first_varpool, before_inlining_p);
|
||||
/* If any function in a comdat group is reachable, force
|
||||
all other functions in the same comdat group to be
|
||||
also reachable. */
|
||||
if (vnode->same_comdat_group)
|
||||
{
|
||||
struct varpool_node *next;
|
||||
for (next = vnode->same_comdat_group;
|
||||
next != vnode;
|
||||
next = next->same_comdat_group)
|
||||
if (!next->needed)
|
||||
{
|
||||
varpool_mark_needed_node (next);
|
||||
enqueue_varpool_node (next, &first_varpool);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user