diff options
author | Tom Eccles <tom.eccles@arm.com> | 2025-04-02 10:43:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-02 10:43:48 +0100 |
commit | 9b2fd1a6ec935b2e31bb2b6fda82b7377b9bbf79 (patch) | |
tree | 4032f55f12632325ab13b26a8128da8f6e315fba /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 3f8bfc9f7fc788af63e52b5e804a2d6ab92321ac (diff) | |
download | llvm-9b2fd1a6ec935b2e31bb2b6fda82b7377b9bbf79.zip llvm-9b2fd1a6ec935b2e31bb2b6fda82b7377b9bbf79.tar.gz llvm-9b2fd1a6ec935b2e31bb2b6fda82b7377b9bbf79.tar.bz2 |
[flang][OpenMP] Bump default OpenMP version to 3.1 (#133745)
Precise OpenMP standards support information is being documented in
#132707
Flang now has good support for OpenMP Version 3.1 and earlier.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index 1ea7834..466d939 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -1108,8 +1108,8 @@ static bool parseOpenMPArgs(CompilerInvocation &res, llvm::opt::ArgList &args, unsigned numErrorsBefore = diags.getNumErrors(); llvm::Triple t(res.getTargetOpts().triple); - // By default OpenMP is set to 1.1 version - res.getLangOpts().OpenMPVersion = 11; + // By default OpenMP is set to 3.1 version + res.getLangOpts().OpenMPVersion = 31; res.getFrontendOpts().features.Enable( Fortran::common::LanguageFeature::OpenMP); if (int Version = getLastArgIntValue( |