summaryrefslogtreecommitdiff
path: root/opcodes/h8500-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-12-11 13:41:59 +0000
committerNick Clifton <nickc@redhat.com>2009-12-11 13:41:59 +0000
commit5413b5486ba77949122a8bfd6067d31626e330f3 (patch)
tree6956d71f05d79d40e52fed28668bf9db104a4a04 /opcodes/h8500-dis.c
parentf28844f209b0de6783df75e402dd1c26f3edb0c7 (diff)
downloadbinutils-redhat-5413b5486ba77949122a8bfd6067d31626e330f3.tar.gz
Add -Wshadow to the gcc command line options used when compiling the binutils.
Fix up all warnings generated by the addition of this switch.
Diffstat (limited to 'opcodes/h8500-dis.c')
-rw-r--r--opcodes/h8500-dis.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/opcodes/h8500-dis.c b/opcodes/h8500-dis.c
index d19ef7fadd..1c9463afbc 100644
--- a/opcodes/h8500-dis.c
+++ b/opcodes/h8500-dis.c
@@ -97,7 +97,7 @@ print_insn_h8500 (bfd_vma addr, disassemble_info *info)
int rd = 0;
int rs = 0;
int disp = 0;
- int abs = 0;
+ int abs_val = 0;
int imm = 0;
int pcrel = 0;
int qim = 0;
@@ -154,17 +154,17 @@ print_insn_h8500 (bfd_vma addr, disassemble_info *info)
break;
case ABS24:
FETCH_DATA (info, buffer + byte + 3);
- abs =
+ abs_val =
(buffer[byte] << 16)
| (buffer[byte + 1] << 8)
| (buffer[byte + 2]);
break;
case ABS16:
FETCH_DATA (info, buffer + byte + 2);
- abs = (buffer[byte] << 8) | (buffer[byte + 1]);
+ abs_val = (buffer[byte] << 8) | (buffer[byte + 1]);
break;
case ABS8:
- abs = (buffer[byte]);
+ abs_val = (buffer[byte]);
break;
case IMM16:
FETCH_DATA (info, buffer + byte + 2);
@@ -265,28 +265,28 @@ print_insn_h8500 (bfd_vma addr, disassemble_info *info)
func (stream, "@-sp");
break;
case ABS24:
- func (stream, "@0x%0x:24", abs);
+ func (stream, "@0x%0x:24", abs_val);
break;
case ABS16:
- func (stream, "@0x%0x:16", abs & 0xffff);
+ func (stream, "@0x%0x:16", abs_val & 0xffff);
break;
case ABS8:
- func (stream, "@0x%0x:8", abs & 0xff);
+ func (stream, "@0x%0x:8", abs_val & 0xff);
break;
case IMM16:
func (stream, "#0x%0x:16", imm & 0xffff);
break;
case RLIST:
{
- int i;
+ int j;
int nc = 0;
func (stream, "(");
- for (i = 0; i < 8; i++)
+ for (j = 0; j < 8; j++)
{
- if (imm & (1 << i))
+ if (imm & (1 << j))
{
- func (stream, "r%d", i);
+ func (stream, "r%d", j);
if (nc)
func (stream, ",");
nc = 1;