https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38679
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.6.0 Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Keywords| |wrong-code --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This changed in GCC 4.6.0 with r0-102336 which also clarify the documentation on volatile so fixed for GCC 4.6.0.