[PATCH] D106428: [flang][driver] Make `flang` ignore `-Mfree/-Mfixed`
Andrzej Warzynski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 22 07:56:51 PDT 2021
awarzynski updated this revision to Diff 360814.
awarzynski added a comment.
Remove the warning
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106428/new/
https://reviews.llvm.org/D106428
Files:
flang/tools/f18/flang.in
Index: flang/tools/f18/flang.in
===================================================================
--- flang/tools/f18/flang.in
+++ flang/tools/f18/flang.in
@@ -210,6 +210,12 @@
[[ $opt =~ ^-U.* ]] ||
[[ $opt == "-Werror" ]]; then
flang_opts+=($opt)
+ elif
+ # These options are not supported by `flang-new`. There is also no point
+ # in forwarding them to the host compiler as the output from
+ # `-fdebug-unparse` will always be in free form.
+ [[ $opt == "-Mfixed" ]] || [[ $opt == "-Mfree" ]]; then
+ :
elif [[ $opt =~ -I.* ]] || [[ $opt =~ -J.* ]]; then
# Options that are needed for both Flang and the external driver.
flang_opts+=($opt)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106428.360814.patch
Type: text/x-patch
Size: 714 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210722/1af1f127/attachment.bin>
More information about the llvm-commits
mailing list