]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/49596 (FAIL: gcc.dg/torture/pr43879_1.c)
authorRichard Guenther <rguenther@suse.de>
Fri, 1 Jul 2011 11:13:13 +0000 (11:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 1 Jul 2011 11:13:13 +0000 (11:13 +0000)
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

gcc/ChangeLog
gcc/cgraph.h

index e0ceee862185cb32eb25f219f45f7063bb408c05..165e362f75aace171bb98bc078a108752639b347 100644 (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.
index f912af2a39363094c65fc2a9998e754350df9732..91339230a16d52f806307d3e329436ae5527a8b2 100644 (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);
 }