summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/winbase.h
diff options
context:
space:
mode:
authorDave Korn <dave.korn.cygwin@gmail.com>2009-07-07 21:41:43 +0000
committerDave Korn <dave.korn.cygwin@gmail.com>2009-07-07 21:41:43 +0000
commit97bef5b7fd4a21a3655870220fb0886cea3f3f42 (patch)
tree39d4331a023e7899a1ebb6366c088982754a34fe /winsup/cygwin/winbase.h
parentcd6c79f4fe3b70980e8acced95fa1819410721f2 (diff)
downloadcygnal-97bef5b7fd4a21a3655870220fb0886cea3f3f42.tar.gz
cygnal-97bef5b7fd4a21a3655870220fb0886cea3f3f42.tar.bz2
cygnal-97bef5b7fd4a21a3655870220fb0886cea3f3f42.zip
* winbase.h (ilockexch): Avoid making 'ret' volatile.
(ilockcmpexch): Likewise.
Diffstat (limited to 'winsup/cygwin/winbase.h')
-rw-r--r--winsup/cygwin/winbase.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/winbase.h b/winsup/cygwin/winbase.h
index eec196d53..00c71a923 100644
--- a/winsup/cygwin/winbase.h
+++ b/winsup/cygwin/winbase.h
@@ -40,7 +40,7 @@ ilockexch (volatile long *t, long v)
{
return
({
- register __typeof (*t) ret __asm ("%eax");
+ register long ret __asm ("%eax");
__asm __volatile ("\n"
"1: lock cmpxchgl %2, %1\n"
" jne 1b\n"
@@ -56,7 +56,7 @@ ilockcmpexch (volatile long *t, long v, long c)
{
return
({
- register __typeof (*t) ret __asm ("%eax");
+ register long ret __asm ("%eax");
__asm __volatile ("lock cmpxchgl %2, %1"
: "=a" (ret), "=m" (*t)
: "r" (v), "m" (*t), "0" (c)