From: Michael Snyder Date: Fri, 9 Aug 2002 21:58:14 +0000 (+0000) Subject: 2002-08-08 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b78bcb188cfe6d08922c37efeaa4f95e39b9b74f;p=binutils-gdb.git 2002-08-08 Michael Snyder * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only returns structs by ref if they're too big to fit in two registers. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 962b68e05da..146cd3a520e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-08-08 Michael Snyder + + * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only + returns structs by ref if they're too big to fit in two registers. + 2002-08-09 Kevin Buettner * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 01637feb7a6..1faf071ab5c 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -574,7 +574,7 @@ mips_eabi_use_struct_convention (int gcc_p, struct type *type) int mips_n32n64_use_struct_convention (int gcc_p, struct type *type) { - return 1; /* Structures are returned by ref in extra arg0. */ + return (TYPE_LENGTH (type) > 2 * MIPS_SAVED_REGSIZE); } int