projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2704ed
)
sim: m32c: fix declaration-after-statement warnings
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 9 Jan 2024 01:47:00 +0000
(20:47 -0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 9 Jan 2024 02:24:08 +0000
(21:24 -0500)
sim/m32c/opc2c.c
patch
|
blob
|
history
diff --git
a/sim/m32c/opc2c.c
b/sim/m32c/opc2c.c
index
9e84446
..
e337acc
100644
(file)
--- a/
sim/m32c/opc2c.c
+++ b/
sim/m32c/opc2c.c
@@
-136,10
+136,11
@@
valid_varybits (int bits, opcode * op, int byte)
int found = 0;
int i;
int ob;
+ Vary *v;
if (byte != op->vary[vn].byte)
continue;
-
Vary *
v = vary[op->vary[vn].varyno];
+ v = vary[op->vary[vn].varyno];
ob = (bits >> op->vary[vn].shift) & v->mask;
lprintf (sim_log, "varybits: vary %s ob %x\n", v->name, ob);
@@
-163,10
+164,10
@@
prmb (int mask, int bits)
static char buf[8][30];
static int bn = 0;
char *bp;
+ int i;
bn = (bn + 1) % 8;
bp = buf[bn];
- int i;
for (i = 0; i < 8; i++)
{
int bit = 0x80 >> i;