]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: tilegx-c.c (tilegx_cpu_cpp_builtins): Define __GCC_HAVE_SYNC_COMPARE_AND_SW...
authorWalter Lee <walt@tilera.com>
Sat, 25 Jan 2014 22:45:40 +0000 (22:45 +0000)
committerWalter Lee <walt@gcc.gnu.org>
Sat, 25 Jan 2014 22:45:40 +0000 (22:45 +0000)
2014-01-25  Walter Lee  <walt@tilera.com>

            Backport from mainline
            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: r207103

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

index 81ce918e6008ef34502bd608fecad812c8a34fb9..e3b1c3cdf5167e5b3cdda95e29f1627477be4ad4 100644 (file)
@@ -1,3 +1,13 @@
+2014-01-25  Walter Lee  <walt@tilera.com>
+
+       Backport from mainline
+       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>
 
        Backport from mainline
index 9cb8f7af171751a3e9b2c45ba79c66331c8520fe..b01c5ea720db3dc281abaf9740a67b28bbc3674a 100644 (file)
@@ -48,6 +48,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 7eb95f1332d44b98805fcf14253f50e8aa846b3f..3d85d6fbde8e5ba91fb3aea7229104e25287f742 100644 (file)
@@ -45,6 +45,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 ();
 }