[Bug middle-end/102162] Byte-wise access optimized away at -O1 and above

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 2 03:33:26 GMT 2021


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #26 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Just marking this as a dup of bug 88085.

The workaround is do this:
typedef unsigned int u32a1  __attribute__((__aligned__(1)));

 extern u32a1  output_len __attribute__((__aligned__(1)));

*** This bug has been marked as a duplicate of bug 88085 ***


More information about the Gcc-bugs mailing list