The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=42140052765e05c83a3ea797dce3eaad94bc3733
commit 42140052765e05c83a3ea797dce3eaad94bc3733 Author: Dimitry Andric <[email protected]> AuthorDate: 2023-04-20 19:27:11 +0000 Commit: Dimitry Andric <[email protected]> CommitDate: 2023-04-20 19:27:27 +0000 kern.mk: clang >= 16 already infers ELFv2 for powerpc64 There is no need to pass -mabi=elfv2 explicitly anymore, and with clang 16 in fact results in a "unused argument" warning. MFC after: 3 days --- sys/conf/kern.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 9040fced6cba..06fb48d0f93f 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -215,7 +215,8 @@ CFLAGS.gcc+= -mno-spe # Use dot symbols (or, better, the V2 ELF ABI) on powerpc64 to make # DDB happy. ELFv2, if available, has some other efficiency benefits. # -.if ${MACHINE_ARCH:Mpowerpc64*} != "" +.if ${MACHINE_ARCH:Mpowerpc64*} != "" && \ + ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 160000 CFLAGS+= -mabi=elfv2 .endif
