Commit d778b5a0 by Uros Bizjak Committed by Uros Bizjak

futex_bits.h (sys_futex0): Change operands "op" and "val" to int.

	* config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
	operands "op" and "val" to int.

	* config/linux/sh/futex_bits.h (sys_futex0) Change operands
	"op" and "val" to int.

	* config/linux/alpha/futex_bits.h (sys_futex0) Change operands
	"op" and "val" to int.

	* config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
	Declare as static int.
	(FUTEX_PRIVATE_FLAG): Remove L suffix.
	* config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.

	Revert:
	* config/linux/x86/futex.h (sys_futex0) [!__x86_64__]:
	Change operand "op" to long.

From-SVN: r223844
parent ac3efa77
2015-05-27 Uros Bizjak <ubizjak@gmail.com> 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
* config/linux/x86/futex_bits.h (sys_futex0) [!__x86_64__]: * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
Change operand "op" to long. operands "op" and "val" to int.
[__PIC__]: Remove sys_futex0 function.
2015-05-27 Uros Bizjak <ubizjak@gmail.com>
* config/linux/sh/futex_bits.h (sys_futex0) Change operands
"op" and "val" to int.
2015-05-27 Uros Bizjak <ubizjak@gmail.com>
* config/linux/alpha/futex_bits.h (sys_futex0) Change operands
"op" and "val" to int.
2015-05-27 Uros Bizjak <ubizjak@gmail.com>
* config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
Declare as static int.
(FUTEX_PRIVATE_FLAG): Remove L suffix.
* config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
2015-05-27 Uros Bizjak <ubizjak@gmail.com>
* config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
sys_futex0 function.
2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#endif #endif
static inline long static inline long
sys_futex0 (std::atomic<int> *addr, long op, long val) sys_futex0 (std::atomic<int> *addr, int op, int val)
{ {
register long sc_0 __asm__("$0"); register long sc_0 __asm__("$0");
register long sc_16 __asm__("$16"); register long sc_16 __asm__("$16");
......
...@@ -33,11 +33,11 @@ namespace GTM HIDDEN { ...@@ -33,11 +33,11 @@ namespace GTM HIDDEN {
#define FUTEX_WAIT 0 #define FUTEX_WAIT 0
#define FUTEX_WAKE 1 #define FUTEX_WAKE 1
#define FUTEX_PRIVATE_FLAG 128L #define FUTEX_PRIVATE_FLAG 128
static long int gtm_futex_wait = FUTEX_WAIT | FUTEX_PRIVATE_FLAG; static int gtm_futex_wait = FUTEX_WAIT | FUTEX_PRIVATE_FLAG;
static long int gtm_futex_wake = FUTEX_WAKE | FUTEX_PRIVATE_FLAG; static int gtm_futex_wake = FUTEX_WAKE | FUTEX_PRIVATE_FLAG;
void void
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <errno.h> #include <errno.h>
static inline long static inline long
sys_futex0 (std::atomic<int> *addr, long op, long val) sys_futex0 (std::atomic<int> *addr, int op, int val)
{ {
long res = syscall (SYS_futex, (int*) addr, op, val, 0); long res = syscall (SYS_futex, (int*) addr, op, val, 0);
if (__builtin_expect (res == -1, 0)) if (__builtin_expect (res == -1, 0))
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
trapa #0x14; or r0,r0; or r0,r0; or r0,r0; or r0,r0; or r0,r0" trapa #0x14; or r0,r0; or r0,r0; or r0,r0; or r0,r0; or r0,r0"
static inline long static inline long
sys_futex0 (std::atomic<int> *addr, long op, long val) sys_futex0 (std::atomic<int> *addr, int op, int val)
{ {
int __status; int __status;
register long __r3 asm ("r3") = SYS_futex; register long __r3 asm ("r3") = SYS_futex;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
# endif # endif
static inline long static inline long
sys_futex0 (std::atomic<int> *addr, long op, long val) sys_futex0 (std::atomic<int> *addr, int op, int val)
{ {
register long r10 __asm__("%r10") = 0; register long r10 __asm__("%r10") = 0;
long res; long res;
...@@ -47,7 +47,7 @@ sys_futex0 (std::atomic<int> *addr, long op, long val) ...@@ -47,7 +47,7 @@ sys_futex0 (std::atomic<int> *addr, long op, long val)
# endif # endif
static inline long static inline long
sys_futex0 (std::atomic<int> *addr, long op, int val) sys_futex0 (std::atomic<int> *addr, int op, int val)
{ {
long res; long res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment