From nobody Mon Jul 6 16:26:59 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 4gv8rn0hZYz6kK86 for ; Mon, 06 Jul 2026 16:27:05 +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 4gv8rn0B7zz3N7V for ; Mon, 06 Jul 2026 16:27:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783355225; 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=R3ogu6XC1jD70vovC1qUrkmnBUhihgSco+Gnnzd0S9E=; b=GQWBMw3Rd9d2dbsrq8K5Cof/8vT5wKV+lo2UJULm8lcUheT/bb0/LgV0kmwLqPXLR+VYAn KCNMFC+Wihfwygz1abr5IrX2QOg/zppQ3YwHf+R0o7oaLPF+9nuQVXrpV6JDJdFy7s0MJl 6v7GVnR7fQENIDWplw0lPnCB3XwDgaNscglhUj1T9kiEqsesB1NBDaae1HJFGyA2Xw1wge IHXm9SvJhoC8Yyvt5OmvtyKvFGxCRrI8tEZUQSki5R2k31U7oaOTNhpBg1j7EndSXpd+gw OYKVlieMRF9ekZcVYa1dr1OGC1s+Cw03dytv/E6I2z3EZoyPYSjIP7GgVzmP3g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783355225; a=rsa-sha256; cv=none; b=lgJkkWuuVFg1mW4qFHMiG3qJ5j8ym4UiaYHehjkvaeIDnybL4ceSiVHHg05zz3LCm2gmYh zUZjUep1Tri+qVxPRQ4c5TrLSHd/URrz2Ig3bUlAsLtxfQ1JOsHR409crieGLTf27n+19C 0unids/UYP1iTo5/Uh2O2Aw65W5xqH//sJKt5gVM/uGRwjaFCbSTZCouhN7kPAY3q5BzXt qjX3P9NfbSQ2USW7VylzCV+GLirYYZsBqwogMLIWHxov4s4vrZaLjTu3pFVJh6Wodpl677 HzUK0ugu5a0IRBIOsiRgkfZovEJRxQNdXwC1QBLJng2RTGK0SNhuR3KMGsB/GQ== 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=1783355225; 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=R3ogu6XC1jD70vovC1qUrkmnBUhihgSco+Gnnzd0S9E=; b=USKQLT1oVv/VKDtlgvZb+TMHTew1pTwDb9jqpRSik4qtST+6rXPXo8J195E6AEsAfYT/Xb WwGDRcbOYtEdNHm3UDgcjd1EQE3i9kll/tGNtjI51v352UMyRVBIgnRjvW3dFIvak1Z/7A v2nCm/HTEymCXA3GLLFPS05vB5KauT+BPPs0tHHqYcBuDNFIDqfTP99c5SdQsk1poSggFM YW3uiANKyvQZhxN+2gK45kEYMO3Tf44NfHLK5UsGRXZErIDbfE5xkbd/8n9uNxLYEkT/Mm vaGws3fYmz0kEH0Y44cGGBXYMSjT+pa/snuZAchDpjyT3wSH/iBIhjzGOWNLoA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gv8rm6L1qz1BNW for ; Mon, 06 Jul 2026 16:27:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 25085 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 06 Jul 2026 16:26:59 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jessica Clarke Subject: git: 7a0b9e30a5ba - main - 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/main X-Git-Reftype: branch X-Git-Commit: 7a0b9e30a5ba07066caffba51fa82ca3782a5da1 Auto-Submitted: auto-generated Date: Mon, 06 Jul 2026 16:26:59 +0000 Message-Id: <6a4bd753.25085.292b9fb@gitrepo.freebsd.org> The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=7a0b9e30a5ba07066caffba51fa82ca3782a5da1 commit 7a0b9e30a5ba07066caffba51fa82ca3782a5da1 Author: Jessica Clarke AuthorDate: 2026-07-06 16:25:48 +0000 Commit: Jessica Clarke CommitDate: 2026-07-06 16:25: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 --- 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