]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix arm64 build after llvm 18.1.3 upgrade
authorDimitry Andric <dim@FreeBSD.org>
Sun, 7 Apr 2024 00:07:38 +0000 (02:07 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 7 Apr 2024 00:07:38 +0000 (02:07 +0200)
commitf4d93b67611f6f8b19db7bac6b0973b2ef0cfcb6
tree3c1111bd66828e26cd0ecbdaeaab4040003b29cb
parent0192eda105b367d4670205547e8e830e3716bea3
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
sys/conf/files.arm64