The branch stable/13 has been updated by dim:

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

commit 4b0899ae6686fad5e1ef6dec6e812c94ffadcca1
Author:     Dimitry Andric <[email protected]>
AuthorDate: 2023-04-20 19:27:11 +0000
Commit:     Dimitry Andric <[email protected]>
CommitDate: 2023-04-23 09:25:16 +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
    
    (cherry picked from commit 42140052765e05c83a3ea797dce3eaad94bc3733)
---
 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 4abef91c7805..87e788666efb 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -208,7 +208,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
 

Reply via email to