svn commit: r274978 - head/lib/libc/tests/ssp

Dimitry Andric dim at FreeBSD.org
Mon Nov 24 20:07:10 UTC 2014


Author: dim
Date: Mon Nov 24 20:07:09 2014
New Revision: 274978
URL: https://svnweb.freebsd.org/changeset/base/274978

Log:
  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.

Modified:
  head/lib/libc/tests/ssp/Makefile

Modified: head/lib/libc/tests/ssp/Makefile
==============================================================================
--- head/lib/libc/tests/ssp/Makefile	Mon Nov 24 20:01:05 2014	(r274977)
+++ head/lib/libc/tests/ssp/Makefile	Mon Nov 24 20:07:09 2014	(r274978)
@@ -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}


More information about the svn-src-head mailing list