1 /* Definitions for ia64-linux target. */
3 /* This macro is a C statement to print on `stderr' a string describing the
4 particular machine description choice. */
6 #define TARGET_VERSION fprintf (stderr, " (IA-64) Linux");
8 /* This is for -profile to use -lc_p instead of -lc. */
10 #define CC1_SPEC "%{profile:-p} %{G*}"
12 /* Target OS builtins. */
13 #define TARGET_OS_CPP_BUILTINS() \
15 LINUX_TARGET_OS_CPP_BUILTINS(); \
16 builtin_define("_LONGLONG"); \
19 /* Need to override linux.h STARTFILE_SPEC, since it has crtbeginT.o in. */
22 #define STARTFILE_SPEC \
23 "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}}\
24 crti.o%s %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
26 #define STARTFILE_SPEC \
27 "%{!shared: %{pg|p|profile:gcrt1.o%s;:crt1.o%s}}\
28 crti.o%s %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
31 /* Similar to standard Linux, but adding -ffast-math support. */
33 #define ENDFILE_SPEC \
34 "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
35 %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
37 /* Define this for shared library support because it isn't in the main
45 %{rdynamic:-export-dynamic} \
46 %{!dynamic-linker:-dynamic-linker /lib/ld-linux-ia64.so.2}} \
49 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
51 #define JMP_BUF_SIZE 76
53 /* Override linux.h LINK_EH_SPEC definition.
54 Signalize that because we have fde-glibc, we don't need all C shared libs
55 linked against -lgcc_s. */
57 #define LINK_EH_SPEC ""
59 #define MD_UNWIND_SUPPORT "config/ia64/linux-unwind.h"