From nobody Fri May 26 08:48:09 2023 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 4QSJV21f19z4WRdq; Fri, 26 May 2023 08:48:10 +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 4QSJV212zTz4D7Y; Fri, 26 May 2023 08:48:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685090890; 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=QMFv3KQ/DJY0NCho8OUW6WIsIoJxgLTeh7W5t1w6V/o=; b=LNSDtxf5xUI4kdIvvygYCP9H2yg70O6GT6oeUy6xWgrq/fHmEDs0i2f6+KoF8nD+8bIa+o fSSQxD/x53qNnBidfgPATTjHDdhJEbId65PTdBsa7P76fl18l0XoKNUad/XkSyidbWtZgv nvckF7s+W13Or07PiV0m/Y4eGseXSnf0y9uBUPxG5Kiba8HRcus5S7cKel8EhArcUucqsX 4TpqlntxPpPZmwr2N+Htw/gMeFoTuQsFEU+YRBtXVcIm4ISgYejvtwGVmobo09KLtAK8jc h04eu4uYxm5Pwt0FOE3t8edgPUqpzIZBAd/2z/1V3Cg9fz0wMpXqk196sXGBOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685090890; 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=QMFv3KQ/DJY0NCho8OUW6WIsIoJxgLTeh7W5t1w6V/o=; b=mk07LSXB8/3hhi/nZFzAoebdDu6zZE9506tfHXmfOigw6yXA4W0REkI24k2tt2OdR5wjLY /NnB/dCNbhnONcQ3T2sxZvs7oCjnOctSe+P0kh8TnPNtSqNTR1pEOpuqKIAp9tIJ3i/gEH 1ovXNl1XNHixaXEzQz8O0sJik2esaBgiDa9e8+B2Py73l4/Qt0AsH/xke6YVGfN1hViVrg DEGA/ggVYVoiD1juebBZsjSBb0DPdSPKmCCM+SGsotfGNUSrITrzOvxiJWQQsbdVpJGOD+ +sSIGzRrol4cNIkI+O18z6+7tax/XLIB1vttpBjCgzV3uVJ5sXZdao62wCn4tg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685090890; a=rsa-sha256; cv=none; b=U/nTTGcYjpiMiqPL4AvNuYkacZzlnAgfCbj662aym/EpKaJpY+PypxfQ28rg5z8q5j2ASx FYnQh6AtQNsCp3qCOd3m8CZTaEjYCT/a5vkQk6yJsT5YZA3nLJbknrsIUubHDcE+JCKQbG Qg0KllScF80ehqfpN966rH16jOUkYJcS0nruqKzjKyaYTCwZiF7PvP/Maz+eBs8FR5hm9v S798z1TbO3DbYd90n/kuCQtrRyVxxRA59TqYnwgHwOe//Zwed5hZaUhfONAOCheFQ6KzmZ GJSxTClBrPD4G/epq4OgtO7iMLB3iaKGjrwMF+TgajfduwtYNREGnJK2WhPcRQ== 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 4QSJV206blz116G; Fri, 26 May 2023 08:48:10 +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 34Q8m9U5078151; Fri, 26 May 2023 08:48:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34Q8m96C078150; Fri, 26 May 2023 08:48:09 GMT (envelope-from git) Date: Fri, 26 May 2023 08:48:09 GMT Message-Id: <202305260848.34Q8m96C078150@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: 3b5f2c6e7413 - stable/13 - Enable -ftrivial-auto-var-init flags for gcc >= 12 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: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: 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: 3b5f2c6e74135c2d881cc18378429d5848717ca4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=3b5f2c6e74135c2d881cc18378429d5848717ca4 commit 3b5f2c6e74135c2d881cc18378429d5848717ca4 Author: Dimitry Andric AuthorDate: 2023-05-23 17:43:12 +0000 Commit: Dimitry Andric CommitDate: 2023-05-26 08:45:53 +0000 Enable -ftrivial-auto-var-init flags for gcc >= 12 Now that gcc >= 12 supports -ftrivial-auto-var-init, add it to bsd.compiler.mk's "init-all" feature. PR: 271047 Reviewed by: emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D40208 (cherry picked from commit c32736222cdd92e1497d1154d81c9005757fb308) --- share/mk/bsd.compiler.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/mk/bsd.compiler.mk b/share/mk/bsd.compiler.mk index 26f735c579e6..87b8e86156bc 100644 --- a/share/mk/bsd.compiler.mk +++ b/share/mk/bsd.compiler.mk @@ -238,8 +238,12 @@ ${X_}COMPILER_FEATURES+= c++17 (${${X_}COMPILER_TYPE} == "gcc" && ${${X_}COMPILER_VERSION} >= 100100) ${X_}COMPILER_FEATURES+= c++20 .endif +.if ${${X_}COMPILER_TYPE} == "clang" || \ + (${${X_}COMPILER_TYPE} == "gcc" && ${${X_}COMPILER_VERSION} >= 120000) +${X_}COMPILER_FEATURES+= init-all +.endif .if ${${X_}COMPILER_TYPE} == "clang" -${X_}COMPILER_FEATURES+= retpoline init-all +${X_}COMPILER_FEATURES+= retpoline .endif .if (${${X_}COMPILER_TYPE} == "clang" && ${${X_}COMPILER_VERSION} >= 130000) || \