diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9ee61041313ec3b5219838e1b0c78a90f217818f..b43cad75abbaf8a40b8881d05b5d1210d59bb6bf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 77295f15440127b7990eb80ef415082088c8d85c..e50f2a4eb1d06fe030a63e67dde5eb92fc1c0381 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -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