summaryrefslogtreecommitdiff
path: root/gcc/config/tilegx
diff options
context:
space:
mode:
authorwalt <walt@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-25 20:27:55 +0000
committerwalt <walt@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-25 20:27:55 +0000
commit50fa19e4f3fe159f2eaf34c72df23febc25aafd1 (patch)
tree3449105e1fd59b34b876af4b50ccbbe2c6a8a3f5 /gcc/config/tilegx
parentba24c6530091b4ea2fc264a410e5f93b4105966c (diff)
downloadgcc-50fa19e4f3fe159f2eaf34c72df23febc25aafd1.tar.gz
2014-01-25 Walter Lee <walt@tilera.com>
* config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins): Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}. * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins): Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207083 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/tilegx')
-rw-r--r--gcc/config/tilegx/tilegx-c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/tilegx/tilegx-c.c b/gcc/config/tilegx/tilegx-c.c
index 909659b1d95..e71965cfae8 100644
--- a/gcc/config/tilegx/tilegx-c.c
+++ b/gcc/config/tilegx/tilegx-c.c
@@ -47,6 +47,9 @@ tilegx_cpu_cpp_builtins (struct cpp_reader *pfile)
if (TARGET_32BIT)
builtin_define ("__tilegx32__");
+ builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1");
+ builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2");
+
TILEGX_CPU_CPP_ENDIAN_BUILTINS ();
GNU_USER_TARGET_OS_CPP_BUILTINS ();
}