aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.def
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2012-01-26 13:48:27 -0800
committerRichard Henderson <rth@gcc.gnu.org>2012-01-26 13:48:27 -0800
commit57c5ab1ba6798741ed42da56111dee7b741108fa (patch)
tree17b613fdfa5fcce54d686ed0d50230a877200c9b /gcc/target.def
parent15e73e0657a51d046752b513b8087adb4131be65 (diff)
downloadgcc-57c5ab1ba6798741ed42da56111dee7b741108fa.zip
gcc-57c5ab1ba6798741ed42da56111dee7b741108fa.tar.gz
gcc-57c5ab1ba6798741ed42da56111dee7b741108fa.tar.bz2
Define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL
* target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New. * c-cppbuiltin.c (cpp_atomic_builtins): Define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL. * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook. * doc/tm.texi: Rebuild. From-SVN: r183581
Diffstat (limited to 'gcc/target.def')
-rw-r--r--gcc/target.def7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/target.def b/gcc/target.def
index f86f782..6084b21 100644
--- a/gcc/target.def
+++ b/gcc/target.def
@@ -2667,6 +2667,13 @@ DEFHOOK
enum unwind_info_type, (void),
default_debug_unwind_info)
+DEFHOOKPOD
+(atomic_test_and_set_trueval,
+ "This value should be set if the result written by\
+ @code{atomic_test_and_set} is not exactly 1, i.e. the\
+ @code{bool} @code{true}.",
+ unsigned char, 1)
+
/* Leave the boolean fields at the end. */
/* True if we can create zeroed data by switching to a BSS section