* gdb/objc-lang.c (selectors_info): Replace calls to
[deliverable/binutils-gdb.git] / gas / config / tc-tic4x.h
CommitLineData
026df7c5
NC
1/* tc-tic4x.h -- Assemble for the Texas TMS320C[34]X.
2 Copyright (C) 1997, 2002 Free Software Foundation.
3
4 Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz)
5
6 This file is part of GAS, the GNU Assembler.
7
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 GAS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GAS; see the file COPYING. If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21
22#define TC_TIC4X
23#define C4X
24
25#ifndef BFD_ASSEMBLER
26#error TMS320C4x requires BFD_ASSEMBLER
27#endif
28
29#define TARGET_ARCH bfd_arch_tic4x
30
31#define WORKING_DOT_WORD
32
33/* There are a number of different formats used for local labels. gas
34 expects local labels either of the form `10$:' or `n:', where n is
35 a single digit. When LOCAL_LABEL_DOLLARS is defined labels of the
36 form `10$:' are expected. When LOCAL_LABEL_FB is defined labels of
37 the form `n:' are expected. The latter are expected to be referred
38 to using `nf' for a forward reference of `nb' for a backward
39 reference.
40
41 The local labels expected by the TI tools are of the form `$n:',
42 where the colon is optional. Now the $ character is considered to
43 be valid symbol name character, so gas doesn't recognise our local
44 symbols by default. Defining LEX_DOLLAR to be 1 means that gas
45 won't allow labels starting with $ and thus the hook
46 tc_unrecognized_line() will be called from read.c. We can thus
47 parse lines starting with $n as having local labels.
48
49 The other problem is the forward reference of local labels. If a
50 symbol is undefined, symbol_make() calls the md_undefined_symbol()
51 hook where we create a local label if recognised. */
52
53/* Don't stick labels starting with 'L' into symbol table of COFF file. */
54#define LOCAL_LABEL(name) ((name)[0] == '$' || (name)[0] == 'L')
55
56#define TARGET_BYTES_BIG_ENDIAN 0
57#define OCTETS_PER_BYTE_POWER 2
58
59#define TARGET_ARCH bfd_arch_tic4x
60#define BFD_ARCH TARGET_ARCH
61
62#define TC_COUNT_RELOC(x) (x->fx_addsy)
63#define TC_CONS_RELOC RELOC_32
64#define TC_COFF_FIX2RTYPE(fixP) tc_coff_fix2rtype (fixP)
65#define TC_COFF_SIZEMACHDEP(frag) tc_coff_sizemachdep (frag)
66#define NEED_FX_R_TYPE
67
247b1fe6
SS
68#define NOP_OPCODE 0x0c800000
69
026df7c5
NC
70#define reloc_type int
71
72#define NO_RELOC 0
73
74/* Labels are not required to have a colon for a suffix. */
75#define LABELS_WITHOUT_COLONS 1
76
77/* Use $ as the section program counter (SPC). */
78#define DOLLAR_DOT
79
80/* Accept numbers with a suffix, e.g. 0ffffh, 1010b. */
81#define NUMBERS_WITH_SUFFIX 1
82
83extern int c4x_unrecognized_line PARAMS ((int));
84#define tc_unrecognized_line(c) c4x_unrecognized_line (c)
85
86#define md_number_to_chars number_to_chars_littleendian
87
88extern int c4x_do_align PARAMS ((int, const char *, int, int));
247b1fe6 89#define md_do_align(n,fill,len,max,label) if( c4x_do_align (n,fill,len,max) ) goto label;
026df7c5
NC
90
91/* Start of line hook to remove parallel instruction operator || */
92extern void c4x_start_line PARAMS ((void));
93#define md_start_line_hook() c4x_start_line()
94
95extern void c4x_cleanup PARAMS ((void));
96#define md_cleanup() c4x_cleanup()
97
98extern void c4x_end PARAMS ((void));
99#define md_end() c4x_end()
100
This page took 0.052334 seconds and 4 git commands to generate.