Ran "indent", for GNU coding style; some code & comments still need fixup.
[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
29typedef struct
30{
6efd877d
KR
31 long rlx_forward; /* Forward reach. Signed number. > 0. */
32 long rlx_backward; /* Backward reach. Signed number. < 0. */
33 unsigned char rlx_length; /* Bytes length of this address. */
34 relax_substateT rlx_more; /* Next longer relax-state. */
35 /* 0 means there is no 'next' relax-state. */
fecd2382 36}
6efd877d 37
fecd2382
RP
38relax_typeS;
39
6efd877d 40extern const relax_typeS md_relax_table[]; /* Define it in MACHINE.c */
fecd2382 41
6efd877d 42extern int md_reloc_size; /* Size of a relocation record */
fecd2382 43
6efd877d 44extern void (*md_emit_relocations) ();
fecd2382 45
6efd877d 46#if __STDC__ == 1
fecd2382 47
6efd877d
KR
48char *md_atof (int what_statement_type, char *literalP, int *sizeP);
49int md_estimate_size_before_relax (fragS * fragP, segT segment);
50int md_parse_option (char **argP, int *cntP, char ***vecP);
51long md_pcrel_from (fixS * fixP);
52long md_section_align (segT seg, long align);
53short tc_coff_fix2rtype (fixS * fixP);
54symbolS *md_undefined_symbol (char *name);
55void md_apply_fix (fixS * fixP, long val);
56void md_assemble (char *str);
57void md_begin (void);
58void md_convert_frag (object_headers * headers, fragS * fragP);
59void md_create_long_jump (char *ptr, long from_addr, long to_addr, fragS * frag, symbolS * to_symbol);
60void md_create_short_jump (char *ptr, long from_addr, long to_addr, fragS * frag, symbolS * to_symbol);
61void md_end (void);
62void md_number_to_chars (char *buf, long val, int n);
63void md_operand (expressionS * expressionP);
fecd2382
RP
64
65#ifndef tc_crawl_symbol_chain
6efd877d 66void tc_crawl_symbol_chain (object_headers * headers);
fecd2382
RP
67#endif /* tc_crawl_symbol_chain */
68
69#ifndef tc_headers_hook
6efd877d 70void tc_headers_hook (object_headers * headers);
fecd2382
RP
71#endif /* tc_headers_hook */
72
73#else
74
6efd877d
KR
75char *md_atof ();
76int md_estimate_size_before_relax ();
77int md_parse_option ();
78long md_pcrel_from ();
79long md_section_align ();
80short tc_coff_fix2rtype ();
81symbolS *md_undefined_symbol ();
82void md_apply_fix ();
83void md_assemble ();
84void md_begin ();
85void md_convert_frag ();
86void md_create_long_jump ();
87void md_create_short_jump ();
88void md_end ();
89void md_number_to_chars ();
90void md_operand ();
fecd2382
RP
91
92#ifndef tc_headers_hook
6efd877d 93void tc_headers_hook ();
fecd2382
RP
94#endif /* tc_headers_hook */
95
96#ifndef tc_crawl_symbol_chain
6efd877d 97void tc_crawl_symbol_chain ();
fecd2382
RP
98#endif /* tc_crawl_symbol_chain */
99
100#endif /* __STDC_ */
101
102/*
103 * Local Variables:
104 * comment-column: 0
105 * fill-column: 131
106 * End:
107 */
108
8b228fe9 109/* end of tc.h */
This page took 0.060119 seconds and 4 git commands to generate.