[RFC PATCH, libstdc++]: Fix abi_failure on alpha

Uros Bizjak ubizjak@gmail.com
Tue Jan 13 11:34:00 GMT 2009


Hello!

According to abi_check, functions with __float128 arguments should
have their version set to GLIBCXX_LDBL_3.4.

This is not the case with numeric_limits:: so abi_check detects
incompatible symbols.

Attached patch fixes this problem and fixes abi_check failure on alpha.

Index: config/abi/pre/gnu.ver
===================================================================
--- config/abi/pre/gnu.ver      (revision 143247)
+++ config/abi/pre/gnu.ver      (working copy)
@@ -403,8 +403,7 @@
     _ZNKSt9money_putI[cw]St19ostreambuf_iteratorI[cw]St11char_traitsI[cw]EEE*;

     # std::numeric_limits
-    # _ZNSt14numeric_limitsI[^g]*;
-    _ZNSt14numeric_limitsI[a-z]E*;
+    _ZNSt14numeric_limitsI[^g]E*;

     # std::_Rb_tree
     _ZSt18_Rb_tree_decrementPKSt18_Rb_tree_node_base;

Is this approach OK?

Uros.



More information about the Gcc-patches mailing list