* config/tc-m68k.h (tc_frob_label): Define to warn about a
[deliverable/binutils-gdb.git] / gas / tc.h
CommitLineData
6efd877d
KR
1/* tc.h - target cpu dependent
2
3 Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc.
fecd2382 4
a39116f1 5 This file is part of GAS, the GNU Assembler.
6efd877d 6
a39116f1
RP
7 GAS is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
6efd877d 11
a39116f1
RP
12 GAS is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
6efd877d 16
a39116f1
RP
17 You should have received a copy of the GNU General Public License
18 along with GAS; see the file COPYING. If not, write to
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
fecd2382
RP
20
21/* In theory (mine, at least!) the machine dependent part of the assembler
22 should only have to include one file. This one. -- JF */
23
24extern const pseudo_typeS md_pseudo_table[];
25
26/* JF moved this here from as.h under the theory that nobody except MACHINE.c
27 and write.c care about it anyway. */
28
27cf8bfb 29struct relax_type
fecd2382 30{
27cf8bfb
KR
31 /* Forward reach. Signed number. > 0. */
32 long rlx_forward;
33 /* Backward reach. Signed number. < 0. */
34 long rlx_backward;
6efd877d 35
27cf8bfb
KR
36 /* Bytes length of this address. */
37 unsigned char rlx_length;
38
39 /* Next longer relax-state. 0 means there is no 'next' relax-state. */
40 relax_substateT rlx_more;
41};
42
43typedef struct relax_type relax_typeS;
fecd2382 44
6efd877d 45extern const relax_typeS md_relax_table[]; /* Define it in MACHINE.c */
fecd2382 46
6efd877d 47extern int md_reloc_size; /* Size of a relocation record */
fecd2382 48
6efd877d 49extern void (*md_emit_relocations) ();
fecd2382 50
27cf8bfb
KR
51char *md_atof PARAMS ((int what_statement_type, char *literalP, int *sizeP));
52int md_estimate_size_before_relax PARAMS ((fragS * fragP, segT segment));
53int md_parse_option PARAMS ((char **argP, int *cntP, char ***vecP));
54long md_pcrel_from PARAMS ((fixS * fixP));
55short tc_coff_fix2rtype PARAMS ((fixS * fixP));
56void md_assemble PARAMS ((char *str));
57void md_begin PARAMS ((void));
58void md_create_long_jump PARAMS ((char *ptr, long from_addr, long to_addr,
59 fragS * frag, symbolS * to_symbol));
60void md_create_short_jump PARAMS ((char *ptr, long from_addr, long to_addr,
61 fragS * frag, symbolS * to_symbol));
62void md_end PARAMS ((void));
63void md_number_to_chars PARAMS ((char *buf, long val, int n));
64
65#ifndef md_operand
66void md_operand PARAMS ((expressionS * expressionP));
67#endif
68
69#ifdef BFD_ASSEMBLER
70int md_apply_fix PARAMS ((fixS * fixP, long *val));
71#ifndef md_convert_frag
72void md_convert_frag PARAMS ((bfd * headers, segT sec, fragS * fragP));
73#endif
74#ifndef tc_headers_hook
75void tc_headers_hook PARAMS ((segT *, fixS *));
76#endif
77#else
78void md_apply_fix PARAMS ((fixS * fixP, long val));
79#ifndef md_convert_frag
80void md_convert_frag PARAMS ((object_headers * headers, fragS * fragP));
81#endif
fecd2382
RP
82
83#ifndef tc_crawl_symbol_chain
27cf8bfb 84void tc_crawl_symbol_chain PARAMS ((object_headers * headers));
fecd2382
RP
85#endif /* tc_crawl_symbol_chain */
86
87#ifndef tc_headers_hook
27cf8bfb 88void tc_headers_hook PARAMS ((object_headers * headers));
fecd2382 89#endif /* tc_headers_hook */
27cf8bfb 90#endif /* BFD_ASSEMBLER */
fecd2382 91
27cf8bfb
KR
92#ifndef md_section_align
93long md_section_align PARAMS ((segT seg, long align));
94#endif
fecd2382 95
27cf8bfb
KR
96#ifndef md_undefined_symbol
97symbolS *md_undefined_symbol PARAMS ((char *name));
98#endif
fecd2382 99
27cf8bfb
KR
100#define TC_COFF_SIZEMACHDEP(frag) tc_coff_sizemachdep(frag)
101/* end of tc.h */
fecd2382 102
fecd2382 103
This page took 0.184955 seconds and 4 git commands to generate.