From e08ae97912972aa69b9860deebf29b0f2c84de4a Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Sat, 15 Sep 2001 14:49:54 +0000 Subject: * config/tc-sh.h (sh_force_relocation): Prototype. (struct fix): Forward declare. * config/tc-sh.c (type sh_operand_info): Move to top of file. (cons, s_align_bytes): Remove old-type declarations. (sh_elf_suffix, parse_reg, dot, parse_exp, parse_at, get_operand, get_operands, get_specific, insert, build_relax, insert_loop_bounds, build_Mytes): Prototype. (little): Make static. Prototype. (check, tc_Nout_fix_to_chars): Delete unused functions. --- gas/config/tc-sh.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gas/config/tc-sh.h') diff --git a/gas/config/tc-sh.h b/gas/config/tc-sh.h index 3c8279b..ece6e4f 100644 --- a/gas/config/tc-sh.h +++ b/gas/config/tc-sh.h @@ -58,7 +58,13 @@ extern void sh_handle_align PARAMS ((fragS *)); /* We need to force out some relocations when relaxing. */ #define TC_FORCE_RELOCATION(fix) sh_force_relocation (fix) -extern int sh_force_relocation (); + +/* The type fixS is defined (to struct fix) in write.h, but write.h uses + definitions from this file. To avoid problems with including write.h + after the "right" definitions, don't; just forward-declare struct fix + here. */ +struct fix; +extern int sh_force_relocation PARAMS ((struct fix *)); #ifdef OBJ_ELF #define obj_fix_adjustable(fixP) sh_fix_adjustable(fixP) -- cgit v1.1