From nobody Thu Nov 19 08:20:54 2026 X-Original-To: dev-commits-src-all@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 4jVWd32F2Dz7253B for ; Thu, 19 Nov 2026 08:20:55 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jVWd319c1z4Y5p for ; Thu, 19 Nov 2026 08:20:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795076455; 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=fhkZvbAh3ixZ5vL3K4XJZucZF/8+lCrovddChN5WDWw=; b=Vv2nE7pzL66D9qk2XpmoSuWDvo6HkL0103bTSWSrsoQLbBB4I0SqKVP68EtS3uFhDWwRy6 AXGmnEYAW5JQOO4fg7tYQ0f+epSsAl8Z5oPUkarKHCqdZWlnWEmAvVTyboX0loJehSS7QP CPSNsZa2JWr9MgwhDl7XW4SVc9fQi4ggrvi6NIElHjA88M3mBIOKDPQZr0Mgfiy6YckvKJ huFTH7rHvfX3xbvL3Z/RmhJhqQsUqksr5f7PsmgqEf//eRdp+d/cHjp92XIsA0OsL4Kh5X TIU5eYfIMYZxp0sTQqSs4HJ9mqVjNvP9OtFoM+VmUcIgQ5sPeKBCN16vwdjcIg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795076455; b=Bn7aWiJxyD/jEMhZqS/avZ+8S1A4JWWfhYj6jnXvfIn4lU5DUl4tuRfv/1bZ3GXSEl+iVN wUrcGsd5y9Ccn/aqPujKfx8jhttRabSgCtoSt0U6BXdY68TrOg2Do+pel+nl3Fo3xzYnTb +1gHCby4xEgw2PRLdgKVXANRtVDDqF3Jvr3f2En7FVFBBy/Wdgp2rzVnbrWWh7lEVyJXai jfqYn00pwOQp29vvJSfrFaB4n/RUxG5bU35bBvzdHt0IK29o7Gtmr/k5F/fBedJjhpczaK TgTerrr5rVgbub27oxKlpGI2HUE2bLp0dxHNzFlP+gpY/7ew2fsRWZS76Ve0kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795076455; 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=fhkZvbAh3ixZ5vL3K4XJZucZF/8+lCrovddChN5WDWw=; b=XyQQ8jj99cq3jVBY+PHvQqpRCohEPrZjR7+99kgDGEVTh0wKPPdxUcfNa99vnhbFQYjQ62 sktvKNAX4y4JYbyI8Qu2oU7a+TKkoKRdaQR9Su8viQOn0C4IFKWegNvuSq9JwM6yictM08 v439ocnyKxyMAJcEemx6j1k0NPHM3nogqu6bvY6SOmcu1QXL8gUBLebGucIMDjaViv4CKE fw6Jt9IjZXBkdfWagQp+y+8H6H7lOqkM4mznn4LzPBm/Wm9s03+3YycjA2o2cJYW7sJPSk /LUVbF2/8CgUyYAEgkwY5nMrp8vpanS9KFA5Jub0NEz8WDNVVeR0ONalNrr8Fg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jVWd30HcGzt3N for ; Thu, 19 Nov 2026 08:20:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 72b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 19 Nov 2026 08:20:54 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Piotr Kubaj Subject: git: d1470ac7f365 - main - Merge commit 5472aa0c1321 from llvm git (by Piotr Kubaj): List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d1470ac7f365a1846b8cc565b76592c7a79a22e3 Auto-Submitted: auto-generated Date: Thu, 19 Nov 2026 08:20:54 +0000 Message-Id: <6afeb166.72b.5fe20ef4@gitrepo.freebsd.org> The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/src/commit/?id=d1470ac7f365a1846b8cc565b76592c7a79a22e3 commit d1470ac7f365a1846b8cc565b76592c7a79a22e3 Author: Piotr Kubaj AuthorDate: 2026-11-17 16:28:06 +0000 Commit: Piotr Kubaj CommitDate: 2026-11-19 08:20:49 +0000 Merge commit 5472aa0c1321 from llvm git (by Piotr Kubaj): [PowerPC] Use the 16-byte stack and vector alignment on FreeBSD (#232336) FreeBSD uses the ELFv2 ABI on both byte orders, so it has the same 16-byte stack alignment as Linux. The explicit vector alignment is a backend workaround that does not depend on the OS. There is no reason for the layouts to differ. llvm 21 still keeps the data layout in two places, so the check is changed in both the PowerPC backend and clang. They have to match, or clang errors out with a data layout mismatch. Reviewed by: dim MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D61678 --- contrib/llvm-project/clang/lib/Basic/Targets/PPC.h | 2 +- contrib/llvm-project/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/llvm-project/clang/lib/Basic/Targets/PPC.h b/contrib/llvm-project/clang/lib/Basic/Targets/PPC.h index 5c47e0dca666..6da3adb61fb5 100644 --- a/contrib/llvm-project/clang/lib/Basic/Targets/PPC.h +++ b/contrib/llvm-project/clang/lib/Basic/Targets/PPC.h @@ -478,7 +478,7 @@ public: LongDoubleFormat = &llvm::APFloat::IEEEdouble(); } - if (Triple.isOSAIX() || Triple.isOSLinux()) + if (Triple.isOSAIX() || Triple.isOSLinux() || Triple.isOSFreeBSD()) DataLayout += "-S128-v256:256:256-v512:512:512"; resetDataLayout(DataLayout); diff --git a/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp index b5c6ac111dff..484fbbebf060 100644 --- a/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -195,7 +195,9 @@ static std::string getDataLayoutString(const Triple &T) { // Specify the vector alignment explicitly. For v256i1 and v512i1, the // calculated alignment would be 256*alignment(i1) and 512*alignment(i1), // which is 256 and 512 bytes - way over aligned. - if (is64Bit && (T.isOSAIX() || T.isOSLinux())) + // FreeBSD uses the ELFv2 ABI and has the same 16-byte stack alignment as + // Linux. + if (is64Bit && (T.isOSAIX() || T.isOSLinux() || T.isOSFreeBSD())) Ret += "-S128-v256:256:256-v512:512:512"; return Ret;