From: Bernhard Fischer Date: Sat, 21 Jun 2008 11:29:55 +0000 (+0200) Subject: tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before the grand_bitmap_obs... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=830b4fecd5f09b111cbe38a8f5f4c97101e3122c;p=gcc.git 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 --- 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);