* MAINTAINERS: Change e-mail address back to airs.com.
[binutils.git] / gas / config / tc-arc.h
blob884d375546adb525acc8623ee3977d53d964fe7e
1 /* tc-arc.h - Macros and type defines for the ARC.
2 Copyright 1994, 1995, 1997, 2000, 2001, 2002
3 Free Software Foundation, Inc.
4 Contributed by Doug Evans (dje@cygnus.com).
6 This file is part of GAS, the GNU Assembler.
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2,
11 or (at your option) any later version.
13 GAS is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
16 the GNU General Public License for more details.
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 the Free
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
21 02111-1307, USA. */
23 #define TC_ARC 1
25 #define TARGET_BYTES_BIG_ENDIAN 0
27 #define LOCAL_LABELS_FB 1
29 #define TARGET_ARCH bfd_arch_arc
31 #define DIFF_EXPR_OK
32 #define REGISTER_PREFIX '%'
34 #ifdef LITTLE_ENDIAN
35 #undef LITTLE_ENDIAN
36 #endif
38 #ifdef BIG_ENDIAN
39 #undef BIG_ENDIAN
40 #endif
42 #define LITTLE_ENDIAN 1234
44 #define BIG_ENDIAN 4321
46 /* The endianness of the target format may change based on command
47 line arguments. */
48 extern const char *arc_target_format;
49 #define DEFAULT_TARGET_FORMAT "elf32-littlearc"
50 #define TARGET_FORMAT arc_target_format
51 #define DEFAULT_BYTE_ORDER LITTLE_ENDIAN
53 #define WORKING_DOT_WORD
55 #define LISTING_HEADER "ARC GAS "
57 /* The ARC needs to parse reloc specifiers in .word. */
59 extern void arc_parse_cons_expression PARAMS ((struct expressionS *, unsigned));
60 #define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) \
61 arc_parse_cons_expression (EXP, NBYTES)
63 extern void arc_cons_fix_new PARAMS ((struct frag *, int, int, struct expressionS *));
64 #define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \
65 arc_cons_fix_new (FRAG, WHERE, NBYTES, EXP)
67 #define DWARF2_LINE_MIN_INSN_LENGTH 4
69 /* Values passed to md_apply_fix3 don't include the symbol value. */
70 #define MD_APPLY_SYM_VALUE(FIX) 0
72 /* No shared lib support, so we don't need to ensure externally
73 visible symbols can be overridden. */
74 #define EXTERN_FORCE_RELOC 0