]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Jan 2007 00:13:38 +0000 (00:13 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Jan 2007 00:13:38 +0000 (00:13 +0000)
        * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120983 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-structalias.c
gcc/tree-ssa.c

index 78513d25ecb188e8fa95cabbb0a33952f1d0b3e2..c4aede67bcbe418f160ffcb8db41411edf62539e 100644 (file)
@@ -1,3 +1,11 @@
+2007-01-20  Jan Hubicka  <jh@suse.cz>
+
+        * 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.
+
 2007-01-19  Roger Sayle  <roger@eyesopen.com>
 
        * common.opt (fsigned-zeros): New command line option.
index 550ad865eb2c6731890bf6c3b3e792846373e4fa..def895854f598c56c25f5fe41624a53ea966460e 100644 (file)
@@ -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;
 }
 
 
index a4231083d019ae7751ddb3943a4d3c34b3899a74..dd771ea2b991e21aadf6eb348db36f0ac3268314 100644 (file)
@@ -778,7 +778,6 @@ init_tree_ssa (void)
                                               var_ann_eq, NULL);
   cfun->gimple_df->call_clobbered_vars = BITMAP_GGC_ALLOC ();
   cfun->gimple_df->addressable_vars = BITMAP_GGC_ALLOC ();
-  init_alias_heapvars ();
   init_ssanames ();
   init_phinodes ();
 }