Dave Korn wrote:
Why isn't that just a buggy program with wilful disregard for the use of correct synchronisation techniques?
Right, I think most people would agree it is. But for sure, if you consider that making the code go faster is itself a change in behavior, then obviously all optimization changes the behavior, but so does any improvement in the compiler in terms of the unoptimized code generated.
cheers, DaveK