]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: mcore: fix -Wunused-but-set-variable warnings
authorMike Frysinger <vapier@gentoo.org>
Thu, 7 Dec 2023 03:07:50 +0000 (20:07 -0700)
committerMike Frysinger <vapier@gentoo.org>
Fri, 8 Dec 2023 04:41:27 +0000 (21:41 -0700)
sim/mcore/interp.c

index 7561c440729d365ef0ead189601219883e519411..8bfb745a11f236df21d7afacf0b0884578243711 100644 (file)
@@ -332,8 +332,6 @@ step_once (SIM_DESC sd, SIM_CPU *cpu)
 
   /* TODO: Unindent this block.  */
     {
-      int32_t oldpc;
-
       insts ++;
 
       if (pc & 02)
@@ -408,8 +406,6 @@ step_once (SIM_DESC sd, SIM_CPU *cpu)
       if (tracing)
        fprintf (stderr, "%.4x: inst = %.4x ", pc, inst);
 
-      oldpc = pc;
-
       pc += 2;
 
       switch (inst >> 8)