Stop clang 13 from defining conflicting macros on PowerPC
authorDimitry Andric <dim@FreeBSD.org>
Fri, 1 Oct 2021 19:43:21 +0000 (21:43 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 13 Nov 2021 20:52:23 +0000 (21:52 +0100)
commit39dadd0628cd1f28be39a3ab35969545b7401623
tree357ab2f8d7d3f744695e53553bd580b7e3b52366
parent28a41182c08e79534be77131840bcfdf73d31343
Stop clang 13 from defining conflicting macros on PowerPC

Merge commit c9539f957f57 from llvm git (by Nemanja Ivanovic):

  [PowerPC] Define XL-compatible macros only for AIX and Linux

  Since XLC only ever shipped on PowerPC AIX and Linux, it is not
  reasonable to provide the compatibility macros on any target other
  than those two. This patch restricts those macros to AIX/Linux.

  Differential revision: https://reviews.llvm.org/D110213

PR: 258209
contrib/llvm-project/clang/lib/Basic/Targets/PPC.cpp