git: a78bacf3b0ec - main - cdefs: Add __nosanitizecoverage

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Fri, 11 Oct 2024 16:53:42 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=a78bacf3b0ec0526e38f299fe4e17557f0930303

commit a78bacf3b0ec0526e38f299fe4e17557f0930303
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-10-11 16:51:13 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-10-11 16:52:53 +0000

    cdefs: Add __nosanitizecoverage
    
    Obtained from:  CheriBSD
    MFC after:      1 week
---
 sys/sys/cdefs.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index a56839d57c7a..9c4c8e0a324a 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -719,9 +719,11 @@
 #define __nosanitizeaddress	__attribute__((no_sanitize("address")))
 #define __nosanitizememory	__attribute__((no_sanitize("memory")))
 #endif
+#define __nosanitizecoverage	__attribute__((no_sanitize("coverage")))
 #define __nosanitizethread	__attribute__((no_sanitize("thread")))
 #else
 #define __nosanitizeaddress
+#define __nosanitizecoverage
 #define __nosanitizememory
 #define __nosanitizethread
 #endif