http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52450

--- Comment #8 from rguenther at suse dot de <rguenther at suse dot de> 
2012-03-12 09:58:02 UTC ---
On Mon, 12 Mar 2012, rguenther at suse dot de wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52450
> 
> --- Comment #7 from rguenther at suse dot de <rguenther at suse dot de> 
> 2012-03-12 09:55:54 UTC ---
> On Sun, 11 Mar 2012, danglin at gcc dot gnu.org wrote:
> 
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52450
> > 
> > John David Anglin <danglin at gcc dot gnu.org> changed:
> > 
> >            What    |Removed                     |Added
> > ----------------------------------------------------------------------------
> >           Component|target                      |middle-end
> > 
> > --- Comment #6 from John David Anglin <danglin at gcc dot gnu.org> 
> > 2012-03-11 23:59:26 UTC ---
> > Test is xfailed on trunk.
> > 
> > Please note that this is an optimization bug as the test
> > doesn't fail at -O0.
> > 
> > While struct T is packed, I don't believe that this implies
> > that its address is misaligned.  i is the first field in
> > T.  Thus, its address shouldn't be misaligned on a big
> > endian target.
> 
> Is that so?  If so then the testcase is invalid.

Btw, alignof () of a packed struct type is 1 (it could be nested
in another packed struct).

Richard.

Reply via email to