diff options
author | Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com> | 2004-09-13 22:51:01 +0000 |
---|---|---|
committer | Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com> | 2004-09-13 22:51:01 +0000 |
commit | 699669b0cae459d6f365ae2bf6f04149ac8c9ee9 (patch) | |
tree | 69297f66b1458959fbc86188df989df620a72c6f /gcc/tree-dfa.c | |
parent | f3b55a91a992a0c66713b0b10e2a5f111ae45cf5 (diff) |
New code to analyze file level static variables and to determine if
they escape and also code to use this information to prune clobber
lists.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@87455 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r-- | gcc/tree-dfa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c index af6d9eddfc4..7f552ca928f 100644 --- a/gcc/tree-dfa.c +++ b/gcc/tree-dfa.c @@ -45,6 +45,7 @@ Boston, MA 02111-1307, USA. */ #include "tree-pass.h" #include "convert.h" #include "params.h" +#include "cgraph.h" /* Build and maintain data flow information for trees. */ @@ -107,6 +108,7 @@ find_referenced_vars (void) block_stmt_iterator si; struct walk_state walk_state; + cgraph_reset_static_var_maps (); vars_found = htab_create (50, htab_hash_pointer, htab_eq_pointer, NULL); memset (&walk_state, 0, sizeof (walk_state)); walk_state.vars_found = vars_found; |