From e8fdf1cd9079f588681b51603f7d11af7f14ce52 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 1 Jul 2011 11:13:13 +0000 Subject: [PATCH] re PR middle-end/49596 (FAIL: gcc.dg/torture/pr43879_1.c) 2011-07-01 Richard Guenther PR middle-end/49596 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes may have unknown refs. From-SVN: r175753 --- gcc/ChangeLog | 6 ++++++ gcc/cgraph.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0ceee86218..165e362f75a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-07-01 Richard Guenther + + PR middle-end/49596 + * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes + may have unknown refs. + 2011-07-01 Kai Tietz * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo. diff --git a/gcc/cgraph.h b/gcc/cgraph.h index f912af2a393..91339230a16 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -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); } -- 2.30.2