aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-09-15 23:57:17 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2008-09-15 23:57:17 +0200
commit0eeb22402c9694e375f3a2b9113bcf94d30205cf (patch)
tree6a44ced2da579db80fa858eeba40872fa2c93f2a /gcc
parent1fdeb82f8d12b0b1a10f14bbd7a8b9adad9effa4 (diff)
downloadgcc-0eeb22402c9694e375f3a2b9113bcf94d30205cf.zip
gcc-0eeb22402c9694e375f3a2b9113bcf94d30205cf.tar.gz
gcc-0eeb22402c9694e375f3a2b9113bcf94d30205cf.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/ira-color.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fbb50d0..3166034 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2008-09-15 Jakub Jelinek <jakub@redhat.com>
+ * 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 73b568e..9146ac0 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