diff options
author | Jim Wilson <wilson@cygnus.com> | 1998-05-19 19:23:09 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1998-05-19 12:23:09 -0700 |
commit | f85c8be78785b2875cd97a4cfabe2d13cf095ae3 (patch) | |
tree | 87fb9a7a1dd54ffcf294f00c30a7dfc0b371c017 | |
parent | c73912726cd1616376e86af419d32fa333c92e95 (diff) | |
download | gcc-f85c8be78785b2875cd97a4cfabe2d13cf095ae3.zip gcc-f85c8be78785b2875cd97a4cfabe2d13cf095ae3.tar.gz gcc-f85c8be78785b2875cd97a4cfabe2d13cf095ae3.tar.bz2 |
Fix Irix6 Mesa compile failure reported by Andy Tai.
* config/mips/mips.c (double_memory_operand): Accept any MEM during
reload when TARGET_64BIT.
From-SVN: r19887
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f6f5bdb..9635635 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 0ca03de..aad3c81 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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) |