From e8fdf1cd9079f588681b51603f7d11af7f14ce52 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 1 Jul 2011 11:13:13 +0000 Subject: 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/cgraph.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/cgraph.h') 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); } -- cgit v1.2.1