https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114046
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
You need to use -mstrict-align here if you are writing (early) firmware where
the page table is not setup and marked as unaligned is ok for normal memory.
If you writing to non-normal memory, you need to use the volatile keyword so
GCC does not produce unaligned memory access in general.