Fix HLE example in manual
authorAndi Kleen <ak@linux.intel.com>
Fri, 21 Jun 2013 13:51:48 +0000 (13:51 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
Fri, 21 Jun 2013 13:51:48 +0000 (13:51 +0000)
commit927f908bf879a79ec26af82671e2a5b93073a8a2
treec37e13744a23b3780fe8bdb3aaf2d908e43581d6
parentcca410b69b25a729ea3a4d3614426e380c688ca4
Fix HLE example in manual

The HLE example in the manual only commits when using bool
for the flag, because __atomic_clear only writes bool, and
HLE requires the acquire and release to match.

So when the example is copied with e.g. an int variable it
does not commit and causes slower than expected performance.

Some people are running into problems because of this.

Switch it over to use __atomic_store.

Also fix a minor typo nearby.

gcc/:
2013-06-21  Andi Kleen  <ak@linux.intel.com>

* doc/extend.texi: Dont use __atomic_clear in HLE
example.  Fix typo.

From-SVN: r200304
gcc/ChangeLog
gcc/doc/extend.texi