https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79061
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- So, shall we for (maybe just for in_lto_p) replace pp_string (&module_name_pp, main_input_filename); with something that grabs the module name from VAR_DECL's containing TRANSLATION_UNIT_DECL? Though not sure how well will that work if the variables are C++17 inline vars, or some other comdat vars that LTO merges together, then the TRANSLATION_UNIT_DECL in VAR_DECL's ultimate context still might be different.