[PATCH] fold_builtin_FUNCTION

Nathan Sidwell nathan@acm.org
Thu Jun 29 14:03:00 GMT 2017


I notied the __builtin_FUNCTION () builtin was using raw DECL_NAME,
which for C++ dtors and conversion operators gives non-useful names.
(no ~ and 'operator N' for N= some int).

This patch fixes its folder to use the lang hook that provides a 
printable name.  I did contemplate passing 1 (add scope) to the hook, 
but decided against changing that.

Applied as obvious.

nathan

-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bltin-func.diff
Type: text/x-patch
Size: 20391 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170629/1b227716/attachment.bin>


More information about the Gcc-patches mailing list