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]

Re: rli->unpadded_align


On Wed, 26 Mar 03 12:29:50 EST, kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner) wrote:

>     > Yes, because of desires to be able to lay out records differently for
>     > Ada.
>
>     Differently how?
>
> I *believe*, but am not 100% certain, that the issue is that C will round a
> record's size up to a multiple of its alignment, but Ada can know the actual
> "size" of the record, but it's been a while.

OK.  It seems like that rounding is done in finalize_record_size, which is
called after lang_adjust_rli.  So to avoid that rounding you need to reduce
TYPE_ALIGN for the record.  It doesn't seem to me that rli->unpadded_align
as currently set would be any more useful for this purpose than
rli->record_align.

> Right now, I'd say to do whatever is simplest.  I'm not sure that the
> current code for Ada is either needed or correct.

I'll go ahead and remove unpadded_align for now, thanks.

Jason


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