OSDN Git Service

2011-07-01 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Jul 2011 11:13:13 +0000 (11:13 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Jul 2011 11:13:13 +0000 (11:13 +0000)
PR middle-end/49596
* cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
may have unknown refs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175753 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraph.h

index e0ceee8..165e362 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 f912af2..9133923 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);
 }