c++/7708: g++ -O inserts definition of std::string::replace in library module

Bradford Castalia Castalia@azstarnet.com
Sun Dec 22 20:46:00 GMT 2002


The following reply was made to PR c++/7708; it has been noted by GNATS.

From: Bradford Castalia <Castalia@azstarnet.com>
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



More information about the Gcc-prs mailing list