ubsan: d30v: negation of -2147483648
authorAlan Modra <amodra@gmail.com>
Mon, 3 Feb 2020 22:00:22 +0000 (08:30 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 4 Feb 2020 03:40:40 +0000 (14:10 +1030)
include/
* opcode/d30v.h (struct pd_reg): Make value field unsigned.
opcodes/
* d30v-dis.c (print_insn): Make "val" and "opnum" unsigned.

include/ChangeLog
include/opcode/d30v.h
opcodes/ChangeLog
opcodes/d30v-dis.c

index 8185e61be3675177fe82f165d5ceed552d16353c..1a370780f2916c1d21621d6a9ab3f6892cf5035e 100644 (file)
@@ -1,3 +1,7 @@
+2020-02-04  Alan Modra  <amodra@gmail.com>
+
+       * opcode/d30v.h (struct pd_reg): Make value field unsigned.
+
 2020-01-16  Jon Turney  <jon.turney@dronecode.org.uk>
 
        * coff/internal.h (PE_IMAGE_DEBUG_TYPE_VC_FEATURE)
index 2694d6d0e9ad9f27a529e80c224d46fc2b04b3b8..4ba2c45c84dc544a299f825519cacad298277c68 100644 (file)
@@ -33,7 +33,7 @@ struct pd_reg
 {
   char *name;          /* name to recognize */
   char *pname;         /* name to print for this register */
-  int value;
+  unsigned int value;
 };
 
 extern const struct pd_reg pre_defined_registers[];
index 126025a312f8696a0b9eb89ce4df2a7410f48649..a4106125e9c3a72b30da4385f87ec6cf118dff50 100644 (file)
@@ -1,3 +1,7 @@
+2020-02-04  Alan Modra  <amodra@gmail.com>
+
+       * d30v-dis.c (print_insn): Make "val" and "opnum" unsigned.
+
 2020-02-03  Alan Modra  <amodra@gmail.com>
 
        * m32c-ibld.c: Regenerate.
index 212d24a70830c3e7dd280ab6f3aa538d1ba868a3..ba43731122d80f24995261377e7ba7763d69817f 100644 (file)
@@ -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);
This page took 0.025353 seconds and 4 git commands to generate.