re PR middle-end/48464 (@171649: ICE in setup_pressure_classes, at ira.c:877)
authorVladimir Makarov <vmakarov@redhat.com>
Mon, 11 Apr 2011 19:23:13 +0000 (19:23 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Mon, 11 Apr 2011 19:23:13 +0000 (19:23 +0000)
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

gcc/ChangeLog
gcc/ira.c

index dc17dddd52f18829d09631fb17c6f62301a4e3d7..3dd0f1d0a4aa345f69c5847d80fbea3e0e65a2a0 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
 
        * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
index 719473213c8d07400906f12ac6da9a794586eacd..054f4ca8eb2b484c9af428aa4bbf64825a79103a 100644 (file)
--- 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);