This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][RFC] Malloc-less demangler interface


Ian Lance Taylor wrote:

I don't think it helps.  what() apparently is supposed to return a
const char*.  The new interface to the demangling code still doesn't
give you any way to free the required memory buffer.

The new interface lets you avoid allocating any memory when you call
the demangler. But it doesn't have any magic to help if you need to
return the result somewhere.


I see, thanks for the explanation. Any personal opinion about the PR? I mean, if Icc also doesn't demangle (anymore) and implementing such behavior apparently is almost impossible, we could as well close the PR as WONTFIX or NOTABUG...

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]