tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: -ftrivial-auto-var-init in userland?




> On Jul 20, 2026, at 2:34 PM, Taylor R Campbell <riastradh%NetBSD.org@localhost> wrote:
> 
> 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’d like to see an evaluation of potential code-size increase that could impact more constrained platforms.

I don’t particularly care about code bloat on amd64 or aarch64 (I mean, I do, but the number of peolpe who don’t care greatly outnumber me and those are hills I’m not particularly interested in).  I do care about m68000 / m68k and vax and 32-bit sparc, though.  And I don’t think the skr1pt k1dd13s are targetig those.

-- thorpej



Home | Main Index | Thread Index | Old Index