aboutsummaryrefslogtreecommitdiff
path: root/opcodes/sh-dis.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2000-11-28 23:42:53 +0000
committerHans-Peter Nilsson <hp@axis.com>2000-11-28 23:42:53 +0000
commitcaaaf822e90d39b8d3ac7efb3ae36b2ee56ccc67 (patch)
treecb775ab0f2b0de42f6e9bc2f0427b3703a0af2e2 /opcodes/sh-dis.c
parentdc6e09d3637c9a29563b84bb8f6e242ac143c6b2 (diff)
downloadgdb-caaaf822e90d39b8d3ac7efb3ae36b2ee56ccc67.zip
gdb-caaaf822e90d39b8d3ac7efb3ae36b2ee56ccc67.tar.gz
gdb-caaaf822e90d39b8d3ac7efb3ae36b2ee56ccc67.tar.bz2
* sh-dis.c (print_insn_ddt): Make insn_x, insn_y unsigned.
(print_insn_ppi): Make nib1, nib2, nib3 unsigned. Initialize variable dc to NULL. (print_insn_shx): Remove unused label d_reg_n.
Diffstat (limited to 'opcodes/sh-dis.c')
-rw-r--r--opcodes/sh-dis.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/opcodes/sh-dis.c b/opcodes/sh-dis.c
index e467515..719f37a 100644
--- a/opcodes/sh-dis.c
+++ b/opcodes/sh-dis.c
@@ -99,7 +99,7 @@ print_insn_ddt (insn, info)
{
static sh_opcode_info *first_movx, *first_movy;
sh_opcode_info *opx, *opy;
- int insn_x, insn_y;
+ unsigned int insn_x, insn_y;
if (! first_movx)
{
@@ -182,8 +182,8 @@ print_insn_ppi (field_b, info)
static char *sy_tab[] = { "y0", "y1", "m0", "m1" };
fprintf_ftype fprintf_fn = info->fprintf_func;
void *stream = info->stream;
- int nib1, nib2, nib3;
- char *dc;
+ unsigned int nib1, nib2, nib3;
+ char *dc = NULL;
sh_opcode_info *op;
if ((field_b & 0xe800) == 0)
@@ -612,7 +612,6 @@ print_insn_shx (memaddr, info)
fprintf_fn (stream, "xd%d", rn & ~1);
break;
}
- d_reg_n:
case D_REG_N:
fprintf_fn (stream, "dr%d", rn);
break;