]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] RTEMS: use atomic primitive packages on aarch64
authorPatrick Bernardi <bernardi@adacore.com>
Thu, 28 Oct 2021 19:05:17 +0000 (15:05 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 9 Nov 2021 09:44:50 +0000 (09:44 +0000)
gcc/ada/

* Makefile.rtl: Add ATOMICS_TARGET_PAIRS and
ATOMICS_BUILTINS_TARGET_PAIRS to LIBGNAT_TARGET_PAIRS for
aarch64-rtems.

gcc/ada/Makefile.rtl

index 8eaddde5639f0430aab50b63463c4f8082d4d535..fb3f6f60a41bd8992bc7ef2f83c36ef6eaac19cc 100644 (file)
@@ -2072,6 +2072,13 @@ ifeq ($(strip $(filter-out rtems%,$(target_os))),)
   ifeq ($(strip $(filter-out aarch64% riscv%,$(target_cpu))),)
     LIBGNAT_TARGET_PAIRS += a-nallfl.ads<libgnat/a-nallfl__wraplf.ads
   endif
+
+  # Target CPUs that support atomic primitives
+  ifeq ($(strip $(filter-out aarch64%,$(target_cpu))),)
+     LIBGNAT_TARGET_PAIRS += \
+       $(ATOMICS_TARGET_PAIRS) \
+       $(ATOMICS_BUILTINS_TARGET_PAIRS)
+  endif
 endif
 
 # PikeOS