aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2007-01-20 01:13:38 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2007-01-20 00:13:38 +0000
commitc9fa8bd45b69fd268f83b1cc52e2088caef18903 (patch)
tree4d7100791a00083bf39d88eb678529f1e4894c71 /gcc/tree-ssa-structalias.c
parentd6e2570089844c9f7e48e7878f24d7183a65123d (diff)
downloadgcc-c9fa8bd45b69fd268f83b1cc52e2088caef18903.zip
gcc-c9fa8bd45b69fd268f83b1cc52e2088caef18903.tar.gz
gcc-c9fa8bd45b69fd268f83b1cc52e2088caef18903.tar.bz2
tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
* tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars. * tree-ssa-structalias.c (compute_points_to_sets): Do call init_alias_heapvars. (init_alias_heapvars): Initialize only when not already initialized. (delete_alias_heapvars): Set heapvar_for_stmt to NULL. From-SVN: r120983
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 550ad86..def8958 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -4692,6 +4692,7 @@ compute_points_to_sets (struct alias_info *ai)
timevar_push (TV_TREE_PTA);
init_alias_vars ();
+ init_alias_heapvars ();
intra_create_variable_infos ();
@@ -4934,14 +4935,16 @@ struct tree_opt_pass pass_ipa_pta =
void
init_alias_heapvars (void)
{
- heapvar_for_stmt = htab_create_ggc (11, tree_map_hash, tree_map_eq,
- NULL);
+ if (!heapvar_for_stmt)
+ heapvar_for_stmt = htab_create_ggc (11, tree_map_hash, tree_map_eq,
+ NULL);
}
void
delete_alias_heapvars (void)
{
htab_delete (heapvar_for_stmt);
+ heapvar_for_stmt = NULL;
}