tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before the grand_bitmap_obs...
authorBernhard Fischer <aldot@gcc.gnu.org>
Sat, 21 Jun 2008 11:29:55 +0000 (13:29 +0200)
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Sat, 21 Jun 2008 11:29:55 +0000 (13:29 +0200)
2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>

* tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
the grand_bitmap_obstack.

From-SVN: r137000

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

index 3a1c90baac9004870d496f0c53c001d63bcd9831..19ce2279400212213ef43416a7c1f1b7422b96b3 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
+
+       * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
+       the grand_bitmap_obstack.
+
 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * ggc.h (GGC_RESIZEVAR): New, reorder macros.
index 5e3cfd679ff425cfe078870bb899995b3723596b..3f3aae777e1a460852468cd62e4c86e9b88471e1 100644 (file)
@@ -2017,6 +2017,8 @@ fini_antic (void)
 {
   basic_block bb;
 
+  if (maximal_set)
+    bitmap_set_free (maximal_set);
   free (postorder);
   bitmap_obstack_release (&grand_bitmap_obstack);
   free_alloc_pool (bitmap_set_pool);
@@ -2025,8 +2027,6 @@ fini_antic (void)
   free_alloc_pool (unary_node_pool);
   free_alloc_pool (comparison_node_pool);
 
-  if (maximal_set)
-    bitmap_set_free (maximal_set);
   FOR_ALL_BB (bb)
     {
       free (bb->aux);