-ftrivial-auto-var-init in userland?

Taylor R Campbell <[email protected]> Mon, 20 Jul 2026 21:34:29 +0000
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
I propose to enable -ftrivial-auto-var-init for all libraries and
utilities in userland by default (under gcc and clang), and
specifically to zero-initialize local variables in release builds and
to nonzero-initialize them in current builds.

See https://mail-index.netbsd.org/tech-kern/2026/07/20/msg031158.html
for background.  If there's any userland-specific considerations to
discuss, we can discuss in this thread here.

Thoughts?