xref: /NextBSD/contrib/gcc/config/ia64/freebsd.h (revision eb1a5f8de9f7ea602c373a710f531abbf81141c4)
1 /* Definitions for Intel IA-64 running FreeBSD using the ELF format
2    Copyright (C) 2001, 2004 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 2, 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 COPYING.  If not, write to
19 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.  */
21 
22 #undef  SUBTARGET_EXTRA_SPECS
23 #define SUBTARGET_EXTRA_SPECS \
24   { "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }
25 
26 #define LINK_SPEC "							\
27   %{p:%nconsider using `-pg' instead of `-p' with gprof(1)}		\
28   %{assert*} %{R*} %{rpath*} %{defsym*}					\
29   %{shared:-Bshareable %{h*} %{soname*}}				\
30   %{!static:--enable-new-dtags}						\
31   %{symbolic:-Bsymbolic}						\
32   %{!shared:								\
33     %{!static:								\
34       %{rdynamic:-export-dynamic}					\
35       %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }}	\
36     %{static:-Bstatic}}"
37 
38 
39 /************************[  Target stuff  ]***********************************/
40 
41 /* Define the actual types of some ANSI-mandated types.
42    Needs to agree with <machine/ansi.h>.  GCC defaults come from c-decl.c,
43    c-common.c, and config/<arch>/<arch>.h.  */
44 
45 /* Earlier headers may get this wrong for FreeBSD.
46    We use the GCC defaults instead.  */
47 #undef WCHAR_TYPE
48 
49 #undef  WCHAR_TYPE_SIZE
50 #define WCHAR_TYPE_SIZE 32
51 
52 #undef  TARGET_VERSION
53 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/IA-64 ELF)");
54 
55 #define TARGET_ELF		1
56 
57 #define JMP_BUF_SIZE  76
58