This is the mail archive of the 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: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory

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.


Mark Mitchell
(650) 331-3385 x713

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