https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108464
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Dunno about other uses of remap_filename, but for remap_debug_filename what that commit changed doesn't seem to be ever appropriate. Users pass often pass what they get from pwd to -fdebug-prefix-map=, and that is usually not the canonicalized path. And DW_AT_comp_dir was that same path as well and IMHO it would be a very bad idea to change that. Debug info contains relative paths in many cases, that also shouldn't be canonicalized, should be whatever user used in -I etc. options or #include paths etc. If one is mixing absolute paths and some are canonical and others aren't, one can use multiple -fdebug-prefix-map= options. But ignoring what user asked for is just wrong.