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 00:38:32 +0000 (19:38 -0500)
commite3b6c052b6a0569aa8f89c50db1ac376c42e41e0
tree0d1a9d6bcc59f2d688c3370f7bfc7d9dac8429ae
parent8be8e32fafaab853522790dd62570b5f4de2fdb8
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]