From: Jim Wilson Date: Thu, 14 May 1998 19:54:35 +0000 (-0700) Subject: Fix MIPS compiler abort on Mesa, reported by Andy Tai. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7924156a6a0953e9988a32b9d9d71dc69514c635;p=gcc.git Fix MIPS compiler abort on Mesa, reported by Andy Tai. * reload.c (find_reloads): Don't penalize SCRATCH output reload. From-SVN: r19756 --- diff --git a/gcc/reload.c b/gcc/reload.c index ef62ef92f44..8bfcbedd0a7 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -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++; }