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.
This commit is contained in:
Alan Modra
2020-02-04 08:30:22 +10:30
parent 5d2e119328
commit c5d7be0c97
4 changed files with 11 additions and 3 deletions

View 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[];