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

Subversion Repositories scarts

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Definitions for DEC Alpha/AXP running FreeBSD using the ELF format
2
   Copyright (C) 2000, 2002, 2004, 2005 Free Software Foundation, Inc.
3
   Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
4
 
5
This file is part of GCC.
6
 
7
GCC 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 2, or (at your option)
10
any later version.
11
 
12
GCC 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 GCC; see the file COPYING.  If not, write to
19
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20
Boston, MA 02110-1301, USA.  */
21
 
22
 
23
#undef  SUBTARGET_EXTRA_SPECS
24
#define SUBTARGET_EXTRA_SPECS \
25
  { "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }
26
 
27
/* Provide a FBSD_TARGET_CPU_CPP_BUILTINS and CPP_SPEC appropriate for
28
   FreeBSD/alpha.  Besides the dealing with
29
   the GCC option `-posix', and PIC issues as on all FreeBSD platforms, we must
30
   deal with the Alpha's FP issues.  */
31
 
32
#undef  FBSD_TARGET_CPU_CPP_BUILTINS
33
#define FBSD_TARGET_CPU_CPP_BUILTINS()          \
34
  do                                            \
35
    {                                           \
36
      if (flag_pic)                             \
37
        {                                       \
38
          builtin_define ("__PIC__");           \
39
          builtin_define ("__pic__");           \
40
        }                                       \
41
    }                                           \
42
  while (0)
43
 
44
#undef  CPP_SPEC
45
#define CPP_SPEC "%(cpp_subtarget) %{posix:-D_POSIX_SOURCE}"
46
 
47
#define LINK_SPEC "%{G*} %{relax:-relax}                                \
48
  %{p:%nconsider using `-pg' instead of `-p' with gprof(1)}             \
49
  %{Wl,*:%*}                                                            \
50
  %{assert*} %{R*} %{rpath*} %{defsym*}                                 \
51
  %{shared:-Bshareable %{h*} %{soname*}}                                \
52
  %{!shared:                                                            \
53
    %{!static:                                                          \
54
      %{rdynamic:-export-dynamic}                                       \
55
      %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }}       \
56
    %{static:-Bstatic}}                                                 \
57
  %{symbolic:-Bsymbolic}"
58
 
59
 
60
/************************[  Target stuff  ]***********************************/
61
 
62
/* Define the actual types of some ANSI-mandated types.
63
   Needs to agree with <machine/ansi.h>.  GCC defaults come from c-decl.c,
64
   c-common.c, and config/<arch>/<arch>.h.  */
65
 
66
/* alpha.h gets this wrong for FreeBSD.  We use the GCC defaults instead.  */
67
#undef WCHAR_TYPE
68
 
69
#undef  WCHAR_TYPE_SIZE
70
#define WCHAR_TYPE_SIZE 32
71
 
72
#undef  TARGET_VERSION
73
#define TARGET_VERSION fprintf (stderr, " (FreeBSD/alpha ELF)");
74
 
75
#define TARGET_ELF      1
76
 
77
#undef  TARGET_DEFAULT
78
#define TARGET_DEFAULT  (MASK_FPREGS | MASK_GAS)
79
 
80
#undef HAS_INIT_SECTION
81
 
82
/* Show that we need a GP when profiling.  */
83
#undef  TARGET_PROFILING_NEEDS_GP
84
#define TARGET_PROFILING_NEEDS_GP 1
85
 
86
/* This is the char to use for continuation (in case we need to turn
87
   continuation back on).  */
88
 
89
#undef  DBX_CONTIN_CHAR
90
#define DBX_CONTIN_CHAR '?'
91
 
92
/* Don't default to pcc-struct-return, we want to retain compatibility with
93
   older FreeBSD releases AND pcc-struct-return may not be reentrant.  */
94
 
95
#undef  DEFAULT_PCC_STRUCT_RETURN
96
#define DEFAULT_PCC_STRUCT_RETURN 0

powered by: WebSVN 2.1.0

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