Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/alpha/linux.h @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Definitions of target machine for GNU compiler, | 1 /* Definitions of target machine for GNU compiler, |
2 for Alpha Linux-based GNU systems. | 2 for Alpha Linux-based GNU systems. |
3 Copyright (C) 1996-2017 Free Software Foundation, Inc. | 3 Copyright (C) 1996-2018 Free Software Foundation, Inc. |
4 Contributed by Richard Henderson. | 4 Contributed by Richard Henderson. |
5 | 5 |
6 This file is part of GCC. | 6 This file is part of GCC. |
7 | 7 |
8 GCC is free software; you can redistribute it and/or modify | 8 GCC is free software; you can redistribute it and/or modify |
76 #undef TARGET_LIBC_HAS_FUNCTION | 76 #undef TARGET_LIBC_HAS_FUNCTION |
77 #define TARGET_LIBC_HAS_FUNCTION linux_libc_has_function | 77 #define TARGET_LIBC_HAS_FUNCTION linux_libc_has_function |
78 | 78 |
79 #define TARGET_POSIX_IO | 79 #define TARGET_POSIX_IO |
80 | 80 |
81 /* Provide a STARTFILE_SPEC appropriate for ELF. Here we add the | |
82 (even more) magical crtbegin.o file which provides part of the | |
83 support for getting C++ file-scope static object constructed | |
84 before entering `main'. */ | |
85 | |
86 #undef STARTFILE_SPEC | |
87 #ifdef HAVE_LD_PIE | |
88 #define STARTFILE_SPEC \ | |
89 "%{!shared: %{pg|p:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}}\ | |
90 crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}" | |
91 #else | |
92 #define STARTFILE_SPEC \ | |
93 "%{!shared: %{pg|p:gcrt1.o%s;:crt1.o%s}}\ | |
94 crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}" | |
95 #endif | |
96 | |
97 /* Provide a ENDFILE_SPEC appropriate for ELF. Here we tack on the | |
98 magical crtend.o file which provides part of the support for | |
99 getting C++ file-scope static object constructed before entering | |
100 `main', followed by a normal ELF "finalizer" file, `crtn.o'. */ | |
101 | |
102 #undef ENDFILE_SPEC | |
103 #define ENDFILE_SPEC \ | |
104 "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ | |
105 %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s" | |
106 | |
81 #define LINK_GCC_C_SEQUENCE_SPEC \ | 107 #define LINK_GCC_C_SEQUENCE_SPEC \ |
82 "%{static|static-pie:--start-group} %G %L \ | 108 "%{static|static-pie:--start-group} %G %{!nolibc:%L} \ |
83 %{static|static-pie:--end-group}%{!static:%{!static-pie:%G}}" | 109 %{static|static-pie:--end-group}%{!static:%{!static-pie:%G}}" |
84 | 110 |
85 /* Use --as-needed -lgcc_s for eh support. */ | 111 /* Use --as-needed -lgcc_s for eh support. */ |
86 #ifdef HAVE_LD_AS_NEEDED | 112 #ifdef HAVE_LD_AS_NEEDED |
87 #define USE_LD_AS_NEEDED 1 | 113 #define USE_LD_AS_NEEDED 1 |