]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* ira-color.c (assign_hard_reg): Fix typo.
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 1 Oct 2011 19:42:54 +0000 (19:42 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 1 Oct 2011 19:42:54 +0000 (19:42 +0000)
From-SVN: r179415

gcc/ChangeLog
gcc/ira-color.c

index 2b62b9687116dd2cbe47c7624fc3746d2b0f9192..339e69c2c4f15ed525f956778986c9039c7d9d44 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 e78012b1f4a39597b28bf1650109c55aa4d5f562..2b21fdd8ad29fdad315a78f91806716f0d59bdb9 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;