https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53037
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #27198|0 |1
is obsolete| |
Attachment #27199|0 |1
is obsolete| |
--- Comment #21 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 41460
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41460&action=edit
An updated patch
Please take a look at this updated patch against r248831. I got
[hjl@gnu-6 pr53037]$ cat z.i
struct __attribute__ ((aligned (8))) S8 { char a[8]; };
struct __attribute__ ((packed)) S {
struct S8 s8;
};
[hjl@gnu-6 pr53037]$ make z.s
/export/build/gnu/gcc-test/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-test/build-x86_64-linux/gcc/ -mx32 -Wall -O2 -S z.i
z.i:4:1: warning: alignment 1 of ‘struct S’ is less than 8
};
^
[hjl@gnu-6 pr53037]$