diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2015-05-27 21:35:58 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2015-05-27 21:35:58 +0200 |
commit | ea023bcfd8a6549df22232792038310fd4f2f967 (patch) | |
tree | 6e06f073ef60126e056bb321e26c5377718325a1 /libgomp | |
parent | 8974754f6f12f2f032d4122b06d26319545ced00 (diff) | |
download | gcc-ea023bcfd8a6549df22232792038310fd4f2f967.zip gcc-ea023bcfd8a6549df22232792038310fd4f2f967.tar.gz gcc-ea023bcfd8a6549df22232792038310fd4f2f967.tar.bz2 |
futex.h (sys_futex0): Change operand "op" to long.
libgomp/ChangeLog:
* config/linux/x86/futex.h (sys_futex0) [!__x86_64__]:
Change operand "op" to long.
[__PIC__]: Remove sys_futex0 function.
libitm/ChangeLog:
* config/linux/x86/futex_bits.h (sys_futex0) [!__x86_64__]:
Change operand "op" to long.
[__PIC__]: Remove sys_futex0 function.
From-SVN: r223771
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 6 | ||||
-rw-r--r-- | libgomp/config/linux/x86/futex.h | 23 |
2 files changed, 7 insertions, 22 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 07eec06..0725c60 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2015-05-27 Uros Bizjak <ubizjak@gmail.com> + + * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: + Change operand "op" to long. + [__PIC__]: Remove sys_futex0 function. + 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com> * target.c (gomp_map_pointer): New function abstracting out diff --git a/libgomp/config/linux/x86/futex.h b/libgomp/config/linux/x86/futex.h index 6c6d317..7ae36fe 100644 --- a/libgomp/config/linux/x86/futex.h +++ b/libgomp/config/linux/x86/futex.h @@ -81,27 +81,8 @@ futex_wake (int *addr, int count) # define SYS_futex 240 # endif -# ifdef __PIC__ - static inline long -sys_futex0 (int *addr, int op, int val) -{ - long res; - - __asm volatile ("xchgl\t%%ebx, %2\n\t" - "int\t$0x80\n\t" - "xchgl\t%%ebx, %2" - : "=a" (res) - : "0"(SYS_futex), "r" (addr), "c"(op), - "d"(val), "S"(0) - : "memory"); - return res; -} - -# else - -static inline long -sys_futex0 (int *addr, int op, int val) +sys_futex0 (int *addr, long op, int val) { long res; @@ -113,8 +94,6 @@ sys_futex0 (int *addr, int op, int val) return res; } -# endif /* __PIC__ */ - static inline void futex_wait (int *addr, int val) { |