Fix __atomic_store_n typo in recent manual change
authorak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Jun 2013 17:23:08 +0000 (17:23 +0000)
committerak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Jun 2013 17:23:08 +0000 (17:23 +0000)
gcc/:
2013-06-22  Andi Kleen  <ak@linux.intel.com>

       * doc/extend.texi: Use __atomic_store_n instead of
       __atomic_store in HLE example.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200333 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/extend.texi

index 9ee6104..b43cad7 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-22  Andi Kleen  <ak@linux.intel.com>
+
+       * doc/extend.texi: Use __atomic_store_n instead of
+       __atomic_store in HLE example.
+
 2013-06-22  Oleg Endo <olegendo@gcc.gnu.org>
 
        * config/sh/sh.c: Remove <cstdlib> workaround.
index 77295f1..e50f2a4 100644 (file)
@@ -7538,7 +7538,7 @@ while (__atomic_exchange_n(&lockvar, 1, __ATOMIC_ACQUIRE|__ATOMIC_HLE_ACQUIRE))
     _mm_pause(); /* Abort failed transaction */
 ...
 /* Free lock with lock elision */
-__atomic_store(&lockvar, 0, __ATOMIC_RELEASE|__ATOMIC_HLE_RELEASE);
+__atomic_store_n(&lockvar, 0, __ATOMIC_RELEASE|__ATOMIC_HLE_RELEASE);
 @end smallexample
 
 @node Object Size Checking