summaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authorvmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-11 19:23:13 +0000
committervmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-11 19:23:13 +0000
commitbc9b5bdf9459a8ec49b2b07d046049a38eea4dc2 (patch)
tree53a738d1f1177c2c35eaea8889ceaf50fc172494 /gcc/ira.c
parent493a87faddec44ec4b4a71ff5c4365b138ca7ce5 (diff)
downloadgcc-bc9b5bdf9459a8ec49b2b07d046049a38eea4dc2.tar.gz
2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
PR middle-end/48464 * ira.c (setup_pressure_classes): Fix typo in loop condition. (setup_allocno_and_important_classes): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172274 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira.c')
-rw-r--r--gcc/ira.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ira.c b/gcc/ira.c
index 719473213c8..054f4ca8eb2 100644
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -863,7 +863,7 @@ setup_pressure_classes (void)
registers available for the allocation. */
CLEAR_HARD_REG_SET (temp_hard_regset);
CLEAR_HARD_REG_SET (temp_hard_regset2);
- for (cl = 0; cl <= LIM_REG_CLASSES; cl++)
+ for (cl = 0; cl < LIM_REG_CLASSES; cl++)
{
for (i = 0; i < n; i++)
if ((int) pressure_classes[i] == cl)
@@ -923,7 +923,7 @@ setup_allocno_and_important_classes (void)
/* Collect classes which contain unique sets of allocatable hard
registers. Prefer GENERAL_REGS to other classes containing the
same set of hard registers. */
- for (i = 0; i <= LIM_REG_CLASSES; i++)
+ for (i = 0; i < LIM_REG_CLASSES; i++)
{
COPY_HARD_REG_SET (temp_hard_regset, reg_class_contents[i]);
AND_COMPL_HARD_REG_SET (temp_hard_regset, no_unit_alloc_regs);