aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-02-24 07:29:01 +0000
committerRoland McGrath <roland@gnu.org>2006-02-24 07:29:01 +0000
commitc5132ca1c35e1c0e93b9ba8eda575bb57c892b78 (patch)
treefdaa87c3398fc1461708a1158f0aa01b258eaa0e
parent5536dfcbb88ee135392024ebf453b8e82ce90fed (diff)
downloadglibc-c5132ca1c35e1c0e93b9ba8eda575bb57c892b78.tar
glibc-c5132ca1c35e1c0e93b9ba8eda575bb57c892b78.tar.gz
glibc-c5132ca1c35e1c0e93b9ba8eda575bb57c892b78.tar.bz2
glibc-c5132ca1c35e1c0e93b9ba8eda575bb57c892b78.zip
* descr.h (struct pthread): Add final member `end_padding'.
(PTHREAD_STRUCT_END_PADDING): Use it. 2006-02-20 Roland McGrath <roland@redhat.com> * sysdeps/mips: Directory removed, saved in ports repository. * sysdeps/unix/sysv/linux/mips: Likewise.
-rw-r--r--nptl/ChangeLog10
-rw-r--r--nptl/descr.h9
2 files changed, 14 insertions, 5 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 654579027c..30357d6199 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,13 @@
+2006-02-23 Roland McGrath <roland@redhat.com>
+
+ * descr.h (struct pthread): Add final member `end_padding'.
+ (PTHREAD_STRUCT_END_PADDING): Use it.
+
+2006-02-20 Roland McGrath <roland@redhat.com>
+
+ * sysdeps/mips: Directory removed, saved in ports repository.
+ * sysdeps/unix/sysv/linux/mips: Likewise.
+
2006-02-18 Ulrich Drepper <drepper@redhat.com>
* tst-robust1.c: Add second mutex to check that the mutex list is
diff --git a/nptl/descr.h b/nptl/descr.h
index d5491c1355..80251b920b 100644
--- a/nptl/descr.h
+++ b/nptl/descr.h
@@ -305,12 +305,11 @@ struct pthread
/* Resolver state. */
struct __res_state res;
- /* If you add fields after the res field above, please adjust
- the following macro. */
-#define PTHREAD_STRUCT_END_PADDING \
- (sizeof (struct pthread) - offsetof (struct pthread, res) \
- - sizeof (((struct pthread *) 0)->res))
+ /* This member must be last. */
+ char end_padding[];
+#define PTHREAD_STRUCT_END_PADDING \
+ (sizeof (struct pthread) - offsetof (struct pthread, end_padding))
} __attribute ((aligned (TCB_ALIGNMENT)));