This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: rli->unpadded_align
- From: Jason Merrill <jason at redhat dot com>
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 26 Mar 2003 12:50:40 -0500
- Subject: Re: rli->unpadded_align
- References: <10303261729.AA19698@vlsi1.ultra.nyu.edu>
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