From 3deafb32c699170d9822e3c50aa1e339ee7705ea Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 13 Dec 2012 15:20:57 +0000 Subject: re PR middle-end/53476 (FAIL: gcc.dg/attr-weakref-1.c) 2012-12-13 Richard Biener PR middle-end/53476 * varpool.c (varpool_remove_unreferenced_decls): Revert to 4.7 behavior. From-SVN: r194481 --- gcc/varpool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/varpool.c') diff --git a/gcc/varpool.c b/gcc/varpool.c index 56e23a73346..11c9e452333 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -358,8 +358,7 @@ varpool_remove_unreferenced_decls (void) && (!varpool_can_remove_if_no_refs (node) /* We just expanded all function bodies. See if any of them needed the variable. */ - || (!DECL_EXTERNAL (node->symbol.decl) - && DECL_RTL_SET_P (node->symbol.decl)))) + || DECL_RTL_SET_P (node->symbol.decl))) { enqueue_node (node, &first); if (cgraph_dump_file) -- cgit v1.2.1