diff options
author | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-11 19:23:13 +0000 |
---|---|---|
committer | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-11 19:23:13 +0000 |
commit | bc9b5bdf9459a8ec49b2b07d046049a38eea4dc2 (patch) | |
tree | 53a738d1f1177c2c35eaea8889ceaf50fc172494 /gcc/ira.c | |
parent | 493a87faddec44ec4b4a71ff5c4365b138ca7ce5 (diff) | |
download | gcc-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.c | 4 |
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); |