This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
rli->unpadded_align
- From: Jason Merrill <jason at redhat dot com>
- To: Richard Kenner <kenner at ultra dot nyu dot edu>
- Cc: gcc at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>
- Date: Tue, 25 Mar 2003 19:04:04 -0500
- Subject: rli->unpadded_align
I don't understand the purpose of this field. It seems to be the same as
rli->record_align, except that it skips the effects of
BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN. Is that actually the
intention? If so, why?
gnat_adjust_rli seems to only use it for TYPE_PACKED records, for which
field alignments will pretty much all be 1 anyway, right? Hmm, looking at
the ada frontend, it seems that you always set DECL_ALIGN to TYPE_ALIGN,
and rely on layout_decl to reduce the alignment as appropriate. But that
shouldn't make any difference to rli->unpadded_align; it will still be
reflected in DECL_ALIGN.
Jason