about summary refs log tree commit diff
path: root/sysdeps/sparc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-10-04 20:32:48 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-10-04 20:32:48 +0000
commit7e16a5d1d19effc7b2775942f592520cfff03d92 (patch)
tree03ee66322023d9264af573c97027cbba8296e51b /sysdeps/sparc
parentdb4f87bad48ed93ae14f61121367a7cb94fa46ed (diff)
downloadglibc-7e16a5d1d19effc7b2775942f592520cfff03d92.tar.gz
glibc-7e16a5d1d19effc7b2775942f592520cfff03d92.tar.xz
glibc-7e16a5d1d19effc7b2775942f592520cfff03d92.zip
Use libm_alias_double for dbl-64 fma.
This patch makes dbl-64 fma use libm_alias_double.  The ldbl-opt
version is removed.  The sparc32 version no longer needs to handle
compat symbols, while alpha needs a new wrapper to avoid getting the
ldbl-128 version (where ldbl-opt is earlier in the list of sysdeps
directories, so previously fma came from there).

Tested for x86_64, and tested with build-many-glibcs.py that installed
stripped shared libraries are unchanged by the patch.

	* sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
	(fma): Define using libm_alias_double.
	* sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
	* sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
	<math_ldbl_opt.h>.
	(fmal): Do not define as compat symbol here.
	* sysdeps/alpha/fpu/s_fma.c: New file.
Diffstat (limited to 'sysdeps/sparc')
-rw-r--r--sysdeps/sparc/sparc32/fpu/s_fma.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sysdeps/sparc/sparc32/fpu/s_fma.c b/sysdeps/sparc/sparc32/fpu/s_fma.c
index bfdcb23b3a..8f62605870 100644
--- a/sysdeps/sparc/sparc32/fpu/s_fma.c
+++ b/sysdeps/sparc/sparc32/fpu/s_fma.c
@@ -1,6 +1,2 @@
 /* Always use dbl-64 version because long double is emulated in software.  */
-#include <math_ldbl_opt.h>
 #include <sysdeps/ieee754/dbl-64/s_fma.c>
-#if LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)
-compat_symbol (libm, __fma, fmal, GLIBC_2_1);
-#endif