Module Name:    src
Committed By:   kamil
Date:           Sun Dec  1 17:25:47 UTC 2019

Modified Files:
        src/share/mk: bsd.sys.mk

Log Message:
Disable KCOV instrumentation in x86_machdep.c

This allows to use cpu_intr_p() directly inside KCOV.


To generate a diff of this commit:
cvs rdiff -u -r1.296 -r1.297 src/share/mk/bsd.sys.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.296 src/share/mk/bsd.sys.mk:1.297
--- src/share/mk/bsd.sys.mk:1.296	Fri Nov 15 09:44:44 2019
+++ src/share/mk/bsd.sys.mk	Sun Dec  1 17:25:47 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.sys.mk,v 1.296 2019/11/15 09:44:44 maxv Exp $
+#	$NetBSD: bsd.sys.mk,v 1.297 2019/12/01 17:25:47 kamil Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -247,7 +247,8 @@ CFLAGS+=	${KLEAKFLAGS.${.IMPSRC:T}:U${KL
 .if ${KCOV:U0} > 0
 KCOVFLAGS=	-fsanitize-coverage=trace-pc
 .for f in subr_kcov.c subr_lwp_specificdata.c subr_specificdata.c subr_asan.c \
-	subr_csan.c subr_msan.c
+	subr_csan.c subr_msan.c x86_machdep.c
+# TODO Adapt the file list for !x86 or implement __nocov (missing in GCC 8)
 KCOVFLAGS.${f}=		# empty
 .endfor
 CFLAGS+=	${KCOVFLAGS.${.IMPSRC:T}:U${KCOVFLAGS}}

Reply via email to