]> sourceware.org Git - glibc.git/commitdiff
Fix missing sparcv9 --disable-multi-arch fabsl compat symbol (bug 22229).
authorJoseph Myers <joseph@codesourcery.com>
Wed, 29 Nov 2017 23:09:03 +0000 (23:09 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 29 Nov 2017 23:09:03 +0000 (23:09 +0000)
The --disable-multi-arch case of sparcv9 libm is missing a fabsl
compat symbol for when long double had the same ABI as double.  This
patch adds the missing compat symbol to this implementation.  As my
fix for other instances of this missing compat symbol postdates the
last release, I'm considering this as being part of bug 22229 that was
missing from my previous fix rather than as a separate issue, and so
as not needing a new bug report in Bugzilla.

Tested (compilation only) with build-many-glibcs.py for
sparcv9-linux-gnu --disable-multi-arch.

[BZ #22229]
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
<math_ldbl_opt.h>.
(fabsl): Define as compat symbol at version GLIBC_2_0 for libm.

ChangeLog
sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S

index 0cc5c42d5cef766f8df08624c9a645faff50807e..a6c2a33307d9b95a83f7e348b040d21324ceb83b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #22229]
+       * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
+       <math_ldbl_opt.h>.
+       (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
+
        * scripts/build-many-glibcs.py (Context.add_all_configs): Add
        SPARC --disable-multi-arch glibc variants.
 
index bf51739b5aaeb9144708f9b05d3969fb04b44f80..716144630c4d258f731d629785333c91112f6c93 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
+#include <math_ldbl_opt.h>
 
 ENTRY (__fabs)
        st      %o0, [%sp+72]
@@ -26,3 +27,6 @@ ENTRY (__fabs)
         fabsd  %f0, %f0
 END (__fabs)
 weak_alias (__fabs, fabs)
+#if LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)
+compat_symbol (libm, __fabs, fabsl, GLIBC_2_0);
+#endif
This page took 0.08336 seconds and 5 git commands to generate.