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: RFA: Please review the new C++ demangler patch


On Fri, Jun 27, 2003 at 10:06:56PM +0200, Gabriel Dos Reis wrote:
> Benjamin Kosnik <bkoz@redhat.com> writes:
> 
> | >2. libdemangle has few use for libstdc++. It is not a big deal,
> | >but maybe confusing to users.
> | 
> | Right. I was just using this to explain the idea. In reality, there
> | needs to be a __cxa_demangle in libsupc++, irregardless: libdemangle
> | should just link it from there and be done. Still, it's easier to
> | express the dependency info this way.
> 
> I do not believe there is any need to have libdemangle separate from
> libstdc++. I do not believe taking the demangler out of libstdc++
> would really solve the core issues.

It needs to be outside of libstdc++ so that programs wishing for only core
support can still use it.  That's why it was moved to libsupc++, so that...

    gcc a_c++_program_only_using_clause_18.cc -lsupc++

...a.out does not depend on libstdc++.so at runtime.  For more information,
see PR 10246.

Of course, since the demangler in question uses symbols from libstdc++, we
/still/ wouldn't have fixed that PR.


-- 
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]