From cf4ebc27fe3a66637c5fc8824d9591191786b5fd Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 29 Nov 2017 23:09:03 +0000 Subject: Fix missing sparcv9 --disable-multi-arch fabsl compat symbol (bug 22229). 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 . (fabsl): Define as compat symbol at version GLIBC_2_0 for libm. --- sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S b/sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S index bf51739..7161446 100644 --- a/sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S +++ b/sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S @@ -17,6 +17,7 @@ . */ #include +#include 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 -- cgit v1.1