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?


Ian Lance Taylor writes:

 > perhaps we should implement the draft C++0x memory model for both C
 > and C++.

Yes.  I'm sure that's the right answer, given the way that
if-conversion breaks simple code such as

>     res = pthread_mutex_trylock(&mutex);
>     if (res == 0)
>       ++acquires_count;

Andrew.


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