http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54544
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |middle-end --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-09-10 21:22:44 UTC --- > As you see, in the code: 'bar' is an automatic variable, 'bar' has been > declared volatile No it is not declared as volatile. Its type is a pointer to a volatile memory location. Not a volatile pointer :).