c++: Simplify __FUNCTION__ creation

Nathan Sidwell nathan@acm.org
Fri Oct 2 12:01:07 GMT 2020


I had reason to	wander into cp_make_fname, and noticed it's the	only
caller of cp_fname_init.  Folding it in	makes the code simpler.

	gcc/cp/
	* cp-tree.h (cp_fname_init): Delete declaration.
	* decl.c (cp_fname_init): Merge into only caller ...
	(cp_make_fname): ... here & refactor.

pushing to trunk

nathan

-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: __FUNCTION__.diff
Type: text/x-patch
Size: 4252 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201002/10536c38/attachment.bin>


More information about the Gcc-patches mailing list