]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/ia64/linux.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / ia64 / linux.h
CommitLineData
ad41bd84
JM
1/* Definitions for ia64-linux target.
2
a5544970 3Copyright (C) 2000-2019 Free Software Foundation, Inc.
ad41bd84
JM
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 3, or (at your option) any later
10version.
11
12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
16
17Under Section 7 of GPL version 3, you are granted additional
18permissions described in the GCC Runtime Library Exception, version
193.1, as published by the Free Software Foundation.
20
21You should have received a copy of the GNU General Public License and
22a copy of the GCC Runtime Library Exception along with this program;
23see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24<http://www.gnu.org/licenses/>. */
c65ebc55 25
ed168e45 26/* This is for -profile to use -lc_p instead of -lc. */
ad5042df
JJ
27#undef CC1_SPEC
28#define CC1_SPEC "%{profile:-p} %{G*}"
29
57016b47
SE
30/* Target OS builtins. */
31#define TARGET_OS_CPP_BUILTINS() \
32do { \
107fd1c1 33 GNU_USER_TARGET_OS_CPP_BUILTINS(); \
57016b47
SE
34 builtin_define("_LONGLONG"); \
35} while (0)
c65ebc55 36
275b60d6
JJ
37/* Need to override linux.h STARTFILE_SPEC, since it has crtbeginT.o in. */
38#undef STARTFILE_SPEC
24a4dd31 39#ifdef HAVE_LD_PIE
275b60d6 40#define STARTFILE_SPEC \
24a4dd31
JJ
41 "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}}\
42 crti.o%s %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
43#else
44#define STARTFILE_SPEC \
45 "%{!shared: %{pg|p|profile:gcrt1.o%s;:crt1.o%s}}\
46 crti.o%s %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
47#endif
275b60d6 48
8b54e868
DM
49/* Similar to standard Linux, but adding -ffast-math support. */
50#undef ENDFILE_SPEC
51#define ENDFILE_SPEC \
0691dde9 52 "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
24a4dd31 53 %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
8b54e868 54
c65ebc55
JW
55/* Define this for shared library support because it isn't in the main
56 linux.h file. */
57
7bd85ce0
JM
58#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
59
c65ebc55
JW
60#undef LINK_SPEC
61#define LINK_SPEC "\
62 %{shared:-shared} \
63 %{!shared: \
64 %{!static: \
65 %{rdynamic:-export-dynamic} \
107fd1c1 66 -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
c65ebc55
JW
67 %{static:-static}}"
68
c2431a62 69#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
c65ebc55 70
aa936f1c 71#define JMP_BUF_SIZE 76
59da9a7d 72
275b60d6
JJ
73/* Override linux.h LINK_EH_SPEC definition.
74 Signalize that because we have fde-glibc, we don't need all C shared libs
75 linked against -lgcc_s. */
76#undef LINK_EH_SPEC
77#define LINK_EH_SPEC ""
78
c252db20
L
79#undef TARGET_INIT_LIBFUNCS
80#define TARGET_INIT_LIBFUNCS ia64_soft_fp_init_libfuncs
7b84aac0
EB
81
82/* Define this to be nonzero if static stack checking is supported. */
83#define STACK_CHECK_STATIC_BUILTIN 1