* winbase.h (ilockexch): Avoid making 'ret' volatile.
(ilockcmpexch): Likewise.
This commit is contained in:
parent
cd6c79f4fe
commit
97bef5b7fd
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2009-07-07 Dave Korn <dave.korn.cygwin@gmail.com>
|
||||||
|
|
||||||
* Makefile.in (DLL_OFILES): Add libstdcxx_wrapper.o
|
* Makefile.in (DLL_OFILES): Add libstdcxx_wrapper.o
|
||||||
|
|
|
@ -40,7 +40,7 @@ ilockexch (volatile long *t, long v)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
({
|
({
|
||||||
register __typeof (*t) ret __asm ("%eax");
|
register long ret __asm ("%eax");
|
||||||
__asm __volatile ("\n"
|
__asm __volatile ("\n"
|
||||||
"1: lock cmpxchgl %2, %1\n"
|
"1: lock cmpxchgl %2, %1\n"
|
||||||
" jne 1b\n"
|
" jne 1b\n"
|
||||||
|
@ -56,7 +56,7 @@ ilockcmpexch (volatile long *t, long v, long c)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
({
|
({
|
||||||
register __typeof (*t) ret __asm ("%eax");
|
register long ret __asm ("%eax");
|
||||||
__asm __volatile ("lock cmpxchgl %2, %1"
|
__asm __volatile ("lock cmpxchgl %2, %1"
|
||||||
: "=a" (ret), "=m" (*t)
|
: "=a" (ret), "=m" (*t)
|
||||||
: "r" (v), "m" (*t), "0" (c)
|
: "r" (v), "m" (*t), "0" (c)
|
||||||
|
|
Loading…
Reference in New Issue