http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55981
--- Comment #9 from Uros Bizjak <ubizjak at gmail dot com> 2013-01-15 19:39:20 UTC --- (In reply to comment #4) > (In reply to comment #2) > > Btw, the same happens if atomic is replaced with "volatile unsigned long y" > > - > > which does not violate the standard, but may be considered undesirable by > > some. > > I don't have a strong opinion about this. > > This really does need to be fixed in the "volatile unsigned long y" case, or > device drivers storing constants to device registers will break. So please > fix > this for volatiles as well as atomics. Please open a new PR for this.