HomeFreeBSD

Fix arm64 build after llvm 18.1.3 upgrade

Description

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)

Details

Provenance
dimAuthored on Sun, Apr 7, 12:07 AM
Parents
rG3a287a03cf4a: Merge llvm-project release/18.x llvmorg-18.1.3-0-gc13b7485b879
Branches
Unknown
Tags
Unknown