[Bug c/22278] gcc -O2 discards cast to volatile

falk at debian dot org gcc-bugzilla@gcc.gnu.org
Sat Jul 2 20:38:00 GMT 2005


------- Additional Comments From falk at debian dot org  2005-07-02 20:38 -------
According to Joseph Myers, the question is whether this counts as "access" to
a volatile object, which is implementation defined (6.7.3#6). However,
extend.texi doesn't answer this, so I'll reopen it as a documentation problem.
We could then either document it does not constitute an access, or change
the behavior and state that it does.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
           Keywords|                            |documentation
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22278



More information about the Gcc-bugs mailing list