This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 14/21] 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 <vapier@gentoo.org>

2012-04-17  Mike Frysinger  <vapier@gentoo.org>

	* 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.
---
 sysdeps/ia64/fpu/s_scalbn.c  |    4 +++-
 sysdeps/ia64/fpu/s_scalbnf.c |    4 +++-
 sysdeps/ia64/fpu/s_scalbnl.c |    4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/sysdeps/ia64/fpu/s_scalbn.c b/sysdeps/ia64/fpu/s_scalbn.c
index 25cfad3..23e8d81 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 deab018..ec2582c 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 cfd078b..73ffb90 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)
-- 
1.7.8.5


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]