aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-open.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2025-07-10 11:15:16 +0930
committerAlan Modra <amodra@gmail.com>2025-07-11 08:23:40 +0930
commit6398ac7e8b9dc8992bc375e401943915a41952c8 (patch)
tree628d954c255c2ef66e0e3d8752a1ab22543c3310 /libctf/ctf-open.c
parent7507184dbead052fe255bb6f83bf1354faafc358 (diff)
downloadbinutils-6398ac7e8b9dc8992bc375e401943915a41952c8.zip
binutils-6398ac7e8b9dc8992bc375e401943915a41952c8.tar.gz
binutils-6398ac7e8b9dc8992bc375e401943915a41952c8.tar.bz2
gas v850 md_convert_frag
The v850 md_convert_frag function oddly calls subseg_change twice (commit 1cd986c58543). Neither call is needed, because that is done in size_seg. Convert the fr_opcode fixup field back (to an opindex, not fx_r_type) using a cast rather than a union, since we used casts when setting up those values. I guess the union was added to silence compiler warnings about wrong-size casts, but unfortunately results in the wrong value being retrieved on big-endian hosts. Change "buffer" to a char* as there is no need to make it an unsigned char*, and that way requires fewer casts. Finally, fix formatting and use uintptr_t when make the rs_machine_dependent frags. Remove subseg_change calls from cr16, crx, mn10200, mn10300, and sh md_convert_frag too.
Diffstat (limited to 'libctf/ctf-open.c')
0 files changed, 0 insertions, 0 deletions