[flang-commits] [PATCH] D83687: [flang] Extended the flang driver options to include gfortran equivalents to pgf90 specific options.
Alexis Perry-Holby via Phabricator via flang-commits
flang-commits at lists.llvm.org
Mon Jul 13 10:58:21 PDT 2020
AlexisPerry updated this revision to Diff 277492.
AlexisPerry added a comment.
Herald added a subscriber: sstefan1.
Correction for handling of OpenMP enabling flags
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83687/new/
https://reviews.llvm.org/D83687
Files:
flang/tools/f18/f18.cpp
Index: flang/tools/f18/f18.cpp
===================================================================
--- flang/tools/f18/f18.cpp
+++ flang/tools/f18/f18.cpp
@@ -639,21 +639,26 @@
if (driver.warnOnNonstandardUsage) {
options.features.WarnOnAllNonstandard();
}
- if (options.features.IsEnabled(Fortran::common::LanguageFeature::OpenMP)) {
- driver.pgf90Args.push_back("-mp");
- }
if (isPGF90) {
if (!options.features.IsEnabled(
Fortran::common::LanguageFeature::BackslashEscapes)) {
driver.pgf90Args.push_back(
"-Mbackslash"); // yes, this *disables* them in pgf90
}
+ if (options.features.IsEnabled(Fortran::common::LanguageFeature::OpenMP)) {
+ driver.pgf90Args.push_back("-mp");
+ }
+
Fortran::parser::useHexadecimalEscapeSequences = false;
} else {
if (options.features.IsEnabled(
Fortran::common::LanguageFeature::BackslashEscapes)) {
driver.pgf90Args.push_back("-fbackslash");
}
+ if (options.features.IsEnabled(Fortran::common::LanguageFeature::OpenMP)) {
+ driver.pgf90Args.push_back("-fopenmp");
+ }
+
Fortran::parser::useHexadecimalEscapeSequences = true;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83687.277492.patch
Type: text/x-patch
Size: 1194 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20200713/9dde841e/attachment-0001.bin>
More information about the flang-commits
mailing list