Automatic date update in version.in
[binutils-gdb.git] / gas / tc.h
blob4e387d12f442492b12296964b5200f211386dcea
1 /* tc.h - target cpu dependent
3 Copyright (C) 1987-2024 Free Software Foundation, Inc.
5 This file is part of GAS, the GNU Assembler.
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 3, or (at your option)
10 any later version.
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.
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, 51 Franklin Street - Fifth Floor,
20 Boston, MA 02110-1301, USA. */
22 /* In theory (mine, at least!) the machine dependent part of the assembler
23 should only have to include one file. This one. -- JF */
25 extern const char md_shortopts[];
26 extern const struct option md_longopts[];
27 extern const size_t md_longopts_size;
29 extern const pseudo_typeS md_pseudo_table[];
31 const char * md_atof (int, char *, int *);
32 int md_parse_option (int, const char *);
33 void md_show_usage (FILE *);
34 void md_assemble (char *);
35 void md_begin (void);
36 #ifndef md_number_to_chars
37 void md_number_to_chars (char *, valueT, int);
38 #endif
39 void md_apply_fix (fixS *, valueT *, segT);
41 #ifndef WORKING_DOT_WORD
42 extern int md_short_jump_size;
43 extern int md_long_jump_size;
44 #endif
46 #ifdef TE_PE
47 /* The name of an external symbol which is
48 used to make weak PE symbol names unique. */
49 extern const char * an_external_name;
50 #endif
52 #ifndef md_create_long_jump
53 void md_create_long_jump (char *, addressT, addressT, fragS *, symbolS *);
54 #endif
55 #ifndef md_create_short_jump
56 void md_create_short_jump (char *, addressT, addressT, fragS *, symbolS *);
57 #endif
58 #ifndef md_pcrel_from
59 long md_pcrel_from (fixS *);
60 #endif
61 #ifndef md_pcrel_from_section
62 long md_pcrel_from_section (fixS *, segT);
63 #endif
64 #ifndef md_operand
65 void md_operand (expressionS *);
66 #endif
67 #ifndef md_estimate_size_before_relax
68 int md_estimate_size_before_relax (fragS * fragP, segT);
69 #endif
70 #ifndef md_section_align
71 valueT md_section_align (segT, valueT);
72 #endif
73 #ifndef md_undefined_symbol
74 symbolS *md_undefined_symbol (char *);
75 #endif
77 #ifndef md_convert_frag
78 void md_convert_frag (bfd *, segT, fragS *);
79 #endif
80 #ifndef RELOC_EXPANSION_POSSIBLE
81 extern arelent *tc_gen_reloc (asection *, fixS *);
82 #else
83 extern arelent **tc_gen_reloc (asection *, fixS *);
84 #endif
86 extern const char FLT_CHARS[];
87 extern const char EXP_CHARS[];