Optimization of conditional access to globals: thread-unsafe?
Eric Botcazou
ebotcazou@libertysurf.fr
Mon Oct 29 22:04:00 GMT 2007
> But shouldn't we formally define "define" first? :)
Note that I wrote "more or less formally". The definition of "volatile" in
the ISO C standard falls into this category and I'd personally trust it more
than whatever -fno-speculative-store option.
See gcc/gthr-posix.h for a proper use of "volatile" for a shared access.
--
Eric Botcazou
More information about the Gcc
mailing list