Re: -ftrivial-auto-var-init in userland?
Jason Thorpe <[email protected]> Mon, 20 Jul 2026 16:37:51 -0700
| Newsgroups | gmane.os.netbsd.devel.userlevel |
|---|---|
| Message-ID | <[email protected]> |
> On Jul 20, 2026, at 2:34=E2=80=AFPM, Taylor R Campbell = <[email protected]> wrote: >=20 > 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. I think I=E2=80=99d like to see an evaluation of potential code-size = increase that could impact more constrained platforms. I don=E2=80=99t particularly care about code bloat on amd64 or aarch64 = (I mean, I do, but the number of peolpe who don=E2=80=99t care greatly = outnumber me and those are hills I=E2=80=99m not particularly interested = in). I do care about m68000 / m68k and vax and 32-bit sparc, though. = And I don=E2=80=99t think the skr1pt k1dd13s are targetig those. -- thorpej