OSDN Git Service

* winbase.h (ilockexch): Avoid making 'ret' volatile.
authordavek <davek>
Tue, 7 Jul 2009 21:41:43 +0000 (21:41 +0000)
committerdavek <davek>
Tue, 7 Jul 2009 21:41:43 +0000 (21:41 +0000)
(ilockcmpexch): Likewise.

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

index dcabc29..e3163bb 100644 (file)
@@ -1,5 +1,10 @@
 2009-07-07  Dave Korn  <dave.korn.cygwin@gmail.com>
 
+       * winbase.h (ilockexch): Avoid making 'ret' volatile.
+       (ilockcmpexch): Likewise.
+
+2009-07-07  Dave Korn  <dave.korn.cygwin@gmail.com>
+
        * Makefile.in (DLL_OFILES): Add libstdcxx_wrapper.o
        (libstdcxx_wrapper_CFLAGS): Add flags for new module.
        (_cygwin_crt0_common_STDINCFLAGS): Define per-file override.
index eec196d..00c71a9 100644 (file)
@@ -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)