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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [config/] [tc-m32c.h] - Blame information for rev 205

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
/* tc-m32c.h -- Header file for tc-m32c.c.
2
   Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009
3
   Free Software Foundation, Inc.
4
 
5
   This file is part of GAS, the GNU Assembler.
6
 
7
   GAS is free software; you can redistribute it and/or modify
8
   it under the terms of the GNU General Public License as published by
9
   the Free Software Foundation; either version 3, or (at your option)
10
   any later version.
11
 
12
   GAS is distributed in the hope that it will be useful,
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
   GNU General Public License for more details.
16
 
17
   You should have received a copy of the GNU General Public License
18
   along with GAS; see the file COPYING.  If not, write to
19
   the Free Software Foundation, 59 Temple Place - Suite 330,
20
   Boston, MA 02111-1307, USA. */
21
 
22
#define TC_M32C
23
 
24
#define LISTING_HEADER "M16C/M32C GAS "
25
 
26
/* The target BFD architecture.  */
27
#define TARGET_ARCH bfd_arch_m32c
28
 
29
#define TARGET_FORMAT "elf32-m32c"
30
 
31
#define TARGET_BYTES_BIG_ENDIAN 1
32
 
33
#define md_end  m32c_md_end
34
extern void m32c_md_end (void);
35
 
36
#define md_start_line_hook m32c_start_line_hook
37
extern void m32c_start_line_hook (void);
38
 
39
/* call md_pcrel_from_section, not md_pcrel_from */
40
long md_pcrel_from_section (struct fix *, segT);
41
#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC)
42
 
43
/* Permit temporary numeric labels.  */
44
#define LOCAL_LABELS_FB 1
45
 
46
#define DIFF_EXPR_OK            /* .-foo gets turned into PC relative relocs */
47
 
48
/* We don't need to handle .word strangely.  */
49
#define WORKING_DOT_WORD
50
 
51
#define md_apply_fix m32c_apply_fix
52
extern void m32c_apply_fix (struct fix *, valueT *, segT);
53
 
54
#define tc_fix_adjustable(fixP) m32c_fix_adjustable (fixP)
55
extern bfd_boolean m32c_fix_adjustable (struct fix *);
56
 
57
/* When relaxing, we need to emit various relocs we otherwise wouldn't.  */
58
#define TC_FORCE_RELOCATION(fix) m32c_force_relocation (fix)
59
extern int m32c_force_relocation (struct fix *);
60
 
61
#define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \
62
  m32c_cons_fix_new (FRAG, WHERE, NBYTES, EXP)
63
extern void m32c_cons_fix_new (fragS *, int, int, expressionS *);
64
 
65
extern const struct relax_type md_relax_table[];
66
#define TC_GENERIC_RELAX_TABLE md_relax_table
67
 
68
extern void m32c_prepare_relax_scan (fragS *, offsetT *, relax_substateT);
69
#define md_prepare_relax_scan(FRAGP, ADDR, AIM, STATE, TYPE) \
70
        m32c_prepare_relax_scan(FRAGP, &AIM, STATE)
71
 
72
/* Values passed to md_apply_fix don't include the symbol value.  */
73
#define MD_APPLY_SYM_VALUE(FIX) 0
74
 
75
/* Call md_pcrel_from_section(), not md_pcrel_from().  */
76
#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC)
77
extern long md_pcrel_from_section (struct fix *, segT);
78
 
79
/* We need a special version of the TC_START_LABEL macro so that we
80
   allow the :Z, :S, :Q and :G suffixes to be
81
   parsed as such. We need to be able to change the contents of
82
   the local variable 'c' which is passed to this macro as 'character'.  */
83
#define TC_START_LABEL(character, s, i_l_p)                             \
84
  ((character) != ':' ? 0 : (character = m32c_is_colon_insn (s)) ? 0 : ((character = ':'), 1))
85
extern char m32c_is_colon_insn (char *);
86
 
87
#define H_TICK_HEX 1

powered by: WebSVN 2.1.0

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