OSDN Git Service

* ira-color.c (assign_hard_reg): Fix typo.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Oct 2011 19:42:54 +0000 (19:42 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Oct 2011 19:42:54 +0000 (19:42 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179415 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ira-color.c

index 2b62b96..339e69c 100644 (file)
@@ -1,3 +1,7 @@
+2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * ira-color.c (assign_hard_reg): Fix typo.
+
 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
 
        * doc/extend.texi: Add missing ','.
index e78012b..2b21fdd 100644 (file)
@@ -1769,7 +1769,7 @@ assign_hard_reg (ira_allocno_t a, bool retry_p)
   if (best_hard_regno >= 0)
     {
       for (i = hard_regno_nregs[best_hard_regno][mode] - 1; i >= 0; i--)
-       allocated_hardreg_p[best_hard_regno + 1] = true;
+       allocated_hardreg_p[best_hard_regno + i] = true;
     }
   ALLOCNO_HARD_REGNO (a) = best_hard_regno;
   ALLOCNO_ASSIGNED_P (a) = true;