2012-05-24 Richard Guenther <rguenther@suse.de>
commit2887c0152fd2c9f9bd55f77f01147a68e4e60730
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 May 2012 09:54:25 +0000 (24 09:54 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 May 2012 09:54:25 +0000 (24 09:54 +0000)
tree532a367627cc9c4b11aca9317937b9fcbd81f735
parentafea39ad8e9c598a84e7ac1ba017ad8c1617503a
2012-05-24  Richard Guenther  <rguenther@suse.de>

PR bootstrap/53466
* tree-ssa-live.c (remove_unused_scope_block_p): Properly
handle globals.
(remove_unused_locals): Pass global_unused_vars to
remove_unused_scope_block_p.  Restore code walking all
referenced vars and pruning them.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187824 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-live.c