[Bug c/22278] gcc -O2 discards cast to volatile
falk at debian dot org
gcc-bugzilla@gcc.gnu.org
Sat Jul 2 17:33:00 GMT 2005
------- Additional Comments From falk at debian dot org 2005-07-02 17:33 -------
I see a difference here in that gcc doesn't know whether the referenced
object is declared to be volatile, it isn't visible as in PR 21568.
IMHO we actually have a bug here; I don't see anything in the standard which
allows omitting the access here.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|DUPLICATE |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22278
More information about the Gcc-bugs
mailing list