From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26069 invoked by alias); 26 Nov 2007 21:31:23 -0000 Received: (qmail 26060 invoked by uid 22791); 26 Nov 2007 21:31:22 -0000 X-Spam-Check-By: sourceware.org Received: from relais.videotron.ca (HELO relais.videotron.ca) (24.201.245.36) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 26 Nov 2007 21:31:14 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-disposition: inline Content-type: text/plain; charset=iso-8859-1 Received: from shockenhull.sscs ([70.81.105.186]) by VL-MH-MR002.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0JS4005PIT026BL0@VL-MH-MR002.ip.videotron.ca> for gcc@gcc.gnu.org; Mon, 26 Nov 2007 16:00:03 -0500 (EST) From: Stephane Hockenhull To: gcc@gcc.gnu.org Subject: Re: why are stl template classes not mangled as other classes and =?iso-8859-1?q?=09templates?= Date: Tue, 27 Nov 2007 00:29:00 -0000 User-Agent: KMail/1.9.1 Cc: Daniel Jacobowitz , Joe Buck References: <200711261333.54555.shockenhull@niceberg.com> <20071126184035.GE17815@synopsys.com> <20071126190130.GA12875@caradoc.them.org> In-reply-to: <20071126190130.GA12875@caradoc.them.org> Message-id: <200711261602.48771.shockenhull@niceberg.com> X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2007-11/txt/msg00692.txt.bz2 On Monday 26 November 2007 14:01, Daniel Jacobowitz wrote: > On Mon, Nov 26, 2007 at 10:40:35AM -0800, Joe Buck wrote: > > On Mon, Nov 26, 2007 at 01:33:54PM -0500, Stephane Hockenhull wrote: > > > hi, it seem stl templates are not mangled as other classes and > > > templates > > > > > > I was wondering why and where in the g++ source code is that special > > > case implemented? > > > > > > it seem to cause a problem with -fleading-underscore > > > > AFAIK there is no special case, however there might be a bug lurking > > somewhere. Do you have a specific case where -fleading-underscore messes > > up? > > There are a few special cases, e.g. for std::string and > std::basic_string; the C++ ABI documents have the details. > > _ZSi -> std::basic_istream > those cause problem with -fleading-underscore. it seem there is more than one data path for the mangling and one of those misses adding the extra underscore which cause missing symbols at linking. -- Stephane Hockenhull SSC-Studios.com