aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2010-05-21 15:00:56 -0600
committerJeff Law <law@gcc.gnu.org>2010-05-21 15:00:56 -0600
commitc6d0f11a0ad2377ecd85c61bd80f45df5befb817 (patch)
tree091b08841de0a7516e819e69644d36a78199b340 /gcc
parentd3f28910851bee99e959d8841c818417109d0a33 (diff)
downloadgcc-c6d0f11a0ad2377ecd85c61bd80f45df5befb817.zip
gcc-c6d0f11a0ad2377ecd85c61bd80f45df5befb817.tar.gz
gcc-c6d0f11a0ad2377ecd85c61bd80f45df5befb817.tar.bz2
ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
* ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo. From-SVN: r159683
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/ira-costs.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 06529f5..35cb08a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-21 Jeff Law <law@redhat.com>
+
+ * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
+
2010-05-21 Jason Merrill <jason@redhat.com>
* tree-eh.c (cleanup_is_dead_in): New.
diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c
index 6942931..491b86b 100644
--- a/gcc/ira-costs.c
+++ b/gcc/ira-costs.c
@@ -1794,7 +1794,7 @@ ira_tune_allocno_costs_and_cover_classes (void)
{
regno = ira_non_ordered_class_hard_regs[cover_class][j];
index = ira_class_hard_reg_index[cover_class][regno];
- ira_assert (index != 0);
+ ira_assert (index != -1);
reg_costs[index] += ALLOCNO_FREQ (a);
}
}