]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
global.c (retry_global_alloc): Avoid shadowing allocno.
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>
Wed, 8 Aug 2001 21:53:46 +0000 (21:53 +0000)
committerFranz Sirl <sirl@gcc.gnu.org>
Wed, 8 Aug 2001 21:53:46 +0000 (21:53 +0000)
2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
* global.c (retry_global_alloc): Avoid shadowing allocno.

From-SVN: r44728

gcc/ChangeLog
gcc/global.c

index 585299522f60cfa8cdd1d45cd545fee1c6a009ae..500a0894d9fcc6ed67aceaf0dd24364129470996 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
+
+       * global.c (retry_global_alloc): Avoid shadowing allocno.
+
 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
 
        * except.c (remove_fixup_regions): Fix typo.
index 6558fac8b89919e7a6f5f722c1c4c3c7ac273f99..1fe4d82c3f2ce90e22461aeb118a2e5c5cedf0e2 100644 (file)
@@ -1290,17 +1290,17 @@ retry_global_alloc (regno, forbidden_regs)
      int regno;
      HARD_REG_SET forbidden_regs;
 {
-  int allocno = reg_allocno[regno];
-  if (allocno >= 0)
+  int alloc_no = reg_allocno[regno];
+  if (alloc_no >= 0)
     {
       /* If we have more than one register class,
         first try allocating in the class that is cheapest
         for this pseudo-reg.  If that fails, try any reg.  */
       if (N_REG_CLASSES > 1)
-       find_reg (allocno, forbidden_regs, 0, 0, 1);
+       find_reg (alloc_no, forbidden_regs, 0, 0, 1);
       if (reg_renumber[regno] < 0
          && reg_alternate_class (regno) != NO_REGS)
-       find_reg (allocno, forbidden_regs, 1, 0, 1);
+       find_reg (alloc_no, forbidden_regs, 1, 0, 1);
 
       /* If we found a register, modify the RTL for the register to
         show the hard register, and mark that register live.  */