https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128302
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=118575
CC| |sjames at gcc dot gnu.org
--- Comment #5 from Sam James <sjames at gcc dot gnu.org> ---
(In reply to JingYao Zhang from comment #0)
> Summary
> -------
> For unions containing bit-field members (e.g. `union U { unsigned int flags
> : 27; }`),
> both `__builtin_clear_padding` and `-ftrivial-auto-var-init=zero` fail to
> zero
> the unused padding bits (bits 27..31):
>
-ftrivial-auto-var-init is separate here, it's not supposed to be used for this
(PR118575).