diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-28 07:39:51 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-28 07:39:51 +0000 |
commit | b7517b825e98e236b5d990fd9d9e64141e5ab5d4 (patch) | |
tree | 1ac6a8fd5c773b8d2bb2810a567129d4bc5824d8 /gcc/var-tracking.c | |
parent | 704e91bd4accea20d39aeb887d46e8800fecaef0 (diff) | |
download | gcc-b7517b825e98e236b5d990fd9d9e64141e5ab5d4.tar.gz |
PR debug/53706
PR debug/47624
* var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
(vt_finalize): ... here instead, if needed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189037 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/var-tracking.c')
-rw-r--r-- | gcc/var-tracking.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c index be638d7ca25..66ce35a0095 100644 --- a/gcc/var-tracking.c +++ b/gcc/var-tracking.c @@ -9260,11 +9260,7 @@ vt_emit_notes (void) dataflow_set_destroy (&cur); if (MAY_HAVE_DEBUG_INSNS) - { - free_alloc_pool (loc_exp_dep_pool); - loc_exp_dep_pool = NULL; - htab_delete (dropped_values); - } + htab_delete (dropped_values); emit_notes = false; } @@ -9974,6 +9970,9 @@ vt_finalize (void) if (MAY_HAVE_DEBUG_INSNS) { + if (loc_exp_dep_pool) + free_alloc_pool (loc_exp_dep_pool); + loc_exp_dep_pool = NULL; free_alloc_pool (valvar_pool); VEC_free (rtx, heap, preserved_values); cselib_finish (); |