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: Daniel Jacobowitz <drow at false dot org>
- To: Michael Matz <matz at suse dot de>
- Cc: Richard Guenther <rguenther at suse dot de>, Jason Merrill <jason at redhat dot com>, Gabriel Dos Reis <gdr at cs dot tamu dot edu>, Nathan Sidwell <nathan at codesourcery dot com>, Mark Mitchell <mark at codesourcery dot com>, Richard Guenther <richard dot guenther at gmail dot com>, gcc-patches at gcc dot gnu dot org, mrs at apple dot com, Paolo Carlini <pcarlini at suse dot de>
- Date: Mon, 11 Dec 2006 12:45:48 -0500
- Subject: Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- References: <457C874D.6060806@redhat.com> <457D35D0.5080101@codesourcery.com> <457D726E.7060905@redhat.com> <Pine.LNX.4.64.0612111628100.3105@zhemvz.fhfr.qr> <Pine.GSO.4.58.0612110926270.19022@sun> <Pine.LNX.4.64.0612111635030.3105@zhemvz.fhfr.qr> <457D7AB1.10706@redhat.com> <Pine.LNX.4.64.0612111647520.3105@zhemvz.fhfr.qr> <20061211155733.GA2660@nevyn.them.org> <Pine.LNX.4.64.0612111658590.29962@wotan.suse.de>
On Mon, Dec 11, 2006 at 05:03:18PM +0100, Michael Matz wrote:
> Hi,
>
> On Mon, 11 Dec 2006, Daniel Jacobowitz wrote:
>
> > On Mon, Dec 11, 2006 at 04:50:41PM +0100, Richard Guenther wrote:
> > > With using mangled names (which would lead to so much smaller debug info)
> > > we'd have to fix gdb of course. But maybe stage1 of gcc 4.3 is a good
> > > amount ahead of time to let gdb folks sort this out themselves...
> >
> > Maybe if someone could write up a coherent explanation of what you want
> > to change...
>
> The change in debug info would be that DW_AT_name would not necessarily
> contain a nice user printable name anymore (which right now is generated
> by gcc via the diagnostic machinery) but would sometimes contain a mangled
> name (i.e. recognizable by being prefixed with "_Z"). If gdb could handle
> that (i.e. before showing any name try to demangle it and see if that
> worked) all would be well. DW_AT_linkage_name would not be touched by
> that.
>
> There will be differences between the current user friendly name and the
> demangled version (for instance some scopes are left out in the current
> variant), but IMHO that's more consistent.
No way, please don't do this. DW_AT_name is supposed to be the type
name from the source language.
14 Identifier Names
Any debugging information entry representing a program entity that has
been given a name may have a DW_AT_name attribute, whose value is a
string representing the name as it appears in the source program.
--
Daniel Jacobowitz
CodeSourcery
- References:
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory