This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: C++ demangler horrors
- From: Phil Edwards <phil at jaj dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: "H. J. Lu" <hjl at lucon dot org>, "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, gcc at gcc dot gnu dot org, neroden at twcny dot rr dot com, libstdc++ at gcc dot gnu dot org
- Date: Fri, 27 Jun 2003 17:13:00 -0400
- Subject: Re: C++ demangler horrors
- References: <20030626170806.GA1119@doctormoo> <20030626172655.GA21939@lucon.org> <200306261848.OAA24657@caip.rutgers.edu> <20030626185150.GD23280@lucon.org> <200306261859.OAA26891@caip.rutgers.edu> <m33chve2au.fsf@uniton.integrable-solutions.net> <20030627194743.GA14028@lucon.org> <m38yrncjx2.fsf@uniton.integrable-solutions.net>
On Fri, Jun 27, 2003 at 11:03:37PM +0200, Gabriel Dos Reis wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
> |
> | It will be used for libiberty, not libstdc++-v3.
>
> I'm not a big fan of code duplication. Having to maintain two
> implementations of the demangler is not something I would recommand.
Exactly. More to the point, we have yet to find a volunteer to maintain
the /new/ new demangler. It would be discourteous to expect Carlo to
maintain both the real demangler as well as this "adapted" one.
Someone has volunteered to write or submit miniature versions of string
and vector, but I haven't heard whether he also plans to maintain those.
This is turning into a mess.
> This is a classic boostrap problem, if the only tools available for
> boostrapping are bare metal and genuine C compiler, then, one can
> just add a bootstrap stage -- building cc1plus and libstdc++. But, I
> suspect that most of the time, in addition of the C compiler, we also
> have a C++ compiler.
Yes, and what's more, the extra bootstrap stage(s) that people seem
determined to avoid only needs to be done /once/, ever. Then the system
/has/ a C++ compiler. What's more, it's a damn good one, because it's ours!
--
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