This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: PR 6212


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~

  


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