From 2c46d1148650edf5d02051c3794227d52618db0c Mon Sep 17 00:00:00 2001 From: "Paul E. Murphy" Date: Mon, 12 Sep 2016 17:32:07 -0500 Subject: Build s_nan* objects from a generic template This requires adding a macro to synthesize the call to __strto*_nan. Since this is likely to be the only usage ever for strto* functions in generated libm calls, a dedicated macro is defined for it. --- sysdeps/ieee754/ldbl-opt/math-type-macros-double.h | 1 + sysdeps/ieee754/ldbl-opt/s_nan.c | 5 ----- sysdeps/ieee754/ldbl-opt/s_nanl.c | 5 ----- 3 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 sysdeps/ieee754/ldbl-opt/s_nan.c delete mode 100644 sysdeps/ieee754/ldbl-opt/s_nanl.c (limited to 'sysdeps/ieee754/ldbl-opt') diff --git a/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h b/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h index f627264c18..2569607283 100644 --- a/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h +++ b/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h @@ -47,6 +47,7 @@ #define LDOUBLE_fdiml_libm_version GLIBC_2_1 #define LDOUBLE_fmaxl_libm_version GLIBC_2_1 #define LDOUBLE_fminl_libm_version GLIBC_2_1 +#define LDOUBLE_nanl_libm_version GLIBC_2_1 /* Define compat symbols for long double on platforms where it was not always a distinct type. */ diff --git a/sysdeps/ieee754/ldbl-opt/s_nan.c b/sysdeps/ieee754/ldbl-opt/s_nan.c deleted file mode 100644 index 418aad2076..0000000000 --- a/sysdeps/ieee754/ldbl-opt/s_nan.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#include -#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1) -compat_symbol (libm, __nan, nanl, GLIBC_2_1); -#endif diff --git a/sysdeps/ieee754/ldbl-opt/s_nanl.c b/sysdeps/ieee754/ldbl-opt/s_nanl.c deleted file mode 100644 index 9496e0b5ce..0000000000 --- a/sysdeps/ieee754/ldbl-opt/s_nanl.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#undef weak_alias -#define weak_alias(n,a) -#include -long_double_symbol (libm, __nanl, nanl); -- cgit v1.2.3