git: e04a75a4ec82 - main - arm64: Fix the unwind.c build when sanitizers are enabled

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Thu, 08 Feb 2024 16:36:28 UTC
The branch main has been updated by markj:

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

commit e04a75a4ec8240050e2782202f45bdd88d0a7cdf
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-02-08 15:39:40 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-02-08 16:22:58 +0000

    arm64: Fix the unwind.c build when sanitizers are enabled
    
    The presence of -fno-sanitize-memory-param-retval without an
    accompanying -fsanitize=kernel-memory triggers a compiler error.
    
    MFC after:      2 weeks
    Sponsored by:   Klara, Inc.
    Sponsored by:   Juniper Networks, Inc.
---
 sys/conf/files.arm64 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/conf/files.arm64 b/sys/conf/files.arm64
index 0eed3db41b16..dcdd429c14c4 100644
--- a/sys/conf/files.arm64
+++ b/sys/conf/files.arm64
@@ -81,7 +81,7 @@ arm64/arm64/uio_machdep.c			standard
 arm64/arm64/uma_machdep.c			standard
 arm64/arm64/undefined.c				standard
 arm64/arm64/unwind.c				optional ddb | kdtrace_hooks | stack \
-	compile-with "${NORMAL_C:N-fsanitize*}"
+	compile-with "${NORMAL_C:N-fsanitize*:N-fno-sanitize*}"
 arm64/arm64/vfp.c				standard
 arm64/arm64/vm_machdep.c			standard