[Bug c++/64266] Can GCC produce local mergeable symbols for *.__FUNCTION__ and *.__PRETTY_FUNCTION__ functions?

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 5 16:16:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64266

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #1)
> C++11 says that the address of __func__ can be the same as address of other
> string literals, so I think that allows putting it into mergeable section.
> But what isn't clear to me is if __func__ is used in some inline function,
> if the standard allows __func__ to have different addresses between
> different compilation units.

The Core WG seems to be moving toward dropping the requirement that string
literals have the same address in different compilation units, so I think we
don't need to worry about __func__ either.



More information about the Gcc-bugs mailing list