This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [v3] Provide Solaris 2 libstdc++ baseline files


On Tue, 28 Sep 2010, Rainer Orth wrote:

* For Solaris 11, there's a strange difference: in both 32 and 64-bit
 cases, I get

--- sparc-sun-solaris2.11/baseline_symbols.txt  2010-09-22 11:55:52.651907686 +0
200
+++ i386-pc-solaris2.11/baseline_symbols.txt    2010-09-22 11:55:52.604358688 +0
200
@@ -1235,6 +1235,7 @@
FUNC:_ZNSt12system_errorC1ESt10error_code
+FUNC:_ZNSt12system_errorC2ESt10error_code

 Both functions demangle as
 std::system_error::system_error(std::error_code); I've no idea why
 there's an additional one on i386.

Generating two versions of the constructor is what g++ usually does, as can be seen on any trivial example:
struct A{A();}; A::A(){}


(although now on several platforms the 2 names will actually point to the same address)
I find it more surprising that one of them is missing on sparc. And since you get this with both Sun and GNU linkers, it doesn't seem like it can have removed the unused one.


--
Marc Glisse


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