From nobody Thu Apr 20 19:27:56 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q2SNr5S75z46Tfd; Thu, 20 Apr 2023 19:27:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q2SNr4Xlgz4GnW; Thu, 20 Apr 2023 19:27:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682018876; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5kmcrj/zPne0jCabjMZ9sZjvh3nSyHDpp6E1RKyjHuM=; b=xwBaPZ7hUL8shBNN+jd34EA8LYOS8bk6CbOGxPK/SE236iipSBPwn9Z+CgjJBV5mlHbqmk NQTixYAE5NJHn/t2grOJsP/H4ac7NaNhloF0sTxoaa4HCVyhNIXsqNCsX0YSP+0EJr8DUq 7G81yUAmW4Yh9uJ2KA9ip7tbQmb8H5KGXJ4DfZGtf6BFC2umWwfXdWwPuuqMY3SFxN0YFd X9AHCPHQuDezxepjEMjaDVV55+iZW1u6EEfh6Zyu9tLbETaTHCF8vjdPgUhIhoF1opHgwI x7OjfcV8EZI82+OhXoeN0iXznpCAK1dSlk5CqtQUsCFVSpGTf4Ym7icfFUWzNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682018876; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5kmcrj/zPne0jCabjMZ9sZjvh3nSyHDpp6E1RKyjHuM=; b=osUaIawha33j4oOl0fNux0yJ4Mcc7jdEvokdNmCFkfR711UpQNQss9lJxeB3ChyiQxp4Cu W5x9BR1/0K/K6cZeB2bu4vH1421FZULchsTGg+8nTB4Is9TOTeYk6MENkRsf1DVymXCuN3 YnMf/GDfdBo2Dhf4Nf6IjZTz8xwOjMOzvLsTu/a6Nmyyk3VTV7Y6Kq1HpJyV7sEjIFDjrj 8BjhPLdBuNan64wx7bjQKYfIzG/mBqTo5jszn3g2DTAX9ooLvCYXCjfBTBm20GeRvzhtWW BfKq12GXWnVj6VtlE4mdHdb2FmZXFY9Sepp/qu4I+1WprIc3eBukKV0UD2XYCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682018876; a=rsa-sha256; cv=none; b=yU341//VQf9z51OS5podziWTBtb7R5ZbaF+NkZUQTSd0pjTBScmUggf7+Wq2eLRvjeIjln fN8t0VHX9LjOMomX8RT4NomPudU4vQ5q3D5aCffHIxM5t8laNAaRYcsTjiFmOGGGEhzlIu pnuPUS1nrhWK9sTI8UN8M+LCZgUNRhNuDVrt5x+exYNpfH4z3l5N4kOJ5z2sP/+6BbCIiw RKM6rOhU9Tj0IU5c3J/COAlcKETKKqwt84vL6yXPQaM80J4gz+g1InPRLAnYileLFTJfez 4HlKmigOsI2a9vfp3TG01M2QnSRiRkUqQs2HHmvrM21g58qzI30p5GLuasA90g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q2SNr3dT2zqst; Thu, 20 Apr 2023 19:27:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33KJRucH061048; Thu, 20 Apr 2023 19:27:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33KJRuZL061047; Thu, 20 Apr 2023 19:27:56 GMT (envelope-from git) Date: Thu, 20 Apr 2023 19:27:56 GMT Message-Id: <202304201927.33KJRuZL061047@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 42140052765e - main - kern.mk: clang >= 16 already infers ELFv2 for powerpc64 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 42140052765e05c83a3ea797dce3eaad94bc3733 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=42140052765e05c83a3ea797dce3eaad94bc3733 commit 42140052765e05c83a3ea797dce3eaad94bc3733 Author: Dimitry Andric AuthorDate: 2023-04-20 19:27:11 +0000 Commit: Dimitry Andric 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