https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96069
Bug ID: 96069
Summary: -ffile-prefix-map does not affect print in gfortran
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: yyc1992 at gmail dot com
Target Milestone: ---
Compiling the following code `a.f`
```
subroutine f(name)
implicit none
character*(*) name
print *,name
return
end
```
with `gfortran -fdebug-prefix-map="${PWD}"=/usr/src/debug
-ffile-prefix-map="${PWD}"=/usr/src/debug -O3 -fPIC "${PWD}/"a.f -o - -S` will
cause the full path to the file to be included in the generated assembly
without respecting the prefix map. This works in C with `-ffile-prefix-map`
which implies `-fmacro-prefix-map` but the lattr isn't supported by gfortran.