OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [config/] [tc-m32c.h] - Blame information for rev 866

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* tc-m32c.h -- Header file for tc-m32c.c.
2
   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
3
 
4
   This file is part of GAS, the GNU Assembler.
5
 
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 3, or (at your option)
9
   any later version.
10
 
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.
15
 
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
18
   the Free Software Foundation, 59 Temple Place - Suite 330,
19
   Boston, MA 02111-1307, USA. */
20
 
21
#define TC_M32C
22
 
23
#define LISTING_HEADER "M16C/M32C GAS "
24
 
25
/* The target BFD architecture.  */
26
#define TARGET_ARCH bfd_arch_m32c
27
 
28
#define TARGET_FORMAT "elf32-m32c"
29
 
30
#define TARGET_BYTES_BIG_ENDIAN 1
31
 
32
#define md_end  m32c_md_end
33
extern void m32c_md_end (void);
34
 
35
#define md_start_line_hook m32c_start_line_hook
36
extern void m32c_start_line_hook (void);
37
 
38
/* call md_pcrel_from_section, not md_pcrel_from */
39
long md_pcrel_from_section PARAMS ((struct fix *, segT));
40
#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC)
41
 
42
/* Permit temporary numeric labels.  */
43
#define LOCAL_LABELS_FB 1
44
 
45
#define DIFF_EXPR_OK            /* .-foo gets turned into PC relative relocs */
46
 
47
/* We don't need to handle .word strangely.  */
48
#define WORKING_DOT_WORD
49
 
50
#define md_apply_fix m32c_apply_fix
51
extern void m32c_apply_fix PARAMS ((struct fix *, valueT *, segT));
52
 
53
#define tc_fix_adjustable(fixP) m32c_fix_adjustable (fixP)
54
extern bfd_boolean m32c_fix_adjustable PARAMS ((struct fix *));
55
 
56
/* When relaxing, we need to emit various relocs we otherwise wouldn't.  */
57
#define TC_FORCE_RELOCATION(fix) m32c_force_relocation (fix)
58
extern int m32c_force_relocation PARAMS ((struct fix *));
59
 
60
#define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \
61
  m32c_cons_fix_new (FRAG, WHERE, NBYTES, EXP)
62
extern void m32c_cons_fix_new (fragS *, int, int, expressionS *);
63
 
64
extern const struct relax_type md_relax_table[];
65
#define TC_GENERIC_RELAX_TABLE md_relax_table
66
 
67
extern void m32c_prepare_relax_scan PARAMS ((fragS *, offsetT *, relax_substateT state));
68
#define md_prepare_relax_scan(FRAGP, ADDR, AIM, STATE, TYPE) \
69
        m32c_prepare_relax_scan(FRAGP, &AIM, STATE)
70
 
71
/* Values passed to md_apply_fix don't include the symbol value.  */
72
#define MD_APPLY_SYM_VALUE(FIX) 0
73
 
74
/* Call md_pcrel_from_section(), not md_pcrel_from().  */
75
#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC)
76
extern long md_pcrel_from_section PARAMS ((struct fix *, segT));
77
 
78
/* We need a special version of the TC_START_LABEL macro so that we
79
   allow the :Z, :S, :Q and :G suffixes to be
80
   parsed as such.  Note - in a HORRIBLE HACK, we make use of the
81
   knowledge that this marco is only ever evaluated in one place
82
   (read_a_source_file in read.c) where we can access the local
83
   variable 's' - the start of the symbol that was terminated by
84
   'character'.  Also we need to be able to change the contents of
85
   the local variable 'c' which is passed to this macro as 'character'.  */
86
#define TC_START_LABEL(character, i_l_p)                        \
87
  ((character) != ':' ? 0 : (character = m32c_is_colon_insn (s)) ? 0 : ((character = ':'), 1))
88
extern char m32c_is_colon_insn PARAMS ((char *));

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.