aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-04-16 22:43:09 -0400
committerMike Frysinger <vapier@gentoo.org>2012-04-27 23:09:38 -0400
commit413a8f40ecad7b78ceed0c098832004d4f3cb16e (patch)
tree2855e590d3dc09f367230eb4e9cdd82165ddc41a
parent16aca1f7711898a516c63b78528d33afa46213a2 (diff)
downloadglibc-413a8f40ecad7b78ceed0c098832004d4f3cb16e.tar
glibc-413a8f40ecad7b78ceed0c098832004d4f3cb16e.tar.gz
glibc-413a8f40ecad7b78ceed0c098832004d4f3cb16e.tar.bz2
glibc-413a8f40ecad7b78ceed0c098832004d4f3cb16e.zip
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>
-rw-r--r--ChangeLog.ia649
-rw-r--r--sysdeps/ia64/fpu/s_scalbn.c4
-rw-r--r--sysdeps/ia64/fpu/s_scalbnf.c4
-rw-r--r--sysdeps/ia64/fpu/s_scalbnl.c4
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,5 +1,14 @@
2012-04-27 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.
+
+2012-04-27 Mike Frysinger <vapier@gentoo.org>
+
* sysdeps/ia64/fpu/s_matherrf.c: Delete __STDC__.
* sysdeps/ia64/fpu/s_matherrl.c,
sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
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)