This is the mail archive of the gcc@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: GCC to open the C++ demangle API?


On Mon, Mar 04, 2002 at 06:16:39PM +0100, Carlo Wood wrote:
> 1) Someone spelling out what I need to download/print and sign
>    and what license files and headers I need to add: I am a
>    zero when it comes to legal stuff and not motivated to
>    dive into that I must say.

An explanation of what/why can be found starting at GCC's own pages:
http://gcc.gnu.org/contribute.html and the following the "see some docs"
link for more.

I'll send you the forms by private email shortly.


> 2) The exact API description that people want me to implement.
[...]
> > All you would need to do would be to add the __cxa_demangle and
> > cplus_demangle_v3 entry points.
> 
> That doesn't tell me much.

To be a drop-in replacement for the libiberty stuff, you would need to
provide those two functions as wrappers to your own demangler.  That way
existing code won't change.  Take a look at libiberty/cp-demangle.c.

The cplus_demangle_v3 is the more public entry point, I /think/, and
the __cxa_demangle one is for completeness with the rest of the new ABI.
There are a couple of places in libcups++ where it's almost called, but
avoided with a comment saying, "must wait until it's LGPL."


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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