aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Bernardi <bernardi@adacore.com>2021-10-28 15:05:17 -0400
committerPierre-Marie de Rodat <derodat@adacore.com>2021-11-09 09:44:50 +0000
commitf6174ec5bd9c2560f009c8c84170944b08535330 (patch)
tree0a1c93c025732645c743778566b86fabcf8a072e
parent9f24d32cf6ae542f779a309e4b2f6c77fb6af4f7 (diff)
downloadgcc-f6174ec5bd9c2560f009c8c84170944b08535330.zip
gcc-f6174ec5bd9c2560f009c8c84170944b08535330.tar.gz
gcc-f6174ec5bd9c2560f009c8c84170944b08535330.tar.bz2
[Ada] RTEMS: use atomic primitive packages on aarch64
gcc/ada/ * Makefile.rtl: Add ATOMICS_TARGET_PAIRS and ATOMICS_BUILTINS_TARGET_PAIRS to LIBGNAT_TARGET_PAIRS for aarch64-rtems.
-rw-r--r--gcc/ada/Makefile.rtl7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl
index 8eaddde..fb3f6f6 100644
--- a/gcc/ada/Makefile.rtl
+++ b/gcc/ada/Makefile.rtl
@@ -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