This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 4/4, libitm, x86]: Change gtm_futex_{wait,wake} to int


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]