gas signed overflow fixes
authorAlan Modra <amodra@gmail.com>
Wed, 11 Dec 2019 22:59:45 +0000 (09:29 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 12 Dec 2019 11:28:33 +0000 (21:58 +1030)
commit4f7cc14110d67a180f5408a91ac53a91f88f776e
tree06f9b92f65556383e9d7cad287ce1b51882c7243
parent84bc4ba8168154fae0da7d56dcd11df0d4bc44f2
gas signed overflow fixes

* config/tc-aarch64.c (get_aarch64_insn): Avoid signed overflow.
* config/tc-metag.c (parse_dalu): Likewise.
* config/tc-tic4x.c (md_pcrel_from): Likewise.
* config/tc-tic6x.c (tic6x_output_unwinding): Likewise.
* config/tc-csky.c (parse_fexp): Use an unsigned char temp buffer.
Don't use register keyword.  Avoid signed overflow and remove now
unneccesary char masks.  Formatting.
* config/tc-ia64.c (operand_match): Don't use shifts to sign extend.
* config/tc-mep.c (mep_apply_fix): Likewise.
* config/tc-pru.c (md_apply_fix): Likewise.
* config/tc-riscv.c (load_const): Likewise.
* config/tc-nios2.c (md_apply_fix): Likewise.  Don't potentially
truncate fixup before right shift.  Tidy BFD_RELOC_NIOS2_HIADJ16
calculation.
gas/ChangeLog
gas/config/tc-aarch64.c
gas/config/tc-csky.c
gas/config/tc-ia64.c
gas/config/tc-mep.c
gas/config/tc-metag.c
gas/config/tc-nios2.c
gas/config/tc-pru.c
gas/config/tc-riscv.c
gas/config/tc-tic4x.c
gas/config/tc-tic6x.c