* mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
and save it in a local variable. Use variable in later test.
This commit is contained in:
parent
e3bddbfa39
commit
fb850278da
|
@ -1,3 +1,8 @@
|
||||||
|
2002-07-31 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
|
* mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
|
||||||
|
and save it in a local variable. Use variable in later test.
|
||||||
|
|
||||||
2002-07-31 Kevin Buettner <kevinb@redhat.com>
|
2002-07-31 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
|
* mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
|
||||||
|
|
|
@ -2339,6 +2339,7 @@ mips_push_arguments (int nargs,
|
||||||
int argnum;
|
int argnum;
|
||||||
int len = 0;
|
int len = 0;
|
||||||
int stack_offset = 0;
|
int stack_offset = 0;
|
||||||
|
struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
|
||||||
|
|
||||||
/* Macros to round N up or down to the next A boundary; A must be
|
/* Macros to round N up or down to the next A boundary; A must be
|
||||||
a power of two. */
|
a power of two. */
|
||||||
|
@ -2515,7 +2516,7 @@ mips_push_arguments (int nargs,
|
||||||
(len % MIPS_SAVED_REGSIZE != 0));
|
(len % MIPS_SAVED_REGSIZE != 0));
|
||||||
/* Structures should be aligned to eight bytes (even arg registers)
|
/* Structures should be aligned to eight bytes (even arg registers)
|
||||||
on MIPS_ABI_O32 if their first member has double precision. */
|
on MIPS_ABI_O32 if their first member has double precision. */
|
||||||
if (gdbarch_tdep (current_gdbarch)->mips_abi == MIPS_ABI_O32
|
if (tdep->mips_abi == MIPS_ABI_O32
|
||||||
&& mips_type_needs_double_align (arg_type))
|
&& mips_type_needs_double_align (arg_type))
|
||||||
{
|
{
|
||||||
if ((argreg & 1))
|
if ((argreg & 1))
|
||||||
|
|
Loading…
Reference in New Issue