https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118575
--- Comment #2 from Sam James <sjames at gcc dot gnu.org> --- Actually... for -ftrivial-auto-var-init, we document [0] the behaviour as "With this option, GCC will also initialize any padding of automatic variables that have structure or union types to zeroes.". So, maybe there's nothing to do except perhaps cross-link docs as a nicety. Kees, do you have a testcase where -ftrivial-auto-var-init=zero was previously doing something right, and now isn't (wrt "avoid regressing their uninitialized variable mitigations" on mastodon)? [0] https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-ftrivial-auto-var-init