diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-14 19:54:35 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-14 19:54:35 +0000 |
commit | c63a4c84b8efc7d8892deb6c803b4986504c4324 (patch) | |
tree | bd965fe42cc004c2f8b58e823c55cb430d78638e /gcc/reload.c | |
parent | ca37753f69ab675c56b3bf4f5b2cd9536b5180cb (diff) | |
download | gcc-c63a4c84b8efc7d8892deb6c803b4986504c4324.tar.gz |
Fix MIPS compiler abort on Mesa, reported by Andy Tai.
* reload.c (find_reloads): Don't penalize SCRATCH output reload.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19756 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-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 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++; } |