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/16721] [3.5 Regression] Accesses to volatile objects optimized away


------- Additional Comments From falk at debian dot org  2004-07-26 19:30 -------
I don't think that's what the standard says. Even if it did, it is not
what people expect. Read accesses can have effects on magic hardware 
addresses, and you need volatile to keep the compiler from optimizing
these away.

So I still think this is an important bug.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16721


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