https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67701
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |target --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Julius Werner from comment #1) > edit: target architecture in my example is armv7a, btw (although I doubt > that this is architecture-specific) I suspect this is an armv7 issue only where there is missing support for misaligned load/stores. Also testvalue is aligned to 1 byte by default so what GCC is doing is correct as there is no way to do a volatile unaligned loads really.