aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>1997-07-04 00:44:01 +0000
committerMichael Snyder <msnyder@vmware.com>1997-07-04 00:44:01 +0000
commit87910097ba1c058ec692808f4d3712b93cb72be3 (patch)
tree7cb4972afaa96392de8bcb63a1a1f9e17eb336f6 /gdb/mips-tdep.c
parent6d2f93f855ca9486163fbad2dbef3bfe037fbceb (diff)
downloadgdb-87910097ba1c058ec692808f4d3712b93cb72be3.zip
gdb-87910097ba1c058ec692808f4d3712b93cb72be3.tar.gz
gdb-87910097ba1c058ec692808f4d3712b93cb72be3.tar.bz2
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.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index de60fae..54d0fc5 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 &&