[flang-commits] [clang] [flang] [flang][Driver] Add support for -f[no]keep-inline-functions option (PR #230007)
via flang-commits
flang-commits at lists.llvm.org
Mon Oct 19 22:51:23 PDT 2026
================
@@ -169,3 +165,24 @@
! CHECK-WARNING-DAG: optimization flag '-ftree-ter' is not supported
! CHECK-WARNING-DAG: optimization flag '-ftree-vrp' is not supported
! CHECK-WARNING-DAG: optimization flag '-fno-devirtualize' is not supported
+!
+! ------------------------------------------------------------------------------
+! Unlike the gfortran-specific optimization flags above, -fkeep-inline-functions
+! and -fno-keep-inline-functions are implemented by Flang, so using them must
+! not produce the "optimization flag ... is not supported" warning, or any
+! other warning. Neither flag is the default: the driver forwards nothing to
+! fc1 unless -fkeep-inline-functions wins.
----------------
shivaramaarao wrote:
yes. this test was in this file and the purpose was to give warning for fkeep-inline-functions and -fno-keep-inline-functions.
I have addressed the other comments.
https://github.com/llvm/llvm-project/pull/230007
More information about the flang-commits
mailing list