[Bug c/15850] extra load with volatilable variables
schwab at suse dot de
gcc-bugzilla@gcc.gnu.org
Tue Jun 15 22:17:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list