From nobody Mon Oct 03 23:11:24 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 4MhGmY18wkz4V1H9; Mon, 3 Oct 2022 23:11:25 +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 4MhGmY0L50z3QKZ; Mon, 3 Oct 2022 23:11:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664838685; 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=aI6BOHAulgXIM0IfZmvyFN5p9iZ9KksUxbTAH80wKM0=; b=FV+nwg/RZwjKIjywnrNTjWplWe/BjP3QwF77yQtQHHToQgYxtfOsmivuzWqm39EcTqg+79 QVzGIC/lmSAe7NDeD34fkKalE41VCSzcAD2M3S5M9g579hl0wKp6YxkrxJK6VBvHQPROhB vxZQ8SZZ+/C6zjS4V2twVXX4rF9f4WGn2/Tk1wnvz/eQ0vE5GzoGsmkewOBVtbrLsX5xQS e8A1Nhzc/w2ceD5QwVZIZ7Oofn0CNDxD5339/3dNEq3eGAz46K+bQTmW99WbXZsCdwt+Ga gcK9UeCnc+8ZG/CuOUbpCWwLMIsjtTJi8JMOFAn0mWKhOlbqFnUHOICaHHjOPA== 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 4MhGmX6SPfzMdV; Mon, 3 Oct 2022 23:11:24 +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 293NBOUb065673; Mon, 3 Oct 2022 23:11:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 293NBOP4065672; Mon, 3 Oct 2022 23:11:24 GMT (envelope-from git) Date: Mon, 3 Oct 2022 23:11:24 GMT Message-Id: <202210032311.293NBOP4065672@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 67b075124918 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 67b0751249183749c302f37e114481f8b9550032 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664838685; 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=aI6BOHAulgXIM0IfZmvyFN5p9iZ9KksUxbTAH80wKM0=; b=ekUDdin22LQUccRccAf7aozZMBHQVxP056VH8AFjPffTcaZT7MyJ5jGeXUJWrWD28vljMN F/ddq+lxtaLQEuAmmDsRyohNbCkctEf+moHef+x3puJHTgmisF9Z/WHW4hvFO9SlTksGME zILaiTqvNdP9gUhU+3tqRgaRBfieBb4K8HJTM3aYYKvzc2a4ScVi9DB5izXveELDF7XMfX dgJ7GqAb1jzIRvkaAXG4QDZjq1ai8mFdMIEuWoRId98q26Luv+MtcFtArP9qq9hFAnvYpF X/DySO2o3GUifqJYqgpAA3iemF7k5TT/BCU3LSMpp8RNg5o4MANacEqXgMsmsg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664838685; a=rsa-sha256; cv=none; b=ZPv5Md66jeZTD4XIMXt1RF4aN10ILU9LGcne6CRFr9Aasl4Tu80p9Ihma+vaDL6t7IuQJl hByxLe9c/jHQ9q6r1KebroAf7sp/XCGCdcBTpa6uWypX2naW92JviHw21SbiYBkFDkbbgW DcpjvFlhk7ar++bRIg+BKby1U53g4pQVtI1vUdLy5O8rWtV9C2HDpswVrJUPY9K/NOng7m F1Cfjja8hnve1NR0/N6u0AxCjUZkufxUwT8+Wwq7BjjgWNuyR0Qu2oHgPdqspIHLDu8rG1 zzBTItCB42UNL8vgbATaJQ733zOhuyHocjE3+HuVPFzXSLByUL8e2N7AxmEx9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=67b0751249183749c302f37e114481f8b9550032 commit 67b0751249183749c302f37e114481f8b9550032 Author: John Baldwin AuthorDate: 2022-10-03 23:10:42 +0000 Commit: John Baldwin CommitDate: 2022-10-03 23:10:42 +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 --- 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 d3c2b4974e88..f6303d7d06d7 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)