OSDN Git Service

a2b4f24291c52a8d36e64e34e6076ec06b58b5b7
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / gnu.h
1 /* Configuration for an i386 running GNU with ELF as the target machine.  */
2
3 #undef TARGET_VERSION
4 #define TARGET_VERSION fprintf (stderr, " (i386 GNU)");
5
6 #undef TARGET_OS_CPP_BUILTINS /* config.gcc includes i386/linux.h.  */
7 #define TARGET_OS_CPP_BUILTINS()                \
8   do                                            \
9     {                                           \
10         HURD_TARGET_OS_CPP_BUILTINS();          \
11     }                                           \
12   while (0)
13
14 #undef CPP_SPEC
15 #define CPP_SPEC "%{pthread:-D_REENTRANT} %{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
16
17 #undef CC1_SPEC
18 #define CC1_SPEC "%(cc1_cpu)"
19
20 #undef  LINK_SPEC
21 #define LINK_SPEC "-m elf_i386 %{shared:-shared} \
22   %{!shared: \
23     %{!static: \
24       %{rdynamic:-export-dynamic} \
25       %{!dynamic-linker:-dynamic-linker /lib/ld.so}} \
26     %{static:-static}}"
27
28 #undef  STARTFILE_SPEC
29 #if defined HAVE_LD_PIE
30 #define STARTFILE_SPEC \
31   "%{!shared: %{pg|p|profile:gcrt0.o%s;pie:Scrt1.o%s;static:crt0.o%s;:crt1.o%s}} \
32    crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
33 #else
34 #define STARTFILE_SPEC \
35   "%{!shared: %{pg|p|profile:gcrt0.o%s;static:crt0.o%s;:crt1.o%s}} \
36    crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
37 #endif
38
39 #undef  ENDFILE_SPEC
40 #define ENDFILE_SPEC \
41   "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
42
43 /* FIXME: Is a Hurd-specific fallback mechanism necessary?  */
44 #undef MD_UNWIND_SUPPORT