public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/94452] I386 ABI: How to determine the alignment arguments on the stack of struct or union for argument passing
Date: Thu, 02 Apr 2020 11:56:55 +0000 [thread overview]
Message-ID: <bug-94452-4-oMJ7ZDfvZQ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-94452-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94452
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to ChenLiu from comment #5)
> (In reply to Richard Biener from comment #4)
> > (In reply to ChenLiu from comment #2)
> > > (In reply to Richard Biener from comment #1)
> > > > I see gx aligned to 64 bytes (as I expected). Can you be more specific as
> > > > to what target you tested?
> > >
> > > I tested on i386 target. I think you may misunderstand what I mean. The gx
> > > will align to 4 byte when passing it on stack. I think this should belong to
> > > calling conventions.
> >
> > Ah, OK. IIRC the psABI does not factor in over/under alignment but only
> > size and kind of (sub-)objects so eventually extra copy-in/out is required
> > to have the callee see arguments of the desired alignment.
> >
> > HJ can probably clarify.
> >
> > Note bugzilla isn't really for this kind of questions, there's a psABI
> > mailing list somewhere.
>
> Thanks for your help.
Please raise this question at
https://groups.google.com/forum/#!forum/ia32-abi
prev parent reply other threads:[~2020-04-02 11:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-02 2:28 [Bug target/94452] New: I386 ABI: How to determine the alignment of struct or union determined when passes them on stack? chen3.liu at intel dot com
2020-04-02 8:12 ` [Bug target/94452] " rguenth at gcc dot gnu.org
2020-04-02 8:26 ` chen3.liu at intel dot com
2020-04-02 8:50 ` chen3.liu at intel dot com
2020-04-02 9:09 ` [Bug target/94452] I386 ABI: How to determine the alignment arguments on the stack of struct or union for argument passing rguenth at gcc dot gnu.org
2020-04-02 9:18 ` chen3.liu at intel dot com
2020-04-02 11:56 ` hjl.tools at gmail dot com [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=bug-94452-4-oMJ7ZDfvZQ@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).