| 1 |
709 |
jeremybenn |
/* Definitions for DEC Alpha/AXP running FreeBSD using the ELF format
|
| 2 |
|
|
Copyright (C) 2000, 2002, 2004, 2005, 2007, 2010, 2011
|
| 3 |
|
|
Free Software Foundation, Inc.
|
| 4 |
|
|
Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
|
| 5 |
|
|
|
| 6 |
|
|
This file is part of GCC.
|
| 7 |
|
|
|
| 8 |
|
|
GCC is free software; you can redistribute it and/or modify
|
| 9 |
|
|
it under the terms of the GNU General Public License as published by
|
| 10 |
|
|
the Free Software Foundation; either version 3, or (at your option)
|
| 11 |
|
|
any later version.
|
| 12 |
|
|
|
| 13 |
|
|
GCC is distributed in the hope that it will be useful,
|
| 14 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 15 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 16 |
|
|
GNU General Public License for more details.
|
| 17 |
|
|
|
| 18 |
|
|
You should have received a copy of the GNU General Public License
|
| 19 |
|
|
along with GCC; see the file COPYING3. If not see
|
| 20 |
|
|
<http://www.gnu.org/licenses/>. */
|
| 21 |
|
|
|
| 22 |
|
|
|
| 23 |
|
|
#undef EXTRA_SPECS
|
| 24 |
|
|
#define EXTRA_SPECS \
|
| 25 |
|
|
{ "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }
|
| 26 |
|
|
|
| 27 |
|
|
/* Provide a CPP_SPEC appropriate for FreeBSD/alpha -- dealing with
|
| 28 |
|
|
the GCC option `-posix'. */
|
| 29 |
|
|
|
| 30 |
|
|
#undef CPP_SPEC
|
| 31 |
|
|
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
|
| 32 |
|
|
|
| 33 |
|
|
#define LINK_SPEC "%{G*} %{relax:-relax} \
|
| 34 |
|
|
%{p:%nconsider using '-pg' instead of '-p' with gprof(1)} \
|
| 35 |
|
|
%{assert*} %{R*} %{rpath*} %{defsym*} \
|
| 36 |
|
|
%{shared:-Bshareable %{h*} %{soname*}} \
|
| 37 |
|
|
%{!shared: \
|
| 38 |
|
|
%{!static: \
|
| 39 |
|
|
%{rdynamic:-export-dynamic} \
|
| 40 |
|
|
-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 |
|
|
#define TARGET_ELF 1
|
| 58 |
|
|
|
| 59 |
|
|
#undef TARGET_DEFAULT
|
| 60 |
|
|
#define TARGET_DEFAULT (MASK_FPREGS | MASK_GAS)
|
| 61 |
|
|
|
| 62 |
|
|
#undef HAS_INIT_SECTION
|
| 63 |
|
|
|
| 64 |
|
|
/* Show that we need a GP when profiling. */
|
| 65 |
|
|
#undef TARGET_PROFILING_NEEDS_GP
|
| 66 |
|
|
#define TARGET_PROFILING_NEEDS_GP 1
|
| 67 |
|
|
|
| 68 |
|
|
/* This is the char to use for continuation (in case we need to turn
|
| 69 |
|
|
continuation back on). */
|
| 70 |
|
|
|
| 71 |
|
|
#undef DBX_CONTIN_CHAR
|
| 72 |
|
|
#define DBX_CONTIN_CHAR '?'
|
| 73 |
|
|
|
| 74 |
|
|
/* Don't default to pcc-struct-return, we want to retain compatibility with
|
| 75 |
|
|
older FreeBSD releases AND pcc-struct-return may not be reentrant. */
|
| 76 |
|
|
|
| 77 |
|
|
#undef DEFAULT_PCC_STRUCT_RETURN
|
| 78 |
|
|
#define DEFAULT_PCC_STRUCT_RETURN 0
|