diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2015-06-05 12:56:14 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2015-06-05 12:56:14 +0200 |
commit | 6aa54a8b25a99455f8bb69436b5d850bbce0d5ce (patch) | |
tree | cac97a6031f25b63ac6994e570895d6d1b0f3a3e /libgomp | |
parent | ea4e787261e736ee7759514bde003b29f527dda2 (diff) | |
download | gcc-6aa54a8b25a99455f8bb69436b5d850bbce0d5ce.zip gcc-6aa54a8b25a99455f8bb69436b5d850bbce0d5ce.tar.gz gcc-6aa54a8b25a99455f8bb69436b5d850bbce0d5ce.tar.bz2 |
futex.h (futex_wait): Remove doouble initialization.
* config/linux/x86/futex.h (futex_wait) [__x86_64__]:
Remove doouble initialization.
From-SVN: r224150
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/config/linux/x86/futex.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libgomp/config/linux/x86/futex.h b/libgomp/config/linux/x86/futex.h index 0fe50e8..8f934c0 100644 --- a/libgomp/config/linux/x86/futex.h +++ b/libgomp/config/linux/x86/futex.h @@ -33,10 +33,9 @@ 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), |