This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: mips_n32n64_push_arguments: adjust alignment to ABI
- From: Michael Snyder <msnyder at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: cagney at redhat dot com
- Date: Thu, 5 Sep 2002 11:27:25 -0700
- Subject: [PATCH]: mips_n32n64_push_arguments: adjust alignment to ABI
2002-09-04 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
adjustment that doesn't conform to the ABI.
Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.119
diff -p -r1.119 mips-tdep.c
*** mips-tdep.c 24 Aug 2002 00:21:35 -0000 1.119
--- mips-tdep.c 5 Sep 2002 01:29:15 -0000
*************** mips_n32n64_push_arguments (int nargs,
*** 2955,2964 ****
typecode == TYPE_CODE_PTR ||
typecode == TYPE_CODE_FLT) && len <= 4)
longword_offset = MIPS_STACK_ARGSIZE - len;
- else if ((typecode == TYPE_CODE_STRUCT ||
- typecode == TYPE_CODE_UNION) &&
- TYPE_LENGTH (arg_type) < MIPS_STACK_ARGSIZE)
- longword_offset = MIPS_STACK_ARGSIZE - len;
}
if (mips_debug)
--- 2955,2960 ----