[all-commits] [llvm/llvm-project] 197d9a: [flang][driver] Add standard macro predefinitions ...

Faris via All-commits all-commits at lists.llvm.org
Tue Jan 19 05:24:33 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 197d9a55f105391f34a0657e6c1d5ef3166dad7d
      https://github.com/llvm/llvm-project/commit/197d9a55f105391f34a0657e6c1d5ef3166dad7d
  Author: Faris Rehman <faris.rehman at arm.com>
  Date:   2021-01-19 (Tue, 19 Jan 2021)

  Changed paths:
    M flang/lib/Frontend/CompilerInvocation.cpp
    A flang/test/Flang-Driver/predefined-macros-compiler-version.f90

  Log Message:
  -----------
  [flang][driver] Add standard macro predefinitions for compiler version

Add the following standard predefinitions that f18 supports:
  * `__flang__`,
  * `__flang_major__`,
  * `__flang_minor__`,
  * `__flang_patchlevel__`

Summary of changes:
- Populate Fortran::parser::Options#predefinitions with the default
  supported predefinitions

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




More information about the All-commits mailing list