https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113980
Jeffrey A. Law <law at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jeffrey A. Law <law at gcc dot gnu.org> --- volatile inhibits all kinds of optimizations, in this case it inhibits our ability to combine instructions and eliminate the extension. It's unfortunate, but everything is behaving per design.