public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: mcore: fix -Wunused-variable warnings
@ 2023-12-19 10:53 Michael Frysinger
0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-12-19 10:53 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2705c08342f6c8f30a4b7439e7352871ce0bc427
commit 2705c08342f6c8f30a4b7439e7352871ce0bc427
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Dec 15 22:20:48 2023 -0500
sim: mcore: fix -Wunused-variable warnings
Diff:
---
sim/mcore/interp.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c
index 94e0a1675be..b0c2cc2b317 100644
--- a/sim/mcore/interp.c
+++ b/sim/mcore/interp.c
@@ -303,9 +303,8 @@ step_once (SIM_DESC sd, SIM_CPU *cpu)
int memops;
int bonus_cycles;
int insts;
- int w;
- int cycs;
#ifdef WATCHFUNCTIONS
+ int w;
int32_t WLhash;
#endif
@@ -356,8 +355,8 @@ step_once (SIM_DESC sd, SIM_CPU *cpu)
if ((WLincyc == 1) && (pc == WLendpc))
{
- cycs = (mcore_cpu->cycles + (insts + bonus_cycles +
- (memops * memcycles)) - WLbcyc);
+ int cycs = (mcore_cpu->cycles + (insts + bonus_cycles +
+ (memops * memcycles)) - WLbcyc);
if (WLcnts[WLW] == 1)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-19 10:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-19 10:53 [binutils-gdb] sim: mcore: fix -Wunused-variable warnings Michael Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).