[PATCH] Use cxx_printable_name for __PRETTY_FUNCTION__ in cp_fname_init.
Jason Merrill
jason@redhat.com
Sun Sep 1 22:04:00 GMT 2019
On 8/29/19 2:37 AM, Martin Liška wrote:
> On 8/28/19 10:19 PM, Jason Merrill wrote:
>> 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
>>
>
> Sure, fixed in the updated patch.
OK.
Jason
More information about the Gcc-patches
mailing list