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: Daniel Jacobowitz <drow at false dot org>, Richard Guenther <rguenther at suse dot de>, Gabriel Dos Reis <gdr at cs dot tamu dot edu>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 20 Feb 2007 15:51:42 -0800
- Subject: Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- References: <20061211155733.GA2660@nevyn.them.org> <Pine.LNX.4.64.0612111658590.29962@wotan.suse.de> <20061211174548.GA7094@nevyn.them.org> <Pine.LNX.4.64.0612121519200.29962@wotan.suse.de> <20061212150652.GA18750@nevyn.them.org> <Pine.LNX.4.64.0612121723070.29962@wotan.suse.de> <457EF130.5040902@codesourcery.com> <Pine.LNX.4.64.0612131535100.29962@wotan.suse.de> <4580405A.4000109@codesourcery.com> <Pine.LNX.4.64.0702201500170.25448@wotan.suse.de> <20070220143731.GA8544@caradoc.them.org> <Pine.LNX.4.64.0702201602540.25448@wotan.suse.de>
Michael Matz wrote:
Thanks for following up on this patch. Clearly, the memory/speed impact
is huge, and getting this into G++ would be excellent.
>> Is there some way we can lose the initial scope?
>
> That's better, but is it really correct? Think about a name like:
>
> N1::TA<N1::A>
I spotted the same issue as Daniel. I think that you do need to fix
this, buy threading a flag down through the diagnostic routines to cause
it to omit the qualifier on the (outermost) declarator.
> (the DIE being nested in the one for namespace N1). Current g++ would
> emit the name "TA<N1::A>", and I guess gdb doesn't try to fiddle with the
> template arguments itself, so that would work.
Right, for the example above, I think "TA<N1::A>" is fine. Obviously,
in the perfect future, we have DWARF info for the template arguments,
and GDB can decide whether to say "<N1::A>" or just "A", as it pleases,
and depending on context.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713