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]
Other format: [Raw text]

Re: Fix 21166


On Sat, Apr 30, 2005 at 05:16:50PM +0100, Nathan Sidwell wrote:
> >This structure has alignment based on 'y'.  We can, without changing
> >the meaning of the program, boost the alignment of 'x' back from 1 to 
> >that of 'y' (taking into account the offset of x, 0 in this case).
> 
> Agreed.  We don't do that right now, do we?

No.

> If we did, do you agree that
> DECL_PACKED (S::x) would then be cleared?

Yes.

> How does the case in 21166 differ from that case?  I don't think it
> does. 

It doesn't.

> ok with that change?  I'll figure out a test case to make sure
> we DTRT with packed,aligned(1).

Gimme a new patch with exactly what you have in mind and I'll
try to poke holes in it.


r~


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