https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89961
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- Note that the intermediate format provides 'current_working_directory' value that should be easily used to distinguish among same files in different folders? Does it work for you?