re PR middle-end/53476 (FAIL: gcc.dg/attr-weakref-1.c)

2012-12-13  Richard Biener  <rguenther@suse.de>

	PR middle-end/53476
	* varpool.c (varpool_remove_unreferenced_decls): Revert to 4.7
	behavior.

From-SVN: r194481
This commit is contained in:
Richard Biener 2012-12-13 15:20:57 +00:00 committed by Richard Biener
parent 8e9f20cf1a
commit 3deafb32c6
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2012-12-13 Richard Biener <rguenther@suse.de>
PR middle-end/53476
* varpool.c (varpool_remove_unreferenced_decls): Revert to 4.7
behavior.
2012-12-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/unspecs.md: Add copyright notice.

View File

@ -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)