This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch c/c++]: Fix for PR c/52991 issue about ignored packed-attribute for ms-structure-layout
On Thu, Dec 13, 2012 at 11:07 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Thu, Dec 13, 2012 at 11:03:58AM +0100, Richard Biener wrote:
>> struct X
>> {
>> char c;
>> short s;
>> char c2;
>> short s2;
>> } __attribute__((packed,aligned(2)));
>
> As struct-layout-1.exp tests show, this is something that was ABI-wise
> changed already several times. That said, for non-ms-bitfield-layout I'd
> strongly prefer if we could avoid yet another ABI change for it.
Probably not exactly this case - 2.95, 3.2, 3.3, 4.1 ... all show the same
behavior. And Kai should have seen regressions, no?
Richard.
> Jakub