]> granicus.if.org Git - clang/commit
[PowerPC] Stop defining _ARCH_PWR6X on POWER7 and up
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Wed, 13 Feb 2019 20:17:13 +0000 (20:17 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Wed, 13 Feb 2019 20:17:13 +0000 (20:17 +0000)
commitbbbf618390ba8b1450518527d62cb8be90a97998
tree0cb6cfa024833795f859d2d05ff322a07c779528
parentdef315d98926ba021ebd8376ea3885be3b036718
[PowerPC] Stop defining _ARCH_PWR6X on POWER7 and up

Summary:
The predefined macro `_ARCH_PWR6X` is associated with GCC's
`-mcpu=power6x` option, which enables generation of P6 "raw mode"
instructions such as `mftgpr`.

Later POWER processors build upon the "architected mode", not the raw
one. `_ARCH_PWR6X` should not be defined for these later processors.

Fixes PR#40236.

Reviewers: echristo, hfinkel, kbarton, nemanjai, wschmidt

Reviewed By: hfinkel

Subscribers: jsji, cfe-commits

Tags: #clang

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

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