This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fno-tree-cselim not working?
- From: Andi Kleen <andi at firstfloor dot org>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 26 Oct 2007 22:00:46 +0200
- Subject: Re: -fno-tree-cselim not working?
- References: <20071026070903.GS2896@sunsite.mff.cuni.cz.suse.lists.egcs> <20071026.002701.193707917.davem@davemloft.net.suse.lists.egcs> <20071026074825.GT2896@sunsite.mff.cuni.cz.suse.lists.egcs> <20071026.005802.107688735.davem@davemloft.net.suse.lists.egcs> <m3bqamj5x7.fsf@localhost.localdomain.suse.lists.egcs>
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