This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use cxx_printable_name for __PRETTY_FUNCTION__ in cp_fname_init.
- From: Jason Merrill <jason at redhat dot com>
- To: Martin Liška <mliska at suse dot cz>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 28 Aug 2019 16:19:34 -0400
- Subject: Re: [PATCH] Use cxx_printable_name for __PRETTY_FUNCTION__ in cp_fname_init.
- References: <4f1b83f0-b967-c2c7-3164-7fb86e84e025@suse.cz>
On 8/28/19 12:29 PM, Martin Liška wrote:
The patch restores behavior before r265711 where we used
cxx_printable_name for __PRETTY_FUNCTION__.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
Ready to be installed?
Thanks,
Martin
gcc/c-family/ChangeLog:
2019-08-27 Martin Liska <mliska@suse.cz>
PR c++/91155
* c-common.c (fname_as_string): Use cxx_printable_name for
__PRETTY_FUNCTION__ same as was used before r265711.
- if (name)
- free (CONST_CAST (char *, name));
This creates a memory leak for the fname_as_string case.
Jason