]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/69560 - wrong alignof(double) on x86.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Apr 2018 20:49:38 +0000 (20:49 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Apr 2018 20:49:38 +0000 (20:49 +0000)
commit4ecf2a2a5c647d58d0a413f10255ea2319c4fd90
tree57df381f854d498e1870295c71d1c59e390e02d6
parent71ac98c7a7d485f53573fb0cc15a45c2001802f4
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259578 138bc75d-0d04-0410-961f-82ee72b054a4
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