Make frag fr_fix unsigned
authorAlan Modra <amodra@gmail.com>
Mon, 15 Apr 2019 12:21:44 +0000 (21:51 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 16 Apr 2019 07:42:09 +0000 (17:12 +0930)
commit871a6bd2d852b0fb677386e1be78c3f4c6939b48
treef1a378f0c442384f758827ba5c8f5a85ca83d3bd
parent02e902e1a1ec7b74125f329b3faef1992efb6d51
Make frag fr_fix unsigned

The field only stores unsigned values, so let's make it unsigned to
stop people worrying about the possibility of negative values.

* frags.h (struct frag <fr_fix>): Use unsigned type.
* frags.c (frag_new): Assert that current size exceeds
old_frags_var_max_size.
* ehopt.c (get_cie_info): Adjust for unsigned fr_fix.
* listing.c (calc_hex): Likewise.
* write.c (cvt_frag_to_fill, write_relocs): Likewise.
* config/tc-arc.c (md_convert_frag): Likewise.
* config/tc-avr.c (avr_patch_gccisr_frag): Likewise.
* config/tc-mips.c (md_convert_frag): Likewise.
* config/tc-rl78.c (md_convert_frag): Likewise.
* config/tc-rx.c (md_convert_frag): Likewise.
* config/tc-sparc.c (md_apply_fix): Likewise.
* config/tc-xtensa.c (next_instrs_are_b_retw): Likewise.
(unrelaxed_frag_min_insn_count, unrelaxed_frag_has_b_j): Likewise.
13 files changed:
gas/ChangeLog
gas/config/tc-arc.c
gas/config/tc-avr.c
gas/config/tc-mips.c
gas/config/tc-rl78.c
gas/config/tc-rx.c
gas/config/tc-sparc.c
gas/config/tc-xtensa.c
gas/ehopt.c
gas/frags.c
gas/frags.h
gas/listing.c
gas/write.c