This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++0x Memory model and gcc
Ian Lance Taylor wrote:
> -fmemory-model=single
> Assume single threaded execution, which also means no signal
> handlers.
> -fmemory-model=fast
> The user is responsible for all synchronization. Accessing
> the same memory words from different threads may break
> unpredictably.
> -fmemory-model=safe
> The compiler will do its best to protect you.
That makes sense to me. I think that's an appropriately user-oriented
view of the choices.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713