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