]> gcc.gnu.org Git - gcc.git/commitdiff
futex.h (futex_wait): Remove doouble initialization.
authorUros Bizjak <uros@gcc.gnu.org>
Fri, 5 Jun 2015 10:56:14 +0000 (12:56 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 5 Jun 2015 10:56:14 +0000 (12:56 +0200)
* config/linux/x86/futex.h (futex_wait) [__x86_64__]:
Remove doouble initialization.

From-SVN: r224150

libgomp/config/linux/x86/futex.h

index 0fe50e851cc18439c30337867f1761c144e19a99..8f934c0c63d0002d8dc4896f6ae4efea414ab180 100644 (file)
 static inline void
 futex_wait (int *addr, int val)
 {
-  register long r10 __asm__("%r10");
   long res;
 
-  r10 = 0;
+  register long r10 __asm__("%r10") = 0;
   __asm volatile ("syscall"
                  : "=a" (res)
                  : "0" (SYS_futex), "D" (addr), "S" (gomp_futex_wait),
@@ -46,7 +45,6 @@ futex_wait (int *addr, int val)
     {
       gomp_futex_wait &= ~FUTEX_PRIVATE_FLAG;
       gomp_futex_wake &= ~FUTEX_PRIVATE_FLAG;
-      r10 = 0;
       __asm volatile ("syscall"
                      : "=a" (res)
                      : "0" (SYS_futex), "D" (addr), "S" (gomp_futex_wait),
This page took 0.053672 seconds and 5 git commands to generate.