aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2024-04-07 00:07:38 +0000
committerDimitry Andric <dim@FreeBSD.org>2024-04-20 10:29:09 +0000
commit7b86b92ec1bdfad552ece3eaa28bd8d28dff9a82 (patch)
treef7643d75f9a332feb2b051de978af455519d2066
parent3a287a03cf4a1ff66b247b4ac880b9a8914faacf (diff)
Fix arm64 build after llvm 18.1.3 upgrade
Apparently clang 18 has become more strict about using floating point registers in inline assembly when -mgeneral-regs-only is used. This causes sys/arm64/arm64/vfp.c to fail to compile, with "error: instruction requires: fp-armv8", and "error: expected readable system register". To fix it, similar to other files compiled for arm64, disable -mgeneral-regs-only for this particular file. PR: 276104 MFC after: 1 month (cherry picked from commit f4d93b67611f6f8b19db7bac6b0973b2ef0cfcb6)
-rw-r--r--sys/conf/files.arm643
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/conf/files.arm64 b/sys/conf/files.arm64
index bb593a8f9a01..f72f5718ac19 100644
--- a/sys/conf/files.arm64
+++ b/sys/conf/files.arm64
@@ -76,7 +76,8 @@ 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
-arm64/arm64/vfp.c standard
+arm64/arm64/vfp.c standard \
+ compile-with "${NORMAL_C:N-mgeneral-regs-only}"
arm64/arm64/vm_machdep.c standard
arm64/coresight/coresight.c standard