From f5bb41ae112a156756ad002d5c89c53df6adeb6d Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sun, 3 Feb 2019 10:58:52 +0000 Subject: enable -msave-args when building with clang. this allows us to provide actual arguments in functions in ddb traces. deraadt@ helped me figure out that a new clang has been in snaps for days now, so it's easy for people to get a new compiler if they're building current. --- sys/arch/amd64/conf/Makefile.amd64 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/amd64/conf') diff --git a/sys/arch/amd64/conf/Makefile.amd64 b/sys/arch/amd64/conf/Makefile.amd64 index eb4a5f10f7c..6ed2573a362 100644 --- a/sys/arch/amd64/conf/Makefile.amd64 +++ b/sys/arch/amd64/conf/Makefile.amd64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.amd64,v 1.109 2019/01/20 09:57:23 anton Exp $ +# $OpenBSD: Makefile.amd64,v 1.110 2019/02/03 10:58:51 dlg Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -34,7 +34,7 @@ SORTR= sort -R .if ${IDENT:M-DNO_PROPOLICE} CMACHFLAGS+= -fno-stack-protector .endif -.if ${IDENT:M-DDDB} && !${COMPILER_VERSION:Mclang} +.if ${IDENT:M-DDDB} CMACHFLAGS+= -msave-args .endif .if ${IDENT:M-DSMALL_KERNEL} -- cgit v1.2.3