mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-09 09:03:24 +00:00
2002-08-08 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_n32n64_use_struct_convention): N32 only returns structs by ref if they're too big to fit in two registers.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2002-08-08 Michael Snyder <msnyder@redhat.com>
|
||||||
|
|
||||||
|
* 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 <kevinb@redhat.com>
|
2002-08-09 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
|
* mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
|
||||||
|
|||||||
@@ -574,7 +574,7 @@ mips_eabi_use_struct_convention (int gcc_p, struct type *type)
|
|||||||
int
|
int
|
||||||
mips_n32n64_use_struct_convention (int gcc_p, struct type *type)
|
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
|
int
|
||||||
|
|||||||
Reference in New Issue
Block a user