[all-commits] [llvm/llvm-project] 125abb: [flang][driver] Ensure negative flags have the sam...

Tom Eccles via All-commits all-commits at lists.llvm.org
Tue Aug 29 02:54:09 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 125abbdc97671d8300cfc1ebcc010d8d4248974b
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M flang/test/Driver/driver-help-hidden.f90
    M flang/test/Driver/driver-help.f90
    A flang/test/Driver/fintegrated-as.f90
    R flang/test/Driver/fno-integrated-as.f90

  Log Message:
  [flang][driver] Ensure negative flags have the same visibility as positive

https://reviews.llvm.org/D157151 and https://reviews.llvm.org/D157837
added visibility flags to flang options, hiding options which are
supported only in Clang and not in Flang.

After this change, some negative flags e.g. `-fno-reciprocal-math` no
longer work with flang. These flags are supported in flang (as can be
seen from the support for the positive flags).

I also opted to make sure the clang visibility is the same on these
flags, although I did not look at changing the visibility of non-flang

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

More information about the All-commits mailing list