projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add -Wshadow to the gcc command line options used when compiling the binutils.
[deliverable/binutils-gdb.git]
/
opcodes
/
or32-opc.c
diff --git
a/opcodes/or32-opc.c
b/opcodes/or32-opc.c
index 24ab5cf28093bba197ef618f937a25006346661a..ff624e7a8c04bbf35ddc6ba5e1c789f077b7cf8c 100644
(file)
--- a/
opcodes/or32-opc.c
+++ b/
opcodes/or32-opc.c
@@
-345,7
+345,7
@@
const unsigned int or32_num_opcodes = ((sizeof(or32_opcodes)) / (sizeof(struct o
/* Calculates instruction length in bytes. Always 4 for OR32. */
int
/* Calculates instruction length in bytes. Always 4 for OR32. */
int
-insn_len (int i
nsn
_index ATTRIBUTE_UNUSED)
+insn_len (int i_index ATTRIBUTE_UNUSED)
{
return 4;
}
{
return 4;
}
@@
-409,10
+409,10
@@
insn_index (char *insn)
}
const char *
}
const char *
-insn_name (int index)
+insn_name (int
op_
index)
{
{
- if (
index >= 0 &&
index < (int) or32_num_opcodes)
- return or32_opcodes[index].name;
+ if (
op_index >= 0 && op_
index < (int) or32_num_opcodes)
+ return or32_opcodes[
op_
index].name;
else
return "???";
}
else
return "???";
}
@@
-985,12
+985,12
@@
or32_print_immediate (char param_ch, char *encoding, unsigned long insn)
int
disassemble_insn (unsigned long insn)
{
int
disassemble_insn (unsigned long insn)
{
- int index;
- index = insn_decode (insn);
+ int
op_
index;
+
op_
index = insn_decode (insn);
- if (index >= 0)
+ if (
op_
index >= 0)
{
{
- struct or32_opcode const *opcode = &or32_opcodes[index];
+ struct or32_opcode const *opcode = &or32_opcodes[
op_
index];
char *s;
sprintf (disassembled, "%s ", opcode->name);
char *s;
sprintf (disassembled, "%s ", opcode->name);
This page took
0.027718 seconds
and
4
git commands to generate.