[all-commits] [llvm/llvm-project] ce3a1c: [flang] Handle unsupported warning flags

Ethan Luis McDonough via All-commits all-commits at lists.llvm.org
Tue Feb 21 14:14:34 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce3a1c59e18027e7d18a2a0a99e4bc81ccc03491
  Author: Ethan Luis McDonough <ethanluismcdonough at gmail.com>
  Date:   2023-02-21 (Tue, 21 Feb 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Flang.cpp
    M flang/docs/FlangDriver.md
    M flang/lib/Frontend/CompilerInvocation.cpp
    A flang/test/Driver/w-arg-unsupported.f90
    A flang/test/Driver/werror-all.f90
    A flang/test/Driver/wextra-ok.f90

  Log Message:
  [flang] Handle unsupported warning flags

This PR makes flang emit a warning when the user passes an unsupported gfortran warning flag in as a CLI arg.  This PR also checks each `-W` argument instead of just looking at the last one passed in.

Reviewed By: awarzynski

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

More information about the All-commits mailing list