HomeFreeBSD

Update -ftrivial-auto-var-init flags for clang >= 16

Description

Update -ftrivial-auto-var-init flags for clang >= 16

As of clang 16, the -ftrivial-auto-var-init=zero option no longer needs
-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
to enable the option. Only add it for older clang versions.

PR: 271047
Reviewed by: emaste
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D40208

(cherry picked from commit 3006f6df025f3afd0fb3cca1b820cdac1f1ed4c9)

Details

Provenance
dimAuthored on May 23 2023, 5:40 PM
Reviewer
emaste
Differential Revision
D40208: Update -ftrivial-auto-var-init flags for clang >= 16 and gcc >= 12
Parents
rG03b5b12c2073: bsd.compiler.mk: Add a c++20 compiler feature.
Branches
Unknown
Tags
Unknown