PR c++/69560 - wrong alignof(double) on x86.
authorJason Merrill <jason@redhat.com>
Mon, 23 Apr 2018 20:49:38 +0000 (16:49 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 23 Apr 2018 20:49:38 +0000 (16:49 -0400)
commitaa2b10551159df9eb1b33e049eb36ee53d379b4e
tree57df381f854d498e1870295c71d1c59e390e02d6
parent71fbbf65fa775dfe4a3fde9f20008389f9e0e53f
PR c++/69560 - wrong alignof(double) on x86.

CWG 1879 - Inadequate definition of alignment requirement.
* cp-tree.h (ALIGNOF_EXPR_STD_P): New.
* typeck.c (cxx_sizeof_or_alignof_type): Add std_alignof parm.
(cxx_sizeof_expr, cxx_sizeof_nowarn, cxx_alignas_expr)
(cxx_alignof_expr): Pass it.
* parser.c (cp_parser_unary_expression): Pass it.
* pt.c (tsubst_copy): Copy it.
(tsubst_copy_and_build): Pass it.
* decl.c (fold_sizeof_expr): Pass it.

From-SVN: r259578
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/abi/align2.C [new file with mode: 0644]
libcc1/libcp1plugin.cc