This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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=222529&root=gcc&view=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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]