1 |
282 |
jeremybenn |
/* Definitions for ia64-linux target.
|
2 |
|
|
|
3 |
|
|
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006,
|
4 |
|
|
2009 Free Software Foundation, Inc.
|
5 |
|
|
|
6 |
|
|
This file is part of GCC.
|
7 |
|
|
|
8 |
|
|
GCC is free software; you can redistribute it and/or modify it under
|
9 |
|
|
the terms of the GNU General Public License as published by the Free
|
10 |
|
|
Software Foundation; either version 3, or (at your option) any later
|
11 |
|
|
version.
|
12 |
|
|
|
13 |
|
|
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
|
14 |
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
15 |
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
16 |
|
|
for more details.
|
17 |
|
|
|
18 |
|
|
Under Section 7 of GPL version 3, you are granted additional
|
19 |
|
|
permissions described in the GCC Runtime Library Exception, version
|
20 |
|
|
3.1, as published by the Free Software Foundation.
|
21 |
|
|
|
22 |
|
|
You should have received a copy of the GNU General Public License and
|
23 |
|
|
a copy of the GCC Runtime Library Exception along with this program;
|
24 |
|
|
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
25 |
|
|
<http://www.gnu.org/licenses/>. */
|
26 |
|
|
|
27 |
|
|
/* This macro is a C statement to print on `stderr' a string describing the
|
28 |
|
|
particular machine description choice. */
|
29 |
|
|
|
30 |
|
|
#define TARGET_VERSION fprintf (stderr, " (IA-64) Linux");
|
31 |
|
|
|
32 |
|
|
/* This is for -profile to use -lc_p instead of -lc. */
|
33 |
|
|
#undef CC1_SPEC
|
34 |
|
|
#define CC1_SPEC "%{profile:-p} %{G*}"
|
35 |
|
|
|
36 |
|
|
/* Target OS builtins. */
|
37 |
|
|
#define TARGET_OS_CPP_BUILTINS() \
|
38 |
|
|
do { \
|
39 |
|
|
LINUX_TARGET_OS_CPP_BUILTINS(); \
|
40 |
|
|
builtin_define("_LONGLONG"); \
|
41 |
|
|
} while (0)
|
42 |
|
|
|
43 |
|
|
/* Need to override linux.h STARTFILE_SPEC, since it has crtbeginT.o in. */
|
44 |
|
|
#undef STARTFILE_SPEC
|
45 |
|
|
#ifdef HAVE_LD_PIE
|
46 |
|
|
#define STARTFILE_SPEC \
|
47 |
|
|
"%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}}\
|
48 |
|
|
crti.o%s %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
|
49 |
|
|
#else
|
50 |
|
|
#define STARTFILE_SPEC \
|
51 |
|
|
"%{!shared: %{pg|p|profile:gcrt1.o%s;:crt1.o%s}}\
|
52 |
|
|
crti.o%s %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
|
53 |
|
|
#endif
|
54 |
|
|
|
55 |
|
|
/* Similar to standard Linux, but adding -ffast-math support. */
|
56 |
|
|
#undef ENDFILE_SPEC
|
57 |
|
|
#define ENDFILE_SPEC \
|
58 |
|
|
"%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
|
59 |
|
|
%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
|
60 |
|
|
|
61 |
|
|
/* Define this for shared library support because it isn't in the main
|
62 |
|
|
linux.h file. */
|
63 |
|
|
|
64 |
|
|
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
|
65 |
|
|
|
66 |
|
|
#undef LINK_SPEC
|
67 |
|
|
#define LINK_SPEC "\
|
68 |
|
|
%{shared:-shared} \
|
69 |
|
|
%{!shared: \
|
70 |
|
|
%{!static: \
|
71 |
|
|
%{rdynamic:-export-dynamic} \
|
72 |
|
|
%{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}} \
|
73 |
|
|
%{static:-static}}"
|
74 |
|
|
|
75 |
|
|
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
|
76 |
|
|
|
77 |
|
|
#define JMP_BUF_SIZE 76
|
78 |
|
|
|
79 |
|
|
/* Override linux.h LINK_EH_SPEC definition.
|
80 |
|
|
Signalize that because we have fde-glibc, we don't need all C shared libs
|
81 |
|
|
linked against -lgcc_s. */
|
82 |
|
|
#undef LINK_EH_SPEC
|
83 |
|
|
#define LINK_EH_SPEC ""
|
84 |
|
|
|
85 |
|
|
#define MD_UNWIND_SUPPORT "config/ia64/linux-unwind.h"
|
86 |
|
|
|
87 |
|
|
/* Put all *tf routines in libgcc. */
|
88 |
|
|
#undef LIBGCC2_HAS_TF_MODE
|
89 |
|
|
#define LIBGCC2_HAS_TF_MODE 1
|
90 |
|
|
#undef LIBGCC2_TF_CEXT
|
91 |
|
|
#define LIBGCC2_TF_CEXT q
|
92 |
|
|
#define TF_SIZE 113
|
93 |
|
|
|
94 |
|
|
#undef TARGET_INIT_LIBFUNCS
|
95 |
|
|
#define TARGET_INIT_LIBFUNCS ia64_soft_fp_init_libfuncs
|