From d1f9044b7b63d950125cc095730e186eb04e5e3f Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 13 May 2004 15:24:47 +0000 Subject: [PATCH] tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated with BITMAP_XMALLOC. 2004-05-13 Andrew Pinski * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated with BITMAP_XMALLOC. From-SVN: r81789 --- gcc/ChangeLog | 3 +++ gcc/tree-ssa-alias.c | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 22144a6..06fcc4f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2004-05-13 Andrew Pinski + * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated + with BITMAP_XMALLOC. + * tree-ssa-dom.c (tree_ssa_dominator_optimize): Free nonzero_vars at the end of the function. diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index 6746f4e..02eb513 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -387,9 +387,9 @@ delete_alias_info (struct alias_info *ai) { size_t i; - BITMAP_FREE (ai->ssa_names_visited); + BITMAP_XFREE (ai->ssa_names_visited); ai->processed_ptrs = NULL; - BITMAP_FREE (ai->addresses_needed); + BITMAP_XFREE (ai->addresses_needed); for (i = 0; i < ai->num_addressable_vars; i++) { @@ -406,9 +406,9 @@ delete_alias_info (struct alias_info *ai) free (ai->pointers); ai->num_references = NULL; - BITMAP_FREE (ai->written_vars); - BITMAP_FREE (ai->dereferenced_ptrs_store); - BITMAP_FREE (ai->dereferenced_ptrs_load); + BITMAP_XFREE (ai->written_vars); + BITMAP_XFREE (ai->dereferenced_ptrs_store); + BITMAP_XFREE (ai->dereferenced_ptrs_load); free (ai); } -- 2.7.4