From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 939 invoked by alias); 23 Dec 2002 04:46:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 924 invoked by uid 71); 23 Dec 2002 04:46:02 -0000 Date: Sun, 22 Dec 2002 20:46:00 -0000 Message-ID: <20021223044602.923.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Bradford Castalia Subject: Re: c++/7708: g++ -O inserts definition of std::string::replace in library module Reply-To: Bradford Castalia X-SW-Source: 2002-12/txt/msg01227.txt.bz2 List-Id: The following reply was made to PR c++/7708; it has been noted by GNATS. From: Bradford Castalia To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/7708: g++ -O inserts definition of std::string::replace in library module Date: Sun, 22 Dec 2002 21:41:19 -0700 When I get gcc3.2.1 (or greater) installed on the FreeBSD workstation (hasn't happened yet, sorry) I will definately run the test files again. You will probably get a faster response from one of the FreeBSD developers (http://www.FreeBSD.org). -- Bradford Castalia bangerth@dealii.org wrote: > > Synopsis: g++ -O inserts definition of std::string::replace in library module > > State-Changed-From-To: open->feedback > State-Changed-By: bangerth > State-Changed-When: Thu Dec 19 18:19:52 2002 > State-Changed-Why: > I tried your program with gcc3.2, but on x86 linux. I can > confirm that the mentioned symbols are present in the > object file. However, they are weak: > 00000000 W std::string& std::string::_M_replace<.... > > Weak symbols means: they can be in multiple object files, > and one of these copies is picked at link time. > > Could you possibly check whether the problem still exists > on your platform with gcc3.2.1? > > Thanks > Wolfgang > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7708