From 313ba4630f5f891af22bea9bdf9d9f3c88e49aee Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 28 Nov 2017 17:34:13 +0000 Subject: [PATCH] Use libm_alias_float for s390. Continuing the preparation for additional _FloatN / _FloatNx function aliases, this patch makes an s390 libm function implementation use libm_alias_float to define function aliases. 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_fmaf.c: Include . [!__fmaf] (fmaf): Define using libm_alias_float. --- ChangeLog | 3 +++ sysdeps/s390/fpu/s_fmaf.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4b7e1f36e75..77092bbfa5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2017-11-28 Joseph Myers + * sysdeps/s390/fpu/s_fmaf.c: Include . + [!__fmaf] (fmaf): Define using libm_alias_float. + * sysdeps/s390/fpu/s_fma.c: Include . [!__fma] (fma): Define using libm_alias_double. * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove. diff --git a/sysdeps/s390/fpu/s_fmaf.c b/sysdeps/s390/fpu/s_fmaf.c index c56cc040e8b..4ad7257887a 100644 --- a/sysdeps/s390/fpu/s_fmaf.c +++ b/sysdeps/s390/fpu/s_fmaf.c @@ -18,6 +18,7 @@ . */ #include +#include float __fmaf (float x, float y, float z) @@ -27,5 +28,5 @@ __fmaf (float x, float y, float z) return r; } #ifndef __fmaf -weak_alias (__fmaf, fmaf) +libm_alias_float (__fma, fma) #endif -- 2.47.2