diff options
| author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-04 08:11:06 +0000 |
|---|---|---|
| committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-04 08:11:06 +0000 |
| commit | ddfb7c88aea4d81de865eb503bca9d4f9313b9c9 (patch) | |
| tree | 326b591ae18445ff2989fd10a33f01607b35a53d | |
| parent | 8d5d632f00ef1a6359b7287776041fe8c1c51e83 (diff) | |
| download | ppe42-gcc-ddfb7c88aea4d81de865eb503bca9d4f9313b9c9.tar.gz ppe42-gcc-ddfb7c88aea4d81de865eb503bca9d4f9313b9c9.zip | |
* config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
arguments downward for big-endian o64.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72088 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 8 | ||||
| -rw-r--r-- | gcc/config/mips/mips.c | 5 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e08571e7941..187375d2b83 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ +2003-10-04 Richard Sandiford <rsandifo@redhat.com> + + * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point + arguments downward for big-endian o64. + 2003-10-03 Robert Bowdidge <bowdidge@apple.com> - * ggc-page.c: (ggc_pch_write_object) replace fseek() with fwrite() in + + * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in PCH generation, avoiding too-frequent flushes when writing to NFS file system. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 6f49f6fdb53..ae27af1cb70 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -3833,6 +3833,11 @@ mips_pad_arg_upward (enum machine_mode mode, tree type) : GET_MODE_CLASS (mode) == MODE_INT) return false; + /* Big-endian o64 pads floating-point arguments downward. */ + if (mips_abi == ABI_O64) + if (type != 0 ? FLOAT_TYPE_P (type) : GET_MODE_CLASS (mode) == MODE_FLOAT) + return false; + /* Other types are padded upward for o32, o64, n32 and n64. */ if (mips_abi != ABI_EABI) return true; |

