[all-commits] [llvm/llvm-project] 577827: [flang][driver] Make --version and -version consis...

Emil Kieri via All-commits all-commits at lists.llvm.org
Mon Mar 28 14:01:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 577827cbbf1033612d6ce15169f33ee5709abbfc
      https://github.com/llvm/llvm-project/commit/577827cbbf1033612d6ce15169f33ee5709abbfc
  Author: Emil Kieri <j.emil.kieri at gmail.com>
  Date:   2022-03-28 (Mon, 28 Mar 2022)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M flang/test/Driver/driver-help.f90
    M flang/test/Driver/driver-version.f90

  Log Message:
  -----------
  [flang][driver] Make --version and -version consistent with clang

This patch makes -version valid, and --version invalid, for
flang-new -fc1. The invocation
  flang-new --version
remains valid. This behaviour is consistent with clang
(and with clang -cc1 and clang -cc1as).

Previously, flang-new -fc1 accepted --version (as per Options.td), but
the frontend driver acutally checks for -version. As a result,
  flang-new -fc1 --version
triggered no action, emitted no message, and stalled waiting for
standard input.

Fixes #51438

Reviewed By: PeteSteinfeld, awarzynski

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




More information about the All-commits mailing list