ubsan: tic4x: left shift cannot be represented in type 'int'
authorAlan Modra <amodra@gmail.com>
Thu, 30 Jan 2020 06:36:54 +0000 (17:06 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 30 Jan 2020 06:36:54 +0000 (17:06 +1030)
The patch also fixes a case where libopcodes built for a 64-bit
bfd_vma may print different results to libopcodes built for a 32-bit
bfd_vma.

* tic4x-dis.c (tic4x_dp): Make unsigned.

opcodes/ChangeLog
opcodes/tic4x-dis.c

index 3076dac9f54d8cd3e4ef656e9d794ced84d4f603..2b308a58119706a256c6ff237a0bb89e456c1777 100644 (file)
@@ -1,3 +1,7 @@
+2020-01-30  Alan Modra  <amodra@gmail.com>
+
+       * tic4x-dis.c (tic4x_dp): Make unsigned.
+
 2020-01-27  H.J. Lu  <hongjiu.lu@intel.com>
            Jan Beulich  <jbeulich@suse.com>
 
index 33d75c878b8cf5fd75e22899b480259becf8d36d..a99b52a7ad01a329bc2cdc329d261ab4a9ec372c 100644 (file)
@@ -52,7 +52,7 @@ typedef enum
 indirect_t;
 
 static unsigned long tic4x_version = 0;
-static int tic4x_dp = 0;
+static unsigned int tic4x_dp = 0;
 static tic4x_inst_t **optab = NULL;
 static tic4x_inst_t **optab_special = NULL;
 static const char *registernames[REG_TABLE_SIZE];
This page took 0.024623 seconds and 4 git commands to generate.