소스 검색

gcc says
spinlock.c:35: warning: matching constraint does not allow a register

Update the asm to match glibc.

Joakim Tjernlund 19 년 전
부모
커밋
4227fc98fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      libpthread/linuxthreads/spinlock.c

+ 1 - 1
libpthread/linuxthreads/spinlock.c

@@ -32,7 +32,7 @@ static inline void __pthread_release(int * spinlock)
 {
   WRITE_MEMORY_BARRIER();
   *spinlock = __LT_SPINLOCK_INIT;
-  __asm __volatile ("" : "=m" (*spinlock) : "0" (*spinlock));
+  __asm __volatile ("" : "=m" (*spinlock) : "m" (*spinlock));
 }