OSDN Git Service

* winbase.h (ilockincr): Add more neverending changes from the inexplicable
authorcgf <cgf>
Fri, 4 Jun 2004 23:55:44 +0000 (23:55 +0000)
committercgf <cgf>
Fri, 4 Jun 2004 23:55:44 +0000 (23:55 +0000)
world of gcc asm constraint magic.  Should stop random crashes.
(ilockdecr): Ditto.

winsup/cygwin/ChangeLog
winsup/cygwin/winbase.h

index 6385fc1..0253d98 100644 (file)
@@ -1,3 +1,10 @@
+2004-06-04  Christopher Faylor  <cgf@alum.bu.edu>
+
+       * winbase.h (ilockincr): Add more neverending changes from the
+       inexplicable world of gcc asm constraint magic.  Should stop random
+       crashes.
+       (ilockdecr): Ditto.
+
 2004-06-03  Christopher Faylor  <cgf@alum.bu.edu>
 
        * autoload.cc (IsDosDeviceName_U): Define.
index 6f9228e..177de7a 100644 (file)
@@ -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;
 }