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 <iant@google.com> writes:
>
> This code isn't going to be a problem, because spin_unlock presumably
> includes a memory barrier.

At least in the Linux kernel and also in glibc for mutexes locks are just plain
function calls, which are not necessarily full memory barriers.

-Andi


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