]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix __atomic_store_n typo in recent manual change
authorAndi Kleen <ak@linux.intel.com>
Sat, 22 Jun 2013 17:23:08 +0000 (17:23 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
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.

From-SVN: r200333

gcc/ChangeLog
gcc/doc/extend.texi

index 9ee61041313ec3b5219838e1b0c78a90f217818f..b43cad75abbaf8a40b8881d05b5d1210d59bb6bf 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 77295f15440127b7990eb80ef415082088c8d85c..e50f2a4eb1d06fe030a63e67dde5eb92fc1c0381 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