PATCH to layout_decl for 11446
Jason Merrill
jason@redhat.com
Tue Oct 21 14:25:00 GMT 2003
On Tue, 21 Oct 2003 10:27:56 +0100, Andrew Haley <aph@redhat.com> wrote:
> Jason Merrill writes:
> > THIS PATCH FIXES AN ABI COMPATIBILITY BUG BETWEEN THE TRUNK AND PREVIOUS
> > RELEASES.
> >
> > PR 11446 is a conflict between packed and aligned attributes. In earlier
> > releases, declaring a struct as packed overrides aligned attributes on the
> > types of fields, but does not override aligned attributes directly on the
> > fields. My reworking of the field layout code changed that rule; this
> > patch restores it.
> >
> > Test in gcc.dg/pack-test-5.c. Tested x86_64-pc-linux-gnu, applied to trunk.
>
> Did you test this with a libgcj and testsuite build? This is critical
> for Java.
There were no libgcj testsuite regressions.
Jason
More information about the Gcc-patches
mailing list