This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/22278] gcc -O2 discards cast to volatile
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jul 2005 22:10:55 -0000
- Subject: [Bug c/22278] gcc -O2 discards cast to volatile
- References: <20050702164323.22278.olivier.baudron@m4x.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2005-07-02 22:10 -------
Subject: Re: gcc -O2 discards cast to volatile
"falk at debian dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| 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.
Fully agreed.
| IMHO we actually have a bug here; I don't see anything in the standard which
| allows omitting the access here.
again agreed.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22278