From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32761 invoked by alias); 25 May 2003 21:14:24 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 32725 invoked from network); 25 May 2003 21:14:23 -0000 Received: from unknown (HELO mout0.freenet.de) (194.97.50.131) by sources.redhat.com with SMTP; 25 May 2003 21:14:23 -0000 Received: from [194.97.55.148] (helo=mx5.freenet.de) by mout0.freenet.de with asmtp (Exim 4.20) id 19K2ox-00077Z-AL for gdb-patches@sources.redhat.com; Sun, 25 May 2003 23:14:23 +0200 Received: from b042e.pppool.de ([213.7.4.46] helo=whitebox.local) by mx5.freenet.de with esmtp (Exim 4.20 #1) id 19K2ow-0004Lu-GL for gdb-patches@sources.redhat.com; Sun, 25 May 2003 23:14:23 +0200 Received: from whitebox.local (localhost [127.0.0.1]) by whitebox.local (8.12.7/8.12.7/SuSE Linux 0.6) with ESMTP id h4PLCv4Y001257 for ; Sun, 25 May 2003 23:12:58 +0200 Received: (from andreas@localhost) by whitebox.local (8.12.7/8.12.7/Submit) id h4PLCvBZ001253; Sun, 25 May 2003 23:12:57 +0200 X-Authentication-Warning: whitebox.local: andreas set sender to schwab@suse.de using -f To: gdb-patches@sources.redhat.com Subject: Fix parameter passing on m68k X-Yow: I guess we can live on his POT FARM in HADES!! From: Andreas Schwab Date: Sun, 25 May 2003 21:14:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg00482.txt.bz2 On m68k function params are padded to 32 bits. This fixes passing of small structures. Andreas. 2003-05-25 Andreas Schwab * 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);