From 0eeb22402c9694e375f3a2b9113bcf94d30205cf Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 15 Sep 2008 23:57:17 +0200 Subject: [PATCH] ira-color.c (finish_cost_update): Free update_cost_queue_elems rather than update_cost_queue. * ira-color.c (finish_cost_update): Free update_cost_queue_elems rather than update_cost_queue. From-SVN: r140378 --- gcc/ChangeLog | 3 +++ gcc/ira-color.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fbb50d0a91bf..31660347522e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2008-09-15 Jakub Jelinek + * ira-color.c (finish_cost_update): Free update_cost_queue_elems + rather than update_cost_queue. + * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release in every call starting with the second one, instead of only when alias_bitmap_obstack.elements != NULL. diff --git a/gcc/ira-color.c b/gcc/ira-color.c index 73b568e8ce10..9146ac04dc9b 100644 --- a/gcc/ira-color.c +++ b/gcc/ira-color.c @@ -139,7 +139,7 @@ initiate_cost_update (void) static void finish_cost_update (void) { - ira_free (update_cost_queue); + ira_free (update_cost_queue_elems); } /* When we traverse allocnos to update hard register costs, the cost -- 2.47.3