Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Clarke, Stephen" <stephen.clarke@superh.com>
To: "Andrew Cagney" <ac131313@redhat.com>
Cc: "Elena Zannoni" <ezannoni@redhat.com>, <gdb@sources.redhat.com>
Subject: RE: sh4 abi doc
Date: Thu, 26 Sep 2002 10:33:00 -0000	[thread overview]
Message-ID: <287E4644B5249D449C56FA5409A874AE03EFBA@sh-us-ex01.us.w2k.superh.com> (raw)

> From: Andrew Cagney [mailto:ac131313@redhat.com] 
> Sent: Thursday, September 26, 2002 10:19 AM
> To: Clarke, Stephen
> Cc: Elena Zannoni; gdb@sources.redhat.com
> Subject: Re: sh4 abi doc
> 
> 
> > "When an aggregate type is returned in R0 and R1, R0 
> contains the first
> > four bytes of the aggregate, and R1 contains the remainder. 
> If the size
> > of the aggregate type is not a multiple of 4 bytes, the aggregate is
> > tail-padded up to a multiple of 4 bytes. The value of the padding is
> > undefined.
> 
> Suggest clarifying this.  In particular how tail ``tail-padding'' 
> interacts with LE and BE.  I think I know what this means 
> (having seen 
> the MIPS) but (having seen the MIPS) I also know how badly it can be 
> botched :-(

Yes ...  when describing how parameters are passed, we have:

"When the size of an aggregate parameter is not a multiple of
4 bytes, it is tail padded up to a multiple of 4 bytes. The value
of this padding is undefined. For little-endian targets the
padding will appear at the most significant end of the last element,
for big-endian targets the padding appears at the least significant
end of the last element."

(Here an 'element' is a 4-byte chunk of the aggregate).

But the position of the padding is not described for return
values.  The intention is that return values are padded in
the same way as parameters, but you're right: it should be
stated explicitly.

Thanks,
Steve.


             reply	other threads:[~2002-09-26 17:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-26 10:33 Clarke, Stephen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-09-26 11:47 Clarke, Stephen
2002-09-26 12:45 ` Elena Zannoni
2002-09-26 12:54   ` Andrew Cagney
2002-09-26 10:10 Clarke, Stephen
2002-09-26 10:18 ` Andrew Cagney
2002-09-26 10:46 ` Elena Zannoni
2002-09-26  9:17 Clarke, Stephen
2002-09-26  9:54 ` Elena Zannoni
2002-09-26  8:21 Elena Zannoni

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=287E4644B5249D449C56FA5409A874AE03EFBA@sh-us-ex01.us.w2k.superh.com \
    --to=stephen.clarke@superh.com \
    --cc=ac131313@redhat.com \
    --cc=ezannoni@redhat.com \
    --cc=gdb@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