diff options
author | Alan Modra <amodra@gmail.com> | 2019-12-12 09:29:45 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-12-12 21:58:33 +1030 |
commit | 4f7cc14110d67a180f5408a91ac53a91f88f776e (patch) | |
tree | 06f9b92f65556383e9d7cad287ce1b51882c7243 /gas/config/tc-tic6x.c | |
parent | 84bc4ba8168154fae0da7d56dcd11df0d4bc44f2 (diff) | |
download | gdb-4f7cc14110d67a180f5408a91ac53a91f88f776e.zip gdb-4f7cc14110d67a180f5408a91ac53a91f88f776e.tar.gz gdb-4f7cc14110d67a180f5408a91ac53a91f88f776e.tar.bz2 |
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.
Diffstat (limited to 'gas/config/tc-tic6x.c')
-rw-r--r-- | gas/config/tc-tic6x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-tic6x.c b/gas/config/tc-tic6x.c index cd12c82..6260ecb 100644 --- a/gas/config/tc-tic6x.c +++ b/gas/config/tc-tic6x.c @@ -5060,7 +5060,7 @@ tic6x_output_unwinding (bfd_boolean need_extab) if (unwind->personality_index == -1) { tmp = md_chars_to_number (unwind->frag_start + 4, 4); - tmp |= ((unwind->data_bytes - 8) >> 2) << 24; + tmp |= (valueT) ((unwind->data_bytes - 8) >> 2) << 24; md_number_to_chars (unwind->frag_start + 4, tmp, 4); } else if (unwind->personality_index == 1 || unwind->personality_index == 2) |