This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: rli->unpadded_align
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: jason at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 26 Mar 03 12:29:50 EST
- Subject: Re: rli->unpadded_align
> 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.
I'm reviewing it right now; I'm trying to move all the code for
determining the alignment of a field into layout_decl so that the
value of DECL_ALIGN actually reflects the field alignment. But that
looks like it will change the value of rli->unpadded_align, and I'd
like to know how (if) I need to adjust the code to accomodate Ada.
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. We're starting to
set up to run Ada tests on the HEAD branch and we'll see from those runs
if anything is broken. If it is, we'll know what it was for!