https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64266
--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Jason Merrill from comment #7) > Reverted the patch due to bootstrap problems on some targets. > > Martin, have you tried just building with -fmerge-all-constants? That > should provide the effect you are looking for, until the C++ committee > decides something about whether __func__ can be shared. Hello Jason. Thanks for working on that. I can confirm that having a pair of source files, both using a class mentioned in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64266#c0, the strings are present just once in a binary. The only potential improvement is presence of the symbol in symtab which has been probably reverted by you due to bootstrap breakage, right?