[Bug middle-end/94387] Excess read instructions are generated in case of writing to fields of volatile + packed type (structure)

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 30 08:17:18 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94387

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
volatile semantics on misaligned fields and strict-align targets cannot be
honored.  I suggest you add appropriate __attribute__((aligned(..))) if you
know the whole structure is aligned and just want fields to be tightly
packed.


More information about the Gcc-bugs mailing list