summaryrefslogtreecommitdiff
path: root/gcc/tree-dfa.c
diff options
context:
space:
mode:
authorzadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-13 22:51:01 +0000
committerzadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-13 22:51:01 +0000
commitacc70efa1df443f9b6ad2c686787a379f3829a4e (patch)
tree69297f66b1458959fbc86188df989df620a72c6f /gcc/tree-dfa.c
parent84860738349c884bfa028c398576d9081bebe0b9 (diff)
downloadgcc-acc70efa1df443f9b6ad2c686787a379f3829a4e.tar.gz
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: svn+ssh://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.c2
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;