From nobody Tue May 23 17:49:02 2023 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 4QQhdV3cj0z4Ckjt; Tue, 23 May 2023 17:49:02 +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 4QQhdV2lN5z4bNp; Tue, 23 May 2023 17:49:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684864142; 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=/Y23Q89P5IVagX5SqE/T1Rh8nk6JjCLeDoIUpHP/ZGs=; b=I/Mu5NWFWKNNVqyDQO/TrO2oyO5XgmEFMR2vrqJcQa315OdepL0ABREpEpR7i8oUfNv6Yk yL8TUvqoj2PaeDfPlvjg80Vc4Y1CV56s9bDTZ2hTKrj7twdzxyo1SuWvfPIIQ1AuMF1Drs 0aUBy+LA6ZB9Bnq9rtx+sju+IXxV0k6Vib6x2ZkXqF1xzt89KtliTgObFoZT4E8cfsHTHH jY60yqBDKBR02kB+/feubEfl5A/mSm7Bk5xclXqx+Uv+ZwdlqXFTTt+gBJqVuOBBmGVCC8 hsysEvEaycFxon12hNL02HiQIPjrzgADPnirJJGSFvPNh6vsgPDDaAIw8Tw+eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684864142; 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=/Y23Q89P5IVagX5SqE/T1Rh8nk6JjCLeDoIUpHP/ZGs=; b=gM4Do2WJPJ09PbpOwz/Ufnzv+0AAquhtMyFFG/DPDdIC8Yd6WpDrXhsUPc93rJcM01KQPL Q7lXe8791W55T05XecJ+gCHSQOBWurIug/ERRpfVObhymrXM0btSdgdM59HOXSNg3ux1e0 ZATH7KIJlatAJrNPBLEB2o3PPZF4+vYm68BRG3c3XI6PXq5KNt34RGD20H4CWr9dYft79n ibzkPcvgs12SV0is6MZJIuUQVjsRSh3cPAb8R+aEU1HuRfjgCWh6ky2+qSxfd/pfDYasPe ucgp/wkKErqckS2//DI7OXc5JgaTsC3oILgoL2uAkAbazHbW8IJkKQAjFmn24A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684864142; a=rsa-sha256; cv=none; b=MwULDbPg4npSDoekn3dEmA44DOcDIGXMLn43RYQlECKX3R7bNt/kyYpkhOKRyWdUs8ow+C rMcOwf3nUgejWp4S+o1Bynh4x+JVfPfu3aZuUenQomcb2IHCtIjho6mMLm3YkD0fiUtmco WbYqgsLlsL0vaWwYr8LbuoTxMByNES/SLUi8bB9+DJoDsqLqQHSczJZEJ6k3h8MTDkQ16v uePUePBDq/5+oiXSTyuzDoiWciRZhvOyDPfQzJXcBbVWt3au9nJW+gtKXyYVcPXwDxMS5M LxWTqV2rRU+QZJOeB+MZm5YmMADGqDKYjYBixloUjrY9d+ZgWyJcZGAt+dcFfQ== 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 4QQhdV1J1zz18lc; Tue, 23 May 2023 17:49:02 +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 34NHn2mV046230; Tue, 23 May 2023 17:49:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34NHn2X3046229; Tue, 23 May 2023 17:49:02 GMT (envelope-from git) Date: Tue, 23 May 2023 17:49:02 GMT Message-Id: <202305231749.34NHn2X3046229@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: c32736222cdd - main - Enable -ftrivial-auto-var-init flags for gcc >= 12 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c32736222cdd92e1497d1154d81c9005757fb308 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c32736222cdd92e1497d1154d81c9005757fb308 commit c32736222cdd92e1497d1154d81c9005757fb308 Author: Dimitry Andric AuthorDate: 2023-05-23 17:43:12 +0000 Commit: Dimitry Andric CommitDate: 2023-05-23 17:44:45 +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 --- 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 e34c3c62a7e8..b5a896b82a43 100644 --- a/share/mk/bsd.compiler.mk +++ b/share/mk/bsd.compiler.mk @@ -239,8 +239,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 # PR257638 lld fails with BE compressed debug. Fixed in main but external tool # chains will initially not have the fix. For now limit the feature to LE # targets.