[Bug tree-optimization/102162] Byte-wise access optimized away at -O1 and above

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 1 21:48:17 GMT 2021


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

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So I looked into this a little bit and it works on aarch64 with -O1
-mstrict-align but if you remove -mstrict-align we get an unaligned access
which I think it is expected.
The gimple level is the same in both cases, it is expand which changes.

Does hppa*-*-linux* have STRICT_ALIGNMENT set to true or false?


More information about the Gcc-bugs mailing list