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.15-868-g245a11d
- From: hjl at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 14 May 2012 23:49:16 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.15-868-g245a11d
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 245a11d7bd3bc44cd2b9f8598516287393705f76 (commit)
from 0b254d8f3db5deb23e57d5d644d7a9b2ca6df3f2 (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://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=245a11d7bd3bc44cd2b9f8598516287393705f76
commit 245a11d7bd3bc44cd2b9f8598516287393705f76
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon May 14 16:48:59 2012 -0700
Add __PTHREAD_RWLOCK_INT_FLAGS_SHARED
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 5feb67d..bf7e11a 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,5 +1,12 @@
2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
+ * sysdeps/pthread/pthread.h (__PTHREAD_RWLOCK_INT_FLAGS_SHARED):
+ New.
+ (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Check
+ __PTHREAD_RWLOCK_INT_FLAGS_SHARED instead of __WORDSIZE.
+
+2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
+
* shlib-versions: Move x86_64-.*-linux.* entry to ...
* sysdeps/x86_64/64/shlib-versions: Here. New file.
* sysdeps/x86_64/x32/shlib-versions: New file.
diff --git a/nptl/sysdeps/pthread/pthread.h b/nptl/sysdeps/pthread/pthread.h
index fcc0ce8..88c7c25 100644
--- a/nptl/sysdeps/pthread/pthread.h
+++ b/nptl/sysdeps/pthread/pthread.h
@@ -118,11 +118,20 @@ enum
PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP
};
+/* Define __PTHREAD_RWLOCK_INT_FLAGS_SHARED to 1 if pthread_rwlock_t
+ has the shared field. All 64-bit architectures have the shared field
+ in pthread_rwlock_t. */
+#ifndef __PTHREAD_RWLOCK_INT_FLAGS_SHARED
+# if __WORDSIZE == 64
+# define __PTHREAD_RWLOCK_INT_FLAGS_SHARED 1
+# endif
+#endif
+
/* Read-write lock initializers. */
# define PTHREAD_RWLOCK_INITIALIZER \
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
# ifdef __USE_GNU
-# if __WORDSIZE == 64
+# ifdef __PTHREAD_RWLOCK_INT_FLAGS_SHARED
# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP } }
-----------------------------------------------------------------------
Summary of changes:
nptl/ChangeLog | 7 +++++++
nptl/sysdeps/pthread/pthread.h | 11 ++++++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources