OSDN Git Service

351fb8420ea2dba7320efca49714621fea8b17b0
[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 Free Software Foundation, Inc.
3    Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
4
5 This file is part of GNU CC.
6
7 GNU CC 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 GNU CC 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 GNU CC; see the file COPYING.  If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.  */
21
22
23 /* Provide a CPP_SPEC appropriate for FreeBSD/alpha.  Besides the dealing with
24    the GCC option `-posix', and PIC issues as on all FreeBSD platforms, we must
25    deal with the Alpha's FP issues.  */
26
27 #undef  CPP_SPEC
28 #define CPP_SPEC "%(cpp_cpu)                                            \
29   %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__}               \
30   %{posix:-D_POSIX_SOURCE}                                              \
31   %{mieee:-D_IEEE_FP}                                                   \
32   %{mieee-with-inexact:-D_IEEE_FP -D_IEEE_FP_INEXACT}"
33
34 #undef  LINK_SPEC
35 #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax}                  \
36   %{p:%e`-p' not supported; use `-pg' and gprof(1)}                     \
37   %{Wl,*:%*}                                                            \
38   %{assert*} %{R*} %{rpath*} %{defsym*}                                 \
39   %{shared:-Bshareable %{h*} %{soname*}}                                \
40   %{symbolic:-Bsymbolic}                                                \
41   %{!shared:                                                            \
42     %{!static:                                                          \
43       %{rdynamic:-export-dynamic}                                       \
44       %{!dynamic-linker:-dynamic-linker /usr/libexec/ld-elf.so.1}}      \
45     %{static:-Bstatic}}"
46
47 /* Provide an ASM_SPEC appropriate for a FreeBSD/Alpha target.  This differs
48    from the generic FreeBSD ASM_SPEC in that no special handling of PIC is
49    necessary on the Alpha.  */
50 /* Per Richard Henderson <rth@cygnus.com>, it is better to use the `.arch'
51    directive in the assembly file.  alpha/elf.h gives us this in
52    "ASM_FILE_START".
53 #undef  ASM_SPEC
54 #define ASM_SPEC " %| %{mcpu=*:-m%*}"
55 */
56
57
58 /************************[  Target stuff  ]***********************************/
59
60 /* Define the actual types of some ANSI-mandated types.  
61    Needs to agree with <machine/ansi.h>.  GCC defaults come from c-decl.c,
62    c-common.c, and config/<arch>/<arch>.h.  */
63
64 /* alpha.h gets this wrong for FreeBSD.  We use the GCC defaults instead.  */
65 #undef WCHAR_TYPE
66
67 #undef  WCHAR_UNSIGNED
68 #define WCHAR_UNSIGNED 0
69
70 #undef  WCHAR_TYPE_SIZE
71 #define WCHAR_TYPE_SIZE 32
72
73 #undef  TARGET_VERSION
74 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/alpha ELF)");
75
76 #define TARGET_ELF              1
77
78 #undef  TARGET_DEFAULT
79 #define TARGET_DEFAULT (MASK_FP | MASK_FPREGS | MASK_GAS)
80
81 #undef HAS_INIT_SECTION
82
83 /* Show that we need a GP when profiling.  */
84 #undef  TARGET_PROFILING_NEEDS_GP
85 #define TARGET_PROFILING_NEEDS_GP 1
86
87 /* This is the char to use for continuation (in case we need to turn
88    continuation back on).  */
89
90 #undef  DBX_CONTIN_CHAR
91 #define DBX_CONTIN_CHAR '?'