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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [mn10300/] [linux.h] - Blame information for rev 801

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

Line No. Rev Author Line
1 709 jeremybenn
/* Definitions of taret machine for GNU compiler.
2
   Matsushita AM33/2.0
3
   Copyright 2001, 2002, 2005, 2006, 2007, 2010, 2011
4
   Free Software Foundation, Inc.
5
   Contributed by Alexandre Oliva <aoliva@redhat.com>
6
 
7
   This file is part of GCC.
8
 
9
   GCC is free software; you can redistribute it and/or modify
10
   it under the terms of the GNU General Public License as published by
11
   the Free Software Foundation; either version 3, or (at your option)
12
   any later version.
13
 
14
   GCC is distributed in the hope that it will be useful,
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
   GNU General Public License for more details.
18
 
19
   You should have received a copy of the GNU General Public License
20
   along with GCC; see the file COPYING3.  If not see
21
   <http://www.gnu.org/licenses/>.  */
22
 
23
#undef  PREFERRED_DEBUGGING_TYPE
24
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
25
 
26
#define TARGET_OS_CPP_BUILTINS() GNU_USER_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 ""
35
 
36
#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
37
 
38
#undef  LINK_SPEC
39
#define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
40
   %{!static: \
41
     %{rdynamic:-export-dynamic} \
42
     -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
43
   %{static:-static}"
44
 
45
#undef  PROCESSOR_DEFAULT
46
#define PROCESSOR_DEFAULT PROCESSOR_AM33_2
47
 
48
#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
49
 
50
extern int mn10300_protect_label;
51
 
52
#undef  PRINT_OPERAND
53
#define PRINT_OPERAND(FILE, X, CODE)            \
54
  do                                            \
55
    {                                           \
56
      mn10300_protect_label = 1;                \
57
      mn10300_print_operand ((FILE), (X), (CODE));      \
58
      mn10300_protect_label = 0;                \
59
    }                                           \
60
  while (0)
61
 
62
#undef  PRINT_OPERAND_ADDRESS
63
#define PRINT_OPERAND_ADDRESS(FILE, X)          \
64
  do                                            \
65
    {                                           \
66
      mn10300_protect_label = 1;                \
67
      mn10300_print_operand_address ((FILE), (X));      \
68
      mn10300_protect_label = 0;                \
69
    }                                           \
70
   while (0)
71
 
72
#undef  ASM_OUTPUT_LABELREF
73
#define ASM_OUTPUT_LABELREF(FILE, NAME)         \
74
  do                                            \
75
    {                                           \
76
      const char * real_name;                   \
77
                                                \
78
      real_name = (*targetm.strip_name_encoding) (NAME);        \
79
      if (mn10300_protect_label)                \
80
        asm_fprintf (FILE, "+");                \
81
      asm_fprintf (FILE, "%U%s", real_name);    \
82
    }                                           \
83
  while (0)
84
 
85
#undef SIZE_TYPE
86
#undef PTRDIFF_TYPE
87
#undef WCHAR_TYPE
88
#undef WCHAR_TYPE_SIZE

powered by: WebSVN 2.1.0

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