[flang-commits] [clang] [flang] [Flang][OpenMP] Add -fopenmp-default-none command line flag (PR #120287)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Tue Dec 17 11:51:42 PST 2024


================
@@ -3596,6 +3596,9 @@ def fopenmp : Flag<["-"], "fopenmp">, Group<f_Group>,
   Flags<[NoArgumentUnused]>,
   Visibility<[ClangOption, CC1Option, FlangOption, FC1Option]>,
   HelpText<"Parse OpenMP pragmas and generate parallel code.">;
+def fopenmp_default_none : Flag<["-"], "fopenmp-default-none">, Group<f_Group>,
+  Visibility<[FlangOption, FC1Option]>,
+  HelpText<"Add DEFAULT(NONE) to all OpenMP directives that allow data-sharing clauses.">;
----------------
kiranchandramohan wrote:

This seems to be a useful flag. Is there a precedent in other compiler?

https://github.com/llvm/llvm-project/pull/120287


More information about the flang-commits mailing list