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: 3 Jul 2005 01:43:43 -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-03 01:43 -------
Subject: Re: gcc -O2 discards cast to volatile
"gcc2eran at tromer dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| (In reply to comment #22)
| > | int foo;
| > | *(volatile int*) (&foo);
| >
| > It was included in my previous message.
|
| Then it's still eluding me, since your foo (the "object"?) was volatile.
It was my object "bar".
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22278