]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Drop alignas restriction for stack variables.
authorJason Merrill <jason@redhat.com>
Wed, 29 Jan 2020 22:16:12 +0000 (17:16 -0500)
committerJason Merrill <jason@redhat.com>
Thu, 30 Jan 2020 01:11:30 +0000 (20:11 -0500)
commit9d9679132e0e9b0108e78bf1bc8fdea6238649a3
tree0c4b94d4923b84400ff055bce02bd33142e32e0c
parentc6613dd33ce5e84e64a3c9f384209a19a2968464
c++: Drop alignas restriction for stack variables.

Since expand_stack_vars and such know how to deal with variables aligned
beyond MAX_SUPPORTED_STACK_ALIGNMENT, we shouldn't reject alignas of large
alignments.  And if we don't do that, there's no point in having
check_cxx_fundamental_alignment_constraints at all, since
check_user_alignment already enforces MAX_OFILE_ALIGNMENT.

PR c++/89357
* c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove.
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/testsuite/g++.dg/cpp0x/alignas17.C [new file with mode: 0644]