diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-14 15:08:23 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-14 15:08:23 +0000 |
commit | 7a1d4fa085507dee8e798ca1cf5e47de31e29d51 (patch) | |
tree | 191fec26db2f70309a796c92680fabc73c25c6e6 /libgomp/config | |
parent | eff5f205c1f3ef1ac0652aba6bf16f196beecbc5 (diff) | |
download | gcc-7a1d4fa085507dee8e798ca1cf5e47de31e29d51.tar.gz |
PR libgomp/47731
* config/linux/futex.h (futex_wait): Pass NULL as timeout argument
to FUTEX_WAIT futex syscall.
* config/linux/wait.h: Include <futex.h> instead of "futex.h".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170133 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/config')
-rw-r--r-- | libgomp/config/linux/futex.h | 6 | ||||
-rw-r--r-- | libgomp/config/linux/wait.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libgomp/config/linux/futex.h b/libgomp/config/linux/futex.h index 7324b78383e..bab088a558b 100644 --- a/libgomp/config/linux/futex.h +++ b/libgomp/config/linux/futex.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2010 Free Software Foundation, Inc. +/* Copyright (C) 2010, 2011 Free Software Foundation, Inc. Contributed by ARM Ltd. This file is part of the GNU OpenMP Library (libgomp). @@ -41,12 +41,12 @@ static inline void futex_wait (int *addr, int val) { - long err = syscall (SYS_futex, addr, gomp_futex_wait, val); + long err = syscall (SYS_futex, addr, gomp_futex_wait, val, NULL); if (__builtin_expect (err == -ENOSYS, 0)) { gomp_futex_wait &= ~FUTEX_PRIVATE_FLAG; gomp_futex_wake &= ~FUTEX_PRIVATE_FLAG; - syscall (SYS_futex, addr, gomp_futex_wait, val); + syscall (SYS_futex, addr, gomp_futex_wait, val, NULL); } } diff --git a/libgomp/config/linux/wait.h b/libgomp/config/linux/wait.h index bd5bb637727..0e8abf111b0 100644 --- a/libgomp/config/linux/wait.h +++ b/libgomp/config/linux/wait.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2008, 2009 Free Software Foundation, Inc. +/* Copyright (C) 2008, 2009, 2011 Free Software Foundation, Inc. Contributed by Jakub Jelinek <jakub@redhat.com>. This file is part of the GNU OpenMP Library (libgomp). @@ -42,7 +42,7 @@ extern long int gomp_futex_wait, gomp_futex_wake; -#include "futex.h" +#include <futex.h> static inline void do_wait (int *addr, int val) { |