Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFA] PPC ABI compliance fix
Date: Fri, 22 Mar 2002 14:01:00 -0000	[thread overview]
Message-ID: <15515.43414.171055.15094@localhost.redhat.com> (raw)
In-Reply-To: <15515.34258.778318.466752@localhost.redhat.com>

Elena Zannoni writes:
 > 
 > Back in November, gcc changed the way structures <= 8 bytes are
 > returned on the PPC. The change was made to be compliant with the
 > SVR4 ABI.
 > 
 > http://gcc.gnu.org/ml/gcc-patches/2001-11/msg01468.html
 > 
 > The abi specifies that such structures are passed in r3 and r4.
 > Bigger structures are passed in memory.
 > 
 > Gcc was passing every structure in memory.  The change was made for
 > embedded targets, but not for natives (PowerPC Linux, NetBSD, and
 > FreeBSD).
 > 
 > Of course this change breaks binary compatibility with older gcc's.
 > Not sure what to do about that, if anything, the case it covers is a
 > corner case, anyway.
 > 
 > 
 > Elena
 > 
 > 
 > 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
 > 
 >         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
 >         function.  
 > 	* ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
 >         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
 >         structure returning convention for SYSV ABI case, but not
 >         for GNU/Linux, FreeBSD, or NetBSD.
 > 


Committed.

Elena


      parent reply	other threads:[~2002-03-22 22:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-22 11:28 Elena Zannoni
2002-03-22 11:52 ` Andrew Cagney
2002-03-22 12:06   ` Elena Zannoni
2002-03-22 12:37     ` Kevin Buettner
2002-03-22 12:47 ` Kevin Buettner
2002-03-22 13:41   ` Elena Zannoni
2002-03-22 14:01 ` Elena Zannoni [this message]

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=15515.43414.171055.15094@localhost.redhat.com \
    --to=ezannoni@redhat.com \
    --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