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/write.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'gas/write.h') diff --git a/gas/write.h b/gas/write.h index e67fba0..a69ec3c 100644 --- a/gas/write.h +++ b/gas/write.h @@ -84,8 +84,8 @@ struct fix /* Which frag does this fix apply to? */ fragS *fx_frag; - /* Where is the first byte to fix up? */ - long fx_where; + /* The location within the frag where the fixup occurs. */ + unsigned long fx_where; /* NULL or Symbol whose value we add in. */ symbolS *fx_addsy; @@ -183,15 +183,12 @@ extern long relax_frag (segT, fragS *, long); extern int relax_segment (struct frag *, segT, int); extern void number_to_chars_littleendian (char *, valueT, int); extern void number_to_chars_bigendian (char *, valueT, int); -extern fixS *fix_new - (fragS * frag, int where, int size, symbolS * add_symbol, - offsetT offset, int pcrel, bfd_reloc_code_real_type r_type); -extern fixS *fix_at_start - (fragS * frag, int size, symbolS * add_symbol, - offsetT offset, int pcrel, bfd_reloc_code_real_type r_type); -extern fixS *fix_new_exp - (fragS * frag, int where, int size, expressionS *exp, int pcrel, - bfd_reloc_code_real_type r_type); +extern fixS *fix_new (fragS *, unsigned long, unsigned long, symbolS *, + offsetT, int, bfd_reloc_code_real_type); +extern fixS *fix_at_start (fragS *, unsigned long, symbolS *, + offsetT, int, bfd_reloc_code_real_type); +extern fixS *fix_new_exp (fragS *, unsigned long, unsigned long, + expressionS *, int, bfd_reloc_code_real_type); extern void write_print_statistics (FILE *); #endif /* __write_h__ */ -- cgit v1.1