C++0x Memory model and gcc

Andrew MacLeod amacleod@redhat.com
Tue May 11 12:49:00 GMT 2010


Miles Bader wrote:
> Andrew MacLeod <amacleod@redhat.com> writes:
>   
>> -fmemory-model=single     - Enable all data races introductions, as they
>> are today. (relax all 4 internal restrictions.)
>>     
>
> One could still use this mode with a multi-threaded program as long as
> explicit synchronization is done, right?
>   

Right.   Its just a single processor memory model, so it doesn't limit 
any optimizations.

Andrew



More information about the Gcc mailing list