[Bug target/95237] LOCAL_DECL_ALIGNMENT shrinks alignment, FAIL gcc.target/i386/pr69454-2.c
kito at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 2 03:31:44 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95237
--- Comment #6 from Kito Cheng <kito at gcc dot gnu.org> ---
Created attachment 48658
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48658&action=edit
i386-Implement-ROUND_TYPE_ALIGN-to-make-sure-alignme.patch
Some optimization might made decision depend on the alignment, and alignment
shrinking might made the decision become wrong.
So I prefer keep the assertion checking and implement ROUND_TYPE_ALIGN for x86,
so that it will set the alignment properly from the beginning.
PoC/untested patch attached.
More information about the Gcc-bugs
mailing list