[all-commits] [llvm/llvm-project] e53848: [Driver] Fix erroneous warning for -fcx-limited-ra...

Zahira Ammarguellat via All-commits all-commits at lists.llvm.org
Wed Jan 31 06:20:48 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e538486e90539096e7851d0deba4ea9ed94fced2
      https://github.com/llvm/llvm-project/commit/e538486e90539096e7851d0deba4ea9ed94fced2
  Author: Zahira Ammarguellat <zahira.ammarguellat at intel.com>
  Date:   2024-01-31 (Wed, 31 Jan 2024)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/range.c

  Log Message:
  -----------
  [Driver] Fix erroneous warning for -fcx-limited-range and -fcx-fortran-rules. (#79821)

The options `-fcx-limited-range` and `-fcx-fortran-rules` were added in
_https://github.com/llvm/llvm-project/pull/70244_

The code adding the options introduced an erroneous warning.
`$ clang -c -fcx-limited-range t1.c` 
`clang: warning: overriding '' option with '-fcx-limited-range'
[-Woverriding-option]`
and
`$ clang -c -fcx-fortran-rules t1.c`
`clang: warning: overriding '' option with '-fcx-fortran-rules'
[-Woverriding-option]`

The warning doesn't make sense. This patch removes it.




More information about the All-commits mailing list