atomic: Create and use maybe_emit_atomic_test_and_set.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jan 2012 17:55:29 +0000 (17:55 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jan 2012 17:55:29 +0000 (17:55 +0000)
commit39ca90d51f0c4282d89cbcaa9d1153e44d048133
tree37935401c64c355f48100c4ca42caf17bfd2154e
parent277e135cab2f7d6f3c6a61d1624a5fa36c87235c
atomic: Create and use maybe_emit_atomic_test_and_set.

* optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
(maybe_emit_atomic_test_and_set): New.
(expand_sync_lock_test_and_set): Use it.
(expand_atomic_test_and_set): Likewise.
* doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
the implementation; clarify implementation defined details.
* doc/md.texi (atomic_test_and_set): Document.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183483 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/doc/extend.texi
gcc/doc/md.texi
gcc/optabs.c