Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / gnu / usr.bin / as / tc.h
1 /* tc.h - target cpu dependent
2
3    Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc.
4
5    This file is part of GAS, the GNU Assembler.
6
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.
11
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.
16
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.  */
20 /*
21  * $FreeBSD: src/gnu/usr.bin/as/tc.h,v 1.6 1999/08/27 23:34:23 peter Exp $
22  * $DragonFly: src/gnu/usr.bin/as/Attic/tc.h,v 1.2 2003/06/17 04:25:44 dillon Exp $
23  */
24
25
26 /* In theory (mine, at least!) the machine dependent part of the assembler
27    should only have to include one file.  This one.  -- JF */
28
29 extern const pseudo_typeS md_pseudo_table[];
30
31 /* JF moved this here from as.h under the theory that nobody except MACHINE.c
32    and write.c care about it anyway. */
33
34 typedef struct
35 {
36         long    rlx_forward;    /* Forward  reach. Signed number. > 0. */
37         long    rlx_backward;   /* Backward reach. Signed number. < 0. */
38         unsigned char rlx_length;       /* Bytes length of this address. */
39         relax_substateT rlx_more;       /* Next longer relax-state. */
40         /* 0 means there is no 'next' relax-state. */
41 }
42 relax_typeS;
43
44 extern const relax_typeS md_relax_table[]; /* Define it in MACHINE.c */
45
46 extern const int md_reloc_size; /* Size of a relocation record */
47
48 extern void (*md_emit_relocations)();
49
50 #if __STDC__ == 1
51
52 char *md_atof(int what_statement_type, char *literalP, int *sizeP);
53 int md_estimate_size_before_relax(fragS *fragP, segT segment);
54 int md_parse_option(char **argP, int *cntP, char ***vecP);
55 long md_pcrel_from(fixS *fixP);
56 long md_section_align(segT seg, long align);
57 short tc_coff_fix2rtype(fixS *fixP);
58 symbolS *md_undefined_symbol(char *name);
59 void md_apply_fix(fixS *fixP, long val);
60 void md_assemble(char *str);
61 void md_begin(void);
62 void md_convert_frag(object_headers *headers, fragS *fragP);
63 void md_create_long_jump(char *ptr, long from_addr, long to_addr, fragS *frag, symbolS *to_symbol);
64 void md_create_short_jump(char *ptr, long from_addr, long to_addr, fragS *frag, symbolS *to_symbol);
65 void md_end(void);
66 void md_number_to_chars(char *buf, long val, int n);
67 void md_operand(expressionS *expressionP);
68
69 #ifndef tc_crawl_symbol_chain
70 void tc_crawl_symbol_chain(object_headers *headers);
71 #endif /* tc_crawl_symbol_chain */
72
73 #ifndef tc_headers_hook
74 void tc_headers_hook(object_headers *headers);
75 #endif /* tc_headers_hook */
76
77 #else
78
79 char *md_atof();
80 int md_estimate_size_before_relax();
81 int md_parse_option();
82 long md_pcrel_from();
83 long md_section_align();
84 short tc_coff_fix2rtype();
85 symbolS *md_undefined_symbol();
86 void md_apply_fix();
87 void md_assemble();
88 void md_begin();
89 void md_convert_frag();
90 void md_create_long_jump();
91 void md_create_short_jump();
92 void md_end();
93 void md_number_to_chars();
94 void md_operand();
95
96 #ifndef tc_headers_hook
97 void tc_headers_hook();
98 #endif /* tc_headers_hook */
99
100 #ifndef tc_crawl_symbol_chain
101 void tc_crawl_symbol_chain();
102 #endif /* tc_crawl_symbol_chain */
103
104 #endif /* __STDC_ */
105
106 /*
107  * Local Variables:
108  * comment-column: 0
109  * fill-column: 131
110  * End:
111  */
112
113 /* end of tc.h */