summaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2007-05-03 17:51:19 +0000
committerKevin Buettner <kevinb@redhat.com>2007-05-03 17:51:19 +0000
commitda2e7ff453c1159442e75671946d327acd73628e (patch)
treef8f9a4a7919d0ef7a656418e3321955009b2df12 /gdb/mips-tdep.c
parent6ddff18666a1683c4dd8126f3413c08133cd9203 (diff)
downloadgdb-da2e7ff453c1159442e75671946d327acd73628e.tar.gz
* mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
point arguments, test explicitly for use of the EABI32 ABI instead of inferring this condition from tests on register sizes.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index d53b602575e..a291aa523a0 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -2507,7 +2507,12 @@ mips_eabi_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
if (fp_register_arg_p (typecode, arg_type)
&& float_argreg <= MIPS_LAST_FP_ARG_REGNUM)
{
- if (register_size (gdbarch, float_argreg) < 8 && len == 8)
+ /* EABI32 will pass doubles in consecutive registers, even on
+ 64-bit cores. At one time, we used to check the size of
+ `float_argreg' to determine whether or not to pass doubles
+ in consecutive registers, but this is not sufficient for
+ making the ABI determination. */
+ if (len == 8 && mips_abi (gdbarch) == MIPS_ABI_EABI32)
{
int low_offset = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? 4 : 0;
unsigned long regval;