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}
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to