This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 4/4, libitm, x86]: Change gtm_futex_{wait,wake} to int
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Richard Henderson <rth at redhat dot com>
- Date: Wed, 27 May 2015 23:32:28 +0200
- Subject: [PATCH 4/4, libitm, x86]: Change gtm_futex_{wait,wake} to int
- Authentication-results: sourceware.org; auth=none
2015-05-27 Uros Bizjak <ubizjak@gmail.com>
Revert:
* config/linux/x86/futex_bits.h (sys_futex0) [!__x86_64__]:
Change operand "op" to long.
2015-05-27 Uros Bizjak <ubizjak@gmail.com>
* config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
operands "op" and "val" to int.
Tested on x86_64-linux-gnu {,-m32}.
OK for mainline?
Uros.
Index: config/linux/x86/futex_bits.h
===================================================================
--- config/linux/x86/futex_bits.h (revision 223771)
+++ config/linux/x86/futex_bits.h (working copy)
@@ -28,7 +28,7 @@
# endif
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;
long res;
@@ -47,7 +47,7 @@
# endif
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;