diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2011-04-11 19:23:13 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2011-04-11 19:23:13 +0000 |
commit | a58dfa4999fb9f46aa315ff6d99c36d350b24159 (patch) | |
tree | 53a738d1f1177c2c35eaea8889ceaf50fc172494 /gcc/ira.c | |
parent | 107fd1c1e967019a04400acba9efb1f41c470ee9 (diff) | |
download | gcc-a58dfa4999fb9f46aa315ff6d99c36d350b24159.zip gcc-a58dfa4999fb9f46aa315ff6d99c36d350b24159.tar.gz gcc-a58dfa4999fb9f46aa315ff6d99c36d350b24159.tar.bz2 |
re PR middle-end/48464 (@171649: ICE in setup_pressure_classes, at ira.c:877)
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.
From-SVN: r172274
Diffstat (limited to 'gcc/ira.c')
-rw-r--r-- | gcc/ira.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |