* alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
[official-gcc.git] / gcc / config / alpha / freebsd.h
blob0ec9688552786e4aec4bf08ab72ad9fa97f14e1a
1 /* Definitions for DEC Alpha/AXP running FreeBSD using the ELF format
2 Copyright (C) 2000, 2002 Free Software Foundation, Inc.
3 Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
5 This file is part of GNU CC.
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.
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.
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. */
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. */
27 #define TARGET_OS_CPP_BUILTINS() \
28 do \
29 { \
30 if (flag_pic) \
31 { \
32 builtin_define ("__PIC__"); \
33 builtin_define ("__pic__"); \
34 } \
35 } \
36 while (0)
38 #undef CPP_SPEC
39 #define CPP_SPEC "%(cpp_subtarget) %{posix:-D_POSIX_SOURCE}"
41 #define LINK_SPEC "%{G*} %{relax:-relax} \
42 %{p:%e`-p' not supported; use `-pg' and gprof(1)} \
43 %{Wl,*:%*} \
44 %{assert*} %{R*} %{rpath*} %{defsym*} \
45 %{shared:-Bshareable %{h*} %{soname*}} \
46 %{symbolic:-Bsymbolic} \
47 %{!shared: \
48 %{!static: \
49 %{rdynamic:-export-dynamic} \
50 %{!dynamic-linker:-dynamic-linker /usr/libexec/ld-elf.so.1}} \
51 %{static:-Bstatic}}"
54 /************************[ Target stuff ]***********************************/
56 /* Define the actual types of some ANSI-mandated types.
57 Needs to agree with <machine/ansi.h>. GCC defaults come from c-decl.c,
58 c-common.c, and config/<arch>/<arch>.h. */
60 /* alpha.h gets this wrong for FreeBSD. We use the GCC defaults instead. */
61 #undef WCHAR_TYPE
63 #undef WCHAR_TYPE_SIZE
64 #define WCHAR_TYPE_SIZE 32
66 #undef TARGET_VERSION
67 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/alpha ELF)");
69 #define TARGET_ELF 1
71 #undef TARGET_DEFAULT
72 #define TARGET_DEFAULT (MASK_FP | MASK_FPREGS | MASK_GAS)
74 #undef HAS_INIT_SECTION
76 /* Show that we need a GP when profiling. */
77 #undef TARGET_PROFILING_NEEDS_GP
78 #define TARGET_PROFILING_NEEDS_GP 1
80 /* This is the char to use for continuation (in case we need to turn
81 continuation back on). */
83 #undef DBX_CONTIN_CHAR
84 #define DBX_CONTIN_CHAR '?'
86 /* Don't default to pcc-struct-return, we want to retain compatibility with
87 older FreeBSD releases AND pcc-struct-return may not be reentrant. */
89 #undef DEFAULT_PCC_STRUCT_RETURN
90 #define DEFAULT_PCC_STRUCT_RETURN 0