[PATCH] Fix sparc64 build
Jakub Jelinek
jakub@redhat.com
Wed Mar 1 21:19:00 GMT 2006
Hi!
And this is needed for sparc64.
The reason why libc_hidden_def (__fxstatat64) can't be used
is that there is
/* Ho hum, if fxstatat == fxstatat64 we must get rid of the prototype or gcc
will complain since they don't strictly match. */
#define __fxstatat64 __fxstatat64_disable
at the beginning of the file. That means there is no
libc_hidden_proto (__fxstatat64) in headers
and therefore we need to use libc_hidden_ver.
2006-03-01 Jakub Jelinek <jakub@redhat.com>
* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
* sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat64): Use
libc_hidden_ver rather than libc_hidden_def.
--- libc/sysdeps/unix/sysv/linux/i386/fxstatat.c.jj 2006-02-12 16:32:59.000000000 -0500
+++ libc/sysdeps/unix/sysv/linux/i386/fxstatat.c 2006-03-01 13:57:58.000000000 -0500
@@ -172,5 +172,5 @@ libc_hidden_def (__fxstatat)
#ifdef XSTAT_IS_XSTAT64
# undef __fxstatat64
strong_alias (__fxstatat, __fxstatat64);
-libc_hidden_def (__fxstatat64)
+libc_hidden_ver (__fxstatat, __fxstatat64)
#endif
--- libc/sysdeps/sparc/sparc64/fpu/libm-test-ulps.jj 2006-01-15 12:59:38.000000000 -0500
+++ libc/sysdeps/sparc/sparc64/fpu/libm-test-ulps 2006-03-01 16:28:05.000000000 -0500
@@ -465,6 +465,11 @@ ifloat: 2
ildouble: 1
ldouble: 1
+# exp2
+Test "exp2 (10) == 1024":
+ildouble: 2
+ldouble: 2
+
# expm1
Test "expm1 (0.75) == 1.11700001661267466854536981983709561":
double: 1
@@ -1192,6 +1197,10 @@ ifloat: 2
ildouble: 1
ldouble: 1
+Function: "exp2":
+ildouble: 2
+ldouble: 2
+
Function: "expm1":
double: 1
float: 1
Jakub
More information about the Libc-hacker
mailing list