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: 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.4.64.0611281700370.30849@zhemvz.fhfr.qr> <456FD641.3070409@codesourcery.com> <Pine.LNX.4.64.0612011930330.29962@wotan.suse.de>
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 :)
Bummer.
> 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.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713