From 413a8f40ecad7b78ceed0c098832004d4f3cb16e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 16 Apr 2012 22:43:09 -0400 Subject: ia64: math: add __scalbn* aliases All other ports have __scalbn* aliases pointing back to scalbn*, but the ia64 code had omitted them. This didn't really matter as none of the common code called them, but after a recent update, that's no longer true. Add the aliases needed by some common code to fix link errors with libm due to them missing. Signed-off-by: Mike Frysinger --- ChangeLog.ia64 | 9 +++++++++ sysdeps/ia64/fpu/s_scalbn.c | 4 +++- sysdeps/ia64/fpu/s_scalbnf.c | 4 +++- sysdeps/ia64/fpu/s_scalbnl.c | 4 +++- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/ChangeLog.ia64 b/ChangeLog.ia64 index 83ae6bf57d..0d81ccdea4 100644 --- a/ChangeLog.ia64 +++ b/ChangeLog.ia64 @@ -1,3 +1,12 @@ +2012-04-27 Mike Frysinger + + * sysdeps/ia64/fpu/s_scalbn.c (__scalbn): Rename from scalbn. + Add weak alias from scalbn to __scalbn. + * sysdeps/ia64/fpu/s_scalbnf.c (__scalbnf): Rename from scalbnf. + Add weak alias from scalbnf to __scalbnf. + * sysdeps/ia64/fpu/s_scalbnl.c (__scalbnl): Rename from scalbnl. + Add weak alias from scalbnl to __scalbnl. + 2012-04-27 Mike Frysinger * sysdeps/ia64/fpu/s_matherrf.c: Delete __STDC__. diff --git a/sysdeps/ia64/fpu/s_scalbn.c b/sysdeps/ia64/fpu/s_scalbn.c index 25cfad32ad..23e8d818b2 100644 --- a/sysdeps/ia64/fpu/s_scalbn.c +++ b/sysdeps/ia64/fpu/s_scalbn.c @@ -45,7 +45,7 @@ double __libm_scalbn(double, int, int); -double scalbn(double x, int n) +double __scalbn(double x, int n) { #ifdef SIZE_INT_64 @@ -59,3 +59,5 @@ double scalbn(double x, int n) #endif } + +weak_alias (__scalbn, scalbn) diff --git a/sysdeps/ia64/fpu/s_scalbnf.c b/sysdeps/ia64/fpu/s_scalbnf.c index deab018a3e..ec2582cddc 100644 --- a/sysdeps/ia64/fpu/s_scalbnf.c +++ b/sysdeps/ia64/fpu/s_scalbnf.c @@ -45,7 +45,7 @@ float __libm_scalbnf(float, int, int); -float scalbnf(float x, int n) +float __scalbnf(float x, int n) { #ifdef SIZE_INT_64 @@ -59,3 +59,5 @@ float scalbnf(float x, int n) #endif } + +weak_alias (__scalbnf, scalbnf) diff --git a/sysdeps/ia64/fpu/s_scalbnl.c b/sysdeps/ia64/fpu/s_scalbnl.c index cfd078bfc9..73ffb904b7 100644 --- a/sysdeps/ia64/fpu/s_scalbnl.c +++ b/sysdeps/ia64/fpu/s_scalbnl.c @@ -45,7 +45,7 @@ long double __libm_scalbnl(long double, int, int); -long double scalbnl(long double x, int n) +long double __scalbnl(long double x, int n) { #ifdef SIZE_INT_64 @@ -59,3 +59,5 @@ long double scalbnl(long double x, int n) #endif } + +weak_alias (__scalbnl, scalbnl) -- cgit v1.2.3