This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]