From: Jerry Quinn <jlquinn@optonline.net>
To: Andrew Pinski <pinskia@gmail.com>
Cc: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Re: Basic frontend question about layout
Date: Wed, 24 Jun 2009 05:41:00 -0000 [thread overview]
Message-ID: <1245817116.4098.29.camel@cerberus.qb5.org> (raw)
In-Reply-To: <de8d50360906232052g26b58bbbo94c1c32030464dd3@mail.gmail.com>
On Tue, 2009-06-23 at 20:52 -0700, Andrew Pinski wrote:
> On Tue, Jun 23, 2009 at 8:48 PM, Jerry Quinn<jlquinn@optonline.net> wrote:
> > Hi, folks,
> >
> > I'm having trouble seeing how layout is specified at the GENERIC level
> > for RECORD_TYPEs. The docs and comments in tree.def say that you cannot
> > rely on the order of fields of the type. In stor-layout.c,
> > layout_types() seems to do the obvious thing, taking the fields in
> > order, but the docs make it sound like there is no way to be sure what
> > you'll get.
> > Could someone please clear up my confusion?
>
> The confusion here is that layout_types is separate from the rest of
> the middle-end and the front-end could do the layout themselves and
> the front-end calls layout_type if it does not do the layout itself.
As I look at the code, it seems like a front end doesn't actually need
to call layout_type at all. Is that correct? If so, is the layout
C-compatible, assuming the field types being used are individually
compatible?
I'm gleaning this from a mix of code, comments, and gccint texinfo docs.
Would it make sense to update them to indicate that layout is in order
as long as the rest of the language-specific front end doesn't choose to
lay things out differently?
Thanks,
Jerry
next prev parent reply other threads:[~2009-06-24 4:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-24 3:52 Jerry Quinn
2009-06-24 4:18 ` Andrew Pinski
2009-06-24 5:41 ` Jerry Quinn [this message]
2009-06-24 8:56 ` Eric Botcazou
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=1245817116.4098.29.camel@cerberus.qb5.org \
--to=jlquinn@optonline.net \
--cc=gcc@gcc.gnu.org \
--cc=pinskia@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).