[flang-commits] [flang] Adding warning for Master as it is deprecated in 5.2 (PR #98955)

Michael Klemm via flang-commits flang-commits at lists.llvm.org
Tue Jul 16 08:25:28 PDT 2024


================
@@ -2758,4 +2758,12 @@ void OmpAttributeVisitor::AddOmpRequiresToScope(Scope &scope,
   } while (!scopeIter->IsGlobal());
 }
 
+void OmpAttributeVisitor::IssueNonConformanceWarning(
+    llvm::omp::Directive D, parser::CharBlock source) {
+  if (context_.ShouldWarn(common::UsageWarning::OpenMPUsage)) {
+    context_.Say(source,
+        "Usage of directive %s is non-confirming to OpenMP standard"_warn_en_US,
----------------
mjklemm wrote:

Maybe something like;

OpenMP directive 'master' has been deprecated; please use 'masked' instead.

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


More information about the flang-commits mailing list