[Bug target/91927] -mstrict-align doesn't prevent unaligned accesses at -O2 and -O3 on AARCH64 targets

rsandifo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 27 09:35:00 GMT 2020


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

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rsandifo at gcc dot gnu.org

--- Comment #11 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
(In reply to Wilco from comment #10)
> That fixes one of the examples but not pr71727. As the Arm movsi issues
> show, there are many mid-end alignment bugs.

FTR, I think the pr71727 test is behaving correctly for -fno-common,
see the comment I just added to the PR.

Andrew's fix in comment 9 looks clearly correct to me (= preapproved).
Kind-of surprising we haven't been burnt by this earlier.


More information about the Gcc-bugs mailing list