fixed bash/dash/sh issue (Ubuntu)
[zpugcc/jano.git] / toolchain / binutils / gas / config / tc-zpu.h
blob06fc31e2301c5c6b40f2bc445800d1f18306d02e
1 /* tc-zpu.h -- Header file for tc-zpu.c.
2 Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
6 GAS is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GAS is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GAS; see the file COPYING. If not, write to the Free
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA. */
21 #define TC_ZPU
23 #ifdef ANSI_PROTOTYPES
24 struct fix;
25 #endif
27 #define TARGET_BYTES_BIG_ENDIAN 1
30 #ifndef BFD_ASSEMBLER
31 #error ZPU support requires BFD_ASSEMBLER
32 #endif
34 /* The target BFD architecture. */
35 #define TARGET_ARCH (zpu_arch ())
36 extern enum bfd_architecture zpu_arch (void);
38 #define TARGET_MACH (zpu_mach ())
39 extern int zpu_mach (void);
41 #define TARGET_FORMAT (zpu_arch_format ())
42 extern const char *zpu_arch_format (void);
44 #define LISTING_WORD_SIZE 1 /* A word is 1 bytes */
45 #define LISTING_LHS_WIDTH 4 /* One word on the first line */
46 #define LISTING_LHS_WIDTH_SECOND 4 /* One word on the second line */
47 #define LISTING_LHS_CONT_LINES 4 /* And 4 lines max */
48 #define LISTING_HEADER zpu_listing_header ()
49 extern const char *zpu_listing_header (void);
51 /* Permit temporary numeric labels. */
52 #define LOCAL_LABELS_FB 1
54 #define tc_init_after_args zpu_init_after_args
55 extern void zpu_init_after_args (void);
59 #define DWARF2_LINE_MIN_INSN_LENGTH 1
61 /* Use 32-bit address to represent a symbol address so that we can
62 represent them with their page number. */
63 #define DWARF2_ADDR_SIZE(bfd) 4
65 /* We don't need to handle .word strangely. */
66 #define WORKING_DOT_WORD
68 #define md_number_to_chars number_to_chars_bigendian
70 #define TC_HANDLES_FX_DONE
72 #define DIFF_EXPR_OK /* .-foo gets turned into PC relative relocs */
74 #define md_operand(x)
76 #define TC_FORCE_RELOCATION(fix) tc_zpu_force_relocation (fix)
77 extern int tc_zpu_force_relocation (struct fix *);
79 #define tc_fix_adjustable(X) tc_zpu_fix_adjustable(X)
80 extern int tc_zpu_fix_adjustable (struct fix *);