From 871a6bd2d852b0fb677386e1be78c3f4c6939b48 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 15 Apr 2019 21:51:44 +0930 Subject: 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 ): 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. --- gas/ehopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gas/ehopt.c') diff --git a/gas/ehopt.c b/gas/ehopt.c index b90a533..207e799 100644 --- a/gas/ehopt.c +++ b/gas/ehopt.c @@ -103,7 +103,7 @@ get_cie_info (struct cie_info *info) { fragS *f; fixS *fix; - int offset; + unsigned int offset; char CIE_id; char augmentation[10]; int iaug; -- cgit v1.1