RFA: Please review the new C++ demangler patch

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


>Do you have any suggestions? The main problem is demangler, which
>is the part of libibert, depends on libstdc++ and libstdc++ depends
>on libiberty. But demangler only needs the header files from libstdc++.
>Is there a way out?

H.J. - sorry to have left you to battle this alone. 

Perhaps the solution is to take the C++ demangling code out of
libstdc++. Also, take it out of libiberty. Put it into a separate
library, that can be built after both of them.

Then, build order can be preserved. 

libiberty
libstdc++
libdemangle (iff libstdc++, use C++, else lose and use weaker cp_demangle)

-benjamin



More information about the Gcc mailing list