]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 30 Jan 2003 18:41:47 +0000 (18:41 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 30 Jan 2003 18:41:47 +0000 (18:41 +0000)
2002-10-07  Wolfram Gloger  <wg@malloc.de>

* malloc/malloc.c (sYSMALLOc): Only check for breakage due
to foreign sbrk()'s if arena is contiguous.  Bug report from
Bruno Haible <bruno@clisp.org>.

2003-01-30  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/s390/libc-tls.c: Include stdlib.h.

2003-01-30  Jakub Jelinek  <jakub@redhat.com>

* stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
ps.__count.

2003-01-30  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
restoring of %r6.
* sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.  Use
64-bit load.
Patch by Martin Schwidefsky  <schwidefsky@de.ibm.com>.

2003-01-30  Jakub Jelinek  <jakub@redhat.com>

* elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
(allocate_static_tls): ...here.  Add __attribute_noinline__.
Don't return on failure.
(_dl_reloc_bad_type): Add __attribute_noinline__.
* elf/do-rel.h (elf_dynamic_do_rel): Add
__attribute__((always_inline)).
* elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
elf_machine_rel_relative, elf_machine_rela_relative,
elf_machine_lazy_rel): Add prototypes with
__attribute__((always_inline)).

2003-01-29  David Mosberger  <davidm@hpl.hp.com>

* elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.

ChangeLog
linuxthreads/ChangeLog
linuxthreads/sysdeps/s390/tls.h
malloc/malloc.c
nptl/ChangeLog
nptl/sysdeps/pthread/pthread-functions.h
stdio-common/vfprintf.c
sysdeps/s390/libc-tls.c

index 5f19aff9729c402464359c11ada287bb055377ce..51b9b130347333e0d6a6e2e6140e7aeaf093a464 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,46 @@
+2002-10-07  Wolfram Gloger  <wg@malloc.de>
+
+       * malloc/malloc.c (sYSMALLOc): Only check for breakage due
+       to foreign sbrk()'s if arena is contiguous.  Bug report from
+       Bruno Haible <bruno@clisp.org>.
+
+2003-01-30  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/s390/libc-tls.c: Include stdlib.h.
+
+2003-01-30  Jakub Jelinek  <jakub@redhat.com>
+
+       * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
+       ps.__count.
+
+2003-01-30  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
+       restoring of %r6.
+       * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.  Use
+       64-bit load.
+       Patch by Martin Schwidefsky  <schwidefsky@de.ibm.com>.
+
+2003-01-30  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
+       (allocate_static_tls): ...here.  Add __attribute_noinline__.
+       Don't return on failure.
+       (_dl_reloc_bad_type): Add __attribute_noinline__.
+       * elf/do-rel.h (elf_dynamic_do_rel): Add
+       __attribute__((always_inline)).
+       * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
+       elf_machine_rel_relative, elf_machine_rela_relative,
+       elf_machine_lazy_rel): Add prototypes with
+       __attribute__((always_inline)).
+
+2003-01-29  David Mosberger  <davidm@hpl.hp.com>
+
+       * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
+
 2003-01-29  Roland McGrath  <roland@redhat.com>
 
        * configure.in: Barf if configured in $srcdir.
-       * configure: Regenerated.
 
 2003-01-28  Steven Munroe  <sjmunroe@us.ibm.com>
 
index 52da3264ae6fb0095f58fa3c00cf770fd3d87af0..516664c3a12fa94876d061f6b6adf3cd527bf63f 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-30  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/s390/tls.h (TLS_INIT_TP): Return NULL, not 0.
+
 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/alpha/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC,
index 11f31ba88acb252e2712b4adbe3ab802f904571b..41a83a72fbbd4d0da5e2173656c60973bd5cbf2e 100644 (file)
@@ -110,7 +110,7 @@ typedef struct
     head->self = _descr;                                                     \
                                                                              \
     __builtin_set_thread_pointer (_descr);                                   \
-    0;                                                                       \
+    NULL;                                                                    \
   })
 
 /* Return the address of the dtv for the current thread.  */
index da834d2663c80b4739aa6035db6b55a527f708f2..4d1773a3b8df06376379549d31fab926b00605ab 100644 (file)
@@ -2944,7 +2944,7 @@ static Void_t* sYSMALLOc(nb, av) INTERNAL_SIZE_T nb; mstate av;
     if (brk == old_end && snd_brk == (char*)(MORECORE_FAILURE))
       set_head(old_top, (size + old_size) | PREV_INUSE);
 
-    else if (old_size && brk < old_end) {
+    else if (contiguous(av) && old_size && brk < old_end) {
       /* Oops!  Someone else killed our space..  Can't touch anything.  */
       assert(0);
     }
index f6977abad8cbe720c9b78ee0dffad2d8e59d42e3..9d9c68c7fad8a1c425a3e7bf5e2ec80f5acc032d 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-30  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
+       Fix return type of ptr___pthread_getspecific.
+
 2003-01-29  Ulrich Drepper  <drepper@redhat.com>
 
        * Makefile (tests): Add tst-umask1.
index 17e3f83216024c590c7533d7d595fa2bb12d0492..45c7f900c6020bfec16e6a30c9a31ea73f89bbf3 100644 (file)
@@ -77,7 +77,7 @@ struct pthread_functions
   int (*ptr___pthread_rwlock_wrlock) (pthread_rwlock_t *);
   int (*ptr___pthread_rwlock_unlock) (pthread_rwlock_t *);
   int (*ptr___pthread_key_create) (pthread_key_t *, void (*) (void *));
-  int (*ptr___pthread_getspecific) (pthread_key_t);
+  void *(*ptr___pthread_getspecific) (pthread_key_t);
   int (*ptr___pthread_setspecific) (pthread_key_t, const void *);
   void (*ptr__pthread_cleanup_push_defer) (struct _pthread_cleanup_buffer *,
                                           void (*) (void *), void *);
index 26277e2b22de4a37a9ffc32ac74908a0b5586142..087bf91b21bee1cf708da0568996b7f508e1b924 100644 (file)
@@ -1185,7 +1185,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
                    if (str2 == NULL)                                         \
                      len = strlen (string);                                  \
                    else                                                      \
-                     len = str2 - string - (ps.__count);                     \
+                     len = str2 - string - (ps.__count & 7);                 \
                  }                                                           \
              }                                                               \
            else                                                              \
index bc433f8f6f6d647d70d03c528412c8be405a7910..7362dbf8f8a78ffca2ce4bb781fba8054b01f0ee 100644 (file)
@@ -1,4 +1,4 @@
-/* Thread-local storage handling in the ELF dynamic linker.  IA-64 version.
+/* Thread-local storage handling in the ELF dynamic linker.  S390 version.
    Copyright (C) 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -17,6 +17,7 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#include <stdlib.h>
 #include <sysdeps/generic/libc-tls.c>
 
 #if USE_TLS
@@ -34,4 +35,3 @@ __tls_get_offset (size_t m, size_t offset)
 }
 
 #endif
-