From: Andreas Schwab Date: Tue, 25 Mar 2003 23:41:38 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: upstream/2.30~19618 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9fdf211e6866677d67167ba7a77ac4798fe5cb1d;p=external%2Fglibc.git *** empty log message *** * sysdeps/m68k/m68020/bits/atomic.h: Fix typos. * include/atomic.h: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 25f4b79..b264ca2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-03-26 Andreas Schwab + * sysdeps/m68k/m68020/bits/atomic.h: Fix typos. + * include/atomic.h: Likewise. + * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO. 2003-03-25 Roland McGrath diff --git a/include/atomic.h b/include/atomic.h index 3a0ec3a..56b0729 100644 --- a/include/atomic.h +++ b/include/atomic.h @@ -190,7 +190,7 @@ #ifndef atomic_add_negative # define atomic_add_negative(mem, value) \ ({ __typeof (value) __value = (value); \ - atomic_exchange_and_add ((mem), __value) < -__value); }) + atomic_exchange_and_add ((mem), __value) < -__value; }) #endif diff --git a/sysdeps/m68k/m68020/bits/atomic.h b/sysdeps/m68k/m68020/bits/atomic.h index 09c33c1..80b5b8f 100644 --- a/sysdeps/m68k/m68020/bits/atomic.h +++ b/sysdeps/m68k/m68020/bits/atomic.h @@ -99,7 +99,7 @@ typedef uintmax_t uatomic_max_t; __asm __volatile ("1: cas2%.l %0:%R0,%1:%R1,(%2):(%3);" \ " jbne 1b" \ : "=d" (__result) \ - : "d" (newval), "r" (__memp), \ + : "d" (newvalue), "r" (__memp), \ "r" ((char *) __memp + 4), "0" (__result) \ : "memory"); \ } \ @@ -195,7 +195,7 @@ typedef uintmax_t uatomic_max_t; : "1" (*(mem))); \ else \ { \ - __typef (mem) __memp = (mem); \ + __typeof (mem) __memp = (mem); \ __typeof (*(mem)) __oldval = *__memp; \ __typeof (*(mem)) __temp; \ __asm __volatile ("1: move%.l %1,%2;" \