On 11/10/2011 04:50 PM, Andrew MacLeod wrote:
On 11/10/2011 04:19 PM, Hans-Peter Nilsson wrote:

Test cross to cris-elf in progress for your second take (at
r181254 + Bernd's patch to unbreak the tree
And it works without regressions.  Thanks!

brgds, H-P
excellent. Its all checked in too.

Andrew
As rth pointed out, forgot to add the docs for the 2 new builtins.

built and tested.

Andrew


2011-11-10  Andrew MacLeod  <amacl...@redhat.com>

        * doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.

Index: doc/extend.texi
===================================================================
*** doc/extend.texi     (revision 181206)
--- doc/extend.texi     (working copy)
*************** All memory models are valid.
*** 7002,7007 ****
--- 7002,7028 ----
  
  @end deftypefn
  
+ @deftypefn {Built-in Function} bool __atomic_test_and_set (bool *ptr, int 
memmodel)
+ 
+ This built-in function performs an atomic test-and-set operation on
+ @code{*@var{ptr}}.  @code{*@var{ptr}} is set to the value 1 and
+ the previous contents are returned.
+ 
+ All memory models are valid.
+ 
+ @end deftypefn
+ 
+ @deftypefn {Built-in Function} void __atomic_clear (bool *ptr, int memmodel)
+ 
+ This built-in function performs an atomic clear operation on
+ @code{*@var{ptr}}.  After the operation, @code{*@var{ptr}} will contain 0.
+ 
+ The valid memory model variants are
+ @code{__ATOMIC_RELAXED}, @code{__ATOMIC_SEQ_CST}, and
+ @code{__ATOMIC_RELEASE}.
+ 
+ @end deftypefn
+ 
  @deftypefn {Built-in Function} void __atomic_thread_fence (int memmodel)
  
  This built-in function acts as a synchronization fence between threads

Reply via email to