diff options
author | Alan Modra <amodra@gmail.com> | 2025-07-09 09:05:12 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-07-09 09:35:07 +0930 |
commit | b413e254325678474b5d363102cf6488912d0258 (patch) | |
tree | d4af9c0aa7e76064c822e3cc79286dba29215d0d /gdb/python/py-gdb-readline.c | |
parent | 4da111f55a48bb2882c46b0d62df38492baaeee3 (diff) | |
download | binutils-b413e254325678474b5d363102cf6488912d0258.zip binutils-b413e254325678474b5d363102cf6488912d0258.tar.gz binutils-b413e254325678474b5d363102cf6488912d0258.tar.bz2 |
gas md_number_to_chars
Calls to md_number_to_chars don't need to cast their value arg (*).
Remove those casts. avr_output_property_recode made a call to
md_number_to_chars with size of 1. Simplify that. tc-bpf.c
md_convert_frag used write_insn_bytes that simply copied input to
output. Dispense with that nonsense, and similarly in a couple of
other places where md_number_to_chars was called with size 1.
*) unless the value arg is an expression that needs a cast, eg. tic54x
emit_insn where the shift left could trigger signed overflow UB
without a cast.
Diffstat (limited to 'gdb/python/py-gdb-readline.c')
0 files changed, 0 insertions, 0 deletions