Fix Irix6 Mesa compile failure reported by Andy Tai.
authorJim Wilson <wilson@cygnus.com>
Tue, 19 May 1998 19:23:09 +0000 (19:23 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 19 May 1998 19:23:09 +0000 (12:23 -0700)
* config/mips/mips.c (double_memory_operand): Accept any MEM during
reload when TARGET_64BIT.

From-SVN: r19887

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

index f6f5bdbff75075bfd665aaa33e0362a129de0a31..963563503f934cf27e113ba6b4fc815e9ff2da7e 100644 (file)
@@ -1,3 +1,8 @@
+Tue May 19 19:08:52 1998  Jim Wilson  <wilson@cygnus.com>
+
+       * config/mips/mips.c (double_memory_operand): Accept any MEM during
+       reload when TARGET_64BIT.
+
 Tue May 19 18:21:25 1998  Jim Wilson  <wilson@cygnus.com>
 
        Finish incomplete change started by Kenner.
index 0ca03deca0a3e835b707d4c2e805b40056f519a5..aad3c81bc5020e122af54c4ca6d655b2fcd85fe9 100644 (file)
@@ -828,6 +828,17 @@ double_memory_operand (op, mode)
          && double_memory_operand (reg_equiv_mem[REGNO (op)], mode))
        return 1;
 
+      /* All reloaded addresses are valid in TARGET_64BIT mode.  This is
+        the same test performed for 'm' in find_reloads.  */
+
+      if (reload_in_progress
+         && TARGET_64BIT
+         && (GET_CODE (op) == MEM
+             || (GET_CODE (op) == REG
+                 && REGNO (op) >= FIRST_PSEUDO_REGISTER
+                 && reg_renumber[REGNO (op)] < 0)))
+       return 1;
+
       if (reload_in_progress
          && TARGET_MIPS16
          && GET_CODE (op) == MEM)