From nobody Mon Jul 06 16:26:59 2026 X-Original-To: dev-commits-src-main@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 4gv8rh1hghz6kK85 for ; Mon, 06 Jul 2026 16:27:00 +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 4gv8rh0xgXz3Mt6 for ; Mon, 06 Jul 2026 16:27:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783355220; 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=Uto+we3TiTYYL3mxazDeWoxwXI8wb7Cg11InFYYRkv2erQROMrJ9ihjiojelr9mm3pns9t tMQwmDN99ZIpyYXqVwgRoYY/5PiX6WW8nqsL0gFI/TwdguBOfRZ5dZtM632yCoja/xxsBA BhxF/1uB9VLhquYOCbujPeBOC2aFjFc1i723BvA4mBC6Y9XjtScanvPAy+BqymPSAQuS6K Bor5HyzCAPcj/e5IOPsfYvtIs17Qu5BZXkEd0wcW1G2vwUSYzDduMD/DtkXqV987hYP8EX GuI+N4Y0AEOzeaOFTpSDuvgwG+QwWn8XaqpDz7MK/I1GTGFhrXLMrhUtBf7tAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783355220; a=rsa-sha256; cv=none; b=dpbHw0ul5aXv11rolP0T9T7D2HH7RRvAQBEXx28g/TJkgvBNWFHfkEnAnpTcOJoW2dG9+i R5ctppNx3uBUjqIxbJk+K+y/1r9AXX9FNog/yC/IGc77EXEuNtNAry8M4sz59iqz6Im/CW 1fh5wAxbUm66DAWMb+GGXqT27Rt35OI8zPeUvLQdfomjoM31ptx11kNq0lZYtdCVTxOi0V YvdyR52CZVmCxAfTrFr0UCWOUKV4q2KI727E2feUbys5Um0BefR2u6PZt1Sqp1mX8SE5PS roQw72PYAlSJp5pHJ5moseLpA48cBi/BEYQsTBn9EPNFd/6zU3bVKkAV2qxxow== 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=1783355220; 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=TZX9OWgCSPMaLubHvTeI+UkWnUQnZ6gLqA13v5jChVh2liOWGwfFQlJuXfCWjVy/H5zBee BlYYskUbWkhs8l/oRoZlI3C3WOc5rcHFpNENMHWZ9JQY3iTlliicS8CS6ewHxiIIcEo0g5 +McQTbnMh2SWzAKQhxjXvhMVPm85Az7kNYt6vifed0ugoeZSJchqk24qFtX4GdZfAxzN/A yUoONerySGJFpj8V9s60+lHb8TErQQ8ULCH5rsveZZsJ6gOZpSYIvtNnhW6ANfyoDU8Y6x rHvjE0OmeFWt15IRZXzgsHuaLom+sswkSFBF5YAlgP5kGZKXoivsKuV0TwFmHw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gv8rg6fvVz1BQJ for ; Mon, 06 Jul 2026 16:26:59 +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 the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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