From 006e766437033d6565133ce356b55d7b301a7b58 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 13 Oct 2017 16:43:18 +0000 Subject: Use libm_alias_ldouble for SPARC fabsl. This patch makes SPARC fabsl implementation use libm_alias_ldouble, to prepare them for also defining _Float128 function aliases. Tested with build-many-glibcs.py that installed stripped shared libraries (sparc64-linux-gnu and sparcv9-linux-gnu) are unchanged by the patch. * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include . (fabsl): Define using libm_alias_ldouble. * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include . (fabsl): Define using libm_alias_ldouble. --- sysdeps/sparc/sparc32/fpu/s_fabsl.c | 3 ++- sysdeps/sparc/sparc64/fpu/s_fabsl.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/sparc/sparc32/fpu/s_fabsl.c b/sysdeps/sparc/sparc32/fpu/s_fabsl.c index 3c03b92828..411a2e1511 100644 --- a/sysdeps/sparc/sparc32/fpu/s_fabsl.c +++ b/sysdeps/sparc/sparc32/fpu/s_fabsl.c @@ -1,8 +1,9 @@ #include #include +#include long double __fabsl (long double x) { return __builtin_fabsl (x); } -long_double_symbol (libm, __fabsl, fabsl); +libm_alias_ldouble (__fabs, fabs) diff --git a/sysdeps/sparc/sparc64/fpu/s_fabsl.c b/sysdeps/sparc/sparc64/fpu/s_fabsl.c index 67e9f47071..72e1c51340 100644 --- a/sysdeps/sparc/sparc64/fpu/s_fabsl.c +++ b/sysdeps/sparc/sparc64/fpu/s_fabsl.c @@ -1,5 +1,7 @@ +#include + long double __fabsl (long double x) { return __builtin_fabsl (x); } -weak_alias (__fabsl, fabsl) +libm_alias_ldouble (__fabs, fabs) -- cgit v1.2.3