OSDN Git Service

2006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
[pf3gnuchains/gcc-fork.git] / gcc / config / alpha / freebsd.h
1 /* 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 CPP_SPEC appropriate for FreeBSD/alpha.  Besides the
28    dealing with the GCC option `-posix', we must deal with the Alpha's
29    FP issues.  */
30
31 #undef  CPP_SPEC
32 #define CPP_SPEC "%(cpp_subtarget) %{posix:-D_POSIX_SOURCE}"
33
34 #define LINK_SPEC "%{G*} %{relax:-relax}                                \
35   %{p:%nconsider using `-pg' instead of `-p' with gprof(1)}             \
36   %{Wl,*:%*}                                                            \
37   %{assert*} %{R*} %{rpath*} %{defsym*}                                 \
38   %{shared:-Bshareable %{h*} %{soname*}}                                \
39   %{!shared:                                                            \
40     %{!static:                                                          \
41       %{rdynamic:-export-dynamic}                                       \
42       %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }}       \
43     %{static:-Bstatic}}                                                 \
44   %{symbolic:-Bsymbolic}"
45
46
47 /************************[  Target stuff  ]***********************************/
48
49 /* Define the actual types of some ANSI-mandated types.  
50    Needs to agree with <machine/ansi.h>.  GCC defaults come from c-decl.c,
51    c-common.c, and config/<arch>/<arch>.h.  */
52
53 /* alpha.h gets this wrong for FreeBSD.  We use the GCC defaults instead.  */
54 #undef WCHAR_TYPE
55
56 #undef  WCHAR_TYPE_SIZE
57 #define WCHAR_TYPE_SIZE 32
58
59 #undef  TARGET_VERSION
60 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/alpha ELF)");
61
62 #define TARGET_ELF      1
63
64 #undef  TARGET_DEFAULT
65 #define TARGET_DEFAULT  (MASK_FPREGS | MASK_GAS)
66
67 #undef HAS_INIT_SECTION
68
69 /* Show that we need a GP when profiling.  */
70 #undef  TARGET_PROFILING_NEEDS_GP
71 #define TARGET_PROFILING_NEEDS_GP 1
72
73 /* This is the char to use for continuation (in case we need to turn
74    continuation back on).  */
75
76 #undef  DBX_CONTIN_CHAR
77 #define DBX_CONTIN_CHAR '?'
78
79 /* Don't default to pcc-struct-return, we want to retain compatibility with
80    older FreeBSD releases AND pcc-struct-return may not be reentrant.  */
81
82 #undef  DEFAULT_PCC_STRUCT_RETURN
83 #define DEFAULT_PCC_STRUCT_RETURN 0