From: Andreas Schwab <schwab@suse.de>
To: gdb-patches@sources.redhat.com
Subject: Fix parameter passing on m68k
Date: Sun, 25 May 2003 21:14:00 -0000 [thread overview]
Message-ID: <m3smr2pw6e.fsf@whitebox.local> (raw)
On m68k function params are padded to 32 bits. This fixes passing of
small structures.
Andreas.
2003-05-25 Andreas Schwab <schwab@suse.de>
* m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
stack_align and deprecated_extra_stack_alignment_needed.
(m68k_stack_align): Delete.
--- gdb/m68k-tdep.c.~1.62.~ 2003-05-25 21:53:04.000000000 +0200
+++ gdb/m68k-tdep.c 2003-05-25 22:28:16.000000000 +0200
@@ -176,14 +176,6 @@ m68k_register_name (int regnum)
return register_names[regnum];
}
-/* Stack must be kept short aligned when doing function calls. */
-
-static CORE_ADDR
-m68k_stack_align (CORE_ADDR addr)
-{
- return ((addr + 1) & ~1);
-}
-
/* Index within `registers' of the first byte of the space for
register regnum. */
@@ -922,8 +914,7 @@ m68k_gdbarch_init (struct gdbarch_info i
/* Stack grows down. */
set_gdbarch_inner_than (gdbarch, core_addr_lessthan);
- set_gdbarch_stack_align (gdbarch, m68k_stack_align);
- set_gdbarch_deprecated_extra_stack_alignment_needed (gdbarch, 1);
+ set_gdbarch_parm_boundary (gdbarch, 32);
set_gdbarch_believe_pcc_promotion (gdbarch, 1);
set_gdbarch_decr_pc_after_break (gdbarch, 2);
reply other threads:[~2003-05-25 21:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3smr2pw6e.fsf@whitebox.local \
--to=schwab@suse.de \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox