diff options
author | Alan Modra <amodra@gmail.com> | 2020-02-04 08:30:22 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-02-04 14:10:40 +1030 |
commit | c5d7be0c97a75ff20b49d57bff078360464125fb (patch) | |
tree | b3669bbcd5aa59e464698505826e0bc24d914a2d /opcodes/d30v-dis.c | |
parent | 5d2e1193286fe6278ee70c2137b3726994f2e28b (diff) | |
download | binutils-gdb-c5d7be0c97a75ff20b49d57bff078360464125fb.tar.gz |
ubsan: d30v: negation of -2147483648
include/
* opcode/d30v.h (struct pd_reg): Make value field unsigned.
opcodes/
* d30v-dis.c (print_insn): Make "val" and "opnum" unsigned.
Diffstat (limited to 'opcodes/d30v-dis.c')
-rw-r--r-- | opcodes/d30v-dis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/d30v-dis.c b/opcodes/d30v-dis.c index 212d24a7083..ba43731122d 100644 --- a/opcodes/d30v-dis.c +++ b/opcodes/d30v-dis.c @@ -123,9 +123,9 @@ print_insn (struct disassemble_info *info, int is_long, int show_ext) { - int val, opnum, need_comma = 0; + unsigned int val, opnum; const struct d30v_operand *oper; - int i, match, need_paren = 0, found_control = 0; + int i, match, need_comma = 0, need_paren = 0, found_control = 0; unsigned int opind = 0; (*info->fprintf_func) (info->stream, "%s", insn->op->name); |