Convert unmaintained files over to ISO-C90 and fix formatting.
[deliverable/binutils-gdb.git] / gas / config / tc-d10v.h
CommitLineData
252b5132 1/* tc-d10v.h -- Header file for tc-d10v.c.
ea1562b3 2 Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
1d3b2b27 3 Free Software Foundation, Inc.
252b5132
RH
4 Written by Martin Hunt, Cygnus Support.
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 the Free
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
81d4177b 21 02111-1307, USA. */
252b5132
RH
22
23#define TC_D10V
24
25#define TARGET_BYTES_BIG_ENDIAN 0
26
27#ifndef BFD_ASSEMBLER
28 #error D10V support requires BFD_ASSEMBLER
29#endif
30
31/* The target BFD architecture. */
32#define TARGET_ARCH bfd_arch_d10v
33
34#define TARGET_FORMAT "elf32-d10v"
35
94f592af 36/* Call md_pcrel_from_section, not md_pcrel_from. */
ea1562b3 37#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
a161fe53 38struct fix;
ea1562b3 39long md_pcrel_from_section (struct fix *, segT);
252b5132
RH
40
41/* Permit temporary numeric labels. */
42#define LOCAL_LABELS_FB 1
43
ea1562b3
NC
44/* .-foo gets turned into PC relative relocs. */
45#define DIFF_EXPR_OK
252b5132
RH
46
47/* We don't need to handle .word strangely. */
48#define WORKING_DOT_WORD
49
1d3b2b27 50#define md_number_to_chars number_to_chars_bigendian
252b5132 51
ea1562b3 52int d10v_cleanup (void);
07726851
KH
53#define md_after_pass_hook() d10v_cleanup ()
54#define md_cleanup() d10v_cleanup ()
55#define md_do_align(a,b,c,d,e) d10v_cleanup ()
ea1562b3
NC
56#define tc_frob_label(sym) \
57 do \
58 { \
59 d10v_cleanup (); \
60 symbol_set_frag (sym, frag_now); \
61 S_SET_VALUE (sym, (valueT) frag_now_fix ()); \
62 } \
63 while (0)
252b5132 64
a161fe53 65#define tc_fix_adjustable(FIX) d10v_fix_adjustable(FIX)
ea1562b3 66bfd_boolean d10v_fix_adjustable (struct fix *);
a161fe53 67
a161fe53
AM
68/* Values passed to md_apply_fix3 don't include the symbol value. */
69#define MD_APPLY_SYM_VALUE(FIX) 0
70
71/* No shared lib support, so we don't need to ensure externally
72 visible symbols can be overridden. */
73#define EXTERN_FORCE_RELOC 0
252b5132 74
447f3982 75#define md_flush_pending_output d10v_cleanup
This page took 0.304037 seconds and 4 git commands to generate.