https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36602
--- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > Not as easy when the initialized struct contains padding ... I suspect setting CONSTRUCTOR_ZERO_PADDING_BITS on the constructor will fix the issue there. I think we might need it also for optimize_memcpy_to_memset which was wrong too.