From: rsandifo Date: Tue, 19 Aug 2003 06:17:00 +0000 (+0000) Subject: * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P, X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d29dda0fb33b94041e5c7268c3e01da10d2e6142;p=thirdparty%2Fgcc.git * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 039df7454c30..4e82dbad3a4b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-08-19 Richard Sandiford + + * 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 PR target/11924 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index e90282161509..29de990f14e1 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);