]> granicus.if.org Git - clang/commit
Preprocessor: support __BIGGEST_ALIGNMENT__ macro
authorTim Northover <tnorthover@apple.com>
Fri, 6 Feb 2015 01:25:07 +0000 (01:25 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 6 Feb 2015 01:25:07 +0000 (01:25 +0000)
commita9515c8781fb8fa150f36c5d4f0c4fcc4a8b6505
tree26de82418554a2956bc090c7f0d8f26f56e2b0c4
parent126acb9a3fe7109687bf9479e09c22d7affa7b20
Preprocessor: support __BIGGEST_ALIGNMENT__ macro

For compatibility with GCC (and because it's generally helpful information
otherwise inaccessible to the preprocessor). This appears to be canonically the
alignment of max_align_t (e.g. on i386, __BIGGEST_ALIGNMENT__ is 4 even though
vector types will be given greater alignment).

Patch mostly by Mats Petersson

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228367 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
lib/Frontend/InitPreprocessor.cpp
test/Preprocessor/init.c