This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: g++ 3.1 EH broken for irix6.5
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Subject: Re: g++ 3.1 EH broken for irix6.5
- From: Richard Henderson <rth at redhat dot com>
- Date: Thu, 28 Jun 2001 19:12:56 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <10106290203.AA03246@vlsi1.ultra.nyu.edu>
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~