]> granicus.if.org Git - clang/commit
[SystemZ] Provide predefined __ARCH__ and __VX__ macros
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 6 Feb 2017 17:04:22 +0000 (17:04 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 6 Feb 2017 17:04:22 +0000 (17:04 +0000)
commitdbb412bb81baa0a47f977580428bafba8319fc87
treeddd7e3c2cd4965fb23e5fbc3858bdf4df2846eae
parent84b36e3ab265610fe108a208992368a1fefd82e6
[SystemZ] Provide predefined __ARCH__ and __VX__ macros

GCC 7 will predefine two new macros on s390x:

- __ARCH__ indicates the ISA architecture level
- __VX__ indicates that the vector facility is available

This adds those macros to clang as well to ensure continued
compatibility with GCC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294197 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/Preprocessor/predefined-arch-macros.c