https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89830
--- Comment #9 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Rather than create a new compiler option, it is possible to compile to an assembler file using -S, look for .ascii „bar/foo.f90\0“ and replace with a sed or perl script according to your specification (for example .ascii „foo.f90\0“ and then use the gfortran driver to convert this into foo.o. Advantage: You can do this with any gfortran version.