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/15850] extra load with volatilable variables


------- Additional Comments From schwab at suse dot de  2004-06-15 22:17 -------
The standard says in 6.5.16#3: "... An assignment expression has the value of 
the left operand _after_ the assignment, ..." (emphasis mine).  A volatile 
variable can change its value any time, so the compiler must reload the value 
before it can be used further. 

-- 


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


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