diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-05 10:56:14 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-05 10:56:14 +0000 |
commit | 2f54ec01836310dc7009248d6e1bb4ace65cb5a8 (patch) | |
tree | cac97a6031f25b63ac6994e570895d6d1b0f3a3e /libgomp/config | |
parent | 9b2948854c25c32eaafb078a8b2ad33403509fc0 (diff) | |
download | gcc-2f54ec01836310dc7009248d6e1bb4ace65cb5a8.tar.gz |
* config/linux/x86/futex.h (futex_wait) [__x86_64__]:
Remove doouble initialization.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/config')
-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 0fe50e851cc..8f934c0c63d 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), |