]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 5 May 2003 18:24:09 +0000 (18:24 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 5 May 2003 18:24:09 +0000 (18:24 +0000)
2003-05-05  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
__arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
* sysdeps/powerpc/powerpc32/bits/atomic.h
(__arch_compare_and_exchange_val_64_acq): Likewise.
* sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
(__arch_compare_and_exchange_val_8_acq,
__arch_compare_and_exchange_val_16_acq,
__arch_compare_and_exchange_val_64_acq): Likewise.
* sysdeps/sparc/sparc64/bits/atomic.h
(__arch_compare_and_exchange_val_8_acq,
__arch_compare_and_exchange_val_16_acq): Likewise.
* sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
__arch_compare_and_exchange_val_16_acq,
__arch_compare_and_exchange_val_64_acq): Likewise.
* sysdeps/unix/sysv/linux/sh/bits/atomic.h
(__arch_compare_and_exchange_val_64_acq): Likewise.
* sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
up warning.
* sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.

* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
(INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
Return long instead of int.
(INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
0xfffff001u with -4095UL.

ChangeLog
localedata/ChangeLog
sysdeps/ia64/bits/atomic.h
sysdeps/powerpc/powerpc32/bits/atomic.h
sysdeps/s390/bits/atomic.h
sysdeps/s390/fpu/fegetenv.c
sysdeps/s390/s390-64/backtrace.c
sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
sysdeps/sparc/sparc64/bits/atomic.h
sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
sysdeps/unix/sysv/linux/sh/bits/atomic.h

index 80771f3b1f6541f433c3554ba8652825b962c6de..1bfc4ae0ca942fa3d9645d9fe95b70e3d1a98d3c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,31 @@
+2003-05-05  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
+       __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
+       * sysdeps/powerpc/powerpc32/bits/atomic.h
+       (__arch_compare_and_exchange_val_64_acq): Likewise.
+       * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
+       (__arch_compare_and_exchange_val_8_acq,
+       __arch_compare_and_exchange_val_16_acq,
+       __arch_compare_and_exchange_val_64_acq): Likewise.
+       * sysdeps/sparc/sparc64/bits/atomic.h
+       (__arch_compare_and_exchange_val_8_acq,
+       __arch_compare_and_exchange_val_16_acq): Likewise.
+       * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
+       __arch_compare_and_exchange_val_16_acq,
+       __arch_compare_and_exchange_val_64_acq): Likewise.
+       * sysdeps/unix/sysv/linux/sh/bits/atomic.h
+       (__arch_compare_and_exchange_val_64_acq): Likewise.
+       * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
+       up warning.
+       * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
+
+       * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
+       (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
+       Return long instead of int.
+       (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
+       0xfffff001u with -4095UL.
+
 2003-05-05  Andreas Jaeger  <aj@suse.de>
 
        * sysdeps/x86_64/fpu_control.h: New from i386.
index c5306f8c6d7e8dd661491686ea52248cf0149804..7d6c857287046e3f637bb56ae9a98036eb9040dc 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-05  Jakub Jelinek  <jakub@redhat.com>
+
+       * tests-mbwc/tst_wcsxfrm.c (tst_wcsxfrm): Use %zu instead of %d
+       format specifier when printing ret.
+
 2003-04-30  Petter Reinholdtsen  <pere@hungry.com>
 
        * tst-fmon.c: Report name of locale if setlocale() fails.
index b6522b3272c47d11a253cd9dd1c3aa09c3900c90..ccbd4f81ae9847823d78da4191addd71b0d1c71d 100644 (file)
@@ -60,10 +60,10 @@ typedef uintmax_t uatomic_max_t;
                                     (long) (newval)))
 
 #define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 #define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
   __sync_val_compare_and_swap_si ((int *) (mem), (int) (long) (oldval), \
index 9e56184023d5e1f7235ae538cd2acbb84e1158a1..54caa45de1c9db0e01f6bf2512689339fd341ad6 100644 (file)
@@ -49,7 +49,7 @@
   (abort (), 0)
 
 # define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 # define __arch_atomic_exchange_64(mem, value) \
     ({ abort (); (*mem) = (value); })
index 51ad6d25e457e1d407f154a3817b89af6020edff..aa004734138c37a4ba426e1ea2e6b38702841e7c 100644 (file)
@@ -46,10 +46,10 @@ typedef uintmax_t uatomic_max_t;
 
 
 #define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 #define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
   ({ __typeof (mem) __archmem = (mem);                                       \
@@ -72,5 +72,5 @@ typedef uintmax_t uatomic_max_t;
    implement them by use of the csd instruction. The straightforward
    implementation causes warnings so we skip the definition for now.  */
 # define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 #endif
index 438526aa95e86d688e3374a7c0795dc0937703d9..b35a76a4e8278383062e897027af980bc8e1db46 100644 (file)
@@ -1,5 +1,5 @@
 /* Store current floating-point environment.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com).
 
@@ -36,7 +36,7 @@ fegetenv (fenv_t *envp)
      no way to find out the ieee instruction pointer if there was no fault.  */
   _FPU_GETCW (envp->fpc);
   envp->ieee_instruction_pointer =
-    ptrace (PTRACE_PEEKUSER, getpid (), PT_IEEE_IP);
+    (void *) ptrace (PTRACE_PEEKUSER, getpid (), PT_IEEE_IP);
 
   /* Success.  */
   return 0;
index 092144e70f2f2845699ed41b19e7938f1827608a..1eed72adab27be9ada714a068da8f2d7057f45bf 100644 (file)
@@ -70,7 +70,7 @@ __backtrace (array, size)
           out of range.  */
        break;
 
-      array[cnt++] = stack->save_grps[8];
+      array[cnt++] = (void *) stack->save_grps[8];
 
       stack = (struct layout *) stack->back_chain;
     }
index edab3bca16855d2fe3bafeedcf40376a043a2a7f..bb4e2db96136996f2a4d50966a678f93f879e224 100644 (file)
@@ -47,10 +47,10 @@ typedef uintmax_t uatomic_max_t;
 
 
 #define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 #define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
 ({                                                                           \
@@ -64,7 +64,7 @@ typedef uintmax_t uatomic_max_t;
 
 /* This can be implemented if needed.  */
 #define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 #define atomic_exchange(mem, newvalue) \
   ({ __typeof (*(mem)) __oldval;                                             \
index bb3c91d8d0b4781e52befbd4947b1a21f88b8bcc..4df3b2556ac9acea7b15edd7892d8f061ac9bace 100644 (file)
@@ -47,10 +47,10 @@ typedef uintmax_t uatomic_max_t;
 
 
 #define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 #define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
 ({                                                                           \
index 41ec395a3261ea122d2327ccec78d292c3adbac6..9abc06e229a0454d5bfa6bf340bf9c3b4c1318be 100644 (file)
 #undef INLINE_SYSCALL
 #define INLINE_SYSCALL(name, nr, args...)                                    \
   ({                                                                         \
-    unsigned int _ret = INTERNAL_SYSCALL (name, , nr, args);                 \
+    long _ret = INTERNAL_SYSCALL (name, , nr, args);                         \
     if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (_ret, ), 0))             \
      {                                                                       \
        __set_errno (INTERNAL_SYSCALL_ERRNO (_ret, ));                        \
        _ret = -1;                                                            \
      }                                                                       \
-    (int) _ret; })
+    _ret; })
 
 #undef INTERNAL_SYSCALL_DECL
 #define INTERNAL_SYSCALL_DECL(err) do { } while (0)
 #define INTERNAL_SYSCALL_DIRECT(name, err, nr, args...)                              \
   ({                                                                         \
     DECLARGS_##nr(args)                                                              \
-    register int _ret asm("2");                                                      \
+    register long _ret asm("2");                                             \
     asm volatile (                                                           \
     "svc    %b1\n\t"                                                         \
     : "=d" (_ret)                                                            \
   ({                                                                         \
     DECLARGS_##nr(args)                                                              \
     register unsigned long _nr asm("1") = (unsigned long)(__NR_##name);              \
-    register int _ret asm("2");                                                      \
+    register long _ret asm("2");                                             \
     asm volatile (                                                           \
     "svc    0\n\t"                                                           \
     : "=d" (_ret)                                                            \
 
 #undef INTERNAL_SYSCALL_ERROR_P
 #define INTERNAL_SYSCALL_ERROR_P(val, err)                                   \
-  ((unsigned int) (val) >= 0xfffff001u)
+  ((unsigned long) (val) >= -4095UL)
 
 #undef INTERNAL_SYSCALL_ERRNO
 #define INTERNAL_SYSCALL_ERRNO(val, err)       (-(val))
index e692595960b54085f28a19927c67af7361679b60..a0e5918f03a065e0d4282c520dd17df095696d52 100644 (file)
@@ -122,7 +122,7 @@ typedef uintmax_t uatomic_max_t;
    such an operation.  So don't define any code for now.  */
 
 # define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 #define atomic_exchange_and_add(mem, value) \
   ({ __typeof (*(mem)) __result, __tmp, __value = (value); \