This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18314] Abnormal behavior in optimization
- 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: 17 Nov 2004 13:08:03 -0000
- Subject: [Bug c/18314] Abnormal behavior in optimization
- References: <20041105235700.18314.lamshuyin@netvigator.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-17 13:08 -------
I think you want:
*(volatile int*)&test
volatile only matters on pointers and types of variables and not casts IIRC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18314