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 3/4, libitm, sh]: Change gtm_futex_{wait,wake} to int


2015-05-27  Uros Bizjak  <ubizjak@gmail.com>

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

Untested.

OK for mainline?

Uros.

Index: config/linux/sh/futex_bits.h
===================================================================
--- config/linux/sh/futex_bits.h        (revision 223771)
+++ config/linux/sh/futex_bits.h        (working copy)
@@ -32,7 +32,7 @@
        trapa #0x14; or r0,r0; or r0,r0; or r0,r0; or r0,r0; or r0,r0"

 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;
   register long __r3 asm ("r3") = SYS_futex;


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