From: rguenth Date: Thu, 13 Dec 2012 15:20:57 +0000 (+0000) Subject: 2012-12-13 Richard Biener X-Git-Tag: upstream/4.9.2~8559 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3b42da739739f4782f6433eb29f2e965f82765d;p=platform%2Fupstream%2Flinaro-gcc.git 2012-12-13 Richard Biener PR middle-end/53476 * varpool.c (varpool_remove_unreferenced_decls): Revert to 4.7 behavior. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194481 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 + + PR middle-end/53476 + * varpool.c (varpool_remove_unreferenced_decls): Revert to 4.7 + behavior. + 2012-12-13 Kyrylo Tkachov * 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)