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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jul 2005 22:20:06 -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 pinskia at gcc dot gnu dot org 2005-07-02 22:20 -------
(In reply to comment #13)
>
> It is also wrong-code.
This is the opposite view of what JSM said on IRC. Take it up with him if you believe otherwise.
Basically this is all implemention defined and since we did not document before, we have a chance to
define it to what we want.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22278