From nobody Thu Aug 6 18:03:22 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 4hGFWb0Kkvz6nRJC 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 4hGFWZ6ng9z3gMG 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=1786039402; 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=LHDgwIVeDbnmSnzCaqLygOkmkweNPH0xy2KLZ217xcQ5TA1pPAVuzxDAXgVo0YSpMA0Xrz Rab+BUDL2tt+6ae+RmWhCovlV/n3Rv1Q1QyXTXZwDaEJqzIXr45l7yi1CuRh+ewQxQZQEi apFsrOHLaeq4VC6du80+fSWO/IZNcX4BOaI5xAeCLY5fIwAA1Wvflddmc0IdCI8VjN/woa /HNhBdKEDwkf31qEyVzU0OqRdpHx2/JrK4XvUQxgeQ0o1VXjU43d6sYydGWGXOX9tM+pNc vC4Z5vsw3TdZDkHZnjqiFyBtNQ944b9B3Tp6d3vH6gkvu+hMNDXEAoDd1S1o5Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786039403; a=rsa-sha256; cv=none; b=iJhdi2qXbhS6TwPHEC4WiosCfjCHmTfxn6Zxl1L1YTwIrpgObtPNrSghq3vuKtDOyQF/MW xOqtEvNjxoP1OgmQm0ypLJZSGzqal0imqHG62Mfmz7w/IR52+k8zVTji5nJS+pOS0AEoKl k8cn/kTw8Hbnqp5CbUK2rRS0B6vgCkb5ClveYXc5s7yNHJVmviwTs+LSaP6O+Jb6NDCg7d 3/+fPq86bneYOtdveQMev1Q3Y53jK57HauyZjK8gEqcia2pqoRVJJc1y7RSdkW0SiFMRV4 uLdEW+SRcf4BHUhJVNGJpzZ1Vq5aFFl3YMRoScnkNFIORaAhetZpDGp6T1LRgw== 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=1786039402; 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=UaSg1sBMWZ3pXrq607Pi5OmFaF3VQRqoS9hY/eQTa+mwcBdM8fAR0VASbMxJ/u1BnexZ5b AZooOwHX1fYxQyAUzsrLrmpW8GreCxK8QlhzFqfjrYydtJozz+DT8RRMRCZB6sGKuotJs9 PSdlJvYRPGZYPEGL4j0tMk6+5fGaNE0C/yM+cxCIzS64DYvZyzbnQQcb+lhWCG9+zQyh5K AmIB4QmCQh+VR5JiLsnTG70ij+GMyNuRBxfXprHFHrSuVTDIYAj9aSj74g420xRPYb3Oz1 mdkoPUEt5X1vvjsTKCk7dcHcZEbTki4hANEu945MilzhBDLpagxuWw16QMpKog== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hGFWZ5NjbzXVV 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: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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