OSDN Git Service

Fix mips64vr4100-elf build failure.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Jun 1998 18:13:34 +0000 (18:13 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Jun 1998 18:13:34 +0000 (18:13 +0000)
* mips.c (mips_secondary_reload_class): Use gp_reg_p instead of
GP_REG_P.  Use gr_regs instead of GR_REGS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20350 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/mips.c

index a5ebd22..d945283 100644 (file)
@@ -1,3 +1,8 @@
+Mon Jun  8 18:12:06 1998  Jim Wilson  <wilson@cygnus.com>
+
+       * mips.c (mips_secondary_reload_class): Use gp_reg_p instead of
+       GP_REG_P.  Use gr_regs instead of GR_REGS.
+
 Mon Jun  8 16:54:12 1998  Ken Raeburn   <raeburn@cygnus.com>
                           Jeff Law      <law@cygnus.com>
 
index e10c048..56f5210 100644 (file)
@@ -7086,14 +7086,14 @@ mips_secondary_reload_class (class, mode, x, in_p)
      to a general register, or when copying from register 0.  */
   if (class == HILO_REG && regno != GP_REG_FIRST + 0)
     return ((! in_p
-            && GP_REG_P (regno)
+            && gp_reg_p
             && GET_MODE_SIZE (mode) <= GET_MODE_SIZE (SImode))
-           ? NO_REGS : GR_REGS);
+           ? NO_REGS : gr_regs);
   else if (regno == HILO_REGNUM)
     return ((in_p
-            && class == GR_REGS
+            && class == gr_regs
             && GET_MODE_SIZE (mode) <= GET_MODE_SIZE (SImode))
-           ? NO_REGS : GR_REGS);
+           ? NO_REGS : gr_regs);
 
   /* Copying from HI or LO to anywhere other than a general register
      requires a general register.  */
@@ -7104,7 +7104,7 @@ mips_secondary_reload_class (class, mode, x, in_p)
          /* We can't really copy to HI or LO at all in mips16 mode.  */
          return M16_REGS;
        }
-      return gp_reg_p ? NO_REGS : GR_REGS;
+      return gp_reg_p ? NO_REGS : gr_regs;
     }
   if (MD_REG_P (regno))
     {
@@ -7113,7 +7113,7 @@ mips_secondary_reload_class (class, mode, x, in_p)
          /* We can't really copy to HI or LO at all in mips16 mode.  */
          return M16_REGS;
        }
-      return class == gr_regs ? NO_REGS : GR_REGS;
+      return class == gr_regs ? NO_REGS : gr_regs;
     }
 
   /* We can only copy a value to a condition code register from a