summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-11-24 20:07:09 +0000
committerdim <dim@FreeBSD.org>2014-11-24 20:07:09 +0000
commita4c4d4abcc40c0860e6961bf2f7c76f7ab5a3ada (patch)
treec9a7d2ca316ecb5a96b0e9ab5fe1c7447b946174 /lib
parent5ffe4e5562c85ed6d4629e3641a23080692df4aa (diff)
downloadFreeBSD-src-a4c4d4abcc40c0860e6961bf2f7c76f7ab5a3ada.zip
FreeBSD-src-a4c4d4abcc40c0860e6961bf2f7c76f7ab5a3ada.tar.gz
For now, disable using -fsanitize=bounds for the libc ssp tests, when
using clang 3.5.0, until the runtime support (via compiler-rt) is added. Otherwise, this would lead to link errors about missing support libraries.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/tests/ssp/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/tests/ssp/Makefile b/lib/libc/tests/ssp/Makefile
index cf767ce..1649cc2 100644
--- a/lib/libc/tests/ssp/Makefile
+++ b/lib/libc/tests/ssp/Makefile
@@ -9,7 +9,10 @@ WARNS?= 2
CFLAGS.h_raw+= -fstack-protector-all -Wstack-protector
.if ${COMPILER_TYPE} == "clang"
+# Disable -fsanitize=bounds until runtime support is done for clang 3.5.0.
+.if ${COMPILER_VERSION} < 30500
CFLAGS.h_raw+= -fsanitize=bounds
+.endif
.elif ${COMPILER_TYPE} == "gcc"
CFLAGS.h_raw+= --param ssp-buffer-size=1
DPADD+= ${LIBSSP}
OpenPOWER on IntegriCloud