This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.18-569-geca60f6
- From: schwab at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 9 Dec 2013 23:17:03 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.18-569-geca60f6
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via eca60f6ed313a0b693784580829d0b20770e9fe4 (commit)
via e1c5c75ea265234164332ded6c272528e38df291 (commit)
via 2ea296002440d0ae34cdd87b696c2668ff26b249 (commit)
via 5fc273b084b5dd30ca9442b8e2da4e362a60c19a (commit)
from e8349efd466cfedc0aa98be61d88ca8795c9e565 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=eca60f6ed313a0b693784580829d0b20770e9fe4
commit eca60f6ed313a0b693784580829d0b20770e9fe4
Author: Andreas Schwab <schwab@linux-m68k.org>
Date: Tue Dec 10 00:08:12 2013 +0100
m68k: use math_force_eval in nextafterl
diff --git a/ports/ChangeLog.m68k b/ports/ChangeLog.m68k
index 910df22..d3e90b2 100644
--- a/ports/ChangeLog.m68k
+++ b/ports/ChangeLog.m68k
@@ -1,5 +1,8 @@
2013-12-10 Andreas Schwab <schwab@linux-m68k.org>
+ * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Use
+ math_force_eval.
+
* sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h
(FUTEX_WAIT_REQEUE_PI, FUTEX_CMP_REQEUE_PI)
(lll_futex_wait_requeue_pi, lll_futex_timed_wait_requeue_pi)
diff --git a/ports/sysdeps/m68k/m680x0/fpu/s_nextafterl.c b/ports/sysdeps/m68k/m680x0/fpu/s_nextafterl.c
index 9a03b78..03c136b 100644
--- a/ports/sysdeps/m68k/m680x0/fpu/s_nextafterl.c
+++ b/ports/sysdeps/m68k/m680x0/fpu/s_nextafterl.c
@@ -46,7 +46,8 @@ long double __nextafterl(long double x, long double y)
if((ix|hx|lx)==0) { /* x == 0 */
SET_LDOUBLE_WORDS(x,esy&0x8000,0,1);/* return +-minsubnormal */
y = x*x;
- if(y==x) return y; else return x; /* raise underflow flag */
+ math_force_eval (y); /* raise underflow flag */
+ return x;
}
if(esx>=0) { /* x > 0 */
if(esx>esy||((esx==esy) && (hx>hy||((hx==hy)&&(lx>ly))))) {
@@ -91,10 +92,7 @@ long double __nextafterl(long double x, long double y)
if(esy==0x7fff) return x+x; /* overflow */
if(esy==0 && (hx & 0x80000000) == 0) { /* underflow */
y = x*x;
- if(y!=x) { /* raise underflow flag */
- SET_LDOUBLE_WORDS(y,esx,hx,lx);
- return y;
- }
+ math_force_eval (y); /* raise underflow flag */
}
SET_LDOUBLE_WORDS(x,esx,hx,lx);
return x;
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=e1c5c75ea265234164332ded6c272528e38df291
commit e1c5c75ea265234164332ded6c272528e38df291
Author: Andreas Schwab <schwab@linux-m68k.org>
Date: Wed Dec 4 01:41:08 2013 +0100
m68k: add support for PI futexes
diff --git a/ports/ChangeLog.m68k b/ports/ChangeLog.m68k
index bbb2aab..910df22 100644
--- a/ports/ChangeLog.m68k
+++ b/ports/ChangeLog.m68k
@@ -1,5 +1,10 @@
2013-12-10 Andreas Schwab <schwab@linux-m68k.org>
+ * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h
+ (FUTEX_WAIT_REQEUE_PI, FUTEX_CMP_REQEUE_PI)
+ (lll_futex_wait_requeue_pi, lll_futex_timed_wait_requeue_pi)
+ (lll_futex_cmp_requeue_pi): Define.
+
* sysdeps/unix/sysv/linux/m68k/kernel-features.h
(__ASSUME_REQUEUE_PI, __ASSUME_SET_ROBUST_LIST): Undefine before
3.10.
diff --git a/ports/sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h b/ports/sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h
index 0df6604..3a25477 100644
--- a/ports/sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h
+++ b/ports/sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h
@@ -38,6 +38,8 @@
#define FUTEX_TRYLOCK_PI 8
#define FUTEX_WAIT_BITSET 9
#define FUTEX_WAKE_BITSET 10
+#define FUTEX_WAIT_REQEUE_PI 11
+#define FUTEX_CMP_REQEUE_PI 12
#define FUTEX_PRIVATE_FLAG 128
#define FUTEX_CLOCK_REALTIME 256
@@ -142,6 +144,33 @@
INTERNAL_SYSCALL_ERROR_P (__ret, __err); \
})
+/* Priority Inheritance support. */
+#define lll_futex_wait_requeue_pi(futexp, val, mutex, private) \
+ lll_futex_timed_wait_requeue_pi (futexp, val, NULL, 0, mutex, private)
+
+#define lll_futex_timed_wait_requeue_pi(futexp, val, timespec, clockbit, \
+ mutex, private) \
+ ({ \
+ INTERNAL_SYSCALL_DECL (__err); \
+ long int __ret; \
+ int __op = FUTEX_WAIT_REQUEUE_PI | clockbit; \
+ \
+ __ret = INTERNAL_SYSCALL (futex, __err, 5, (futexp), \
+ __lll_private_flag (__op, private), \
+ (val), (timespec), mutex); \
+ __ret; \
+ })
+
+#define lll_futex_cmp_requeue_pi(futexp, nr_wake, nr_move, mutex, val, priv) \
+ ({ \
+ INTERNAL_SYSCALL_DECL (__err); \
+ long int __ret; \
+ __ret = INTERNAL_SYSCALL (futex, __err, 6, (futexp), \
+ __lll_private_flag (FUTEX_CMP_REQUEUE_PI, priv),\
+ (nr_wake), (nr_move), (mutex), (val)); \
+ INTERNAL_SYSCALL_ERROR_P (__ret, __err); \
+ })
+
#define lll_trylock(lock) \
atomic_compare_and_exchange_val_acq (&(lock), 1, 0)
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=2ea296002440d0ae34cdd87b696c2668ff26b249
commit 2ea296002440d0ae34cdd87b696c2668ff26b249
Author: Andreas Schwab <schwab@linux-m68k.org>
Date: Wed Dec 4 01:35:01 2013 +0100
m68k: don't assume PI futexes before 3.10
diff --git a/ports/ChangeLog.m68k b/ports/ChangeLog.m68k
index 55a8ee4..bbb2aab 100644
--- a/ports/ChangeLog.m68k
+++ b/ports/ChangeLog.m68k
@@ -1,3 +1,9 @@
+2013-12-10 Andreas Schwab <schwab@linux-m68k.org>
+
+ * sysdeps/unix/sysv/linux/m68k/kernel-features.h
+ (__ASSUME_REQUEUE_PI, __ASSUME_SET_ROBUST_LIST): Undefine before
+ 3.10.
+
2013-11-28 Joseph Myers <joseph@codesourcery.com>
* sysdeps/m68k/fpu/fegetround.c (fegetround): Use libm_hidden_def.
diff --git a/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h b/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h
index 4203780..e9763cb 100644
--- a/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h
+++ b/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h
@@ -47,3 +47,9 @@
# undef __ASSUME_PSELECT
# undef __ASSUME_PPOLL
#endif
+
+/* No support for PI futexes or robust mutexes before 3.10 for m68k. */
+#if __LINUX_KERNEL_VERSION < 0x030a00
+# undef __ASSUME_REQUEUE_PI
+# undef __ASSUME_SET_ROBUST_LIST
+#endif
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5fc273b084b5dd30ca9442b8e2da4e362a60c19a
commit 5fc273b084b5dd30ca9442b8e2da4e362a60c19a
Author: Andreas Schwab <schwab@linux-m68k.org>
Date: Tue Dec 10 00:03:47 2013 +0100
ChangeLog fix
diff --git a/ports/ChangeLog.m68k b/ports/ChangeLog.m68k
index 92ff973..55a8ee4 100644
--- a/ports/ChangeLog.m68k
+++ b/ports/ChangeLog.m68k
@@ -3,7 +3,9 @@
* sysdeps/m68k/fpu/fegetround.c (fegetround): Use libm_hidden_def.
2013-11-26 OndÅ?ej BÃlka <neleai@seznam.cz>
- * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Use __glibc_reserved instead __unused.
+
+ * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Use __glibc_reserved
+ instead of __unused.
2013-10-30 Mike Frysinger <vapier@gentoo.org>
-----------------------------------------------------------------------
Summary of changes:
ports/ChangeLog.m68k | 18 +++++++++++-
ports/sysdeps/m68k/m680x0/fpu/s_nextafterl.c | 8 ++---
.../sysdeps/unix/sysv/linux/m68k/kernel-features.h | 6 ++++
.../unix/sysv/linux/m68k/nptl/lowlevellock.h | 29 ++++++++++++++++++++
4 files changed, 55 insertions(+), 6 deletions(-)
hooks/post-receive
--
GNU C Library master sources