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.
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)
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. */
28 #define CPP_SPEC "%(cpp_cpu) \
29 %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \
30 %{posix:-D_POSIX_SOURCE} \
32 %{mieee-with-inexact:-D_IEEE_FP -D_IEEE_FP_INEXACT}"
35 #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
36 %{p:%e`-p' not supported; use `-pg' and gprof(1)} \
38 %{assert*} %{R*} %{rpath*} %{defsym*} \
39 %{shared:-Bshareable %{h*} %{soname*}} \
40 %{symbolic:-Bsymbolic} \
43 %{rdynamic:-export-dynamic} \
44 %{!dynamic-linker:-dynamic-linker /usr/libexec/ld-elf.so.1}} \
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
54 #define ASM_SPEC " %| %{mcpu=*:-m%*}"
58 /************************[ Target stuff ]***********************************/
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. */
64 /* alpha.h gets this wrong for FreeBSD. We use the GCC defaults instead. */
68 #define WCHAR_UNSIGNED 0
70 #undef WCHAR_TYPE_SIZE
71 #define WCHAR_TYPE_SIZE 32
74 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/alpha ELF)");
79 #define TARGET_DEFAULT (MASK_FP | MASK_FPREGS | MASK_GAS)
81 #undef HAS_INIT_SECTION
83 /* Show that we need a GP when profiling. */
84 #undef TARGET_PROFILING_NEEDS_GP
85 #define TARGET_PROFILING_NEEDS_GP 1
87 /* This is the char to use for continuation (in case we need to turn
88 continuation back on). */
90 #undef DBX_CONTIN_CHAR
91 #define DBX_CONTIN_CHAR '?'