]> gcc.gnu.org Git - gcc.git/commitdiff
regrename.c (consider_available): Test fixed_regs not PIC_OFFSET_TABLE_REGNUM.
authorRichard Henderson <rth@cygnus.com>
Wed, 5 Apr 2000 01:23:57 +0000 (18:23 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 5 Apr 2000 01:23:57 +0000 (18:23 -0700)
        * regrename.c (consider_available): Test fixed_regs not
        PIC_OFFSET_TABLE_REGNUM.

From-SVN: r32919

gcc/ChangeLog
gcc/regrename.c

index c0a375a7356f687f189cfca96055b0d6ef1a55b4..07f70dccb707bfb0ad3c9edac136bb6bd910bb8d 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-04  Richard Henderson  <rth@cygnus.com>
+
+       * regrename.c (consider_available): Test fixed_regs not
+       PIC_OFFSET_TABLE_REGNUM.
+
 2000-04-04  Geoff Keating  <geoffk@cygnus.com>
 
        * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
index 816a5d262d10012bd7ca144a275d74e3c70fb134..b07b1055610a249527e7a62ab1eb62e4815f7e13 100644 (file)
@@ -776,6 +776,9 @@ consider_available (reg_use, avail_reg, avail_regs, rc, du, inum)
   if (!TEST_HARD_REG_BIT (*avail_regs, avail_reg))
     return 0;
 
+  if (fixed_regs[avail_reg])
+    return 0;
+
 #ifdef HARD_REGNO_RENAME_OK
   if (!HARD_REGNO_RENAME_OK (REGNO (reg_use), avail_reg))
     return 0;
@@ -810,9 +813,7 @@ consider_available (reg_use, avail_reg, avail_regs, rc, du, inum)
   /* If register is a callee-saved register it must be saved in the frame. 
      call saved registers can not be added to regs_ever_live after reload,
      as it would invalidate most elimination offsets */
-  if (regs_ever_live[avail_reg] || call_used_regs[avail_reg]
-      || (avail_reg == PIC_OFFSET_TABLE_REGNUM
-         && flag_pic && (current_function_uses_pic_offset_table)))
+  if (regs_ever_live[avail_reg] || call_used_regs[avail_reg])
     return 1;
 
   return 0;
This page took 0.100107 seconds and 5 git commands to generate.