public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Basic frontend question about layout
@ 2009-06-24  3:52 Jerry Quinn
  2009-06-24  4:18 ` Andrew Pinski
  0 siblings, 1 reply; 4+ messages in thread
From: Jerry Quinn @ 2009-06-24  3:52 UTC (permalink / raw)
  To: gcc

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.

Theoretically this would mean that you couldn't even reliably link a
structure in two separate compilation units, which is bogus.

Could someone please clear up my confusion?

Thanks,
Jerry Quinn


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-24  7:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-24  3:52 Basic frontend question about layout Jerry Quinn
2009-06-24  4:18 ` Andrew Pinski
2009-06-24  5:41   ` Jerry Quinn
2009-06-24  8:56   ` Eric Botcazou

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).