Commit 36579663 by Andrew Pinski Committed by Andrew Pinski

c-typeck.c (finish_init): Free spelling_base before setting it again.

2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>

        * c-typeck.c (finish_init): Free spelling_base before
        setting it again.

        * cfgloop.c (flow_loops_find): Always free the sbitmap
        headers.

        * predict.c (estimate_probability): Free bbs after being
        done with it.

From-SVN: r75337
parent e4796f1c
2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
* c-typeck.c (finish_init): Free spelling_base before
setting it again.
* cfgloop.c (flow_loops_find): Always free the sbitmap
headers.
* predict.c (estimate_probability): Free bbs after being
done with it.
2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
* config/mn10300/mn10300.h (PREDICATE_CODES): Add
......
......@@ -4450,6 +4450,8 @@ finish_init (void)
abort ();
/* Pop back to the data of the outer initializer (if any). */
free (spelling_base);
constructor_decl = p->decl;
constructor_asmspec = p->asmspec;
require_constant_value = p->require_constant_value;
......
......@@ -883,8 +883,6 @@ flow_loops_find (struct loops *loops, int flags)
loop->num_nodes = flow_loop_nodes_find (loop->header, loop);
}
sbitmap_free (headers);
/* Assign the loop nesting depth and enclosed loop level for each
loop. */
loops->levels = flow_loops_level_compute (loops);
......@@ -900,6 +898,8 @@ flow_loops_find (struct loops *loops, int flags)
free_dominance_info (CDI_DOMINATORS);
}
sbitmap_free (headers);
loops->state = 0;
#ifdef ENABLE_CHECKING
verify_flow_info ();
......
......@@ -467,6 +467,9 @@ estimate_probability (struct loops *loops_info)
- predictor_info [(int) PRED_LOOP_EXIT].hitrate)
/ exits);
}
/* Free basic blocks from get_loop_body. */
free (bbs);
}
/* Attempt to predict conditional jumps using a number of heuristics. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment