about summary refs log tree commit diff
path: root/sysdeps/powerpc
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-20 11:40:51 +0000
committerRoland McGrath <roland@gnu.org>2003-03-20 11:40:51 +0000
commit2ff16e041a767bfedec01b6f614ecffb3fb0f653 (patch)
tree31974e18afc84665f33f826ecd15e0fde6629bf3 /sysdeps/powerpc
parent41f3e892d866923e4ad07c4d0e8165ec2237cb22 (diff)
downloadglibc-2ff16e041a767bfedec01b6f614ecffb3fb0f653.tar.gz
glibc-2ff16e041a767bfedec01b6f614ecffb3fb0f653.tar.xz
glibc-2ff16e041a767bfedec01b6f614ecffb3fb0f653.zip
* 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.
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r--sysdeps/powerpc/bits/atomic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/bits/atomic.h b/sysdeps/powerpc/bits/atomic.h
index 13001cb3c0..956272c482 100644
--- a/sysdeps/powerpc/bits/atomic.h
+++ b/sysdeps/powerpc/bits/atomic.h
@@ -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; })