]> granicus.if.org Git - clang/commit
P0035R4: add predefined __STDCPP_DEFAULT_NEW_ALIGNMENT__ macro. By default, we
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 30 Sep 2016 22:41:36 +0000 (22:41 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 30 Sep 2016 22:41:36 +0000 (22:41 +0000)
commit0b21f892bff121dab14eed6d6eb643bbc09bb6b0
tree7d4ecaab355d9882fe0233cc2d3cd555ee3485dd
parentfa5a2d7a669a54f6ed90d6026a1ad25ed6cd6649
P0035R4: add predefined __STDCPP_DEFAULT_NEW_ALIGNMENT__ macro. By default, we
assume that ::operator new provides no more alignment than is necessary for any
primitive type, except when we're on a GNU OS, where glibc's malloc guarantees
to provide 64-bit alignment on 32-bit systems and 128-bit alignment on 64-bit
systems. This can be controlled by the command-line -fnew-alignment flag.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282974 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/clang/Basic/DiagnosticFrontendKinds.td
include/clang/Basic/LangOptions.def
include/clang/Basic/TargetInfo.h
include/clang/Driver/Options.td
lib/Basic/TargetInfo.cpp
lib/Basic/Targets.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/InitPreprocessor.cpp
lib/Sema/SemaExprCXX.cpp
test/CXX/cpp/cpp.predefined/p1.cpp [new file with mode: 0644]
test/Preprocessor/init.c