atomic: Create and use maybe_emit_atomic_test_and_set.
authorRichard Henderson <rth@redhat.com>
Tue, 24 Jan 2012 17:55:29 +0000 (09:55 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 24 Jan 2012 17:55:29 +0000 (09:55 -0800)
commitf8a27aa6319931d0d5317d8cd860e24a607cd442
tree37935401c64c355f48100c4ca42caf17bfd2154e
parent3b547557aade5a4f4f0d261d508a9b3d32b13a92
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.

From-SVN: r183483
gcc/ChangeLog
gcc/doc/extend.texi
gcc/doc/md.texi
gcc/optabs.c