The flang/tools/f18/flang script sets the module suffix to
.f18.mod. With this change:
- .f18.mod becomes the default suffix for module files in Flang
- we no longer require a bash wrapper script for the old driver
Paths
| Differential D101459
[flang] Change the default module suffix from .mod to f18.mod AbandonedPublic Authored by awarzynski on Apr 28 2021, 7:31 AM.
Details
Diff Detail
Event TimelineComment Actions This is a bad idea. The default module file name suffix should be ".mod"; the world is full of Makefiles and scripts expecting Fortran modules to be "*.mod". This revision now requires changes to proceed.Apr 28 2021, 9:06 AM Comment Actions From offline discussions (Slack & a community call): the flang script is needed when calling an external compiler specified via F18_FC. It makes sure that there's no clash between module files generated by Flang and the compiler specified with F18_FC. Comment Actions
Thank you for your comment. I wasn't sure what the rationale behind flang/tools/f18/flang and -module-suffix .f18.mod was. This is now clear and I see why we should keep .mod. I've already abandoned this.
Revision Contents
Diff 341199 flang/include/flang/Semantics/semantics.h
flang/test/Driver/Inputs/basictestmoduleone.f18.mod
flang/test/Driver/Inputs/basictestmoduleone.mod
flang/test/Driver/Inputs/ieee_arithmetic.f18.mod
flang/test/Driver/Inputs/ieee_arithmetic.mod
flang/test/Driver/Inputs/iso_fortran_env.f18.mod
flang/test/Driver/Inputs/iso_fortran_env.mod
flang/test/Driver/Inputs/module-dir/basictestmoduleone.f18.mod
flang/test/Driver/Inputs/module-dir/basictestmoduleone.mod
flang/test/Driver/Inputs/module-dir/basictestmoduletwo.f18.mod
flang/test/Driver/Inputs/module-dir/basictestmoduletwo.mod
flang/test/Driver/fdefault.f90
flang/test/Driver/flarge-sizes.f90
flang/test/Driver/write-module.f90
flang/test/Semantics/Inputs/modfile09-a.f90
flang/test/Semantics/Inputs/modfile09-b.f90
flang/test/Semantics/Inputs/modfile09-c.f90
flang/test/Semantics/Inputs/modfile09-d.f90
flang/test/Semantics/getsymbols02.f90
flang/test/Semantics/resolve12.f90
flang/test/Semantics/resolve26.f90
flang/test/Semantics/test_modfile.sh
flang/tools/f18/CMakeLists.txt
flang/tools/f18/f18.cpp
flang/tools/f18/flang
|