mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
* arch-utils.c (always_use_struct_convention): New function.
* arch-utils.h (always_use_struct_convention): New prototype. * alpha-tdep.c (alpha_use_struct_convention): Delete. (alpha_gdbarch_init): Register always_use_struct_convention, instead of alpha_use_struct_convention. * cris-tdep.c (cris_use_struct_convention): Delete. (cris_gdbarch_init): Register always_use_struct_convention, instead of cris_use_struct_convention. * frv-tdep.c (frv_use_struct_convention): Delete. (frv_gdbarch_init): Register always_use_struct_convention, instead of frv_use_struct_convention. * h8300-tdep.c (h8300_use_struct_convention): Delete. (h8300_gdbarch_init): Register always_use_struct_convention, instead of h8300_use_struct_convention. * mips_o32-tdep.c (mips_o32_use_struct_convention): Delete. (mips_o32_gdbarch_init): Register always_use_struct_convention, instead of mips_o32_use_struct_convention.
This commit is contained in:
@ -768,12 +768,6 @@ mips_n32n64_use_struct_convention (int gcc_p, struct type *type)
|
||||
return (TYPE_LENGTH (type) > 2 * MIPS_SAVED_REGSIZE);
|
||||
}
|
||||
|
||||
static int
|
||||
mips_o32_use_struct_convention (int gcc_p, struct type *type)
|
||||
{
|
||||
return 1; /* Structures are returned by ref in extra arg0. */
|
||||
}
|
||||
|
||||
/* Should call_function pass struct by reference?
|
||||
For each architecture, structs are passed either by
|
||||
value or by reference, depending on their size. */
|
||||
@ -5778,7 +5772,7 @@ mips_gdbarch_init (struct gdbarch_info info,
|
||||
set_gdbarch_reg_struct_has_addr (gdbarch,
|
||||
mips_o32_reg_struct_has_addr);
|
||||
set_gdbarch_use_struct_convention (gdbarch,
|
||||
mips_o32_use_struct_convention);
|
||||
always_use_struct_convention);
|
||||
break;
|
||||
case MIPS_ABI_O64:
|
||||
set_gdbarch_push_dummy_call (gdbarch, mips_o64_push_dummy_call);
|
||||
|
Reference in New Issue
Block a user