From nobody Sun Dec 01 11:19:00 2024 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 4Y1PYx1rPxz5fTQv; Sun, 01 Dec 2024 11:19:01 +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 4Y1PYx0CMmz43HR; Sun, 1 Dec 2024 11:19:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733051941; 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=ZKYxvhTsTLOTXSkhjP+Mu9/EFYBJIj8/4LmUxP8SOyg=; b=bNG7nyhmpIIxAu4ors2wtak2kKnx6gWKUee1BLRDCRhwpSqPq/242yM3vLnxb8XIOOXYzi 5XsGygPS68sO/z0IwyXDegceY+OH48r94CJ2y0+XGzCEbWYbo2w88TCjPmoaT8prKrelrc VZXwRylUjmU9Rbsy688ncXms7fy+W5yWfsWOV4cu67o4WouXnL1zOYLlTw+QYiDl1B/XpU fhImEo7H3QD3gd0yJDs2YRNMqhfWDJnDyQFgqZdnwS3vhA0zS2Pww9psJGQPSNkxJXFOR1 SmoKtMYT+57SHDKbPSeFUhGyWHwAZ/kQyyFatsjEtvDf6nFsg/+79sY8qSDBwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733051941; 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=ZKYxvhTsTLOTXSkhjP+Mu9/EFYBJIj8/4LmUxP8SOyg=; b=DEc8dwH0xxJ/Gg/y+sCQwAg+FWuhyqmqImUIKJ6Bh9ANYXVAXJnvzxAIK1W8yMmJ+8tiog tkDAoQnaxIPIfaRGOoF6cdQ2R3R7TDirC0IhPvY9kn8CgKY96FvNRMoUMwu4QAiNqmZA5Y Yqdgr+e8Q3aQJW8ZrAWxF4uZDXqZ7NeqCSU9sUvuNRyYfBfw07nwq46tGfa1oRTcZ6U9Tz 4Bhh55P8+El0Qsv3LqMWtAyDwugZUZosGNQIpsnAv1V4JUagY4l83UegGN/RFDj5qD+WG+ uMjLrYsNSARPYA2A04M+eJ0IVnNarCqc9JJXFUuATxUkiSDRszVty/xOUhP41Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733051941; a=rsa-sha256; cv=none; b=Pg/+peKrxMJWJCKHy2Ckv00SrcOL09x+X7dfs8ynMIWBPmrS2IgjVbcxs/NKT74b5oBRVl CNgUWKsiFCt4fAv8WINkQnrV9yZxKzlToKbXGqS0kVwsgLYW/kpTNx/plQp/fOTdj5D01z AUnns9ntlNKGh5/fVKr0tY1+G6Ez2FucHyhIm9TLyKTLFUaA5nMbRW136gBCbfr9Ni+q5U KvoAKmOEsrCTIQ4G1d5dszvs7ZaTptmDc3gJqHsQjtLkoBsvjLOcPoyiUIQRsmqkCGd1/K NMDr9eI5t3KEsW5804KDe3ojpzSvuhIju2CJGCnTCZeLF/1Ziw1tgBUgfkHCXA== 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 4Y1PYw62Zzzqjs; Sun, 1 Dec 2024 11:19:00 +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 4B1BJ06U008987; Sun, 1 Dec 2024 11:19:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B1BJ05t008984; Sun, 1 Dec 2024 11:19:00 GMT (envelope-from git) Date: Sun, 1 Dec 2024 11:19:00 GMT Message-Id: <202412011119.4B1BJ05t008984@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: 86de9cd1f1b5 - stable/14 - Adjust LLVM_ENABLE_ABI_BREAKING_CHECKS depending on NDEBUG 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 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/14 X-Git-Reftype: branch X-Git-Commit: 86de9cd1f1b5815d3ba8923ba83053541de1bcdd Auto-Submitted: auto-generated The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=86de9cd1f1b5815d3ba8923ba83053541de1bcdd commit 86de9cd1f1b5815d3ba8923ba83053541de1bcdd Author: Dimitry Andric AuthorDate: 2024-10-24 09:53:19 +0000 Commit: Dimitry Andric CommitDate: 2024-12-01 11:17:16 +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