summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2013-08-31 08:50:45 +0000
committertheraven <theraven@FreeBSD.org>2013-08-31 08:50:45 +0000
commit3b54dfb62d267ac2575cb243220470aab81f4c4d (patch)
tree2b55a5aca6be3bcee5c307095bd2bb833bd8e0f0 /lib
parent9d64e7042e577976001ca326dab70a5310812e93 (diff)
downloadFreeBSD-src-3b54dfb62d267ac2575cb243220470aab81f4c4d.zip
FreeBSD-src-3b54dfb62d267ac2575cb243220470aab81f4c4d.tar.gz
Unconditionally compile the __sync_* atomics support functions into compiler-rt
for ARM. This is quite ugly, because it has to work around a clang bug that does not allow built-in functions to be defined, even when they're ones that are expected to be built as part of a library. Reviewed by: ed
Diffstat (limited to 'lib')
-rw-r--r--lib/libcompiler_rt/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcompiler_rt/Makefile b/lib/libcompiler_rt/Makefile
index 507e87c..8c560d7 100644
--- a/lib/libcompiler_rt/Makefile
+++ b/lib/libcompiler_rt/Makefile
@@ -153,10 +153,11 @@ SRCF+= divsi3 \
.endif
# FreeBSD-specific atomic intrinsics.
-.if ${MACHINE_CPUARCH} == "arm"
+.if ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "armv6"
.PATH: ${.CURDIR}/../../sys/arm/arm
SRCF+= stdatomic
+CFLAGS+= -DEMIT_SYNC_ATOMICS
.elif ${MACHINE_CPUARCH} == "mips"
.PATH: ${.CURDIR}/../../sys/mips/mips
OpenPOWER on IntegriCloud