[MS] Increase default new alignment for win64 and test it
authorReid Kleckner <rnk@google.com>
Tue, 21 Nov 2017 01:25:56 +0000 (01:25 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 21 Nov 2017 01:25:56 +0000 (01:25 +0000)
commit13a3d9eb7b898c47765dc1f16e982f407944de1d
treec5f18c3d5934e7f93b67fb224b4f81c0222277a0
parent79708b54f2c1043e28d8d2fb46bb9b416b4806d6
[MS] Increase default new alignment for win64 and test it

Summary:
This raises __STDCPP_DEFAULT_NEW_ALIGNMENT__ from 8 to 16 on Win64.
This matches platforms that follow the usual `2 * sizeof(void*)`
alignment requirement for malloc. We might want to consider making that
the default rather than relying on long double alignment.

Fixes PR35356

Reviewers: STL_MSFT, rsmith

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D40277

llvm-svn: 318723
clang/lib/Basic/TargetInfo.cpp
clang/test/CodeGenCXX/cxx1z-aligned-allocation.cpp
clang/test/Preprocessor/init.c