[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 85/437: add (void) casts for C++ compatibility
From: |
Andy Wingo |
Subject: |
[Guile-commits] 85/437: add (void) casts for C++ compatibility |
Date: |
Mon, 2 Jul 2018 05:13:50 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 297ed204deec984b07724578564923954c67d117
Author: Laurent Michel <address@hidden>
Date: Fri Jun 13 17:13:33 2008 -0700
add (void) casts for C++ compatibility
2008-06-13 Laurent Michel <address@hidden>
* lightning/i386/core-64.h: Add (void) casts for C++ compatibility.
* lightning/i386/asm.h: Likewise.
---
ChangeLog | 5 +++++
lightning/i386/asm.h | 2 +-
lightning/i386/core-64.h | 6 +++---
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 54c911c..dbdbe5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-13 Laurent Michel <address@hidden>
+
+ * lightning/i386/core-64.h: Add (void) casts for C++ compatibility.
+ * lightning/i386/asm.h: Likewise.
+
2008-06-12 Paolo Bonzini <address@hidden>
* lightning/i386/core.h: Move JIT_V definition...
diff --git a/lightning/i386/asm.h b/lightning/i386/asm.h
index 4861511..ad404fc 100644
--- a/lightning/i386/asm.h
+++ b/lightning/i386/asm.h
@@ -246,7 +246,7 @@ typedef _uc jit_insn;
#define _BIT(X) (!!(X))
#define _d64(W,R,X,B) (_jit_B(0x40|(W)<<3|(R)<<2|(X)<<1|(B)))
-#define __REXwrxb(L,W,R,X,B) ((W|R|X|B) || (L) ? _d64(W,R,X,B) : ((void)0))
+#define __REXwrxb(L,W,R,X,B) ((W|R|X|B) || (L) ? (void)_d64(W,R,X,B) :
((void)0))
#define __REXwrx_(L,W,R,X,MR) (__REXwrxb(L,W,R,X,_BIT(_rIP(MR)?0:_rXP(MR))))
#define __REXw_x_(L,W,R,X,MR) (__REXwrx_(L,W,_BIT(_rXP(R)),X,MR))
#define __REX_reg(RR) (__REXwrxb(0,0,0,00,_BIT(_rXP(RR))))
diff --git a/lightning/i386/core-64.h b/lightning/i386/core-64.h
index da391ae..e19789b 100644
--- a/lightning/i386/core-64.h
+++ b/lightning/i386/core-64.h
@@ -138,11 +138,11 @@ struct jit_local_state {
#define jit_shift_args() \
(_jitl.argssize-- \
- ? (MOVQrr(JIT_CALLTMPSTART + _jitl.argssize, jit_arg_reg_order[0]), \
+ ? ((void)MOVQrr(JIT_CALLTMPSTART + _jitl.argssize, jit_arg_reg_order[0]), \
(_jitl.argssize-- \
- ? (MOVQrr(JIT_CALLTMPSTART + _jitl.argssize, jit_arg_reg_order[1]), \
+ ? ((void)MOVQrr(JIT_CALLTMPSTART + _jitl.argssize,
jit_arg_reg_order[1]), \
(_jitl.argssize-- \
- ? MOVQrr(JIT_CALLTMPSTART, jit_arg_reg_order[2]) \
+ ? (void)MOVQrr(JIT_CALLTMPSTART, jit_arg_reg_order[2]) \
: (void)0)) \
: (void)0)) \
: (void)0)
- [Guile-commits] 105/437: fix 64-bit load with sign extension, (continued)
- [Guile-commits] 105/437: fix 64-bit load with sign extension, Andy Wingo, 2018/07/02
- [Guile-commits] 70/437: add _s32P, Andy Wingo, 2018/07/02
- [Guile-commits] 121/437: Define some extra fp-common macros when sizeof(long) == sizeof(int)., Andy Wingo, 2018/07/02
- [Guile-commits] 77/437: add .gitattributes file, Andy Wingo, 2018/07/02
- [Guile-commits] 44/437: merge some bugfixes, give right meaning to jit_retval_[fd], Andy Wingo, 2018/07/02
- [Guile-commits] 106/437: ldst test update, Andy Wingo, 2018/07/02
- [Guile-commits] 114/437: Change JIT_REXTMP to not clobber 6th argument., Andy Wingo, 2018/07/02
- [Guile-commits] 88/437: move JIT_R1/JIT_R2 to R10/R11 for the x86_64 backend, Andy Wingo, 2018/07/02
- [Guile-commits] 133/437: Correct integer multiplication and add extra test case., Andy Wingo, 2018/07/02
- [Guile-commits] 116/437: Change jit_finish to work with varargs functions in x86_64., Andy Wingo, 2018/07/02
- [Guile-commits] 85/437: add (void) casts for C++ compatibility,
Andy Wingo <=
- [Guile-commits] 127/437: Extra cleanup before update to new codebase., Andy Wingo, 2018/07/02
- [Guile-commits] 130/437: Add make rule to build test case dependencies., Andy Wingo, 2018/07/02
- [Guile-commits] 125/437: fix multiplication on x86_64, Andy Wingo, 2018/07/02
- [Guile-commits] 102/437: add ldst test, Andy Wingo, 2018/07/02
- [Guile-commits] 131/437: Add proper make clean rule to the check subdir., Andy Wingo, 2018/07/02
- [Guile-commits] 109/437: more fixes to fp branches, Andy Wingo, 2018/07/02
- [Guile-commits] 136/437: Update code to build and pass test cases in the arm port., Andy Wingo, 2018/07/02
- [Guile-commits] 124/437: Also reset alloca_slack after jit_prolog in i386., Andy Wingo, 2018/07/02
- [Guile-commits] 154/437: Correct test cases to work with x87 in ix86., Andy Wingo, 2018/07/02
- [Guile-commits] 148/437: Add better ppc support code, but still not functional., Andy Wingo, 2018/07/02