This is the mail archive of the gcc@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]

Re: Optimization of conditional access to globals: thread-unsafe?


> 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


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