public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: moxie: 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=5daeb7f67a02050d94a836778538e823059d4443

commit 5daeb7f67a02050d94a836778538e823059d4443
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Fri Dec 15 22:12:20 2023 -0500

    sim: moxie: fix -Wunused-variable warnings

Diff:
---
 sim/moxie/interp.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/sim/moxie/interp.c b/sim/moxie/interp.c
index ff41e85a184..214af57daf9 100644
--- a/sim/moxie/interp.c
+++ b/sim/moxie/interp.c
@@ -91,11 +91,6 @@ moxie_store_unsigned_integer (unsigned char *addr, int len, unsigned long val)
     }
 }
 
-/* moxie register names.  */
-static const char *reg_names[16] = 
-  { "$fp", "$sp", "$r0", "$r1", "$r2", "$r3", "$r4", "$r5", 
-    "$r6", "$r7", "$r8", "$r9", "$r10", "$r11", "$r12", "$r13" };
-
 /* The machine state.
 
    This state is maintained in host byte order.  The fetch/store
@@ -137,7 +132,6 @@ static void
 set_initial_gprs (void)
 {
   int i;
-  long space;
   
   /* Set up machine just out of reset.  */
   cpu.asregs.regs[PC_REGNO] = 0;
@@ -944,7 +938,6 @@ sim_engine_run (SIM_DESC sd,
 		    {
 		      char fname[1024];
 		      int mode = (int) convert_target_flags ((unsigned) cpu.asregs.regs[3]);
-		      int perm = (int) cpu.asregs.regs[4];
 		      int fd;
 		      sim_core_read_buffer (sd, scpu, read_map, fname,
 					    cpu.asregs.regs[2], 1024);
@@ -1297,7 +1290,7 @@ sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd,
 		     char * const *argv, char * const *env)
 {
   char * const *avp;
-  int l, argc, i, tp;
+  int argc, i, tp;
   sim_cpu *scpu = STATE_CPU (sd, 0); /* FIXME */
 
   if (prog_bfd != NULL)

^ 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: moxie: 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).