This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: demengler in libstdc++ is changed
> Absolutely. I was under the impression that the demangler just used
> std::vector and a few other features, not the full runtime.
Don't forget "new", which needs at least libsupc++
> In any case, it is straightforward to link in parts of the C++
> runtime as needed, converting them to C if you wish.
It is NOT straightforward to do that if you're building with the
host's bundled compiler, especially if it does not have a C++ runtime.
The biggest user of libiberty's demangler, gdb, has made it clear that
a C++-based demangler would not be acceptable. I wish the "new"
demangler had been written in C to start with, so we could have
avoided all these problems in the first place.
> > or if the compiler needed is non-free (or even just difficult to
> > obtain).
>
> LLVM is freely available (and easy to obtain):
> http://llvm.cs.uiuc.edu/releases/
In the context of the GCC project, requiring a second compiler just to
maintain GCC seems, well, dirty.