[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 66/437: warning patrol (allocai.c, ppc)
From: |
Andy Wingo |
Subject: |
[Guile-commits] 66/437: warning patrol (allocai.c, ppc) |
Date: |
Mon, 2 Jul 2018 05:13:47 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 3a199529db801d4d467c4d10d27e158d51b4a6c6
Author: Paolo Bonzini <address@hidden>
Date: Mon Mar 17 09:10:57 2008 +0100
warning patrol (allocai.c, ppc)
2008-03-15 Paolo Bonzini <address@hidden>
* lightning/ppc/core.h: Avoid some "value computed is not used"
warnings.
* lightning/ppc/funcs.h: Remove unused variables.
* lightnings/tests/allocai.c: Silence other warnings.
---
ChangeLog | 6 ++++++
lightning/ppc/core.h | 2 +-
lightning/ppc/funcs.h | 3 +--
tests/allocai.c | 4 ++--
4 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 868d0eb..7467008 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-15 Paolo Bonzini <address@hidden>
+
+ * lightning/ppc/core.h: Avoid some "value computed is not used"
+ warnings.
+ * lightnings/tests/allocai.c: Silence other warnings.
+
2008-03-14 Paolo Bonzini <address@hidden>
* lightningize.in: Fix some problems (not all).
diff --git a/lightning/ppc/core.h b/lightning/ppc/core.h
index 2afa6c3..c26566d 100644
--- a/lightning/ppc/core.h
+++ b/lightning/ppc/core.h
@@ -196,7 +196,7 @@ struct jit_local_state {
#define jit_bosubi_ui(label, rs, is) (jit_chk_ims ((is), SUBICri((rs), (rs),
is), SUBCrr((rs), JIT_AUX)), MCRXRi(0), BEQi((label)), _jit.x.pc)
#define jit_boaddr_ui(label, s1, s2) (
ADDCrr((s1), (s1), (s2)), MCRXRi(0), BEQi((label)), _jit.x.pc)
#define jit_bosubr_ui(label, s1, s2) (
SUBCrr((s1), (s1), (s2)), MCRXRi(0), BEQi((label)), _jit.x.pc)
-#define jit_calli(label) (jit_movi_p(JIT_AUX, (label)),
MTCTRr(JIT_AUX), BCTRL(), _jitl.nextarg_puti = _jitl.nextarg_putf =
_jitl.nextarg_putd = 0, _jit.x.pc)
+#define jit_calli(label) ((void)jit_movi_p(JIT_AUX, (label)),
MTCTRr(JIT_AUX), BCTRL(), _jitl.nextarg_puti = _jitl.nextarg_putf =
_jitl.nextarg_putd = 0, _jit.x.pc)
#define jit_callr(reg) (MTCTRr(reg), BCTRL())
#define jit_divi_i(d, rs, is) jit_big_ims((is), DIVWrrr ((d), (rs),
JIT_AUX))
#define jit_divi_ui(d, rs, is) jit_big_imu((is), DIVWUrrr((d), (rs), JIT_AUX))
diff --git a/lightning/ppc/funcs.h b/lightning/ppc/funcs.h
index 011ae6e..131687b 100644
--- a/lightning/ppc/funcs.h
+++ b/lightning/ppc/funcs.h
@@ -92,7 +92,6 @@ _jit_epilog(jit_state *jit)
{
int n = _jitl.nbArgs;
int first_saved_reg = JIT_AUX - n;
- int num_saved_regs = 32 - first_saved_reg;
int frame_size = (_jitl.frame_size + 15) & ~15;
#ifdef __APPLE__
@@ -123,7 +122,7 @@ _jit_epilog(jit_state *jit)
static void
_jit_prolog(jit_state *jit, int n)
{
- int orig_frame_size, frame_size;
+ int frame_size;
int i;
int first_saved_reg = JIT_AUX - n;
int num_saved_regs = 32 - first_saved_reg;
diff --git a/tests/allocai.c b/tests/allocai.c
index c9947b4..8350dc6 100644
--- a/tests/allocai.c
+++ b/tests/allocai.c
@@ -69,10 +69,10 @@ generate_function_proxy (int_return_int_t func)
/* Display a failure message. */
jit_patch (branch);
- jit_movi_p (JIT_R2, failure_message);
+ (void)jit_movi_p (JIT_R2, failure_message);
jit_prepare (1);
jit_pusharg_p (JIT_R2);
- jit_finish (printf);
+ (void)jit_finish (printf);
/* Leave. */
jit_movr_i (JIT_RET, JIT_V1);
- [Guile-commits] 56/437: fix i386 floating-point sub(a,0,a), (continued)
- [Guile-commits] 56/437: fix i386 floating-point sub(a,0,a), Andy Wingo, 2018/07/02
- [Guile-commits] 54/437: add 3to2 test and fix bug, Andy Wingo, 2018/07/02
- [Guile-commits] 52/437: improve set* encoding for i386, add testcase, Andy Wingo, 2018/07/02
- [Guile-commits] 57/437: don't truncate function pointers on amd64, Andy Wingo, 2018/07/02
- [Guile-commits] 68/437: cast memory address to long for JCCim, Andy Wingo, 2018/07/02
- [Guile-commits] 59/437: add --with-lightning-prefix option to lightning.m4, Andy Wingo, 2018/07/02
- [Guile-commits] 67/437: add underscores around __unused__ attribute, Andy Wingo, 2018/07/02
- [Guile-commits] 65/437: fix some problems (not all) with lightningize, Andy Wingo, 2018/07/02
- [Guile-commits] 63/437: Fix stxr_c(_EAX, _EBX, _ESI)., Andy Wingo, 2018/07/02
- [Guile-commits] 64/437: avoid "value computed is not used" in jit_allocai, Andy Wingo, 2018/07/02
- [Guile-commits] 66/437: warning patrol (allocai.c, ppc),
Andy Wingo <=
- [Guile-commits] 75/437: fix uses of jit_qop_ with 4 parameters, Andy Wingo, 2018/07/02
- [Guile-commits] 61/437: avoid redefinition of _r1, Andy Wingo, 2018/07/02
- [Guile-commits] 73/437: add LEAQmr for x86-64, Andy Wingo, 2018/07/02
- [Guile-commits] 82/437: use MOVLir directly to implement i386 32-bit jit_movi_p, Andy Wingo, 2018/07/02
- [Guile-commits] 72/437: misc. x86-64 bugfixes, Andy Wingo, 2018/07/02
- [Guile-commits] 78/437: avoid CRLF issues on mingw, Andy Wingo, 2018/07/02
- [Guile-commits] 62/437: commit source files for separate using/porting manuals, Andy Wingo, 2018/07/02
- [Guile-commits] 80/437: fix C++ incompatibility in i386 back-end, Andy Wingo, 2018/07/02
- [Guile-commits] 45/437: add floating-point for x86-64, Andy Wingo, 2018/07/02
- [Guile-commits] 28/437: first merge of x86-64 backend and related configury changes, Andy Wingo, 2018/07/02