[PATCH] D107081: [flang] Make `flang` translate `-M{fixed|free}` into `-f{fixed|free}-form`
Andrzej Warzynski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 9 10:06:55 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG41f4d47484db: [flang] Make `flang` translate `-M{fixed|free}` into `-f{fixed|free}-form` (authored by awarzynski).
Changed prior to commit:
https://reviews.llvm.org/D107081?vs=362985&id=365209#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107081/new/
https://reviews.llvm.org/D107081
Files:
flang/tools/f18/flang
Index: flang/tools/f18/flang
===================================================================
--- flang/tools/f18/flang
+++ flang/tools/f18/flang
@@ -209,11 +209,22 @@
[[ $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.
+ # We translate the following into equivalents understood by `flang-new`
[[ $opt == "-Mfixed" ]] || [[ $opt == "-Mfree" ]]; then
- :
+ case $opt in
+ -Mfixed)
+ flang_opts+=("-ffixed-form")
+ ;;
+
+ -Mfree)
+ flang_opts+=("-ffree-form")
+ ;;
+
+ *)
+ echo "ERROR: $opt has no equivalent in 'flang-new'"
+ exit 1
+ ;;
+ esac
elif
# Options that are needed for both Flang and the external driver.
[[ $opt =~ -I.* ]] ||
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107081.365209.patch
Type: text/x-patch
Size: 1006 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210809/306052f5/attachment.bin>
More information about the llvm-commits
mailing list