aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-01-02 22:42:31 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-01-02 14:42:31 -0800
commit36579663a4c7dde7e8fe9ba08881f52bddc98774 (patch)
tree1c920bceeac5ffd62788c5e2ffe2669129d020bc /gcc/predict.c
parente4796f1c880f4308700c8b019e5b4494a593ce70 (diff)
downloadgcc-36579663a4c7dde7e8fe9ba08881f52bddc98774.zip
gcc-36579663a4c7dde7e8fe9ba08881f52bddc98774.tar.gz
gcc-36579663a4c7dde7e8fe9ba08881f52bddc98774.tar.bz2
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
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 74a1f24..0cba3a5 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -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. */