diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1998-05-14 12:54:35 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1998-05-14 12:54:35 -0700 |
commit | 7924156a6a0953e9988a32b9d9d71dc69514c635 (patch) | |
tree | bd965fe42cc004c2f8b58e823c55cb430d78638e /gcc | |
parent | 41372177b2e395b51bab431d919d2900177f8e6d (diff) | |
download | gcc-7924156a6a0953e9988a32b9d9d71dc69514c635.zip gcc-7924156a6a0953e9988a32b9d9d71dc69514c635.tar.gz gcc-7924156a6a0953e9988a32b9d9d71dc69514c635.tar.bz2 |
Fix MIPS compiler abort on Mesa, reported by Andy Tai.
* reload.c (find_reloads): Don't penalize SCRATCH output reload.
From-SVN: r19756
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/reload.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index ef62ef9..8bfcbed 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++; } |