https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117832
Iain Buclaw <ibuclaw at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at gcc dot gnu.org
--- Comment #1 from Iain Buclaw <ibuclaw at gcc dot gnu.org> ---
Yes, all padding in all objects should be zero at all times.
Currently, this is done by a memset before initializing new objects.
There are some cases where the optimizer for some targets discard the memset as
a redundant double assignment, then leaves the alignment hole as uninitialized
(pr96153).