https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91812
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.org --- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> --- If you declare ptr like this instead, the assembly comes out looking different: volatile unsigned int *volatile ptr;