[all-commits] [llvm/llvm-project] 987258: [Flang] Add __powerpc__ macro to set c_intmax_t to...

Daniel Chen via All-commits all-commits at lists.llvm.org
Tue Feb 13 08:04:06 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 987258f5c7801ebb4f7ce7c6a035634b275a5759
      https://github.com/llvm/llvm-project/commit/987258f5c7801ebb4f7ce7c6a035634b275a5759
  Author: Daniel Chen <cdchen at ca.ibm.com>
  Date:   2024-02-13 (Tue, 13 Feb 2024)

  Changed paths:
    M flang/lib/Frontend/CompilerInvocation.cpp
    M flang/module/iso_c_binding.f90
    A flang/test/Driver/predefined-macros-powerpc.f90

  Log Message:
  -----------
  [Flang] Add __powerpc__ macro to set c_intmax_t to c_int64_t rather than c_int128_t as PowerPC only supports up to c_int64_t. (#81222)

PowerPC only supports up to `c_int64_t`. Add macro `__powerpc__` and
preprocess it for setting `c_intmax_t` in `iso_c_binding` intrinsic
module.




More information about the All-commits mailing list