diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-07-25 14:17:12 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-07-25 14:17:12 +0000 |
commit | ff93ff4fd1543d0c8195d88eed8599a607c70b77 (patch) | |
tree | 96790b75562f4fce3de152fb799908dc6ee690ab | |
parent | 70802996552826a205d440a8309dd352b66d1b4d (diff) |
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/Makefile | 7 | ||||
-rw-r--r-- | regress/gnu/egcs/gcc-builtins/Makefile | 7 |
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" |