From nobody Fri Nov 11 18:36:48 2022 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 4N86qj0cYdz4dbnP; Fri, 11 Nov 2022 18:36:49 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N86qh6M3gz3vkh; Fri, 11 Nov 2022 18:36:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191808; 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=TLwaw+MGLMpEo9283/haImxoG12exdV2qGxi2NfPWkE=; b=B1M5SbfIzuZJA6YaDjW2GMSwDDD/eUiJWZjMtkaq7r1FhCSsEiGovAP/58JR4pt0k4ikWA jejNoUdN1tOo9/Vj8N5Y1LDg2PqPSdsNQfA5hoezOCGv04c/FRqwEBjqVA4rkX/KaGkx7O n7OsQPFK/LrB0MCBLk3ax9//I/8HVK7AsPojSQSLFMLg6LegwJ6XLisdXAzMmN0vj6uvUj wCUPzsEuZ9gLm79rNZq+vjhpAAmvtJBQcsoxAz+LAHhxPhhi/Uf94UMdGUm8PcGDkTAP7v efpzugWfiXlxVnew5DJLCkbQzUHjKIpnzvgL/Hx2DF7fma4+ChL2vOX++UNvGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191808; 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=TLwaw+MGLMpEo9283/haImxoG12exdV2qGxi2NfPWkE=; b=ipe1JPN/NBnxYQHr+Um1BopaVu1JGVvBUSfdoqjRyFJzY44HMuVczyoyqzU9xcsN77Ul2J ZtWlttA9h00VQQPa8CouT8wz+jplV/l2VcA1p4Q/hczbo2YHOvFFuKRaqsrLaFdmJwL3+v 6i/vaMKRAIksc3wJNVkXx2rL6brLadIbmxyphXhqoxaUYgBwvpDbvy5koLWr3/LPHMKaPe F2Hy0m6j2d3sR4qBKm0etynmS1IYOtEJv8uUgEQuwQmeJyAQqCwHaA7BLFT+AWBb98v1Fq AKKAq4PjcdhMl/OCZhAGC2COsSpE+/ix3ppWWscSIwyLvrNngK53cdlfP4Jg8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668191808; a=rsa-sha256; cv=none; b=ET6ozdUpHQuB598ZCvMTtJiUO1co2JX7os7l5hnKCI24yJmjr9ry3Kny09pakaYlvTjGwL GliYwK8AYdrMHqg/mV3ap/pqjhkqPEPiX8+S46L2KkzDLSiVJCVLC9hRsl8jT3uGHI6JNt BATS7vmzlRnK/uVyQDlQfbNJmiNciux5fgWHQbDQKLPhE+DfZpyWIxHT4M6o8WCLk582bL Czm4pgUxsI/kwNCB4sHrY+nKYjF5fHlir/gnT6mjEL+sRS+2xPrRL9BK7s+hfaoTWFCvvU iJmAAG5Tld/PmY41EA8sP1I1jBviISMwjzUnPDaUfxPrKL0rBo1f5WBOXif70w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4N86qh5FYqztHH; Fri, 11 Nov 2022 18:36:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2ABIam18004082; Fri, 11 Nov 2022 18:36:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABIamDe004081; Fri, 11 Nov 2022 18:36:48 GMT (envelope-from git) Date: Fri, 11 Nov 2022 18:36:48 GMT Message-Id: <202211111836.2ABIamDe004081@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: f49af51ccb41 - stable/13 - bsd.sys.mk: Add NO_WUSE_AFTER_FREE helper variable. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f49af51ccb410b171a8572c05dd807cf68af61a1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=f49af51ccb410b171a8572c05dd807cf68af61a1 commit f49af51ccb410b171a8572c05dd807cf68af61a1 Author: John Baldwin AuthorDate: 2022-10-03 23:10:42 +0000 Commit: John Baldwin CommitDate: 2022-11-11 18:18:53 +0000 bsd.sys.mk: Add NO_WUSE_AFTER_FREE helper variable. This variable expands to -Wno-use-after-free on GCC 12+. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D36817 (cherry picked from commit 67b0751249183749c302f37e114481f8b9550032) --- share/mk/bsd.sys.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 94b80d25f9ed..9e41fefc4fe4 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -117,6 +117,9 @@ NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical .if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 110100 NO_WARRAY_PARAMETER= -Wno-array-parameter .endif +.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 120100 +NO_WUSE_AFTER_FREE= -Wno-use-after-free +.endif .endif # WARNS .if defined(FORMAT_AUDIT)