[all-commits] [llvm/llvm-project] cad2af: [flang][driver] Make `flang` ignore `-Mfree/-Mfixed`

Andrzej WarzyƄski via All-commits all-commits at lists.llvm.org
Tue Jul 27 05:13:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cad2affb789201f0d7ccb4b5542f652b37c51c3a
      https://github.com/llvm/llvm-project/commit/cad2affb789201f0d7ccb4b5542f652b37c51c3a
  Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M flang/tools/f18/flang.in

  Log Message:
  -----------
  [flang][driver] Make `flang` ignore `-Mfree/-Mfixed`

`-Mfixed` is not supported by the new driver and hence
`flang`, the bash wrapper script, forwards it to the host compiler.
The forwarded options are used by the host compiler when compiling the
unparsed files. As the unparsed source files are always in the free
form, forwarding `-Mfixed` is problematic.

With this patch, `-Mfixed` (and `-Mfree` for consistency) will be
ignored altogether. The user will only see a warning. This is not a
particularly sound approach, but `flang` is only a temporary solution
for us and this workaround is a fair compromise.

Differential Revision: https://reviews.llvm.org/D106428




More information about the All-commits mailing list