From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20321 invoked by alias); 3 Dec 2001 21:25:45 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20282 invoked from network); 3 Dec 2001 21:25:44 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 3 Dec 2001 21:25:44 -0000 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16B0as-0000BB-00; Mon, 03 Dec 2001 16:25:42 -0500 Date: Mon, 03 Dec 2001 13:25:00 -0000 From: Daniel Jacobowitz To: Daniel Berlin Cc: gdb-patches@sources.redhat.com, libstdc++@gcc.gnu.org Subject: Re: [RFA/stabs reader] Fix v3 duplicate constructors problem Message-ID: <20011203162542.A597@nevyn.them.org> Mail-Followup-To: Daniel Berlin , gdb-patches@sources.redhat.com, libstdc++@gcc.gnu.org References: <20011203154836.A28821@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i X-SW-Source: 2001-12/txt/msg00062.txt.bz2 On Mon, Dec 03, 2001 at 04:22:14PM -0500, Daniel Berlin wrote: > > > On Mon, 3 Dec 2001, Daniel Jacobowitz wrote: > > > I tracked down the annoying duplication of constructors using G++ 3.0 with > > stabs. The problem is that all the clones of the constructor are emitted, > > so there really are two of them. > > > Yes. > > The obvious thing to do to fix this in GCC (and I'd like it fixed in GCC) > > would seem to be checking DECL_ABSTRACT_ORIGIN like the Dwarf frontend does > > instead of DECL_ABSTRACT. > It *used* to do the right thing (IE after the v3 switch) > Which is to emit a single constructor name in the class, and emit the > clones outside the class debug info, with an abstract origin/specification > of the in the class die. > > Does it not still do this? It does for Dwarf2. This particular problem does not affect Dwarf2. Dies don't come into this anywhere. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer