From 3d266bde6d8ed21030d1d6a8d7af90e23ee670e0 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Mon, 7 Mar 2005 21:27:37 +0000 Subject: [PATCH] Replace strong references with weak references. There's no particularly good reason to do this, except that __strong_reference does type checking, whereas __weak_reference does not. On Alpha, the compiler won't accept a 'long double' parameter in place of a 'double' parameter even thought the two types are identical. --- lib/msun/src/s_fma.c | 2 +- lib/msun/src/s_frexp.c | 2 +- lib/msun/src/s_nextafter.c | 6 +++--- lib/msun/src/s_scalbn.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/msun/src/s_fma.c b/lib/msun/src/s_fma.c index 2f7db3ae3904..5403070ed79d 100644 --- a/lib/msun/src/s_fma.c +++ b/lib/msun/src/s_fma.c @@ -190,5 +190,5 @@ fma(double x, double y, double z) #endif /* LDBL_MANT_DIG != 113 */ #if (LDBL_MANT_DIG == 53) -__strong_reference(fma, fmal); +__weak_reference(fma, fmal); #endif diff --git a/lib/msun/src/s_frexp.c b/lib/msun/src/s_frexp.c index de9b92729da7..1b5b9bd682b5 100644 --- a/lib/msun/src/s_frexp.c +++ b/lib/msun/src/s_frexp.c @@ -54,5 +54,5 @@ frexp(double x, int *eptr) } #if (LDBL_MANT_DIG == 53) -__strong_reference(frexp, frexpl); +__weak_reference(frexp, frexpl); #endif diff --git a/lib/msun/src/s_nextafter.c b/lib/msun/src/s_nextafter.c index a235099d36f9..674e9c10dea5 100644 --- a/lib/msun/src/s_nextafter.c +++ b/lib/msun/src/s_nextafter.c @@ -79,7 +79,7 @@ nextafter(double x, double y) } #if (LDBL_MANT_DIG == 53) -__strong_reference(nextafter, nexttoward); -__strong_reference(nextafter, nexttowardl); -__strong_reference(nextafter, nextafterl); +__weak_reference(nextafter, nexttoward); +__weak_reference(nextafter, nexttowardl); +__weak_reference(nextafter, nextafterl); #endif diff --git a/lib/msun/src/s_scalbn.c b/lib/msun/src/s_scalbn.c index b7ffc3f39904..e7efaabbf559 100644 --- a/lib/msun/src/s_scalbn.c +++ b/lib/msun/src/s_scalbn.c @@ -61,6 +61,6 @@ scalbn (double x, int n) } #if (LDBL_MANT_DIG == 53) -__strong_reference(scalbn, ldexpl); -__strong_reference(scalbn, scalbnl); +__weak_reference(scalbn, ldexpl); +__weak_reference(scalbn, scalbnl); #endif