This is the mail archive of the gcc-patches@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]

Re: g++ 3.1 EH broken for irix6.5


On Thu, Jun 28, 2001 at 10:03:54PM -0400, Richard Kenner wrote:
> Well, the question then is how do you specify that the type should be
> packed by not "under-aligned"?

At the moment, you can't.  You can get very close with
packed+aligned, but you have to know how much alignment
to give the structure.

> The point is that the informal meaning of "pack" means "remove padding"
> and says nothing whatsoever about the alignment.  We've mixed up these
> two concepts in a way that's confused.  How can we disentangle them?

I'll interpret this as "how can we disentangle them within
the compiler" not "how can we disentagle them in the user
accessible attributes".  The later isn't very interesting
I don't think -- we've never seen a need for it before,
and I wouldn't want to invent something just because.

The answer is probably to have the packed attribute also set
TYPE_USER_ALIGN or DECL_USER_ALIGN or whatever is appropriate,
possibly with an additional bit set to let the layout routines
know that these alignments are to override ABI defaults 
rather than augment ABI defaults.



r~


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