RFA: Please review the new C++ demangler patch

Benjamin Kosnik bkoz@redhat.com
Thu Jun 26 18:49:00 GMT 2003


>Think a developer who has to support different platforms or
>a package which has no real maintainer, compatibility is very
>important. We shouldn't break compatibility just because it
>may make our lives easier.

I think there are problems no matter what is done. This includes doing
nothing.

The idea proposed seems the best solution to me. Obviously, opinions
differ. Perhaps there are other ideas: Joe had some others (one similar,
the others less satisfactory.)

>Are you suggesting libdemangle should depend on a C++ library?

If

libiberty
libstdc++
libdemangle

is the build order, and libstdc++ is built, then yes: libdemangle should
use __cxa_demangle. 

If gcc is configured without C++ support, but demangling C++
symbols is desired (comment withheld), then the current "C" libiberty
demangling code could be used as a fall-back (ie cp-demangle).

-benjamin



More information about the Gcc mailing list