From nobody Sun Dec 1 12:54:33 2024 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 4Y1Rh96TRZz5fb3Z; Sun, 01 Dec 2024 12:54:33 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y1Rh93CScz4PbD; Sun, 1 Dec 2024 12:54:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733057673; 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=GK8r58bESdyFroDiNLuBwSAe41yuPfbqQ8mxjYkqi+w=; b=Qo3n8wfkC+M4ynSw3JltpSbEqAhnQDQFd855HdzpESi87i1LEabpOOMPKuJ7KPd5K9W3ds LDggNl8Xys8692kzaoQxux+dAl6xQq7JZzxUDgs5yAiLcGJCuGkm9gs0Sngvbpack4xOf9 V6ZsseKe/ng1otmxy0s1fXkHi8MdkYSa/og2q9bsTX1Ubh3coNqzD9XUITw0bgf8hj+vmD ayyCh8Cm7NwXFM/MX/M0LXFwgNZ93OSMNlEX/CCUPZMHyZT24xN7vwDf/m6VTIU2DpZg1f ydUyPFRkYmlZWiDuzCTE8UjlC3vkUcu7uYt3/ZQwQ6EU1Ibggt339LSV8kLC9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733057673; 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=GK8r58bESdyFroDiNLuBwSAe41yuPfbqQ8mxjYkqi+w=; b=IqEubHsGpQ/dY+rdhme1ZO8ZHzImqcca4NYzs2kssoRTVuwHpRO8xdK7tsTNo4bkMPQ9mh cRyd94htnucD2KJMuMxFrMhF1xJsLs905U+ia2l2xepuJd6Q5RZY5eYo8C7dTsUj7NpbDr IvPPuVvvyXixdGmFqa5ZI3ZicQ/xu60cI7w2PryCu6vXMVPPpryMhVKTA8h4K6cyLGj4zY EOctzeDNefNdFQdg5BtoidOAhJtEWWicyNtek8bMtmS3gYuJsQ32CU8QJi6YevbXrUa3BT o07SSgjSbUbraDySExujm4zqZbnFPJVf2VUDjWjmv3HBcS0NgCvEUGtJ9y96Iw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733057673; a=rsa-sha256; cv=none; b=uERSlRRJb3Ue6MhPqezMgKK0wnTBw/1re0kAzuPOjMHQMylIsNBq5gVrPF1GlkythDiUwq m1fNWcLeKAFZg9nUCsgK8dSgGT7UyiHbR0bGspKkDahZNxY47WOt3iyrC6pbyEy4Fo19ec bFYvKm95Kz4H3ms00VfCC9EcJlJG67Oqd5yrrLz6lHa6XezQSjYs55MNVChFkYgU+LXnVs Nik8mJ+75W93YzX5SpBSZ31mHeti/pZ0Eplg7c2SHriZZ2mOSCZFgO4ew09rgdtUmG1Twr 4g496fe8SS23lmt0AyGZi6odRhSQzQuZATPRg0v0lXGk7icT16U5lhXnM3BfqA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y1Rh92knyztjq; Sun, 1 Dec 2024 12:54:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4B1CsXWb094561; Sun, 1 Dec 2024 12:54:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B1CsXsY094558; Sun, 1 Dec 2024 12:54:33 GMT (envelope-from git) Date: Sun, 1 Dec 2024 12:54:33 GMT Message-Id: <202412011254.4B1CsXsY094558@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 44be5a00bedd - stable/13 - Adjust LLVM_ENABLE_ABI_BREAKING_CHECKS depending on NDEBUG 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 44be5a00bedd95e39d20f7dc6d5458251af49e20 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=44be5a00bedd95e39d20f7dc6d5458251af49e20 commit 44be5a00bedd95e39d20f7dc6d5458251af49e20 Author: Dimitry Andric AuthorDate: 2024-10-24 09:53:19 +0000 Commit: Dimitry Andric CommitDate: 2024-12-01 12:32:46 +0000 Adjust LLVM_ENABLE_ABI_BREAKING_CHECKS depending on NDEBUG When assertions are disabled, the upstream build system disables LLVM_ENABLE_ABI_BREAKING_CHECKS by default. Though the upstream build system allows it to be force-enabled, it looks like that is not a well-tested build-time configuration. Therefore, always disable LLVM_ENABLE_ABI_BREAKING_CHECKS when assertions are disabled, which will also save some more runtime cost when people use WITHOUT_LLVM_ASSERTIONS. PR: 280562 MFC after: 1 month (cherry picked from commit 1c83996beda7b6a382857c318f46daefcb6bd84c) --- lib/clang/include/llvm/Config/abi-breaking.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/clang/include/llvm/Config/abi-breaking.h b/lib/clang/include/llvm/Config/abi-breaking.h index eb90be1fe37b..55e67e2ebad7 100644 --- a/lib/clang/include/llvm/Config/abi-breaking.h +++ b/lib/clang/include/llvm/Config/abi-breaking.h @@ -13,7 +13,11 @@ #define LLVM_ABI_BREAKING_CHECKS_H /* Define to enable checks that alter the LLVM C++ ABI */ +#ifdef NDEBUG +#define LLVM_ENABLE_ABI_BREAKING_CHECKS 0 +#else #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1 +#endif /* Define to enable reverse iteration of unordered llvm containers */ #define LLVM_ENABLE_REVERSE_ITERATION 0