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 Tuesday, March 05, 2002 09:14:06 PM +1300 Ross Smith 
<r-smith@ihug.co.nz> wrote:

> Zack Weinberg wrote:
>>
>> Dunno about Carlo's situation specifically, but there is a very real
>> problem within GCC (extended sense)'s own tree with the current
>> license of the demangler.  The libstdc++ and libgcj libraries are
>> supposed to implement interfaces which expose the functionality of the
>> demangler.  They have licenses which are more permissive than the GPL.
>> We cannot link the demangler into these libraries, or its license
>> would force us to apply the GPL's restrictions to them as well.
>> Therefore we cannot implement all the interfaces that users expect.
>
> Is this why std::typeinfo::name() is still returning the mangled names
> instead of human-readable ones?

No; that is because the ABI standard specifies that it return mangled
names.

You're then supposed to be able to call the demangler -- but that's
the bit that's missing.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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