aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sh.h
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2001-09-15 14:49:54 +0000
committerHans-Peter Nilsson <hp@axis.com>2001-09-15 14:49:54 +0000
commite08ae97912972aa69b9860deebf29b0f2c84de4a (patch)
treec8ce3ea133b691b2c94974ff98938839b4b01358 /gas/config/tc-sh.h
parenta1ec19fa3f1398f590e428c39a4ff36ace2f4270 (diff)
downloadgdb-e08ae97912972aa69b9860deebf29b0f2c84de4a.zip
gdb-e08ae97912972aa69b9860deebf29b0f2c84de4a.tar.gz
gdb-e08ae97912972aa69b9860deebf29b0f2c84de4a.tar.bz2
* 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.
Diffstat (limited to 'gas/config/tc-sh.h')
-rw-r--r--gas/config/tc-sh.h8
1 files changed, 7 insertions, 1 deletions
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)