Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-06-05 03:55:44 +0400
committerChristopher Faylor <me@cgf.cx>2004-06-05 03:55:44 +0400
commitcf4bfdb2f8d4554eb10291762fcf933f6084260a (patch)
treef81b5195d20bbb9a465d9ae85ddaae7eb8f67467 /winsup/cygwin/winbase.h
parent04612c69eb22ce29040765a84841591ece412d68 (diff)
* winbase.h (ilockincr): Add more neverending changes from the inexplicable
world of gcc asm constraint magic. Should stop random crashes. (ilockdecr): Ditto.
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 6f9228efc..177de7aef 100644
--- a/winsup/cygwin/winbase.h
+++ b/winsup/cygwin/winbase.h
@@ -19,7 +19,7 @@ ilockincr (long *m)
movl $1,%0\n\
lock xadd %0,%1\n\
inc %0\n\
- ": "=a" (__res), "=m" (*m): "m" (m): "cc");
+ ": "=r" (__res), "=m" (*m): "m" (*m): "cc");
return __res;
}
@@ -31,7 +31,7 @@ ilockdecr (long *m)
movl $0xffffffff,%0\n\
lock xadd %0,%1\n\
dec %0\n\
- ": "=a" (__res), "=m" (*m): "m" (m): "cc");
+ ": "=r" (__res), "=m" (*m): "m" (*m): "cc");
return __res;
}