[Bug middle-end/96192] tree-inline.c(copy_decl_for_dup_finish) should preserve decl alignment in copy

skpgkp2 at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jul 14 15:01:21 GMT 2020


--- Comment #3 from Sunil Pandey <skpgkp2 at gmail dot com> ---
(In reply to Richard Biener from comment #1)
> Hmm, but there's no local variable to copy here?  Are you refering to the
> result decl from b we materialize in c?  This would be the same case
> as for example switch conversion adding a 'long long' variable, so the
> issue would be more wide-spread as you think - for example IPA SRA might
> choose to pass an aggregate by its components thus with an aggregate with
> two long long members you should see similar issues.

Yes, long long result decl. It's incoming alignment is 4(lowered by target
hook). But copy get default alignment as 8.

More information about the Gcc-bugs mailing list