Intel MOVRS tests: Also scan (%e.x)
[official-gcc.git] / gcc / config / ia64 / linux.h
blob3280193260f6cea7d9fae2455388b9ad7782bd2b
1 /* Definitions for ia64-linux target.
3 Copyright (C) 2000-2024 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
10 version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
17 Under Section 7 of GPL version 3, you are granted additional
18 permissions described in the GCC Runtime Library Exception, version
19 3.1, as published by the Free Software Foundation.
21 You should have received a copy of the GNU General Public License and
22 a copy of the GCC Runtime Library Exception along with this program;
23 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24 <http://www.gnu.org/licenses/>. */
26 /* This is for -profile to use -lc_p instead of -lc. */
27 #undef CC1_SPEC
28 #define CC1_SPEC "%{profile:-p} %{G*}"
30 /* Target OS builtins. */
31 #define TARGET_OS_CPP_BUILTINS() \
32 do { \
33 GNU_USER_TARGET_OS_CPP_BUILTINS(); \
34 builtin_define("_LONGLONG"); \
35 } while (0)
37 /* Need to override linux.h STARTFILE_SPEC, since it has crtbeginT.o in. */
38 #undef STARTFILE_SPEC
39 #ifdef HAVE_LD_PIE
40 #define STARTFILE_SPEC \
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
49 /* Similar to standard Linux, but adding -ffast-math support. */
50 #undef ENDFILE_SPEC
51 #define ENDFILE_SPEC \
52 "%{Ofast|ffast-math|funsafe-math-optimizations:%{!shared:crtfastmath.o%s}} \
53 %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
55 /* Define this for shared library support because it isn't in the main
56 linux.h file. */
58 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
60 #undef LINK_SPEC
61 #define LINK_SPEC "\
62 %{shared:-shared} \
63 %{!shared: \
64 %{!static: \
65 %{rdynamic:-export-dynamic} \
66 -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
67 %{static:-static}}"
69 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
71 #define JMP_BUF_SIZE 76
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 ""
79 #undef TARGET_INIT_LIBFUNCS
80 #define TARGET_INIT_LIBFUNCS ia64_soft_fp_init_libfuncs
82 /* Define this to be nonzero if static stack checking is supported. */
83 #define STACK_CHECK_STATIC_BUILTIN 1