[all-commits] [llvm/llvm-project] 37f23e: [AIX][PowerPC] Define __powerpc and __PPC macros

Jake Egan via All-commits all-commits at lists.llvm.org
Thu Sep 2 10:33:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37f23ea97fdef4484ef33877c6d8464beafd3b0f
      https://github.com/llvm/llvm-project/commit/37f23ea97fdef4484ef33877c6d8464beafd3b0f
  Author: Jake Egan <Jake.Egan at ibm.com>
  Date:   2021-09-02 (Thu, 02 Sep 2021)

  Changed paths:
    M clang/lib/Basic/Targets/PPC.cpp
    M clang/test/Preprocessor/init-ppc.c

  Log Message:
  -----------
  [AIX][PowerPC] Define __powerpc and __PPC macros

%%%
This patch defines the macros __powerpc and __PPC on AIX to be consistent with XL for AIX. See: https://www.ibm.com/docs/en/xl-c-and-cpp-aix/13.1.0?topic=macros-related-platform

Note: GCC does not currently define __powerpc and __PPC so users should prefer the __powerpc__ and __PPC__ forms.
%%%

Reviewed By: cebowleratibm

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




More information about the All-commits mailing list