aboutsummaryrefslogtreecommitdiff
path: root/lib/libcompiler_rt/Makefile
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2013-06-08 13:22:53 +0000
committerEd Schouten <ed@FreeBSD.org>2013-06-08 13:22:53 +0000
commite737464f590a23aad6077fccd341ac21182fbe7e (patch)
treedeab0f298b585bde943de2a7460ce7a23c3b1743 /lib/libcompiler_rt/Makefile
parent2e5d5dc936f4b8f54734ca690e4061e250592d9d (diff)
Notes
Diffstat (limited to 'lib/libcompiler_rt/Makefile')
-rw-r--r--lib/libcompiler_rt/Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/libcompiler_rt/Makefile b/lib/libcompiler_rt/Makefile
index 83c4ea33b45b2..a02877c00cfe7 100644
--- a/lib/libcompiler_rt/Makefile
+++ b/lib/libcompiler_rt/Makefile
@@ -157,7 +157,7 @@ SRCF+= divsi3 \
.endif
# FreeBSD-specific atomic intrinsics.
-.if ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips"
+.if ${MACHINE_CPUARCH} == "arm"
SRCF+= __sync_fetch_and_add_4 \
__sync_fetch_and_and_4 \
__sync_fetch_and_or_4 \
@@ -166,15 +166,10 @@ SRCF+= __sync_fetch_and_add_4 \
__sync_lock_test_and_set_4 \
__sync_synchronize \
__sync_val_compare_and_swap_4
-.endif
-.if ${MACHINE_ARCH:Mmips64*} != ""
-SRCF+= __sync_fetch_and_add_8 \
- __sync_fetch_and_and_8 \
- __sync_fetch_and_or_8 \
- __sync_fetch_and_sub_8 \
- __sync_fetch_and_xor_8 \
- __sync_lock_test_and_set_8 \
- __sync_val_compare_and_swap_8
+.elif ${MACHINE_CPUARCH} == "mips"
+.PATH: ${.CURDIR}/../../sys/mips/mips
+
+SRCF+= stdatomic
.endif
.for file in ${SRCF}