]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/33645 (undefined static variable in vortex for -fno-unit...
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Oct 2007 07:10:22 +0000 (09:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 12 Oct 2007 07:10:22 +0000 (09:10 +0200)
commit900461f31ff4f7678b6818b8719b7db7e5f44951
tree474026ffd420a838b23e399107df7fd8abcaea1a
parent3d3585eb17d987e33bfb59568f5bc37809c614f6
re PR tree-optimization/33645 (undefined static variable in vortex for -fno-unit-at-a-time)

PR tree-optimization/33645
* tree-ssa-live.c (mark_all_vars_used): Add data argument,
pass it to walk_tree.
(mark_all_vars_used_1): Pass data through to mark_all_vars_used.
When calling set_is_used on a VAR_DECL, if data is not NULL and
its DECL_UID is in the bitmap, call mark_all_vars_used on its
DECL_INITIAL after clearing the bit in bitmap.
(remove_unused_locals): Adjust mark_all_vars_used callers.
Instead of removing unused global vars from unexpanded_var_list
immediately record them in bitmap, call mark_all_vars_used on
all used global vars from unexpanded_var_list and only purge
global vars that weren't found used even during that step.

* gcc.dg/pr33645-1.c: New test.
* gcc.dg/pr33645-2.c: New test.
* gcc.dg/pr33645-3.c: New test.

From-SVN: r129254
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr33645-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr33645-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr33645-3.c [new file with mode: 0644]
gcc/tree-ssa-live.c