From 6940bd966b8b5cf26661c32eae88135143713ba6 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 28 Nov 2017 17:18:20 +0000 Subject: Use libm_alias_double for s390. Continuing the preparation for additional _FloatN / _FloatNx function aliases, this patch makes s390 libm function implementations use libm_alias_double to define function aliases. This allows sysdeps/unix/sysv/linux/s390/fpu/s_fma.c to be removed, as libm_alias_double handles symbol versioning for long double compat symbols. Tested with build-many-glibcs.py for s390-linux-gnu and s390x-linux-gnu that installed stripped shared libraries are unchanged by the patch. * sysdeps/s390/fpu/s_fma.c: Include . [!__fma] (fma): Define using libm_alias_double. * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove. --- sysdeps/s390/fpu/s_fma.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sysdeps/s390/fpu') diff --git a/sysdeps/s390/fpu/s_fma.c b/sysdeps/s390/fpu/s_fma.c index fb7210b19a..3f37400157 100644 --- a/sysdeps/s390/fpu/s_fma.c +++ b/sysdeps/s390/fpu/s_fma.c @@ -18,6 +18,7 @@ . */ #include +#include double __fma (double x, double y, double z) @@ -27,10 +28,5 @@ __fma (double x, double y, double z) return r; } #ifndef __fma -weak_alias (__fma, fma) -#endif - -#ifdef NO_LONG_DOUBLE -strong_alias (__fma, __fmal) -weak_alias (__fmal, fmal) +libm_alias_double (__fma, fma) #endif -- cgit v1.2.3-70-g09d2