diff options
author | Richard Biener <rguenther@suse.de> | 2012-12-13 15:20:57 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-12-13 15:20:57 +0000 |
commit | 3deafb32c699170d9822e3c50aa1e339ee7705ea (patch) | |
tree | d463e4c438b77966d77099d7edfebfc18adddcba /gcc | |
parent | 8e9f20cf1afad895bbb73a418ee3a183d2a2ea23 (diff) | |
download | gcc-3deafb32c699170d9822e3c50aa1e339ee7705ea.zip gcc-3deafb32c699170d9822e3c50aa1e339ee7705ea.tar.gz gcc-3deafb32c699170d9822e3c50aa1e339ee7705ea.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/varpool.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ba31106..825694e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/varpool.c b/gcc/varpool.c index 56e23a7..11c9e45 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) |