[Bug c++/65734] Yet another case of lost alignment by stor_layout
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65734 Jonathan Wakely changed: What|Removed |Added Target Milestone|6.0 |5.3
[Bug c++/65734] Yet another case of lost alignment by stor_layout
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65734 --- Comment #5 from Jason Merrill jason at gcc dot gnu.org --- Author: jason Date: Mon Aug 17 15:44:35 2015 New Revision: 226941 URL: https://gcc.gnu.org/viewcvs?rev=226941root=gccview=rev Log: PR c++/65734 gcc/ * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT. (finalize_type_size): Respect TYPE_USER_ALIGN. (layout_type) [ARRAY_TYPE]: Likewise. gcc/cp/ * class.c (fixup_attribute_variants): Respect TYPE_USER_ALIGN. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/alignas1.C branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/alignas2.C Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/class.c branches/gcc-5-branch/gcc/stor-layout.c
[Bug c++/65734] Yet another case of lost alignment by stor_layout
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65734 --- Comment #3 from Jason Merrill jason at gcc dot gnu.org --- Author: jason Date: Tue Apr 28 14:43:48 2015 New Revision: 222529 URL: https://gcc.gnu.org/viewcvs?rev=222529root=gccview=rev Log: PR c++/65734 gcc/ * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT. (finalize_type_size): Respect TYPE_USER_ALIGN. (layout_type) [ARRAY_TYPE]: Likewise. gcc/cp/ * class.c (fixup_attribute_variants): Respect TYPE_USER_ALIGN. Added: trunk/gcc/testsuite/g++.dg/cpp0x/alignas1.C trunk/gcc/testsuite/g++.dg/cpp0x/alignas2.C Modified: trunk/gcc/ChangeLog trunk/gcc/cp/ChangeLog trunk/gcc/cp/class.c trunk/gcc/stor-layout.c
[Bug c++/65734] Yet another case of lost alignment by stor_layout
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65734 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED Target Milestone|--- |6.0 --- Comment #4 from Jason Merrill jason at gcc dot gnu.org --- Fixed.
[Bug c++/65734] Yet another case of lost alignment by stor_layout
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65734 --- Comment #2 from Jason Merrill jason at gcc dot gnu.org --- Created attachment 35297 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35297action=edit patch A fix for after GCC 5 branches.