https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93865
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I guess this isn't only about the main source files, but about any includes (if they are relative, not absolute). Perhaps when streaming out lto we should stream for each TU also the get_src_pwd () string, and in canon_file_name in lto-streamer-in.c take into account the src pwd read from the current TU vs. get_src_pwd () for the LTO link. If they are the same, don't do any changes, similarly for absolute paths no difference, otherwise canonicalize relative paths for the difference in the paths.