https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104407
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #52362|0 |1 is obsolete| | --- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 52364 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52364&action=edit gcc12-pr104407.patch Updated patch. Hope it doesn't do more harm for -fcompare-debug, I'm not really sure if e.g. mangling something doesn't force some instantiations that wouldn't otherwise happen. And this patch can mangle even things that weren't mangled before with the PR96690 change, though I guess reference_to_unused calls during early_dwarf are just random lottery.