This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]