ubsan: hppa: left shift of negative value
authorAlan Modra <amodra@gmail.com>
Fri, 20 Dec 2019 01:44:19 +0000 (12:14 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 20 Dec 2019 03:06:06 +0000 (13:36 +1030)
commit15d2859fddcb769e59b906f9443c85afdd5d7380
tree3d1aa7d06813d4fd6ada5c0fc6152c3e1176e420
parent000fe1a756e707624d387eeacbaa959a01f0d040
ubsan: hppa: left shift of negative value

bfd/
* libhppa.h (hppa_field_adjust, bfd_hppa_insn2fmt): Delete forward
declaration.  Move ATTRIBUTE_UNUSED to definition.
(sign_extend, low_sign_extend, sign_unext, low_sign_unext),
(re_assemble_3, re_assemble_12, re_assemble_14, re_assemble_16),
(re_assemble_17, re_assemble_21, re_assemble_22): Likewise.  Make
args and return value unsigned.  Use unsigned variables.
(hppa_rebuild_insn): Similarly.
opcodes/
* hppa-dis.c (extract_16, extract_21, print_insn_hppa): Use
unsigned variables.
bfd/ChangeLog
bfd/libhppa.h
opcodes/ChangeLog
opcodes/hppa-dis.c