about summary refs log tree commit diff
path: root/linuxthreads
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-17 09:39:59 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-17 09:39:59 +0000
commit65af7e61427ce9bbbc0e43b2ad44e5b4678a37fc (patch)
treee2fd5705bea97e5f393295cfef96d4d2b8746be4 /linuxthreads
parent3402852c2c478213b086648eab9848a35b7f5dbf (diff)
downloadglibc-65af7e61427ce9bbbc0e43b2ad44e5b4678a37fc.tar.gz
glibc-65af7e61427ce9bbbc0e43b2ad44e5b4678a37fc.tar.xz
glibc-65af7e61427ce9bbbc0e43b2ad44e5b4678a37fc.zip
Update.
2003-09-17  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/Makefile (stack-align-test-flags): Add
	-malign-double -mpreferred-stack-boundary=4.
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/ChangeLog9
-rw-r--r--linuxthreads/descr.h2
-rw-r--r--linuxthreads/internals.h2
-rw-r--r--linuxthreads/pthread.c3
4 files changed, 13 insertions, 3 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index ed71daa201..cd5eb8e61f 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,3 +1,12 @@
+2003-09-17  Jakub Jelinek  <jakub@redhat.com>
+
+	* descr.h (manager_thread): Rename to...
+	(__pthread_manager_threadp): ... this.
+	* pthread.c (manager_thread): Define to __pthread_manager_threadp.
+	(__pthread_manager_threadp): New variable.
+	* internals.h (__manager_thread): Define to
+	__pthread_manager_threadp if USE_TLS.
+
 2003-09-15  Jakub Jelinek  <jakub@redhat.com>
 
 	* sysdeps/i386/Makefile (CFLAGS-cancel.c, CFLAGS-manager.c,
diff --git a/linuxthreads/descr.h b/linuxthreads/descr.h
index 0b9efd220d..bea8b912f7 100644
--- a/linuxthreads/descr.h
+++ b/linuxthreads/descr.h
@@ -217,7 +217,7 @@ extern char *__pthread_manager_thread_tos;
 /* Descriptor of the manager thread */
 
 extern struct _pthread_descr_struct __pthread_manager_thread;
-extern pthread_descr manager_thread attribute_hidden;
+extern pthread_descr __pthread_manager_threadp attribute_hidden;
 
 /* Indicate whether at least one thread has a user-defined stack (if 1),
    or all threads have stacks supplied by LinuxThreads (if 0). */
diff --git a/linuxthreads/internals.h b/linuxthreads/internals.h
index 90649335bb..ba6f476b73 100644
--- a/linuxthreads/internals.h
+++ b/linuxthreads/internals.h
@@ -526,7 +526,7 @@ weak_extern (__pthread_thread_self)
 #ifndef USE_TLS
 # define __manager_thread (&__pthread_manager_thread)
 #else
-# define __manager_thread manager_thread
+# define __manager_thread __pthread_manager_threadp
 #endif
 
 extern inline __attribute__((always_inline)) pthread_descr
diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c
index d44f890eba..a6a2edac81 100644
--- a/linuxthreads/pthread.c
+++ b/linuxthreads/pthread.c
@@ -55,7 +55,8 @@ extern struct __res_state _res;
 #ifdef USE_TLS
 
 /* We need only a few variables.  */
-pthread_descr manager_thread attribute_hidden;
+#define manager_thread __pthread_manager_threadp
+pthread_descr __pthread_manager_threadp attribute_hidden;
 
 #else