From nobody Thu Aug 6 18:04:55 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 4hGFYN03p6z6nRGs for ; Thu, 06 Aug 2026 18:04: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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hGFYM4ytBz3l2d for ; Thu, 06 Aug 2026 18:04:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786039495; 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=to84atHzmPvPx7A9blqGVsaogBjTQfsLDuttnqaSse8=; b=lysPWKwnG0w8La66DLk8LQhQYFy+tx1WzwrIX5DRw6UrLpYFU2zg0T8yr2QrfzOm2Ukf3R lW8RBuuGgXu/q6HENl7qrp9ZuK2m0NTfrFN7x1Fde3j9KcHnVQ6RMXz4dq95sm9lqycLg/ n/CsXlYzciWxcB8MRMUhzLj5gMNyUGG+95IYYQ/WY38V/VyTz4ZTNxpQjhHUcPguZDsVry Pa/12zL3tdRSDNr1VGKcYp0SJyArWrojR/r9tRbrPWe2AUI+3pHUeQ82ssWpK6mcMYOlQh 6JAWTxlFEFyfKcGmUgv+zwfWW8ENn1g7JtdhMgAr0Lx79GZb5JU8Nayilm7NxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786039495; a=rsa-sha256; cv=none; b=RyDUPPSLJVhHv5VCusnfXwCZj/lwFnbiKdH5Dmt+xObz1wrKSfZWBNIyBI3aumTdIBQtz2 qnRj5CYjY+VsdfUs9LXRRVHOP6z253kWoovzMyigTSfAJ1Bq5TwK0a2D9szmSz9e1NNXQT d4piG/O4CyzA+HIcui/gltU26PyMKx+0dglYXNJZsuuY5wKi5K+JV6GoVPopjYFEGEgECi 8AayEXxUB6rSTeQON3iyIT1iKe59X3gzCw93OXd50M/OUl292mfz4TpqvmcPXYK3OrjQv2 RTR3Pc47SXCubY8nPQjLuCzHyS4MKXvyAQGmn1VxYe69ParedAC9cZdYajqwmQ== 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=1786039495; 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=to84atHzmPvPx7A9blqGVsaogBjTQfsLDuttnqaSse8=; b=niX4Lsd68PXAdb5lwXdJcuB4itGgLT7e9KDuxbR7Doq68Y6UqHw9txqohjnxhkL8jNbgdt zI5gnISqKSSAAQeasn9BizGcZkHBphawLC4TfaP9DexC+c2l1xvtCjw4ATEy2EakzIzRtC rxMMd2d0/Am4nSbeez6IP8WB6KSXjRL8XFkdpn007KGI3xu+9srvmSa49BZrLMEceWl2eI MKEzmQchwNlAQ43goGlOP2qEUvCxZRb+CYje5lSL2Kr8ZFv0SwF2+FYQrf+mk2Ndnn4FP4 zOelDaZXxDSp3+i5xc7WtA509qou6t1kdt+JbZLHc8FUlqDPX0JwcxOZalgWbA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hGFYM3j3RzX7B for ; Thu, 06 Aug 2026 18:04:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 32624 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 06 Aug 2026 18:04:55 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Jessica Clarke Subject: git: 2705320b7c82 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 2705320b7c820f77ca1f6afabadbb5d3ef9a1e90 Auto-Submitted: auto-generated Date: Thu, 06 Aug 2026 18:04:55 +0000 Message-Id: <6a74ccc7.32624.66167602@gitrepo.freebsd.org> The branch stable/14 has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=2705320b7c820f77ca1f6afabadbb5d3ef9a1e90 commit 2705320b7c820f77ca1f6afabadbb5d3ef9a1e90 Author: Jessica Clarke AuthorDate: 2026-07-06 16:25:48 +0000 Commit: Jessica Clarke CommitDate: 2026-08-06 18:03:48 +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 878435a3f985..c3263a289f8d 100644 --- a/lib/clang/libllvmminimal/Makefile +++ b/lib/clang/libllvmminimal/Makefile @@ -7,7 +7,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