summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-19 06:17:00 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-19 06:17:00 +0000
commitd29dda0fb33b94041e5c7268c3e01da10d2e6142 (patch)
treeaf57648c62362fa1eea70ed8af56544b1f6c0118
parent561c56b7b461d96cd7d27b3233cfdfb7d65bcc44 (diff)
downloadppe42-gcc-d29dda0fb33b94041e5c7268c3e01da10d2e6142.tar.gz
ppe42-gcc-d29dda0fb33b94041e5c7268c3e01da10d2e6142.zip
* config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
expect SFmode and DFmode arguments to be passed in FPRs, regardless of the underlying type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70557 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/mips/mips.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 039df7454c3..4e82dbad3a4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2003-08-19 Richard Sandiford <rsandifo@redhat.com>
+ * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
+ expect SFmode and DFmode arguments to be passed in FPRs,
+ regardless of the underlying type.
+
+2003-08-19 Richard Sandiford <rsandifo@redhat.com>
+
PR target/11924
* config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
(mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index e9028216150..29de990f14e 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -4162,8 +4162,8 @@ mips_va_arg (tree valist, tree type)
lab_over = gen_label_rtx ();
ovfl = build (COMPONENT_REF, TREE_TYPE (f_ovfl), valist, f_ovfl);
-
- if (TREE_CODE (type) == REAL_TYPE)
+ if (GET_MODE_CLASS (TYPE_MODE (type)) == MODE_FLOAT
+ && GET_MODE_SIZE (TYPE_MODE (type)) <= UNITS_PER_FPVALUE)
{
top = build (COMPONENT_REF, TREE_TYPE (f_ftop), valist, f_ftop);
off = build (COMPONENT_REF, TREE_TYPE (f_foff), valist, f_foff);
OpenPOWER on IntegriCloud