[Bug c/53760] attribute packed doesn't pack inner structs

stsp at users dot sourceforge.net gcc-bugzilla@gcc.gnu.org
Sun Jun 24 18:09:00 GMT 2012


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

--- Comment #2 from Stas Sergeev <stsp at users dot sourceforge.net> 2012-06-24 18:09:18 UTC ---
Even if "attribute packed" have nothing to do with this,
then why doesn't it pack regardless?
Eg,
struct {
char a:1;
char b:1;
char c:1;
}
would be packed, no matter what.
Why does the same not happen to the struct?
Any way to force such a packing? There is an
obvious (IMHO) need for that.



More information about the Gcc-bugs mailing list