This is the mail archive of the gcc-patches@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: PATCH: Add pause intrinsic


On Wed, May 25, 2011 at 5:09 PM, Andrew Haley <aph@redhat.com> wrote:
> On 05/25/2011 03:57 PM, Richard Guenther wrote:
>>
>> asm volatile ("" : : : "memory") in fact will work as a full memory barrier
>
> How? ?You surely need MFENCE or somesuch, unless all you
> care about is a compiler barrier. ?That's what I think needs
> to be clarified.

Well, yes, I'm talking about the compiler memory barrier.

Richard.

> Andrew.
>


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