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

Subversion Repositories scarts

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc.
2
 
3
This file is part of GCC.
4
 
5
GCC is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2, or (at your option)
8
any later version.
9
 
10
GCC is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
GNU General Public License for more details.
14
 
15
You should have received a copy of the GNU General Public License
16
along with GCC; see the file COPYING.  If not, write to
17
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
18
Boston, MA 02110-1301, USA.  */
19
 
20
#undef  EXTRA_SECTIONS
21
#define EXTRA_SECTIONS in_sdata, in_sbss
22
 
23
#undef  EXTRA_SECTION_FUNCTIONS
24
#define EXTRA_SECTION_FUNCTIONS                                            \
25
  SECTION_FUNCTION_TEMPLATE(sdata_section, in_sdata, SDATA_SECTION_ASM_OP) \
26
  SECTION_FUNCTION_TEMPLATE(sbss_section, in_sbss, SBSS_SECTION_ASM_OP)
27
 
28
 
29
#undef  TARGET_VERSION
30
#define TARGET_VERSION fprintf (stderr, " (MIPS, VxWorks syntax)");
31
 
32
/* Combination of mips.h and svr4.h.  */
33
#undef  SWITCH_TAKES_ARG
34
#define SWITCH_TAKES_ARG(CHAR)          \
35
  (DEFAULT_SWITCH_TAKES_ARG (CHAR)      \
36
   || (CHAR) == 'G'                     \
37
   || (CHAR) == 'h'                     \
38
   || (CHAR) == 'x'                     \
39
   || (CHAR) == 'z')
40
 
41
#undef  ASM_SPEC
42
#define ASM_SPEC "\
43
%{!G:-G 0} %{G*} %(endian_spec) %{mips1} %{mips2} %{mips3} %{mips4} \
44
%{mips32} %{mips32r2} %{mips64} \
45
%{mips16:%{!mno-mips16:-mips16}} %{mno-mips16:-no-mips16} \
46
%(subtarget_asm_optimizing_spec) \
47
%(subtarget_asm_debugging_spec) \
48
%{mabi=*} %{!mabi*: %(asm_abi_default_spec)} \
49
%{mgp32} %{mgp64} %{march=*} %{mxgot:-xgot} \
50
%{mtune=*} %{v} \
51
%(subtarget_asm_spec)"
52
 
53
#undef LINK_SPEC
54
/* LINK_SPEC is clobbered in svr4.h. ugh!  */
55
#define LINK_SPEC "\
56
%(endian_spec) \
57
%{!G:-G 0} %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64} \
58
%{bestGnum}"
59
 
60
#define TARGET_OS_CPP_BUILTINS()                        \
61
  do                                                    \
62
    {                                                   \
63
      builtin_define ("__vxworks");                     \
64
      builtin_assert ("system=unix");                   \
65
    }                                                   \
66
  while (0)
67
 
68
#undef SUBTARGET_CPP_SPEC
69
#define SUBTARGET_CPP_SPEC \
70
"%{!DCPU=*: %{mips3|mips4|mips64:-DCPU=MIPS64;:-DCPU=MIPS32}} \
71
  %{EL|mel:-DMIPSEL;:-DMIPSEB} \
72
  %{msoft-float:-DSOFT_FLOAT} \
73
  %{mips1:-D_WRS_R3K_EXC_SUPPORT}"
74
 
75
/* No sdata.  */
76
#undef MIPS_DEFAULT_GVALUE
77
#define MIPS_DEFAULT_GVALUE 0

powered by: WebSVN 2.1.0

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