Fix MIPS compiler abort on Mesa, reported by Andy Tai.
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 14 May 1998 19:54:35 +0000 (12:54 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 14 May 1998 19:54:35 +0000 (12:54 -0700)
* reload.c (find_reloads): Don't penalize SCRATCH output reload.

From-SVN: r19756

gcc/reload.c

index ef62ef92f442f97e53935b01ebc4019f01e3c2bf..8bfcbedd0a7c2b83338de907e12f9804863dc9df 100644 (file)
@@ -3272,7 +3272,8 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
 
              /* Input reloads can be inherited more often than output
                 reloads can be removed, so penalize output reloads.  */
-             if (operand_type[i] != RELOAD_FOR_INPUT)
+             if (operand_type[i] != RELOAD_FOR_INPUT
+                 && GET_CODE (operand) != SCRATCH)
                reject++;
            }