[all-commits] [llvm/llvm-project] 541f5c: Flang implementation for COMPILER_VERSION and COMP...

Hugh Kadhem via All-commits all-commits at lists.llvm.org
Thu Jun 1 09:35:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 541f5c4a6db35870091dd15dfa09dde751229a17
      https://github.com/llvm/llvm-project/commit/541f5c4a6db35870091dd15dfa09dde751229a17
  Author: Hussain Kadhem <hmk at berkeley.edu>
  Date:   2023-06-01 (Thu, 01 Jun 2023)

  Changed paths:
    A flang/include/flang/Common/Version.h
    M flang/include/flang/Evaluate/target.h
    M flang/include/flang/Frontend/CompilerInvocation.h
    M flang/lib/Common/CMakeLists.txt
    A flang/lib/Common/Version.cpp
    M flang/lib/Evaluate/fold-character.cpp
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/lib/Frontend/CompilerInvocation.cpp
    M flang/module/__fortran_builtins.f90
    M flang/module/iso_fortran_env.f90
    A flang/test/Driver/compiler_options.f90
    A flang/test/Evaluate/compiler_options_fc1.f90
    A flang/test/Evaluate/compiler_version.f90
    M flang/tools/flang-driver/driver.cpp
    M flang/tools/flang-driver/fc1_main.cpp

  Log Message:
  -----------
  Flang implementation for COMPILER_VERSION and COMPILER_OPTIONS intrinsics

This revision implements the Fortran intrinsic procedures COMPILER_VERSION and COMPILER_OPTIONS from the iso_fortran_env module.
To be able to set the COMPILER_OPTIONS string according to the original compiler driver invocation, a string is passed to the frontend driver using the environment variable FLANG_COMPILER_OPTIONS_STRING, for lack of a better mechanism.

Fixes #59233

Reviewed By: awarzynski

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




More information about the All-commits mailing list