This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
Community source repository for glibc add-on ports branch, master, updated. glibc-2.11-15-gb80ec53
- From: carlos at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 25 Nov 2009 23:21:19 -0000
- Subject: Community source repository for glibc add-on ports branch, master, updated. glibc-2.11-15-gb80ec53
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 "Community source repository for glibc add-on ports".
The branch, master has been updated
via b80ec5369182532a06bf4972ff274bc152d5eda6 (commit)
via 8fe357d5c6517be5718be681cf8ff89a191a8e9b (commit)
from b00ec948818f47f85c6c3eadac22e753feaaee95 (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-ports.git;a=commitdiff;h=b80ec5369182532a06bf4972ff274bc152d5eda6
commit b80ec5369182532a06bf4972ff274bc152d5eda6
Author: Carlos O'Donell <carlos@systemhalted.org>
Date: Wed Nov 25 18:18:56 2009 -0500
Add correct aligment to pthread_*_t structures.
In the switch to NPTL the pthrad_mutex_t, pthread_cond_t,
and pthread_rwlock_t structures were made binary compatible
with the Linuxthread versions. However, their aligment when
embedded in other structures was changed. When rebuilding
libstdc++ this was detected, and the following changes return
the structures to their original Linuxthreads alignments.
2009-11-25 Carlos O'Donell <carlos@codesourcery.com>
* sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h:
Use correct alignment for pthread_mutex_t, pthread_cond_t,
and pthread_rwlock_t.
diff --git a/ChangeLog.hppa b/ChangeLog.hppa
index ac6acba..24a152e 100644
--- a/ChangeLog.hppa
+++ b/ChangeLog.hppa
@@ -1,3 +1,9 @@
+2009-11-25 Carlos O'Donell <carlos@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h:
+ Use correct alignment for pthread_mutex_t, pthread_cond_t,
+ and pthread_rwlock_t.
+
2009-11-22 Carlos O'Donell <carlos@codesourcery.com>
* sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Avoid warnings
diff --git a/sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h b/sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
index 87c1a55..952e53c 100644
--- a/sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
+++ b/sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
@@ -64,7 +64,7 @@ typedef union
{
struct __pthread_mutex_s
{
- int __lock;
+ int __lock __attribute__ ((aligned(16)));
unsigned int __count;
int __owner;
/* KIND must stay at this position in the structure to maintain
@@ -113,7 +113,7 @@ typedef union
start of the 4-word lock structure, the next four words
are set all to 1 by the Linuxthreads
PTHREAD_COND_INITIALIZER. */
- int __lock;
+ int __lock __attribute__ ((aligned(16)));
/* Tracks the initialization of this structure:
0 initialized with NPTL PTHREAD_COND_INITIALIZER.
1 initialized with Linuxthreads PTHREAD_COND_INITIALIZER.
@@ -161,7 +161,7 @@ typedef union
start of the 4-word 16-byte aligned lock structure. The
next four words are all set to 1 by the Linuxthreads
PTHREAD_RWLOCK_INITIALIZER. We ignore them in NPTL. */
- int __compat_padding[4];
+ int __compat_padding[4] __attribute__ ((aligned(16)));
int __lock;
unsigned int __nr_readers;
unsigned int __readers_wakeup;
http://sources.redhat.com/git/gitweb.cgi?p=glibc-ports.git;a=commitdiff;h=8fe357d5c6517be5718be681cf8ff89a191a8e9b
commit 8fe357d5c6517be5718be681cf8ff89a191a8e9b
Author: Carlos O'Donell <carlos@systemhalted.org>
Date: Sun Nov 22 16:44:05 2009 -0500
Avoid warnings when including atomic.h.
Cast oldval to the same type as ret to avoid warnings when
including atomic.h.
2009-11-22 Carlos O'Donell <carlos@codesourcery.com>
* sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Avoid warnings
by casting oldval to int.
diff --git a/ChangeLog.hppa b/ChangeLog.hppa
index dbd0ed5..ac6acba 100644
--- a/ChangeLog.hppa
+++ b/ChangeLog.hppa
@@ -1,3 +1,8 @@
+2009-11-22 Carlos O'Donell <carlos@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Avoid warnings
+ by casting oldval to int.
+
2009-11-15 Carlos O'Donell <carlos@codesourcery.com>
[BZ #6676]
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/atomic.h b/sysdeps/unix/sysv/linux/hppa/bits/atomic.h
index d7c8b9d..120b19b 100644
--- a/sysdeps/unix/sysv/linux/hppa/bits/atomic.h
+++ b/sysdeps/unix/sysv/linux/hppa/bits/atomic.h
@@ -98,7 +98,7 @@ typedef uintmax_t uatomic_max_t;
int ret; \
ret = atomic_compare_and_exchange_val_acq(mem, newval, oldval); \
/* Return 1 if it was already acquired. */ \
- (ret != oldval); \
+ (ret != (int)oldval); \
})
#else
# error __ASSUME_LWS_CAS is required to build glibc.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog.hppa | 11 +++++++++++
sysdeps/unix/sysv/linux/hppa/bits/atomic.h | 2 +-
.../unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h | 6 +++---
3 files changed, 15 insertions(+), 4 deletions(-)
hooks/post-receive
--
Community source repository for glibc add-on ports