From 90bd3c903fe76a8a3a5ced98c76e4366c5a0948f Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 16 Apr 2019 11:10:44 +0930 Subject: Make fixup fx_where unsigned Another field that only stores unsigned values. * write.h (struct fix ): Make unsigned. (fix_new, fix_at_start, fix_new_exp): Adjust prototypes. * write.c (fix_new, fix_new_exp, fix_at_start): Make "where" and "size" parameters unsigned long. (fix_new_internal): Likewise. Adjust error format string to suit. * config/tc-mips.c (md_convert_frag): Remove cast of fx_where. * config/tc-sparc.c (md_apply_fix): Likewise. * config/tc-score.c (s3_convert_frag): Adjust for unsigned fx_where. * config/tc-score7.c (s7_convert_frag): Likewise. --- gas/config/tc-score.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gas/config/tc-score.c') diff --git a/gas/config/tc-score.c b/gas/config/tc-score.c index 3101dc8f41f..4bbeeb02570 100644 --- a/gas/config/tc-score.c +++ b/gas/config/tc-score.c @@ -7011,8 +7011,8 @@ s3_relax_frag (asection * sec ATTRIBUTE_UNUSED, fragS * fragp, long stretch ATTR static void s3_convert_frag (bfd * abfd ATTRIBUTE_UNUSED, segT sec ATTRIBUTE_UNUSED, fragS * fragp) { - int r_old; - int r_new; + unsigned int r_old; + unsigned int r_new; char backup[20]; fixS *fixp; -- cgit v1.2.1