comparison gcc/config/alpha/freebsd.h @ 0:a06113de4d67

first commit
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Fri, 17 Jul 2009 14:47:48 +0900
parents
children f6334be47118
comparison
equal deleted inserted replaced
-1:000000000000 0:a06113de4d67
1 /* Definitions for DEC Alpha/AXP running FreeBSD using the ELF format
2 Copyright (C) 2000, 2002, 2004, 2005, 2007 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 3, 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 COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
20
21
22 #undef EXTRA_SPECS
23 #define EXTRA_SPECS \
24 { "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }
25
26 /* Provide a CPP_SPEC appropriate for FreeBSD/alpha -- dealing with
27 the GCC option `-posix'. */
28
29 #undef CPP_SPEC
30 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
31
32 #define LINK_SPEC "%{G*} %{relax:-relax} \
33 %{p:%nconsider using `-pg' instead of `-p' with gprof(1)} \
34 %{Wl,*:%*} \
35 %{assert*} %{R*} %{rpath*} %{defsym*} \
36 %{shared:-Bshareable %{h*} %{soname*}} \
37 %{!shared: \
38 %{!static: \
39 %{rdynamic:-export-dynamic} \
40 %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }} \
41 %{static:-Bstatic}} \
42 %{symbolic:-Bsymbolic}"
43
44
45 /************************[ Target stuff ]***********************************/
46
47 /* Define the actual types of some ANSI-mandated types.
48 Needs to agree with <machine/ansi.h>. GCC defaults come from c-decl.c,
49 c-common.c, and config/<arch>/<arch>.h. */
50
51 /* alpha.h gets this wrong for FreeBSD. We use the GCC defaults instead. */
52 #undef WCHAR_TYPE
53
54 #undef WCHAR_TYPE_SIZE
55 #define WCHAR_TYPE_SIZE 32
56
57 #undef TARGET_VERSION
58 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/alpha ELF)");
59
60 #define TARGET_ELF 1
61
62 #undef TARGET_DEFAULT
63 #define TARGET_DEFAULT (MASK_FPREGS | MASK_GAS)
64
65 #undef HAS_INIT_SECTION
66
67 /* Show that we need a GP when profiling. */
68 #undef TARGET_PROFILING_NEEDS_GP
69 #define TARGET_PROFILING_NEEDS_GP 1
70
71 /* This is the char to use for continuation (in case we need to turn
72 continuation back on). */
73
74 #undef DBX_CONTIN_CHAR
75 #define DBX_CONTIN_CHAR '?'
76
77 /* Don't default to pcc-struct-return, we want to retain compatibility with
78 older FreeBSD releases AND pcc-struct-return may not be reentrant. */
79
80 #undef DEFAULT_PCC_STRUCT_RETURN
81 #define DEFAULT_PCC_STRUCT_RETURN 0