This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Michael Matz <matz at suse dot de>
- Cc: Richard Guenther <rguenther at suse dot de>, gcc-patches at gcc dot gnu dot org, mrs at apple dot com
- Date: Fri, 01 Dec 2006 12:35:09 -0800
- Subject: Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- References: <Pine.LNX.email@example.com> <456FD641.firstname.lastname@example.org> <Pine.LNX.email@example.com>
Michael Matz wrote:
> Right, those generated names are the used by debug info (they can be seen
> in the AT_name tags). That of course only makes sense for stuff for which
> we actually generate debug info, which isn't the case for incomplete types
> for which we nevertheless generate those (superlong) identifiers.
>> Semantically, you should be able to completely remove this routine, and
>> not see any testsuite failures.
> That was our guess too, until Richard tried :)
> From all that it _seems_ that something besides the debugging functions do
> look at those DECL_NAMES and actually require some property.
I'm not surprised that a NULL DECL_NAME doesn't work, but I'm a bit
surprised that using the same name as the generic template doesn't work.
I'm having a hard time guessing what might be causing this, but if you
have a reasonable test case, I'm sure we can work it out. A few years
back, I tried to remove unnecessary name lookup from the C++ front end,
but there's certainly some remaining.
I think it would be best if we could track this down, because that might
allow us to really completely nail this problem.
(650) 331-3385 x713