From 830b4fecd5f09b111cbe38a8f5f4c97101e3122c Mon Sep 17 00:00:00 2001 From: Bernhard Fischer Date: Sat, 21 Jun 2008 13:29:55 +0200 Subject: [PATCH] tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before the grand_bitmap_obstack. 2008-06-21 Bernhard Fischer * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before the grand_bitmap_obstack. From-SVN: r137000 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-pre.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3a1c90baac9..19ce2279400 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-06-21 Bernhard Fischer + + * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before + the grand_bitmap_obstack. + 2008-06-20 Kaveh R. Ghazi * ggc.h (GGC_RESIZEVAR): New, reorder macros. diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 5e3cfd679ff..3f3aae777e1 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -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); -- 2.30.2