summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-15 21:56:35 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-15 21:56:35 +0000
commitab156d726cfa71068deef34809e1c3101b735966 (patch)
treecf64c0e8432e051b51f6b8cbe2a161340f0381fd /gcc/tree-ssa-alias.c
parent19af51e20b15338d03fb374aa95dbebf8c7b6484 (diff)
downloadgcc-ab156d726cfa71068deef34809e1c3101b735966.tar.gz
* tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
in every call starting with the second one, instead of only when alias_bitmap_obstack.elements != NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140377 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r--gcc/tree-ssa-alias.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index 42a54312bdf..adea68ea4f6 100644
--- a/gcc/tree-ssa-alias.c
+++ b/gcc/tree-ssa-alias.c
@@ -2067,6 +2067,7 @@ init_alias_info (void)
struct alias_info *ai;
referenced_var_iterator rvi;
tree var;
+ static bool alias_bitmap_obstack_initialized;
ai = XCNEW (struct alias_info);
ai->ssa_names_visited = sbitmap_alloc (num_ssa_names);
@@ -2094,9 +2095,10 @@ init_alias_info (void)
/* Next time, we will need to reset alias information. */
cfun->gimple_df->aliases_computed_p = true;
- if (alias_bitmap_obstack.elements != NULL)
+ if (alias_bitmap_obstack_initialized)
bitmap_obstack_release (&alias_bitmap_obstack);
bitmap_obstack_initialize (&alias_bitmap_obstack);
+ alias_bitmap_obstack_initialized = true;
return ai;
}