This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR 6212
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Sun, 5 May 2002 23:24:46 -0700
- Subject: Re: PR 6212
- References: <10205060303.AA17372@vlsi1.ultra.nyu.edu>
On Sun, May 05, 2002 at 11:03:05PM -0400, Richard Kenner wrote:
> But now I just realized that one way of doing this may be saying that
> a POINTER_TYPE variable has the alignment of the underlying type.
> That's an easy change, but one that has the potential of causing
> regressions. What's the thought here?
I think that should be ok, since the underlying type of FOOP in
typedef int foo __attribute__((packed));
typedef foo *foop;
should have alignment 8 rather than, say, 32. Also need to make
sure that
struct S {
char x;
int y __attribute__((packed));
int z;
} __attribute__((aligned(4)));
does the right thing wrt S.y and S.z;
r~