Hi Yichao,
Forwarding to fort...@gcc.gnu.org as suggested by Dominique d'Humieres.
On Sun, Jul 5, 2020 at 9:29 PM Yichao Yu <yyc1...@gmail.com> wrote:
I think this remapping should happen with `file-prefix-map` but
shouldn't with `debug-prefix-map` (though if it happens for both it's
also not too bad) and I believe this patch is the minimum change to
achieve that. I think it makes sense to make this follow
`macro-prefix-map` although I'm not sure if this is a macro... (OTOH,
__builtin_FILE isn't a macro either so maybe it's fine?). I haven't
figured out how I can allow the option in gfortran or how to document
this new behavior though (e.g. I actually don't know what this is
called in fortran...)
I am not sure that -fmacro-prefix-map is the right name here.
The file names recorded in the Fortran source file are not macros,
so I think that -ffile-prefix-maps makes sense, -fmacro-prefix-map
does not.
Best regards
Thomas