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: -fno-tree-cselim not working?


Andreas Schwab <schwab@suse.de> writes:

> Ian Lance Taylor <iant@google.com> writes:
> 
> > The above code happens to use pthread_mutex_trylock, but there is no
> > need for that.
> 
> pthread_mutex_trylock is special, because POSIX says it is a memory
> synchronisation point (see section 4.10 Memory Synchronization).

Sure.  But the argument that gcc is doing something wrong stands up
just fine even we just test a global variable.  The argument that gcc
is doing something wrong does not rely on the fact that the function
called is pthread_mutex_trylock.

Ian


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