summaryrefslogtreecommitdiff
path: root/gcc/tree-dfa.c
diff options
context:
space:
mode:
authorKenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>2004-09-13 22:51:01 +0000
committerKenneth Zadeck <zadeck@gcc.gnu.org>2004-09-13 22:51:01 +0000
commit6674a6ce49dc1cba7ca46cdd9cf4a62ede556568 (patch)
tree69297f66b1458959fbc86188df989df620a72c6f /gcc/tree-dfa.c
parentc56e3d82fc9090d1580ca8dc02a6add848629d0c (diff)
downloadgcc-6674a6ce49dc1cba7ca46cdd9cf4a62ede556568.tar.gz
New code to analyze file level static variables and to determine if...
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. From-SVN: r87455
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;