From 87910097ba1c058ec692808f4d3712b93cb72be3 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Fri, 4 Jul 1997 00:44:01 +0000 Subject: [PATCH] Thu Jul 3 17:41:46 1997 Michael Snyder (msnyder@cleaver.cygnus.com) * mips-tdep.c (mips_extract_return_value): align 4-byte float return values within the 8-byte FP register. --- gdb/ChangeLog | 5 +++++ gdb/mips-tdep.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 232511ed2e5..c65fbd4c9a7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 3 17:41:46 1997 Michael Snyder (msnyder@cleaver.cygnus.com) + + * mips-tdep.c (mips_extract_return_value): align 4-byte float + return values within the 8-byte FP register. + Thu Jul 3 13:48:11 1997 Michael Snyder (msnyder@cleaver.cygnus.com) * mips-tdep.c (mips_push_arguments): don't left-adjust 32-bit diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index de60faedc84..54d0fc530b3 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -1953,8 +1953,7 @@ mips_extract_return_value (valtype, regbuf, valbuf) if (TARGET_BYTE_ORDER == BIG_ENDIAN) { /* "un-left-justify" the value from the register */ - if (len < REGISTER_RAW_SIZE (regnum) && - TYPE_CODE (valtype) != TYPE_CODE_FLT) + if (len < REGISTER_RAW_SIZE (regnum)) offset = REGISTER_RAW_SIZE (regnum) - len; if (len > REGISTER_RAW_SIZE (regnum) && /* odd-size structs */ len < REGISTER_RAW_SIZE (regnum) * 2 && -- 2.30.2