From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11727 invoked by alias); 20 Dec 2002 02:19:54 -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 11704 invoked by uid 61); 20 Dec 2002 02:19:53 -0000 Date: Thu, 19 Dec 2002 18:19:00 -0000 Message-ID: <20021220021953.11703.qmail@sources.redhat.com> To: Castalia@azstarnet.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, Castalia@azstarnet.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/7708: g++ -O inserts definition of std::string::replace in library module X-SW-Source: 2002-12/txt/msg01058.txt.bz2 List-Id: 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