diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-10-12 09:10:22 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2007-10-12 09:10:22 +0200 |
commit | 900461f31ff4f7678b6818b8719b7db7e5f44951 (patch) | |
tree | 474026ffd420a838b23e399107df7fd8abcaea1a /gcc/cgraphbuild.c | |
parent | 3d3585eb17d987e33bfb59568f5bc37809c614f6 (diff) | |
download | gcc-900461f31ff4f7678b6818b8719b7db7e5f44951.zip gcc-900461f31ff4f7678b6818b8719b7db7e5f44951.tar.gz gcc-900461f31ff4f7678b6818b8719b7db7e5f44951.tar.bz2 |
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
Diffstat (limited to 'gcc/cgraphbuild.c')
0 files changed, 0 insertions, 0 deletions