Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Nov 2014 20:07:09 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r274978 - head/lib/libc/tests/ssp
Message-ID:  <201411242007.sAOK79RS057603@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411242007.sAOK79RS057603>