From nobody Thu Aug 6 18:03:22 2026 X-Original-To: dev-commits-src-branches@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 4hGFWb0KxZz6nRJD for ; Thu, 06 Aug 2026 18:03:23 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hGFWZ6ncZz3gV9 for ; Thu, 06 Aug 2026 18:03:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786039403; 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=yW7/O73TEVQBxhQpovvJXpzEOrW8hJGdmMSEIY6atrc=; b=kM/a5tetRPCpFt75phqkJrizhfcfdT10XQLSzcjHJcpW4fEnjCNQpsg4XXg4yUS+0Ixe9v OpF105FXc/vd6Tiv0+Rj+H4oihX9Dhmc7GCHrHwP8EFlIHeRXp0gZfBBomsmNMgGGeG6CJ dQ5vy8CqxeTRR/VP4HEzC0+HowCgBoMTaeNCdPmd90EMx3TotSDoxi5zt8zkPoRcxUi//4 K84CNa9GHm5xJ8a+5LzvAppbiKcLKX4zYbZwKGsnivkX9en34iq1uN9GfJk5IhFgr7Kv8U WsEVE7NU6QlgfJzy2D58u752uvjeBHoKA0Y+6VCeOmlXBVn6HSgunWrvvuGmNw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786039403; a=rsa-sha256; cv=none; b=TkpWZArJccxF1KEF+auOfnJ46EzN2wYtTnpcv6AoAxNX6cH6qOHDzp+Y/oM+/5i6x4qSEt iTTkKO394wjgvq/YLg2UaaI3vZ7Xb14E1zzE+VZ44rPpgdKg9OnVbY9ledUwLwsmjPvGwe ahl5KjBtg1zpXBt+vhk3GuYTslHx4NQsJ+q4YEvbeI1vRP8zmLuNLRPhGjelTFXsF1JFGn HwkKn6mSyvVDs/0POUgPu4E85PnXu8yKBK7ALiRuK8NHC46tT9QF5bVXxq6p/iPB2LqaYG hG7YDLaRUkQk9qYRXLUWrIya2ok8kW7hFbl8iBgnvaloEVPVclJJU/rcchvz6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786039403; 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=yW7/O73TEVQBxhQpovvJXpzEOrW8hJGdmMSEIY6atrc=; b=W4Hiai+SIEHOEtWMjfOf8I4OeHkTBNzJoEHENyJqYwTHM9sAnm4LGcZFcEIJJQInREZ4Cc XINPnpPD7jndO4Y4mar9AcZX20Y9/6m8p2FXpmdCxqQebyMA18+k8UAIkTvqNsusq+ZCAN Dn73zfKDL0M5mA3LgUIXSJJ/XTXLgpsNFvU6k9FH9/vA6QOREUEpDNsLw1TVOG7uKd2ov8 ++pt6rNbdDvWPAn2CFuOkfI/e295aLmgmd+L9/0D2V4ONHNQ8cIYa+URy7faiNdc7093AT YgLksGy2lSShJCU27T30YeQEodgN1c3RxqhQzUl/0HiG2rajVrk/rVtJHe2gAA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hGFWZ5R0PzXX1 for ; Thu, 06 Aug 2026 18:03:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 325e4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 06 Aug 2026 18:03:22 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Jessica Clarke Subject: git: 560cf46476e0 - stable/15 - libllvmminimal: Fix building with LLVM < 21 on riscv64 List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: 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: jrtc27 X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 560cf46476e0538f75e8aea4d2ab3a8291dc3e1f Auto-Submitted: auto-generated Date: Thu, 06 Aug 2026 18:03:22 +0000 Message-Id: <6a74cc6a.325e4.55a7bd37@gitrepo.freebsd.org> The branch stable/15 has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=560cf46476e0538f75e8aea4d2ab3a8291dc3e1f commit 560cf46476e0538f75e8aea4d2ab3a8291dc3e1f Author: Jessica Clarke AuthorDate: 2026-07-06 16:25:48 +0000 Commit: Jessica Clarke CommitDate: 2026-08-06 18:02:04 +0000 libllvmminimal: Fix building with LLVM < 21 on riscv64 On most architectures we end up not needing ABIBreak.cpp as, although some of the sources here do reference EnableABIBreakingChecks (or, if assertions are disabled, DisableABIBreakingChecks) at a source level, we compile with -ffunction-sections and -fdata-sections, and link with --gc-sections, and it happens to be the case that all references can be GC'ed. However, prior to LLVM 21, the RISC-V backend did not apply -fdata-sections to .sdata, where references to these symbols end up, and for some files we're building with such references we end up not being able to GC .sdata due to the other unrelated data in it, meaning that we do in fact need to build ABIBreak.cpp. Whilst we could make this conditional on the architecture, it's a tiny file, and it's a bit fragile to rely on GC behaviour, so just include it unconditionally. Reviewed by: dim, emaste Fixes: 770cf0a5f02d ("Fixups after llvm-project main llvmorg-21-init-19288-gface93e724f4 merge") MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D58044 (cherry picked from commit 7a0b9e30a5ba07066caffba51fa82ca3782a5da1) --- lib/clang/libllvmminimal/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clang/libllvmminimal/Makefile b/lib/clang/libllvmminimal/Makefile index f54974c2d2ca..eaa6a670294d 100644 --- a/lib/clang/libllvmminimal/Makefile +++ b/lib/clang/libllvmminimal/Makefile @@ -6,7 +6,7 @@ INTERNALLIB= SRCDIR= llvm/lib SRCS+= Demangle/ItaniumDemangle.cpp -#SRCS+= Support/ABIBreak.cpp +SRCS+= Support/ABIBreak.cpp SRCS+= Support/APFloat.cpp SRCS+= Support/APInt.cpp #SRCS+= Support/Atomic.cpp