This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/18314] Abnormal behavior in optimization


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]