[all-commits] [llvm/llvm-project] 41bcfe: [AIX] Define _ARCH_PPC64 macro for 32-bit

Jake Egan via All-commits all-commits at lists.llvm.org
Fri Aug 6 07:43:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41bcfe81742ed6462096ccb42aa5f2b9d67027fc
      https://github.com/llvm/llvm-project/commit/41bcfe81742ed6462096ccb42aa5f2b9d67027fc
  Author: Jake Egan <Jake.Egan at ibm.com>
  Date:   2021-08-06 (Fri, 06 Aug 2021)

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

  Log Message:
  -----------
  [AIX] Define _ARCH_PPC64 macro for 32-bit

%%%
The macro _ARCH_PPC64 is already defined for 64-bit, but this patch defines it for 32-bit on AIX to follow xlc. See: https://www.ibm.com/docs/en/xl-c-and-cpp-aix/13.1.0?topic=features-macros-related-architecture-settings

Note: This change creates a discrepancy between GCC, which defines _ARCH_PPC64 only for 64-bit mode.

Tested with SPEC.
%%%

Reviewed By: cebowleratibm

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




More information about the All-commits mailing list