about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc32/fpu
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/sparc32/fpu')
-rw-r--r--sysdeps/sparc/sparc32/fpu/s_fabs.c6
-rw-r--r--sysdeps/sparc/sparc32/fpu/s_fabsl.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/sysdeps/sparc/sparc32/fpu/s_fabs.c b/sysdeps/sparc/sparc32/fpu/s_fabs.c
index db5ecf2162..b883e6e862 100644
--- a/sysdeps/sparc/sparc32/fpu/s_fabs.c
+++ b/sysdeps/sparc/sparc32/fpu/s_fabs.c
@@ -1,5 +1,11 @@
+#include <math.h>
+#include <math_ldbl_opt.h>
+
 double __fabs (double x)
 {
   return __builtin_fabs (x);
 }
 weak_alias (__fabs, fabs)
+#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
+compat_symbol (libm, __fabs, fabsl, GLIBC_2_0);
+#endif
diff --git a/sysdeps/sparc/sparc32/fpu/s_fabsl.c b/sysdeps/sparc/sparc32/fpu/s_fabsl.c
index 67e9f47071..3c03b92828 100644
--- a/sysdeps/sparc/sparc32/fpu/s_fabsl.c
+++ b/sysdeps/sparc/sparc32/fpu/s_fabsl.c
@@ -1,5 +1,8 @@
+#include <math.h>
+#include <math_ldbl_opt.h>
+
 long double __fabsl (long double x)
 {
   return __builtin_fabsl (x);
 }
-weak_alias (__fabsl, fabsl)
+long_double_symbol (libm, __fabsl, fabsl);