summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2019-07-25 14:17:11 +0000
committerbluhm <bluhm@openbsd.org>2019-07-25 14:17:11 +0000
commit47b76c081cad5c3eea4f91b555bae1ea217b64ff (patch)
treec6433d6f264f33822d49ead219e36f2e880f968d
parentAdd IFXF_AUTOCONF4 to if_xflags to match IFXF_AUTOCONF6. Let (diff)
downloadwireguard-openbsd-47b76c081cad5c3eea4f91b555bae1ea217b64ff.tar.xz
wireguard-openbsd-47b76c081cad5c3eea4f91b555bae1ea217b64ff.zip
Since switching from bfd to lld linker there are no warnings about
insecure libc functions anymore. To avoid false positives, change the regress result from FAILED to EXPECTED_FAIL if lld is used. When lld will support this feature, the regress tests can be enabled again. OK deraadt@
-rw-r--r--regress/gnu/egcs/gcc-bounds/Makefile7
-rw-r--r--regress/gnu/egcs/gcc-builtins/Makefile7
2 files changed, 12 insertions, 2 deletions
diff --git a/regress/gnu/egcs/gcc-bounds/Makefile b/regress/gnu/egcs/gcc-bounds/Makefile
index f5284f49f38..e48f14f95ca 100644
--- a/regress/gnu/egcs/gcc-bounds/Makefile
+++ b/regress/gnu/egcs/gcc-bounds/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.17 2019/02/12 21:31:16 bluhm Exp $
+# $OpenBSD: Makefile,v 1.18 2019/07/25 14:17:11 bluhm Exp $
C_MODULES?= strlcpy strlcat getcwd memcpy fread memcpy declare \
sscanf vararray md builtins
@@ -54,6 +54,11 @@ NOOBJ= Yes
.include <bsd.own.mk>
+.if ${LINKER_VERSION} == "lld"
+# llvm linker does not support gcc warnings about insecure functions
+REGRESS_EXPECTED_FAILURES= c-getcwd-1
+.endif
+
.if ${BUILD_GCC3:L} == "yes"
EXP= .exp.gcc3
.elif ${BUILD_GCC4:L} == "yes"
diff --git a/regress/gnu/egcs/gcc-builtins/Makefile b/regress/gnu/egcs/gcc-builtins/Makefile
index cd4e0c2bf09..df5cbbb83f3 100644
--- a/regress/gnu/egcs/gcc-builtins/Makefile
+++ b/regress/gnu/egcs/gcc-builtins/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2019/02/12 21:31:16 bluhm Exp $
+# $OpenBSD: Makefile,v 1.5 2019/07/25 14:17:11 bluhm Exp $
GCC_BUILTINS= sprintf-1 sprintf-2 sprintf-3 stpcpy-1 stpcpy-2 strcat-1 \
strcat-2 strcpy-1 strcpy-2 strncat-1 vsprintf-1 vsprintf-2 \
@@ -25,6 +25,11 @@ NOOBJ= Yes
.include <bsd.own.mk>
+.if ${LINKER_VERSION} == "lld"
+# llvm linker does not support gcc warnings about insecure functions
+REGRESS_EXPECTED_FAILURES= ${REGRESS_TARGETS}
+.endif
+
.if ${BUILD_GCC3:L} == "yes"
EXP= .exp.gcc3
.elif ${BUILD_GCC4:L} == "yes"