[PATCH] D100883: [flang][driver][Revert] Reverts f18 to allow options passed to -W
Arnamoy B via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 22 04:56:57 PDT 2021
arnamoy10 updated this revision to Diff 339569.
arnamoy10 retitled this revision from "[flang][driver][revert] Revert f18 code so that options passed to -W does not not cause compilation termination." to "[flang][driver][Revert] Reverts f18 to allow options passed to -W".
arnamoy10 edited the summary of this revision.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100883/new/
https://reviews.llvm.org/D100883
Files:
flang/test/Driver/werror-wrong.f90
flang/tools/f18/f18.cpp
Index: flang/tools/f18/f18.cpp
===================================================================
--- flang/tools/f18/f18.cpp
+++ flang/tools/f18/f18.cpp
@@ -514,11 +514,6 @@
} else if (arg.find("-W") != std::string::npos) {
if (arg == "-Werror")
driver.warningsAreErrors = true;
- else {
- // Only -Werror is supported currently
- llvm::errs() << "Only `-Werror` is supported currently.\n";
- return EXIT_FAILURE;
- }
} else if (arg == "-ed") {
options.features.Enable(Fortran::common::LanguageFeature::OldDebugLines);
} else if (arg == "-E") {
Index: flang/test/Driver/werror-wrong.f90
===================================================================
--- flang/test/Driver/werror-wrong.f90
+++ flang/test/Driver/werror-wrong.f90
@@ -1,4 +1,5 @@
! Ensure that only argument -Werror is supported.
+! REQUIRES: new-flang-driver
! RUN: not %flang_fc1 -fsyntax-only -Wall %s 2>&1 | FileCheck %s --check-prefix=WRONG
! RUN: not %flang_fc1 -fsyntax-only -WX %s 2>&1 | FileCheck %s --check-prefix=WRONG
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100883.339569.patch
Type: text/x-patch
Size: 1077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210422/81306ae9/attachment.bin>
More information about the llvm-commits
mailing list