[Bug c/51628] __attribute__((packed)) is unsafe in some cases
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 2 04:32:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51628
--- Comment #29 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Sven from comment #28)
> (In reply to Eric Gallager from comment #27)
> > gcc 8 adds -Wpacked-not-aligned; does that fix this bug?
>
> I couldn't find documentation on what this switch is supposed to do. Can you
> point me in the right direction? Is there some commit explaining
> -Wpacked-not-aligned?
>
I don't remember the exact commit number but HJ Lu added it; I added him on cc
with my previous comment, so maybe he can explain.
More information about the Gcc-bugs
mailing list