Fix inverted statements in m88k_analyze_prologue
[deliverable/binutils-gdb.git] / gas / config / tc-tic54x.h
... / ...
CommitLineData
1/* tc-tic54x.h -- Header file for tc-tic54x.c
2 Copyright (C) 1999-2015 Free Software Foundation, Inc.
3 Contributed by Timothy Wall (twall@alum.mit.edu)
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 3, 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 the Free
19 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
20 02110-1301, USA. */
21
22#ifndef _TC_TIC54X_H_
23#define _TC_TIC54X_H_
24
25/* select the proper coff format (see obj-coff.h) */
26#define TC_TIC54X
27
28#define TARGET_BYTES_BIG_ENDIAN 0
29#define OCTETS_PER_BYTE_POWER 1
30
31#define TARGET_ARCH bfd_arch_tic54x
32
33#define WORKING_DOT_WORD 1
34
35#define MAX_OPERANDS 4
36#define PARALLEL_SEPARATOR '|'
37#define LABELS_WITHOUT_COLONS 1
38/* accept 0FFFFh, 1010b, etc. */
39#define NUMBERS_WITH_SUFFIX 1
40/* $ is section program counter */
41#define DOLLAR_DOT 1
42/* accept parallel lines like
43 add #1,a || ld #1, b
44 (may also be split across lines)
45*/
46#define DOUBLEBAR_PARALLEL 1
47/* affects preprocessor */
48#define KEEP_WHITE_AROUND_COLON 1
49
50struct bit_info
51{
52 segT seg;
53#define TYPE_SPACE 0
54#define TYPE_BES 1
55#define TYPE_FIELD 2
56 int type;
57 symbolS *sym;
58 valueT value;
59 char *where;
60 int offset;
61};
62
63/* We sometimes need to keep track of bit offsets within words */
64#define TC_FRAG_TYPE int
65#define TC_FRAG_INIT(FRAGP) do {(FRAGP)->tc_frag_data = 0;}while (0)
66
67/* tell GAS whether the given token is indeed a code label */
68#define TC_START_LABEL_WITHOUT_COLON(c,ptr) tic54x_start_label(c,ptr)
69extern int tic54x_start_label (int, char *);
70
71/* custom handling for relocations in cons expressions */
72#define TC_CONS_FIX_NEW(FRAG, OFF, LEN, EXP, RELOC) \
73 tic54x_cons_fix_new (FRAG, OFF, LEN, EXP, RELOC)
74extern void tic54x_cons_fix_new (fragS *, int, int, expressionS *,
75 bfd_reloc_code_real_type);
76
77/* Define md_number_to_chars as the appropriate standard big endian or
78 little endian function. Mostly littleendian, but longwords and floats are
79 stored MS word first.
80*/
81
82#define md_number_to_chars tic54x_number_to_chars
83extern void tic54x_number_to_chars (char *, valueT, int);
84#define tc_adjust_symtab() tic54x_adjust_symtab()
85extern void tic54x_adjust_symtab (void);
86#define tc_unrecognized_line(ch) tic54x_unrecognized_line(ch)
87extern int tic54x_unrecognized_line (int ch);
88#define md_parse_name(s,e,m,c) tic54x_parse_name(s,e)
89extern int tic54x_parse_name (char *name, expressionS *e);
90#define md_undefined_symbol(s) tic54x_undefined_symbol(s)
91extern symbolS *tic54x_undefined_symbol (char *name);
92#define md_macro_start() tic54x_macro_start()
93extern void tic54x_macro_start (void);
94#define md_macro_end() tic54x_macro_end()
95extern void tic54x_macro_end (void);
96#define md_macro_info(args) tic54x_macro_info(args)
97struct macro_struct;
98extern void tic54x_macro_info (const struct macro_struct *);
99#define tc_frob_label(sym) tic54x_define_label (sym)
100extern void tic54x_define_label (symbolS *);
101
102#define md_start_line_hook() tic54x_start_line_hook()
103extern void tic54x_start_line_hook (void);
104
105#define md_estimate_size_before_relax(f,s) \
106tic54x_estimate_size_before_relax(f,s)
107extern int tic54x_estimate_size_before_relax(fragS *, segT);
108
109#define md_relax_frag(seg, f,s) tic54x_relax_frag(f,s)
110extern int tic54x_relax_frag(fragS *, long);
111
112#define md_convert_frag(b,s,f) tic54x_convert_frag(b,s,f)
113extern void tic54x_convert_frag(bfd *, segT, fragS *);
114
115/* Other things we don't support... */
116
117/* Define away the call to md_operand in the expression parsing code.
118 This is called whenever the expression parser can't parse the input
119 and gives the assembler backend a chance to deal with it instead. */
120
121#define md_operand(X)
122
123/* spruce up the listing output */
124#define LISTING_WORD_SIZE 2
125
126extern void tic54x_global (int);
127
128#endif
This page took 0.024419 seconds and 4 git commands to generate.