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: C++ demangler horrors


 > On Thu, Jun 26, 2003 at 01:08:06PM -0400, Nathanael Nerode wrote:
 > > We want a working C++ demangler which is not dependent on libstdc++
 > > in any way.
 > 
 > You have to elaborate. My demangler patch requires a C++ compiler to
 > build, but not a C++ compiler to use. I don't see there is much
 > drawback. Besides, it will fall back to the old demangler if there is
 > no suitable C++ compiler.
 > H.J.

FWIW, g++ (cc1plus) on mainline can be built with any ISO C compiler.
I.e. you could build cc1plus in stage1 and use that to build the C++
demangler.

As long as you don't need libstdc++ (or exceptions which also require
the target support library) then you should be fine.  Ie. you can use
all other C++ language features like classes, ctors/dtors etc.  If the
C++ demangler can restrict itself to these features you should be able
to build it in stage1 after building cc1plus.

Does this help?

		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]