]> sourceware.org Git - glibc.git/commitdiff
* sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
authorRoland McGrath <roland@gnu.org>
Thu, 20 Mar 2003 11:40:51 +0000 (11:40 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 20 Mar 2003 11:40:51 +0000 (11:40 +0000)
variable.  Remove superfluous memory clobber.

* include/atomic.h: Syntax braino fix.

* posix/tst-nice.c (do_test): Use %m formats instead of printing errno
in decimal.  Don't bail if niced at start.  Just check that nice call
bumps the total at all.

ChangeLog
include/atomic.h
sysdeps/powerpc/bits/atomic.h

index 968819437491bb7f8f1c2de2b15a5f616a6a4078..e5b96622f0f0b437e73a198645132ba80edf5b5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2003-03-20  Roland McGrath  <roland@redhat.com>
+
+       * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
+       variable.  Remove superfluous memory clobber.
+
+       * include/atomic.h: Syntax braino fix.
+
+       * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
+       in decimal.  Don't bail if niced at start.  Just check that nice call
+       bumps the total at all.
+
 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
 
        * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
index 517776452b4843906b72acfa1f28a320a95f2be2..87b2df8d21378a1e93b2443f0508bd28c83b2d54 100644 (file)
 
 
 /* Decrement *MEM if it is > 0, and return the old value.  */
-#ifndef atomic_decrement_if_positive(mem) \
+#ifndef atomic_decrement_if_positive
+# define atomic_decrement_if_positive(mem)                                   \
   ({ __typeof (*mem) __val;                                                  \
      __typeof (*mem) __oldval;                                               \
      __typeof (mem) __memp;                                                  \
index 13001cb3c04a76c9865e2a560db59d896e0d4c46..956272c482f068925e038bc98151d387d1e71c0f 100644 (file)
@@ -111,14 +111,14 @@ typedef uintmax_t uatomic_max_t;
 #define atomic_exchange(mem, value) \
   ({ if (sizeof (*mem) != 4)                                                 \
        abort ();                                                             \
-     int __val, __tmp;                                                       \
+     int __val;                                                                      \
       __asm __volatile (__ARCH_REL_INSTR "\n"                                \
                        "1:     lwarx   %0,0,%2\n"                            \
                        "       stwcx.  %3,0,%2\n"                            \
                        "       bne-    1b"                                   \
                        : "=&r" (__val), "=m" (*mem)                          \
                        : "r" (mem), "r" (value), "1" (*mem)                  \
-                       : "cr0", "memory");                                   \
+                       : "cr0");                                             \
       __val; })
 
 
This page took 0.052693 seconds and 5 git commands to generate.