This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- From: Mike Stump <mrs at apple dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 Nov 2006 14:29:47 -0800
- Subject: Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- References: <Pine.LNX.4.64.0611281700370.30849@zhemvz.fhfr.qr>
On Nov 28, 2006, at 8:18 AM, Richard Guenther wrote:
This patch is the Nth try to attack the problems around
classtype_mangled_name
Sounds like a very worth while goal.
so, if you compile the testcase with -O0 you end up with a maximum
virtual memory usage of around 2.5GB
:-( Ouch.
if you add -g to that it'll jump to 3.9GB (because dwarf2out.c
thinks xstrduping all identifiers again is a good idea).
Hum... Would be nice to teach dwarf to use gc so that it never has to
xstrdup a C++ symbol name. It the original radar doesn't cover dwarf,
want to file one for it?
Mike, it looks like you invented mangle_class_name_for_template
I did? Why you think that? I would have thought Ken Raeburn did. I
tried to fetch the bits from svn/cvs/oldgcc but didn't find bits old
enough. :-( I didn't think I did up that code.
Would be nice to revisit mangling in general and maybe come up with
tree style representation instead that doesn't use much space, brownie
points for teaching the assembler and linker to deal with them as well.