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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [config/] [mn10300/] [linux.h] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Definitions of taret machine for GNU compiler.
2
   Matsushita AM33/2.0
3
   Copyright 2001, 2002, 2005 Free Software Foundation, Inc.
4
   Contributed by Alexandre Oliva <aoliva@redhat.com>
5
 
6
   This file is part of GCC.
7
 
8
   GCC 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
   GCC 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 GCC; see the file COPYING.  If not, write to
20
   the Free Software Foundation, 51 Franklin Street, Fifth Floor,
21
   Boston, MA 02110-1301, USA.  */
22
 
23
#undef  PREFERRED_DEBUGGING_TYPE
24
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
25
 
26
#define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
27
 
28
#undef  CPP_SPEC
29
#define CPP_SPEC "%{mam33:-D__AM33__} %{!mam33:-D__AM33__=2 -D__AM33_2__} \
30
  %{posix:-D_POSIX_SOURCE} \
31
  %{pthread:-D_REENTRANT -D_PTHREADS}"
32
 
33
#undef  ASM_SPEC
34
#define ASM_SPEC "%{Wa,*:%*}"
35
 
36
#undef  LINK_SPEC
37
#define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
38
   %{!static: \
39
     %{rdynamic:-export-dynamic} \
40
     %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
41
   %{static:-static}"
42
 
43
#undef  PROCESSOR_DEFAULT
44
#define PROCESSOR_DEFAULT PROCESSOR_AM33_2
45
 
46
#undef  TARGET_VERSION
47
#define TARGET_VERSION fprintf (stderr, " (AM33/2.0 GNU/Linux)");
48
 
49
#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
50
 
51
extern int mn10300_protect_label;
52
 
53
#undef  PRINT_OPERAND
54
#define PRINT_OPERAND(FILE, X, CODE)            \
55
  do                                            \
56
    {                                           \
57
      mn10300_protect_label = 1;                \
58
      print_operand ((FILE), (X), (CODE));      \
59
      mn10300_protect_label = 0;                \
60
    }                                           \
61
  while (0)
62
 
63
#undef  PRINT_OPERAND_ADDRESS
64
#define PRINT_OPERAND_ADDRESS(FILE, X)          \
65
  do                                            \
66
    {                                           \
67
      mn10300_protect_label = 1;                \
68
      print_operand_address ((FILE), (X));      \
69
      mn10300_protect_label = 0;                \
70
    }                                           \
71
   while (0)
72
 
73
#undef  ASM_OUTPUT_LABELREF
74
#define ASM_OUTPUT_LABELREF(FILE, NAME)         \
75
  do                                            \
76
    {                                           \
77
      const char * real_name;                   \
78
                                                \
79
      real_name = (*targetm.strip_name_encoding) (NAME);        \
80
      if (mn10300_protect_label)                \
81
        asm_fprintf (FILE, "+");                \
82
      asm_fprintf (FILE, "%U%s", real_name);    \
83
    }                                           \
84
  while (0)
85
 

powered by: WebSVN 2.1.0

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