does \"volatile\" cover this?

Joseph S. D. Yao jsdy at hadron.UUCP
Sun Jan 4 00:04:40 AEST 1987


>From an older X3J11 (my new copy is "in the mail"):

6. STATEMENTS
... Completion of the evaluation of the expression [ in if (expr) ... ]
is a sequence point.
6.2 Expression and null statements
... The terminating semicolon is a sequence point.

Hope this makes you happy.  Your situation (two sequential
assignments to the same location) is exactly one of the
situations for which "volatile" was invented, to prevent
"intelligent" optimisers from doing clever things to it.
-- 

	Joe Yao		hadron!jsdy at seismo.{CSS.GOV,ARPA,UUCP}
			jsdy at hadron.COM (not yet domainised)



More information about the Comp.lang.c mailing list