Optimization of conditional access to globals: thread-unsafe?

David Daney ddaney@avtrex.com
Sat Oct 27 00:26:00 GMT 2007


skaller wrote:
> On Fri, 2007-10-26 at 14:24 -0700, Ian Lance Taylor wrote:
>> Michael Matz <matz@suse.de> writes:
> 
>> This is basically a public relations exercise.  I doubt this
>> optimization is especially important, so I think it's OK to disable it
>> to keep people happy.  Even though the optimization has been there
>> since gcc 3.4 and nobody noticed.
> 
> Most people didn't have multi-core processors then..
> 

They did use pthreads though.  Code correctness in this case does not 
depend on the number of processor cores.

David Daney



More information about the Gcc mailing list