tilegx-c.c (tilegx_cpu_cpp_builtins): Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
authorWalter Lee <walt@tilera.com>
Sat, 25 Jan 2014 20:27:55 +0000 (20:27 +0000)
committerWalter Lee <walt@gcc.gnu.org>
Sat, 25 Jan 2014 20:27:55 +0000 (20:27 +0000)
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}.

From-SVN: r207083

gcc/ChangeLog
gcc/config/tilegx/tilegx-c.c
gcc/config/tilepro/tilepro-c.c

index 0aa9c06b937c9d9963cfe9a139b3012c5d9d177b..db40e1826ef5ae25793b7d7da9537d9fa20f3985 100644 (file)
@@ -1,3 +1,10 @@
+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}.
+
 2014-01-25  Walter Lee  <walt@tilera.com>
 
        * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
index 909659b1d95cc5725b73deb977eecd416806a563..e71965cfae8390168d1431c777014b2041b9a1ee 100644 (file)
@@ -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 ();
 }
index dc2e3d0066e850f39da36ecc27d250222158e878..4fd033782672d544fd7d28853a58a7ff742bdd75 100644 (file)
@@ -44,6 +44,11 @@ tilepro_cpu_cpp_builtins (struct cpp_reader *pfile)
   builtin_define ("__tile_chip__=1");
   builtin_define ("__tile_chip_rev__=0");
 
+  builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1");
+  builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2");
+  builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4");
+  builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8");
+
   TILEPRO_CPU_CPP_ENDIAN_BUILTINS ();
   GNU_USER_TARGET_OS_CPP_BUILTINS ();
 }