re PR middle-end/49596 (FAIL: gcc.dg/torture/pr43879_1.c)

2011-07-01  Richard Guenther  <rguenther@suse.de>

	PR middle-end/49596
	* cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
	may have unknown refs.

From-SVN: r175753
This commit is contained in:
Richard Guenther 2011-07-01 11:13:13 +00:00 committed by Richard Biener
parent 80d3dd383a
commit e8fdf1cd90
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2011-07-01 Richard Guenther <rguenther@suse.de>
PR middle-end/49596
* cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
may have unknown refs.
2011-07-01 Kai Tietz <ktietz@redhat.com>
* tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.

View file

@ -947,7 +947,8 @@ varpool_can_remove_if_no_refs (struct varpool_node *node)
static inline bool
varpool_all_refs_explicit_p (struct varpool_node *vnode)
{
return (!vnode->externally_visible
return (vnode->analyzed
&& !vnode->externally_visible
&& !vnode->used_from_other_partition
&& !vnode->force_output);
}