]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Use atomics in runtime on ARM and Aarch64 VxWorks
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 27 Oct 2021 11:33:53 +0000 (13:33 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 9 Nov 2021 09:44:49 +0000 (09:44 +0000)
gcc/ada/

* Makefile.rtl (ARM and Aarch64 VxWorks): Use atomic variants of
runtime units.
* libgnat/a-strunb__shared.ads: Mention AARCH64 and ARM as
supported.
* libgnat/s-atocou.ads: Likewise.

gcc/ada/Makefile.rtl
gcc/ada/libgnat/a-strunb__shared.ads
gcc/ada/libgnat/s-atocou.ads

index ebfbe95c5e976d842879bb43f228369fdc8b007a..8eaddde5639f0430aab50b63463c4f8082d4d535 100644 (file)
@@ -1362,7 +1362,9 @@ ifeq ($(strip $(filter-out aarch64 arm% coff wrs vx%,$(target_cpu) $(target_vend
   g-socthi.ads<libgnat/g-socthi__vxworks.ads \
   g-socthi.adb<libgnat/g-socthi__vxworks.adb \
   g-sopowa.adb<libgnat/g-sopowa__posix.adb \
-  g-stsifd.adb<libgnat/g-stsifd__sockets.adb
+  g-stsifd.adb<libgnat/g-stsifd__sockets.adb \
+  $(ATOMICS_TARGET_PAIRS) \
+  $(ATOMICS_BUILTINS_TARGET_PAIRS)
 
   ifeq ($(strip $(filter-out aarch64, $(target_cpu))),)
     ARCH_STR=aarch64
index 2cf678002ba8cca28ef917b46ae4b1bab844044d..34430a79c95ec5edf6b624e5ce6894d7af4c3db8 100644 (file)
@@ -45,6 +45,8 @@ pragma Assertion_Policy (Pre => Ignore);
 
 --  This version is supported on:
 --    - all Alpha platforms
+--    - all AARCH64 platforms
+--    - all ARM platforms
 --    - all ia64 platforms
 --    - all PowerPC platforms
 --    - all SPARC V9 platforms
index 9488b6dd731899aac49db132e55626245d01738c..9b25cbaebea470972ffa67522b73ed3a8b6023dc 100644 (file)
@@ -31,6 +31,8 @@
 
 --  This package provides atomic counter on platforms where it is supported:
 --    - all Alpha platforms
+--    - all AARCH64 platforms
+--    - all ARM platforms
 --    - all ia64 platforms
 --    - all PowerPC platforms
 --    - all SPARC V9 platforms