]>
Commit | Line | Data |
---|---|---|
fa958513 | 1 | # libgcc host-specific configuration file. |
83ffe9cd | 2 | # Copyright (C) 1997-2023 Free Software Foundation, Inc. |
fa958513 DJ |
3 | |
4 | #This file is part of GCC. | |
5 | ||
6 | #GCC is free software; you can redistribute it and/or modify it under | |
7 | #the terms of the GNU General Public License as published by the Free | |
748086b7 | 8 | #Software Foundation; either version 3, or (at your option) any later |
fa958513 DJ |
9 | #version. |
10 | ||
11 | #GCC is distributed in the hope that it will be useful, but WITHOUT | |
12 | #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 | #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 | #for more details. | |
15 | ||
16 | #You should have received a copy of the GNU General Public License | |
748086b7 JJ |
17 | #along with GCC; see the file COPYING3. If not see |
18 | #<http://www.gnu.org/licenses/>. | |
fa958513 DJ |
19 | |
20 | # This is the libgcc host-specific configuration file | |
21 | # where a configuration type is mapped to different system-specific | |
22 | # definitions and files. This is invoked by the autoconf-generated | |
23 | # configure script. Putting it in a separate shell file lets us skip | |
24 | # running autoconf when modifying host-specific information. | |
25 | ||
26 | # This file bears an obvious resemblance to gcc/config.gcc. The cases | |
27 | # should be kept similar, to ease moving library-specific settings | |
28 | # from config.gcc to this file. That is also why tmake_file is | |
29 | # left as tmake_file, rather than hmake_file, even though this library | |
30 | # switches on ${host}. | |
31 | ||
32 | # This file switches on the shell variable ${host}, and also uses the | |
33 | # following shell variables: | |
34 | # | |
35 | # with_* Various variables as set by configure. | |
36 | ||
37 | # This file sets the following shell variables for use by the | |
38 | # autoconf-generated configure script: | |
39 | # | |
40 | # asm_hidden_op The assembler pseudo-op to use for hide | |
41 | # lists for object files implemented in | |
42 | # assembly (with -fvisibility=hidden for C). | |
43 | # The default is ".hidden". | |
44 | # cpu_type The name of the cpu, if different from the first | |
45 | # chunk of the canonical host name. | |
10e48e39 RO |
46 | # enable_execute_stack The name of a source file implementing |
47 | # __enable_execute_stack. | |
fa958513 DJ |
48 | # extra_parts List of extra object files that should be compiled |
49 | # for this target machine. This may be overridden | |
50 | # by setting EXTRA_PARTS in a tmake_file fragment. | |
51 | # If either is set, EXTRA_PARTS and | |
52 | # EXTRA_MULTILIB_PARTS inherited from the GCC | |
53 | # subdirectory will be ignored. | |
58cd1d70 RO |
54 | # md_unwind_header The name of a header file defining |
55 | # MD_FALLBACK_FRAME_STATE_FOR. | |
aca0b0b3 RO |
56 | # sfp_machine_header The name of a sfp-machine.h header file for soft-fp. |
57 | # Defaults to "$cpu_type/sfp-machine.h" if it exists, | |
58 | # no-sfp-machine.h otherwise. | |
fa958513 | 59 | # tmake_file A list of machine-description-specific |
200feb07 | 60 | # makefile fragments. |
852b75ed RO |
61 | # tm_defines List of target macros to define for all compilations. |
62 | # tm_file A list of target macro files used only for code | |
63 | # built for the target, not the host. These files | |
64 | # are relative to $srcdir/config and must not have | |
65 | # the same names as files in $srcdir/../gcc/config. | |
201cdb74 RO |
66 | # unwind_header The name of the header file declaring the unwind |
67 | # runtime interface routines. | |
fa958513 DJ |
68 | |
69 | asm_hidden_op=.hidden | |
10e48e39 | 70 | enable_execute_stack= |
fa958513 DJ |
71 | extra_parts= |
72 | tmake_file= | |
852b75ed RO |
73 | tm_file= |
74 | tm_define= | |
58cd1d70 | 75 | md_unwind_header=no-unwind.h |
201cdb74 | 76 | unwind_header=unwind-generic.h |
fa958513 DJ |
77 | |
78 | # Set default cpu_type so it can be updated in each machine entry. | |
79 | cpu_type=`echo ${host} | sed 's/-.*$//'` | |
80 | case ${host} in | |
81 | m32c*-*-*) | |
82 | cpu_type=m32c | |
569dc494 | 83 | tmake_file=t-fdpbit |
fa958513 | 84 | ;; |
1e3d5096 IB |
85 | aarch64*-*-*) |
86 | cpu_type=aarch64 | |
87 | ;; | |
fa958513 DJ |
88 | alpha*-*-*) |
89 | cpu_type=alpha | |
90 | ;; | |
91 | am33_2.0-*-linux*) | |
92 | cpu_type=mn10300 | |
93 | ;; | |
91d7b7fe AS |
94 | amdgcn*-*-*) |
95 | cpu_type=gcn | |
96 | tmake_file="${tmake_file} t-softfp-sfdf t-softfp" | |
97 | ;; | |
d38a64b4 JR |
98 | arc*-*-*) |
99 | cpu_type=arc | |
100 | ;; | |
fa958513 DJ |
101 | arm*-*-*) |
102 | cpu_type=arm | |
103 | ;; | |
47583040 AH |
104 | avr-*-*) |
105 | cpu_type=avr | |
106 | ;; | |
fa958513 DJ |
107 | bfin*-*) |
108 | cpu_type=bfin | |
109 | ;; | |
91dfef96 JM |
110 | bpf-*-*) |
111 | cpu_type=bpf | |
112 | ;; | |
4cd0bc3b J |
113 | csky*-*-*) |
114 | cpu_type=csky | |
115 | ;; | |
7d33c31d KH |
116 | fido-*-*) |
117 | cpu_type=m68k | |
118 | ;; | |
fa958513 DJ |
119 | frv*) cpu_type=frv |
120 | ;; | |
fef939d6 JB |
121 | ft32*) cpu_type=ft32 |
122 | ;; | |
cceb575c AG |
123 | moxie*) cpu_type=moxie |
124 | ;; | |
fa958513 DJ |
125 | i[34567]86-*-*) |
126 | cpu_type=i386 | |
127 | ;; | |
128 | x86_64-*-*) | |
129 | cpu_type=i386 | |
130 | ;; | |
131 | ia64-*-*) | |
132 | ;; | |
cd985f66 | 133 | hppa*-*-*) |
fa958513 DJ |
134 | cpu_type=pa |
135 | ;; | |
aa4945c1 JB |
136 | lm32*-*-*) |
137 | cpu_type=lm32 | |
138 | ;; | |
bf291a43 | 139 | loongarch*-*-*) |
140 | cpu_type=loongarch | |
141 | tmake_file="loongarch/t-loongarch" | |
142 | if test "${libgcc_cv_loongarch_hard_float}" = yes; then | |
143 | tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp" | |
144 | else | |
145 | tmake_file="${tmake_file} t-softfp-sfdf" | |
146 | fi | |
147 | if test "${ac_cv_sizeof_long_double}" = 16; then | |
148 | tmake_file="${tmake_file} loongarch/t-softfp-tf" | |
149 | fi | |
150 | if test "${host_address}" = 64; then | |
151 | tmake_file="${tmake_file} loongarch/t-loongarch64" | |
152 | fi | |
153 | tmake_file="${tmake_file} t-softfp" | |
154 | ;; | |
fa958513 DJ |
155 | m32r*-*-*) |
156 | cpu_type=m32r | |
157 | ;; | |
fa958513 DJ |
158 | m68k-*-*) |
159 | ;; | |
80920132 ME |
160 | microblaze*-*-*) |
161 | cpu_type=microblaze | |
162 | ;; | |
fa958513 | 163 | mips*-*-*) |
1ea0a651 | 164 | # All MIPS targets provide a full set of FP routines. |
fa958513 | 165 | cpu_type=mips |
1c51d688 RS |
166 | tmake_file="mips/t-mips" |
167 | if test "${libgcc_cv_mips_hard_float}" = yes; then | |
168 | tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp" | |
169 | else | |
170 | tmake_file="${tmake_file} t-softfp-sfdf" | |
171 | fi | |
1ea0a651 RS |
172 | if test "${ac_cv_sizeof_long_double}" = 16; then |
173 | tmake_file="${tmake_file} mips/t-softfp-tf" | |
174 | fi | |
175 | if test "${host_address}" = 64; then | |
176 | tmake_file="${tmake_file} mips/t-mips64" | |
177 | fi | |
178 | tmake_file="${tmake_file} t-softfp" | |
fa958513 | 179 | ;; |
9304f876 CJW |
180 | nds32*-*) |
181 | cpu_type=nds32 | |
182 | ;; | |
e430824f CLT |
183 | nios2*-*-*) |
184 | cpu_type=nios2 | |
185 | ;; | |
d929e137 SH |
186 | or1k*-*-*) |
187 | cpu_type=or1k | |
188 | ;; | |
fa958513 DJ |
189 | powerpc*-*-*) |
190 | cpu_type=rs6000 | |
191 | ;; | |
ae7deb4b DD |
192 | pru-*-*) |
193 | cpu_type=pru | |
194 | ;; | |
fa958513 DJ |
195 | rs6000*-*-*) |
196 | ;; | |
0bd99911 PD |
197 | riscv*-*-*) |
198 | cpu_type=riscv | |
199 | ;; | |
fa958513 DJ |
200 | sparc64*-*-*) |
201 | cpu_type=sparc | |
202 | ;; | |
203 | sparc*-*-*) | |
204 | cpu_type=sparc | |
205 | ;; | |
fa958513 DJ |
206 | s390*-*-*) |
207 | cpu_type=s390 | |
208 | ;; | |
209 | # Note the 'l'; we need to be able to match e.g. "shle" or "shl". | |
210 | sh[123456789lbe]*-*-*) | |
211 | cpu_type=sh | |
212 | ;; | |
4be46d19 NC |
213 | v850*-*-*) |
214 | cpu_type=v850 | |
215 | ;; | |
bcead286 BS |
216 | tic6x-*-*) |
217 | cpu_type=c6x | |
218 | ;; | |
fa958513 DJ |
219 | esac |
220 | ||
221 | # Common parts for widely ported systems. | |
222 | case ${host} in | |
223 | *-*-darwin*) | |
224 | asm_hidden_op=.private_extern | |
d4943ce9 | 225 | tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic" |
d4943ce9 | 226 | # The unwinder is provided by the system shared libraries, do not add one |
7add7f7b IS |
227 | # to the shared libgcc but, for older systems, we build a shared unwinder |
228 | # separately so that we can construct a libgcc_s.1 to use for binaries | |
229 | # linked against the old libgcc_ext.10.x stubs. | |
230 | case ${host} in | |
231 | *-*-darwin[89]* | *-*-darwin10*) | |
232 | tmake_file="$tmake_file t-darwin-ehs ${cpu_type}/t-darwin-ehs" | |
233 | ;; | |
234 | esac | |
235 | tmake_file="$tmake_file t-slibgcc-darwin" | |
236 | extra_parts="crt3.o libd10-uwfef.a crttms.o crttme.o libemutls_w.a" | |
fa958513 | 237 | ;; |
dbed5a9b JM |
238 | *-*-dragonfly*) |
239 | tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" | |
240 | tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" | |
241 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
242 | ;; | |
fa958513 DJ |
243 | *-*-freebsd*) |
244 | # This is the generic ELF configuration of FreeBSD. Later | |
245 | # machine-specific sections may refine and add to this | |
246 | # configuration. | |
f9989b51 | 247 | tmake_file="$tmake_file t-freebsd t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" |
5f73c6cc | 248 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
b040f2be RO |
249 | case ${target_thread_file} in |
250 | posix) | |
f9989b51 | 251 | tmake_file="${tmake_file} t-freebsd-thread" |
b040f2be RO |
252 | # Before 5.0, FreeBSD can't bind shared libraries to -lc |
253 | # when "optionally" threaded via weak pthread_* checks. | |
254 | case ${host} in | |
255 | *-*-freebsd[34] | *-*-freebsd[34].*) | |
256 | tmake_file="${tmake_file} t-slibgcc-nolc-override" | |
257 | ;; | |
258 | esac | |
259 | ;; | |
260 | esac | |
fa958513 | 261 | ;; |
7ab8766a JC |
262 | *-*-fuchsia*) |
263 | tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia" | |
264 | extra_parts="crtbegin.o crtend.o" | |
265 | ;; | |
b1e21e5a | 266 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi) |
f9989b51 | 267 | tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-linux" |
227a7dc8 RO |
268 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
269 | if test x$enable_vtable_verify = xyes; then | |
270 | extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" | |
271 | fi | |
fa958513 | 272 | ;; |
5f73c6cc | 273 | *-*-lynxos*) |
f9989b51 | 274 | tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic" |
5f73c6cc RO |
275 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
276 | ;; | |
fa958513 | 277 | *-*-netbsd*) |
ab955692 KW |
278 | tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" |
279 | tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" | |
eac8c9f2 | 280 | tmake_file="$tmake_file t-slibgcc-libgcc" |
bec75e53 | 281 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" |
fa958513 DJ |
282 | ;; |
283 | *-*-openbsd*) | |
8eaee0f0 | 284 | tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" |
f9989b51 RO |
285 | case ${target_thread_file} in |
286 | posix) | |
287 | tmake_file="$tmake_file t-openbsd-thread" | |
288 | ;; | |
289 | esac | |
fa958513 DJ |
290 | ;; |
291 | *-*-rtems*) | |
c9cd1a07 | 292 | tmake_file="$tmake_file t-rtems" |
5f73c6cc | 293 | extra_parts="crtbegin.o crtend.o" |
fa958513 | 294 | ;; |
ca24c5ad | 295 | *-*-solaris2*) |
201cdb74 RO |
296 | # Unless linker support and dl_iterate_phdr are present, |
297 | # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c. | |
df2a1cc4 | 298 | tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver" |
ca24c5ad RO |
299 | if test $with_gnu_ld = yes; then |
300 | tmake_file="$tmake_file t-slibgcc-gld" | |
301 | else | |
302 | tmake_file="$tmake_file t-slibgcc-sld" | |
303 | fi | |
304 | # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES. | |
305 | tmake_file="$tmake_file $cpu_type/t-sol2" | |
306 | extra_parts="gmon.o crtbegin.o crtend.o" | |
2d110442 | 307 | if test "${libgcc_cv_solaris_crts}" = yes; then |
f021f1d3 | 308 | # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the |
2d110442 RO |
309 | # base system. crtp.o and crtpg.o implement the compiler-dependent parts. |
310 | extra_parts="$extra_parts crtp.o crtpg.o" | |
df2a1cc4 RO |
311 | # If the Solaris CRTs are present, both ld and gld will have PIE support. |
312 | extra_parts="$extra_parts crtbeginS.o crtendS.o" | |
2d110442 RO |
313 | else |
314 | case ${host} in | |
ccd1242e | 315 | i?86-*-solaris2* | x86_64-*-solaris2*) |
2d110442 RO |
316 | # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as |
317 | # part of the base system. | |
318 | ;; | |
ccd1242e | 319 | sparc*-*-solaris2*) |
2d110442 RO |
320 | # Solaris 10+/SPARC lacks crt1.o and gcrt1.o. |
321 | extra_parts="$extra_parts crt1.o gcrt1.o" | |
322 | ;; | |
323 | esac | |
324 | fi | |
e5ef217c RO |
325 | if test x$enable_vtable_verify = xyes; then |
326 | extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" | |
327 | fi | |
ca24c5ad | 328 | ;; |
5f73c6cc RO |
329 | *-*-uclinux*) |
330 | extra_parts="crtbegin.o crtend.o" | |
331 | ;; | |
332 | *-*-*vms*) | |
333 | tmake_file="vms/t-vms" | |
4b12e93d | 334 | extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5f73c6cc | 335 | ;; |
36e5f4d4 OH |
336 | *-*-vxworksae*) |
337 | tmake_file=t-vxworksae | |
338 | ;; | |
fa958513 | 339 | *-*-vxworks*) |
f9989b51 | 340 | tmake_file=t-vxworks |
fa958513 DJ |
341 | ;; |
342 | *-*-elf) | |
5f73c6cc | 343 | extra_parts="crtbegin.o crtend.o" |
fa958513 DJ |
344 | ;; |
345 | esac | |
346 | ||
20a0e272 | 347 | # VxWorks ports rely on specially crafted crtstuff files |
78e49fb1 | 348 | case ${host} in |
78e49fb1 JL |
349 | *-*-vxworks*) |
350 | tmake_file="${tmake_file} t-vxcrtstuff" | |
351 | ;; | |
352 | esac | |
353 | ||
10e48e39 | 354 | case ${host} in |
dbed5a9b JM |
355 | *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \ |
356 | *-*-solaris2*) | |
10e48e39 RO |
357 | enable_execute_stack=enable-execute-stack-mprotect.c |
358 | ;; | |
359 | i[34567]86-*-mingw* | x86_64-*-mingw*) | |
360 | enable_execute_stack=config/i386/enable-execute-stack-mingw32.c | |
361 | ;; | |
c8f34527 JY |
362 | i[34567]86-*-cygwin* | x86_64-*-cygwin*) |
363 | enable_execute_stack=config/i386/enable-execute-stack-mingw32.c | |
364 | ;; | |
10e48e39 RO |
365 | *) |
366 | enable_execute_stack=enable-execute-stack-empty.c; | |
367 | ;; | |
368 | esac | |
369 | ||
fa958513 | 370 | case ${host} in |
7cb065d6 | 371 | aarch64*-*-elf | aarch64*-*-rtems*) |
1e3d5096 | 372 | extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" |
b677236a | 373 | extra_parts="$extra_parts crtfastmath.o" |
1e3d5096 | 374 | tmake_file="${tmake_file} ${cpu_type}/t-aarch64" |
33befddc | 375 | tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc" |
b677236a | 376 | tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" |
012310aa | 377 | tmake_file="${tmake_file} t-dfprules" |
5636faf2 | 378 | md_unwind_header=aarch64/aarch64-unwind.h |
1e3d5096 | 379 | ;; |
b20e7532 AT |
380 | aarch64*-*-freebsd*) |
381 | extra_parts="$extra_parts crtfastmath.o" | |
382 | tmake_file="${tmake_file} ${cpu_type}/t-aarch64" | |
33befddc | 383 | tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc" |
b20e7532 | 384 | tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" |
012310aa | 385 | tmake_file="${tmake_file} t-dfprules" |
4ccfdb28 | 386 | md_unwind_header=aarch64/freebsd-unwind.h |
b20e7532 | 387 | ;; |
f32f7585 MG |
388 | aarch64*-*-netbsd*) |
389 | extra_parts="$extra_parts crtfastmath.o" | |
390 | tmake_file="${tmake_file} ${cpu_type}/t-aarch64" | |
391 | tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" | |
012310aa | 392 | tmake_file="${tmake_file} t-dfprules" |
f32f7585 MG |
393 | md_unwind_header=aarch64/aarch64-unwind.h |
394 | ;; | |
7ab8766a JC |
395 | aarch64*-*-fuchsia*) |
396 | tmake_file="${tmake_file} ${cpu_type}/t-aarch64" | |
33befddc | 397 | tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc" |
7ab8766a | 398 | tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp" |
012310aa | 399 | tmake_file="${tmake_file} t-dfprules" |
7ab8766a | 400 | ;; |
1e3d5096 | 401 | aarch64*-*-linux*) |
b677236a | 402 | extra_parts="$extra_parts crtfastmath.o" |
1e3d5096 IB |
403 | md_unwind_header=aarch64/linux-unwind.h |
404 | tmake_file="${tmake_file} ${cpu_type}/t-aarch64" | |
33befddc | 405 | tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc" |
b677236a | 406 | tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" |
012310aa | 407 | tmake_file="${tmake_file} t-dfprules" |
1e3d5096 | 408 | ;; |
3004f893 DR |
409 | aarch64*-*-vxworks7*) |
410 | extra_parts="$extra_parts crtfastmath.o" | |
411 | md_unwind_header=aarch64/aarch64-unwind.h | |
412 | tmake_file="${tmake_file} ${cpu_type}/t-aarch64" | |
0ecd0f1c | 413 | tmake_file="${tmake_file} ${cpu_type}/t-lse" |
3004f893 | 414 | tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" |
012310aa | 415 | tmake_file="${tmake_file} t-dfprules" |
3004f893 | 416 | ;; |
ebb9f8b0 | 417 | alpha*-*-linux*) |
f9989b51 | 418 | tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux" |
5ea41e3a | 419 | extra_parts="$extra_parts crtfastmath.o" |
58cd1d70 | 420 | md_unwind_header=alpha/linux-unwind.h |
fa958513 | 421 | ;; |
fa958513 | 422 | alpha*-*-freebsd*) |
f9989b51 | 423 | tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm" |
5f73c6cc | 424 | extra_parts="$extra_parts crtbeginT.o crtfastmath.o" |
fa958513 DJ |
425 | ;; |
426 | alpha*-*-netbsd*) | |
f9989b51 | 427 | tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" |
fa958513 DJ |
428 | ;; |
429 | alpha*-*-openbsd*) | |
f9989b51 | 430 | tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" |
fa958513 | 431 | ;; |
fa958513 | 432 | alpha64-dec-*vms*) |
f9989b51 | 433 | tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms" |
5f73c6cc | 434 | extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o" |
58cd1d70 | 435 | md_unwind_header=alpha/vms-unwind.h |
fa958513 DJ |
436 | ;; |
437 | alpha*-dec-*vms*) | |
f9989b51 | 438 | tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms" |
5f73c6cc | 439 | extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o" |
58cd1d70 | 440 | md_unwind_header=alpha/vms-unwind.h |
fa958513 | 441 | ;; |
91d7b7fe AS |
442 | amdgcn*-*-amdhsa) |
443 | tmake_file="$tmake_file gcn/t-amdgcn" | |
444 | extra_parts="crt0.o" | |
445 | ;; | |
d38a64b4 | 446 | arc*-*-elf*) |
e04ea1da CZ |
447 | tmake_file="arc/t-arc" |
448 | extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o" | |
449 | extra_parts="$extra_parts crttls.o" | |
d38a64b4 | 450 | ;; |
b1938888 | 451 | arc*-*-linux*) |
e04ea1da CZ |
452 | tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc" |
453 | extra_parts="$extra_parts crti.o crtn.o" | |
62440b4f | 454 | extra_parts="$extra_parts crttls.o" |
b0c7ddf8 | 455 | md_unwind_header=arc/linux-unwind.h |
d38a64b4 | 456 | ;; |
27204060 JL |
457 | arm-wrs-vxworks7*) |
458 | tmake_file="$tmake_file arm/t-arm arm/t-elf arm/t-bpabi arm/t-vxworks7" | |
459 | tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" | |
460 | tm_file="$tm_file arm/bpabi-lib.h" | |
461 | unwind_header=config/arm/unwind-arm.h | |
5f73c6cc | 462 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 463 | ;; |
82a19768 AT |
464 | arm*-*-freebsd*) # ARM FreeBSD EABI |
465 | tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf" | |
8ef2b9a7 | 466 | tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd" |
82a19768 AT |
467 | tm_file="${tm_file} arm/bpabi-lib.h" |
468 | unwind_header=config/arm/unwind-arm.h | |
469 | tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" | |
470 | ;; | |
7ab8766a JC |
471 | arm*-*-fuchsia*) |
472 | tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi" | |
473 | tmake_file="${tmake_file} arm/tsoftfp t-softfp" | |
474 | tm_file="${tm_file} arm/bpabi-lib.h" | |
475 | unwind_header=config/arm/unwind-arm.h | |
476 | ;; | |
fa958513 | 477 | arm*-*-netbsdelf*) |
b27c1082 MT |
478 | tmake_file="$tmake_file arm/t-arm" |
479 | case ${host} in | |
480 | arm*-*-netbsdelf-*eabi*) | |
481 | tmake_file="${tmake_file} arm/t-netbsd-eabi" | |
482 | unwind_header=config/arm/unwind-arm.h | |
483 | ;; | |
484 | *) | |
485 | tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover" | |
486 | ;; | |
487 | esac | |
fa958513 | 488 | ;; |
b1e21e5a | 489 | arm*-*-linux* | arm*-*-uclinuxfdpiceabi) |
5a0ff57c | 490 | tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm" |
5005fe22 RE |
491 | tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc" |
492 | tm_file="$tm_file arm/bpabi-lib.h" | |
493 | unwind_header=config/arm/unwind-arm.h | |
aca0b0b3 | 494 | tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" |
5a0ff57c | 495 | extra_parts="$extra_parts crtfastmath.o" |
fa958513 DJ |
496 | ;; |
497 | arm*-*-uclinux*) # ARM ucLinux | |
5a0ff57c | 498 | tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm" |
064c4ff2 | 499 | tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" |
5005fe22 RE |
500 | tmake_file="${tmake_file} arm/t-bpabi" |
501 | tm_file="$tm_file arm/bpabi-lib.h" | |
502 | unwind_header=config/arm/unwind-arm.h | |
5f73c6cc | 503 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 504 | ;; |
a34c0db5 JS |
505 | arm*-*-phoenix*) |
506 | tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix" | |
507 | tmake_file="${tmake_file} arm/t-bpabi" | |
508 | tm_file="$tm_file arm/bpabi-lib.h" | |
509 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" | |
510 | unwind_header=config/arm/unwind-arm.h | |
511 | ;; | |
153c8397 | 512 | arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*) |
45b86625 | 513 | tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix" |
852b75ed | 514 | tm_file="$tm_file arm/bpabi-lib.h" |
201cdb74 | 515 | case ${host} in |
153c8397 | 516 | arm*-*-eabi* | arm*-*-rtems*) |
5a0ff57c | 517 | tmake_file="${tmake_file} arm/t-bpabi t-crtfm" |
5f73c6cc | 518 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
201cdb74 RO |
519 | ;; |
520 | arm*-*-symbianelf*) | |
b040f2be | 521 | tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override" |
852b75ed | 522 | tm_file="$tm_file arm/symbian-lib.h" |
5f73c6cc | 523 | # Symbian OS provides its own startup code. |
201cdb74 RO |
524 | ;; |
525 | esac | |
aca0b0b3 | 526 | tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" |
1300f017 | 527 | extra_parts="$extra_parts crtfastmath.o" |
201cdb74 | 528 | unwind_header=config/arm/unwind-arm.h |
fa958513 | 529 | ;; |
fa958513 | 530 | avr-*-*) |
569dc494 RO |
531 | # Make HImode functions for AVR |
532 | tmake_file="${cpu_type}/t-avr t-fpbit" | |
f30dd607 GJL |
533 | # Make some DFmode functions from libf7, part of avr-libgcc. |
534 | # This must be prior to adding t-avrlibc. | |
535 | case "y${with_libf7}" in | |
536 | yno) | |
537 | # No libf7 support. | |
538 | ;; | |
539 | ylibgcc) | |
540 | tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7" | |
541 | ;; | |
542 | ymath) | |
543 | tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math" | |
544 | tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7" | |
545 | ;; | |
546 | ymath-symbols | yyes | y) | |
547 | tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math-symbols" | |
548 | tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math" | |
549 | tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7" | |
550 | ;; | |
551 | *) | |
552 | echo "Error: --with-libf7=${with_libf7} but can only be used with: 'libgcc', 'math', 'math-symbols', 'yes', 'no'" 1>&2 | |
553 | exit 1 | |
554 | ;; | |
555 | esac | |
b588ae30 GJL |
556 | if test x${with_avrlibc} != xno; then |
557 | tmake_file="$tmake_file ${cpu_type}/t-avrlibc" | |
558 | fi | |
852b75ed | 559 | tm_file="$tm_file avr/avr-lib.h" |
29f3def3 GJL |
560 | if test x${with_fixed_point} = xno; then |
561 | fixed_point=no | |
562 | fi | |
fa958513 DJ |
563 | ;; |
564 | bfin*-elf*) | |
200feb07 | 565 | tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit" |
5f73c6cc | 566 | extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o" |
fa958513 DJ |
567 | ;; |
568 | bfin*-uclinux*) | |
200feb07 | 569 | tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit" |
5f73c6cc | 570 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o" |
58cd1d70 | 571 | md_unwind_header=bfin/linux-unwind.h |
fa958513 | 572 | ;; |
344189f9 | 573 | bfin*-linux-uclibc*) |
200feb07 | 574 | tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux" |
344189f9 BS |
575 | # No need to build crtbeginT.o on uClibc systems. Should probably |
576 | # be moved to the OS specific section above. | |
577 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
58cd1d70 | 578 | md_unwind_header=bfin/linux-unwind.h |
344189f9 | 579 | ;; |
569dc494 | 580 | bfin*-rtems*) |
45b86625 | 581 | tmake_file="$tmake_file bfin/t-bfin t-fdpbit" |
5f73c6cc | 582 | extra_parts="$extra_parts crti.o crtn.o" |
569dc494 | 583 | ;; |
fa958513 | 584 | bfin*-*) |
45b86625 | 585 | tmake_file="$tmake_file bfin/t-bfin t-fdpbit" |
5f73c6cc | 586 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
fa958513 | 587 | ;; |
91dfef96 JM |
588 | bpf-*-*) |
589 | tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}" | |
590 | extra_parts="crti.o crtn.o" | |
591 | ;; | |
5f73c6cc | 592 | cris-*-elf) |
0e499e75 | 593 | tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti" |
5f73c6cc | 594 | ;; |
4cd0bc3b J |
595 | csky-*-elf*) |
596 | tmake_file="csky/t-csky t-fdpbit" | |
03380ecc | 597 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
4cd0bc3b J |
598 | ;; |
599 | csky-*-linux*) | |
600 | tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky" | |
601 | extra_parts="$extra_parts crti.o crtn.o" | |
602 | md_unwind_header=csky/linux-unwind.h | |
603 | ;; | |
64b371b1 SH |
604 | epiphany-*-elf* | epiphany-*-rtems*) |
605 | tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf" | |
feeeff5c JR |
606 | extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o" |
607 | ;; | |
fa958513 | 608 | fr30-*-elf) |
45b86625 | 609 | tmake_file="$tmake_file fr30/t-fr30 t-fdpbit" |
5f73c6cc | 610 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
611 | ;; |
612 | frv-*-elf) | |
5f73c6cc | 613 | tmake_file="$tmake_file frv/t-frv t-fdpbit" |
cc86234f | 614 | tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h" |
5f73c6cc RO |
615 | # Don't use crtbegin.o, crtend.o. |
616 | extra_parts="frvbegin.o frvend.o" | |
fa958513 DJ |
617 | ;; |
618 | frv-*-*linux*) | |
45b86625 | 619 | tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit" |
cc86234f | 620 | tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h" |
fa958513 | 621 | ;; |
fef939d6 JB |
622 | ft32-*-elf) |
623 | tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp" | |
624 | extra_parts="$extra_parts crti.o crti-hw.o crtn.o" | |
625 | ;; | |
fa958513 | 626 | h8300-*-elf*) |
45b86625 | 627 | tmake_file="$tmake_file h8300/t-h8300 t-fpbit" |
852b75ed | 628 | tm_file="$tm_file h8300/h8300-lib.h" |
5f73c6cc | 629 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 630 | ;; |
2f6bd6eb YS |
631 | h8300-*-linux*) |
632 | tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp" | |
633 | tm_file="$tm_file h8300/h8300-lib.h" | |
634 | ;; | |
cd985f66 | 635 | hppa*64*-*-linux*) |
cf467fb9 | 636 | tmake_file="$tmake_file pa/t-pa64-linux pa/t-dimode" |
db89d474 | 637 | tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp" |
69778659 | 638 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
fa958513 | 639 | ;; |
cd985f66 | 640 | hppa*-*-linux*) |
45b86625 | 641 | tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc" |
b040f2be | 642 | # Set the libgcc version number |
9b92a9f3 | 643 | if test x$ac_cv_sjlj_exceptions = xyes; then |
b040f2be RO |
644 | tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" |
645 | else | |
646 | tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" | |
647 | fi | |
69778659 | 648 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
0defd786 | 649 | md_unwind_header=pa/linux-unwind.h |
fa958513 | 650 | ;; |
fa958513 | 651 | hppa*64*-*-hpux11*) |
cf467fb9 | 652 | tmake_file="$tmake_file pa/t-pa64-hpux pa/t-dimode" |
db89d474 | 653 | tmake_file="$tmake_file pa/t-stublib t-libgcc-pic t-slibgcc" |
b040f2be | 654 | # Set the libgcc version number |
9b92a9f3 | 655 | if test x$ac_cv_sjlj_exceptions = xyes; then |
b040f2be RO |
656 | tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" |
657 | else | |
658 | tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" | |
659 | fi | |
660 | tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux" | |
db89d474 | 661 | tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp" |
4c6d7494 | 662 | tm_file="$tm_file pa/pa64-hpux-lib.h" |
5f73c6cc RO |
663 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \ |
664 | libgcc_stub.a" | |
58cd1d70 | 665 | md_unwind_header=pa/hpux-unwind.h |
fa958513 | 666 | ;; |
17f293b0 MK |
667 | hppa*-*-openbsd*) |
668 | tmake_file="$tmake_file pa/t-openbsd" | |
669 | ;; | |
428642b1 MT |
670 | hppa*-*-netbsd*) |
671 | tmake_file="$tmake_file pa/t-netbsd" | |
672 | ;; | |
fa958513 | 673 | i[34567]86-*-darwin*) |
9cbc07cc | 674 | tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi" |
852b75ed | 675 | tm_file="$tm_file i386/darwin-lib.h" |
b3fe1584 | 676 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
fa958513 DJ |
677 | ;; |
678 | x86_64-*-darwin*) | |
9cbc07cc | 679 | tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi" |
852b75ed | 680 | tm_file="$tm_file i386/darwin-lib.h" |
b3fe1584 | 681 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
fa958513 | 682 | ;; |
cb78b51c L |
683 | i[34567]86-*-elfiamcu) |
684 | tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/32/t-iamcu i386/t-softfp t-softfp t-dfprules" | |
685 | ;; | |
fa958513 | 686 | i[34567]86-*-elf*) |
f9989b51 | 687 | tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" |
fa958513 | 688 | ;; |
df674f74 | 689 | x86_64-*-elf* | x86_64-*-rtems*) |
f9989b51 | 690 | tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" |
e5f1cdb1 AC |
691 | case ${host} in |
692 | x86_64-*-rtems*) | |
693 | extra_parts="$extra_parts crti.o crtn.o" | |
694 | ;; | |
695 | esac | |
3ae3dbd6 | 696 | ;; |
7ab8766a JC |
697 | x86_64-*-fuchsia*) |
698 | tmake_file="$tmake_file t-libgcc-pic" | |
699 | ;; | |
dbed5a9b JM |
700 | i[34567]86-*-dragonfly*) |
701 | tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" | |
702 | md_unwind_header=i386/dragonfly-unwind.h | |
703 | ;; | |
704 | x86_64-*-dragonfly*) | |
705 | tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" | |
706 | md_unwind_header=i386/dragonfly-unwind.h | |
707 | ;; | |
fa958513 | 708 | i[34567]86-*-freebsd*) |
5f73c6cc | 709 | tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" |
89c54dd3 | 710 | md_unwind_header=i386/freebsd-unwind.h |
fa958513 DJ |
711 | ;; |
712 | x86_64-*-freebsd*) | |
5f73c6cc | 713 | tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" |
89c54dd3 | 714 | md_unwind_header=i386/freebsd-unwind.h |
fa958513 DJ |
715 | ;; |
716 | i[34567]86-*-netbsdelf*) | |
d6574dd1 | 717 | tmake_file="${tmake_file} i386/t-crtstuff" |
fa958513 | 718 | ;; |
fa958513 | 719 | x86_64-*-netbsd*) |
5f73c6cc | 720 | tmake_file="${tmake_file} i386/t-crtstuff" |
fa958513 | 721 | ;; |
fa958513 DJ |
722 | i[34567]86-*-openbsd*) |
723 | ;; | |
613061fd MK |
724 | x86_64-*-openbsd*) |
725 | ;; | |
9e7714f4 | 726 | i[34567]86-*-linux*) |
577565f9 | 727 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
9b789cc1 | 728 | tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" |
7bbf9734 | 729 | tm_file="${tm_file} i386/elf-lib.h" |
58cd1d70 | 730 | md_unwind_header=i386/linux-unwind.h |
fa958513 | 731 | ;; |
5e2eebc8 | 732 | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-kopensolaris*-gnu) |
9e7714f4 | 733 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
9b789cc1 | 734 | tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" |
7bbf9734 | 735 | tm_file="${tm_file} i386/elf-lib.h" |
9e7714f4 | 736 | ;; |
5e2eebc8 ST |
737 | i[34567]86-*-gnu*) |
738 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" | |
739 | tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" | |
740 | tm_file="${tm_file} i386/elf-lib.h" | |
741 | md_unwind_header=i386/gnu-unwind.h | |
742 | ;; | |
9e7714f4 | 743 | x86_64-*-linux*) |
577565f9 | 744 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
9b789cc1 | 745 | tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" |
7bbf9734 | 746 | tm_file="${tm_file} i386/elf-lib.h" |
58cd1d70 | 747 | md_unwind_header=i386/linux-unwind.h |
fa958513 | 748 | ;; |
8466af06 | 749 | x86_64-*-kfreebsd*-gnu) |
9e7714f4 | 750 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
9b789cc1 | 751 | tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" |
7bbf9734 | 752 | tm_file="${tm_file} i386/elf-lib.h" |
9e7714f4 | 753 | ;; |
5f8950b4 FC |
754 | x86_64-*-gnu*) |
755 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" | |
756 | tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" | |
757 | tm_file="${tm_file} i386/elf-lib.h" | |
758 | md_unwind_header=i386/gnu-unwind.h | |
759 | ;; | |
fa958513 DJ |
760 | i[34567]86-pc-msdosdjgpp*) |
761 | ;; | |
762 | i[34567]86-*-lynxos*) | |
763 | ;; | |
fa958513 | 764 | i[34567]86-*-nto-qnx*) |
f9989b51 | 765 | tmake_file="$tmake_file i386/t-nto t-libgcc-pic" |
5f73c6cc | 766 | extra_parts=crtbegin.o |
fa958513 DJ |
767 | ;; |
768 | i[34567]86-*-rtems*) | |
21184026 | 769 | tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp" |
5f73c6cc | 770 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 771 | ;; |
ccd1242e | 772 | i[34567]86-*-solaris2* | x86_64-*-solaris2*) |
9cbc07cc | 773 | tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi" |
b3fe1584 | 774 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
f962fbf1 | 775 | tm_file="${tm_file} i386/elf-lib.h" |
58cd1d70 | 776 | md_unwind_header=i386/sol2-unwind.h |
fa958513 | 777 | ;; |
9a835ba4 | 778 | i[4567]86-wrs-vxworks*|x86_64-wrs-vxworks*) |
fa958513 | 779 | ;; |
58cd1d70 | 780 | i[34567]86-*-cygwin*) |
25efdb9f | 781 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o" |
f7f049fa CT |
782 | if test x$enable_vtable_verify = xyes; then |
783 | extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" | |
784 | fi | |
b040f2be | 785 | # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h |
9b92a9f3 | 786 | if test x$ac_cv_sjlj_exceptions = xyes; then |
b040f2be RO |
787 | tmake_eh_file="i386/t-sjlj-eh" |
788 | else | |
789 | tmake_eh_file="i386/t-dw2-eh" | |
790 | fi | |
791 | # Shared libgcc DLL install dir depends on cross/native build. | |
792 | if test x${build} = x${host} ; then | |
793 | tmake_dlldir_file="i386/t-dlldir" | |
794 | else | |
795 | tmake_dlldir_file="i386/t-dlldir-x" | |
796 | fi | |
9b789cc1 | 797 | tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin t-crtfm i386/t-chkstk t-dfprules" |
9bd196f0 | 798 | ;; |
e9fd8c19 | 799 | x86_64-*-cygwin*) |
25efdb9f | 800 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o" |
f7f049fa CT |
801 | if test x$enable_vtable_verify = xyes; then |
802 | extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" | |
803 | fi | |
e9fd8c19 | 804 | # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h |
9b92a9f3 | 805 | if test x$ac_cv_sjlj_exceptions = xyes; then |
e9fd8c19 | 806 | tmake_eh_file="i386/t-sjlj-eh" |
6befaff6 SL |
807 | elif test "${host_address}" = 32; then |
808 | # biarch -m32 with --disable-sjlj-exceptions | |
809 | tmake_eh_file="i386/t-dw2-eh" | |
e9fd8c19 KT |
810 | else |
811 | tmake_eh_file="i386/t-seh-eh" | |
812 | fi | |
813 | # Shared libgcc DLL install dir depends on cross/native build. | |
814 | if test x${build} = x${host} ; then | |
815 | tmake_dlldir_file="i386/t-dlldir" | |
816 | else | |
817 | tmake_dlldir_file="i386/t-dlldir-x" | |
818 | fi | |
819 | # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that | |
9b789cc1 | 820 | tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin t-crtfm t-dfprules i386/t-chkstk" |
e9fd8c19 | 821 | ;; |
58cd1d70 RO |
822 | i[34567]86-*-mingw*) |
823 | extra_parts="crtbegin.o crtend.o crtfastmath.o" | |
f7f049fa CT |
824 | if test x$enable_vtable_verify = xyes; then |
825 | extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" | |
826 | fi | |
f9989b51 RO |
827 | case ${target_thread_file} in |
828 | win32) | |
9149a5b7 | 829 | tmake_thr_file="i386/t-gthr-win32" |
f9989b51 | 830 | ;; |
e3d871e4 | 831 | posix) |
9149a5b7 | 832 | tmake_thr_file="i386/t-mingw-pthread" |
e3d871e4 | 833 | ;; |
f036d759 | 834 | mcf) |
9149a5b7 | 835 | tmake_thr_file="i386/t-mingw-mcfgthread" |
f036d759 | 836 | ;; |
f9989b51 | 837 | esac |
b040f2be | 838 | # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h |
9b92a9f3 | 839 | if test x$ac_cv_sjlj_exceptions = xyes; then |
b040f2be RO |
840 | tmake_eh_file="i386/t-sjlj-eh" |
841 | else | |
842 | tmake_eh_file="i386/t-dw2-eh" | |
0c0c6398 | 843 | md_unwind_header=i386/w32-unwind.h |
b040f2be RO |
844 | fi |
845 | # Shared libgcc DLL install dir depends on cross/native build. | |
846 | if test x${build} = x${host} ; then | |
847 | tmake_dlldir_file="i386/t-dlldir" | |
848 | else | |
849 | tmake_dlldir_file="i386/t-dlldir-x" | |
850 | fi | |
9149a5b7 | 851 | tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_thr_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-slibgcc-mingw i386/t-cygming i386/t-mingw32 t-crtfm i386/t-chkstk t-dfprules" |
58cd1d70 | 852 | ;; |
9bd196f0 | 853 | x86_64-*-mingw*) |
f9989b51 RO |
854 | case ${target_thread_file} in |
855 | win32) | |
9149a5b7 | 856 | tmake_thr_file="i386/t-gthr-win32" |
f9989b51 | 857 | ;; |
e3d871e4 | 858 | posix) |
9149a5b7 | 859 | tmake_thr_file="i386/t-mingw-pthread" |
e3d871e4 | 860 | ;; |
f036d759 | 861 | mcf) |
9149a5b7 | 862 | tmake_thr_file="i386/t-mingw-mcfgthread" |
f036d759 | 863 | ;; |
f9989b51 | 864 | esac |
b040f2be | 865 | # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h |
9b92a9f3 | 866 | if test x$ac_cv_sjlj_exceptions = xyes; then |
b040f2be | 867 | tmake_eh_file="i386/t-sjlj-eh" |
6befaff6 SL |
868 | elif test "${host_address}" = 32; then |
869 | # biarch -m32 with --disable-sjlj-exceptions | |
870 | tmake_eh_file="i386/t-dw2-eh" | |
871 | md_unwind_header=i386/w32-unwind.h | |
b040f2be | 872 | else |
bf1431e3 | 873 | tmake_eh_file="i386/t-seh-eh" |
b040f2be RO |
874 | fi |
875 | # Shared libgcc DLL install dir depends on cross/native build. | |
876 | if test x${build} = x${host} ; then | |
877 | tmake_dlldir_file="i386/t-dlldir" | |
878 | else | |
879 | tmake_dlldir_file="i386/t-dlldir-x" | |
880 | fi | |
9149a5b7 | 881 | tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_thr_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-slibgcc-mingw i386/t-cygming i386/t-mingw32 t-dfprules t-crtfm i386/t-chkstk" |
580d22a3 | 882 | extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o" |
f7f049fa CT |
883 | if test x$enable_vtable_verify = xyes; then |
884 | extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" | |
885 | fi | |
fa958513 | 886 | ;; |
fa958513 | 887 | ia64*-*-elf*) |
5f73c6cc | 888 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o" |
73f01cca | 889 | tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat" |
fa958513 DJ |
890 | ;; |
891 | ia64*-*-freebsd*) | |
5f73c6cc | 892 | extra_parts="$extra_parts crtfastmath.o" |
73f01cca | 893 | tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat" |
fa958513 DJ |
894 | ;; |
895 | ia64*-*-linux*) | |
5f73c6cc | 896 | # Don't use crtbeginT.o from *-*-linux* default. |
fa958513 | 897 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
1ab3568b | 898 | tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat ia64/t-eh-ia64 t-libunwind ia64/t-linux" |
201cdb74 | 899 | if test x$with_system_libunwind != xyes ; then |
b040f2be | 900 | tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind" |
201cdb74 | 901 | fi |
58cd1d70 | 902 | md_unwind_header=ia64/linux-unwind.h |
fa958513 DJ |
903 | ;; |
904 | ia64*-*-hpux*) | |
1ab3568b | 905 | tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux" |
fa958513 | 906 | ;; |
a9a25daa | 907 | ia64-hp-*vms*) |
73f01cca | 908 | tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms t-softfp-tf ia64/t-softfp t-softfp" |
5f73c6cc | 909 | extra_parts="$extra_parts crtinitS.o" |
58cd1d70 | 910 | md_unwind_header=ia64/vms-unwind.h |
a9a25daa | 911 | ;; |
fa958513 | 912 | iq2000*-*-elf*) |
d4b4b542 | 913 | tmake_file="iq2000/t-iq2000 t-fdpbit" |
5f73c6cc RO |
914 | # Don't use default. |
915 | extra_parts= | |
fa958513 | 916 | ;; |
c9cd1a07 | 917 | lm32-*-elf*) |
5f73c6cc | 918 | extra_parts="$extra_parts crti.o crtn.o" |
aca0b0b3 | 919 | tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp" |
aa4945c1 | 920 | ;; |
c9cd1a07 RO |
921 | lm32-*-rtems*) |
922 | tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp" | |
923 | extra_parts="$extra_parts crti.o crtn.o" | |
924 | ;; | |
aa4945c1 | 925 | lm32-*-uclinux*) |
5f73c6cc | 926 | extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o" |
f9989b51 | 927 | tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp" |
bf291a43 | 928 | ;; |
929 | loongarch*-*-linux*) | |
930 | extra_parts="$extra_parts crtfastmath.o" | |
931 | tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff" | |
932 | case ${host} in | |
933 | *) | |
934 | tmake_file="${tmake_file} t-slibgcc-libgcc" | |
935 | ;; | |
936 | esac | |
937 | md_unwind_header=loongarch/linux-unwind.h | |
938 | ;; | |
5f73c6cc | 939 | m32r-*-elf*) |
985a47b2 NC |
940 | tmake_file="$tmake_file m32r/t-m32r t-fdpbit" |
941 | extra_parts="$extra_parts crtinit.o crtfini.o" | |
fa958513 DJ |
942 | ;; |
943 | m32rle-*-elf*) | |
569dc494 | 944 | tmake_file=t-fdpbit |
fa958513 | 945 | ;; |
45b86625 RO |
946 | m68k-*-elf* | fido-*-elf) |
947 | tmake_file="$tmake_file m68k/t-floatlib" | |
fa958513 | 948 | ;; |
cd985f66 | 949 | m68k*-*-netbsdelf*) |
fa958513 DJ |
950 | ;; |
951 | m68k*-*-openbsd*) | |
952 | ;; | |
8b281334 RH |
953 | m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc |
954 | tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux" | |
58cd1d70 | 955 | md_unwind_header=m68k/linux-unwind.h |
fa958513 | 956 | ;; |
58cd1d70 | 957 | m68k-*-linux*) # Motorola m68k's running GNU/Linux |
fa958513 DJ |
958 | # with ELF format using glibc 2 |
959 | # aka the GNU/Linux C library 6. | |
8b281334 | 960 | tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux" |
9b92a9f3 | 961 | # If not configured with setjmp/longjmp exceptions, bump the |
b040f2be | 962 | # libgcc version number. |
9b92a9f3 | 963 | if test x$ac_cv_sjlj_exceptions != xyes; then |
b040f2be RO |
964 | tmake_file="$tmake_file m68k/t-slibgcc-elf-ver" |
965 | fi | |
58cd1d70 | 966 | md_unwind_header=m68k/linux-unwind.h |
fa958513 DJ |
967 | ;; |
968 | m68k-*-rtems*) | |
45b86625 | 969 | tmake_file="$tmake_file m68k/t-floatlib" |
5f73c6cc | 970 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
971 | ;; |
972 | mcore-*-elf) | |
45b86625 | 973 | tmake_file="mcore/t-mcore t-fdpbit" |
5f73c6cc | 974 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 975 | ;; |
b040f2be | 976 | microblaze*-linux*) |
fbf0cf90 | 977 | tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc" |
b040f2be | 978 | ;; |
6f14eef2 EI |
979 | microblaze*-*-elf) |
980 | tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit" | |
981 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o" | |
80920132 | 982 | ;; |
3fa2ccb4 RC |
983 | microblaze*-*-rtems*) |
984 | tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit" | |
985 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o" | |
986 | ;; | |
fa958513 DJ |
987 | mips*-*-netbsd*) # NetBSD/mips, either endian. |
988 | ;; | |
fa958513 | 989 | mips*-*-linux*) # Linux MIPS, either endian. |
48b09a92 | 990 | extra_parts="$extra_parts crtfastmath.o" |
107eea2c | 991 | tmake_file="${tmake_file} t-crtfm" |
107eea2c | 992 | case ${host} in |
0f9bde1f MR |
993 | mips64r5900* | mipsr5900*) |
994 | # The MIPS16 support code uses floating point | |
995 | # instructions that are not supported on r5900. | |
996 | ;; | |
997 | *) | |
998 | tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc" | |
999 | ;; | |
107eea2c | 1000 | esac |
58cd1d70 | 1001 | md_unwind_header=mips/linux-unwind.h |
fa958513 | 1002 | ;; |
569dc494 | 1003 | mips*-sde-elf*) |
eb028768 | 1004 | tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16" |
569dc494 RO |
1005 | case "${with_newlib}" in |
1006 | yes) | |
1007 | # newlib / libgloss. | |
1008 | ;; | |
1009 | *) | |
1010 | # MIPS toolkit libraries. | |
5f73c6cc | 1011 | tmake_file="$tmake_file mips/t-sdemtk" |
569dc494 RO |
1012 | ;; |
1013 | esac | |
5f73c6cc | 1014 | extra_parts="$extra_parts crti.o crtn.o" |
569dc494 | 1015 | ;; |
c6412d86 RO |
1016 | mipsisa32-*-elf* | mipsisa32el-*-elf* | \ |
1017 | mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \ | |
82f84ecb | 1018 | mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \ |
c6412d86 | 1019 | mipsisa64-*-elf* | mipsisa64el-*-elf* | \ |
82f84ecb MF |
1020 | mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \ |
1021 | mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*) | |
f9989b51 | 1022 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" |
5f73c6cc | 1023 | extra_parts="$extra_parts crti.o crtn.o" |
0a4a51c7 | 1024 | ;; |
fa958513 | 1025 | mipsisa64sr71k-*-elf*) |
eb028768 | 1026 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit" |
5f73c6cc | 1027 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
1028 | ;; |
1029 | mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) | |
f9989b51 | 1030 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" |
5f73c6cc | 1031 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
1032 | ;; |
1033 | mips-*-elf* | mipsel-*-elf*) | |
f9989b51 | 1034 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" |
5f73c6cc | 1035 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 1036 | ;; |
107eea2c JU |
1037 | mipsr5900-*-elf* | mipsr5900el-*-elf*) |
1038 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff" | |
1039 | extra_parts="$extra_parts crti.o crtn.o" | |
1040 | ;; | |
fa958513 | 1041 | mips64-*-elf* | mips64el-*-elf*) |
f9989b51 | 1042 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" |
5f73c6cc | 1043 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 1044 | ;; |
107eea2c JU |
1045 | mips64r5900-*-elf* | mips64r5900el-*-elf*) |
1046 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff" | |
1047 | extra_parts="$extra_parts crti.o crtn.o" | |
1048 | ;; | |
fa958513 | 1049 | mips64vr-*-elf* | mips64vrel-*-elf*) |
f9989b51 | 1050 | tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff" |
5f73c6cc | 1051 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
1052 | ;; |
1053 | mips64orion-*-elf* | mips64orionel-*-elf*) | |
f9989b51 | 1054 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" |
5f73c6cc | 1055 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
1056 | ;; |
1057 | mips*-*-rtems*) | |
f9989b51 | 1058 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" |
5f73c6cc | 1059 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
1060 | ;; |
1061 | mips-wrs-vxworks) | |
1062 | ;; | |
fa958513 | 1063 | mipstx39-*-elf* | mipstx39el-*-elf*) |
5f73c6cc | 1064 | tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16" |
fa958513 DJ |
1065 | ;; |
1066 | mmix-knuth-mmixware) | |
e7c914db HPN |
1067 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
1068 | tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}" | |
fa958513 DJ |
1069 | ;; |
1070 | mn10300-*-*) | |
569dc494 | 1071 | tmake_file=t-fdpbit |
fa958513 | 1072 | ;; |
ad251dfd | 1073 | moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*) |
c9cd1a07 | 1074 | tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp" |
ad251dfd | 1075 | extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o" |
cceb575c | 1076 | ;; |
e8aa9f55 | 1077 | msp430-*-elf*) |
f6a83b4a | 1078 | tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430" |
e8aa9f55 | 1079 | extra_parts="crtbegin.o crtend.o crtbegin_no_eh.o crtend_no_eh.o" |
a9046e98 | 1080 | extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a" |
f6a83b4a | 1081 | ;; |
cf3cd43d CJW |
1082 | nds32*-linux*) |
1083 | # Basic makefile fragment and extra_parts for crt stuff. | |
1084 | # We also append c-isr library implementation. | |
1085 | tmake_file="${tmake_file} t-slibgcc-libgcc" | |
1086 | tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp" | |
1087 | # The header file of defining MD_FALLBACK_FRAME_STATE_FOR. | |
1088 | md_unwind_header=nds32/linux-unwind.h | |
1089 | # Append library definition makefile fragment according to --with-nds32-lib=X setting. | |
1090 | case "${with_nds32_lib}" in | |
1091 | "" | glibc | uclibc ) | |
1092 | ;; | |
1093 | *) | |
1094 | echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2 | |
1095 | exit 1 | |
1096 | ;; | |
1097 | esac | |
1098 | ;; | |
9304f876 CJW |
1099 | nds32*-elf*) |
1100 | # Basic makefile fragment and extra_parts for crt stuff. | |
1101 | # We also append c-isr library implementation. | |
1102 | tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr" | |
1103 | extra_parts="crtbegin1.o crtend1.o libnds32_isr.a" | |
1104 | # Append library definition makefile fragment according to --with-nds32-lib=X setting. | |
1105 | case "${with_nds32_lib}" in | |
1106 | "" | newlib) | |
1107 | # Append library definition makefile fragment t-nds32-newlib. | |
1108 | # Append 'soft-fp' software floating point make rule fragment provided by gcc. | |
1109 | tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp" | |
1110 | ;; | |
1111 | mculib) | |
1112 | # Append library definition makefile fragment t-nds32-mculib. | |
1113 | # The software floating point library is included in mculib. | |
1114 | tmake_file="${tmake_file} nds32/t-nds32-mculib" | |
1115 | ;; | |
1116 | *) | |
1117 | echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2 | |
1118 | exit 1 | |
1119 | ;; | |
1120 | esac | |
1121 | ;; | |
e430824f | 1122 | nios2-*-linux*) |
2d33dcfe SL |
1123 | tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-eh-dw2-dip t-slibgcc-libgcc" |
1124 | tm_file="$tm_file nios2/elf-lib.h" | |
e430824f CLT |
1125 | md_unwind_header=nios2/linux-unwind.h |
1126 | ;; | |
1127 | nios2-*-*) | |
1128 | tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp" | |
1129 | extra_parts="$extra_parts crti.o crtn.o" | |
1130 | ;; | |
d929e137 | 1131 | or1k-*-linux*) |
da8a9d69 | 1132 | tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff" |
d929e137 SH |
1133 | tmake_file="$tmake_file t-softfp-sfdf t-softfp" |
1134 | md_unwind_header=or1k/linux-unwind.h | |
1135 | ;; | |
1136 | or1k-*-*) | |
da8a9d69 | 1137 | tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff" |
d929e137 SH |
1138 | tmake_file="$tmake_file t-softfp-sfdf t-softfp" |
1139 | ;; | |
fa958513 | 1140 | pdp11-*-*) |
f9989b51 | 1141 | tmake_file="pdp11/t-pdp11 t-fdpbit" |
fa958513 | 1142 | ;; |
fa958513 | 1143 | powerpc-*-darwin*) |
58cd1d70 RO |
1144 | case ${host} in |
1145 | *-*-darwin9* | *-*-darwin[12][0-9]*) | |
1146 | # libSystem contains unwind information for signal frames since | |
61afc8f8 | 1147 | # Darwin 9. |
58cd1d70 RO |
1148 | ;; |
1149 | *) | |
1150 | md_unwind_header=rs6000/darwin-unwind.h | |
1151 | ;; | |
1152 | esac | |
574c09da IS |
1153 | #Â We build the darwin10 EH shim for Rosetta (running on x86 machines). |
1154 | tm_file="$tm_file i386/darwin-lib.h" | |
179c7ef5 IS |
1155 | tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble" |
1156 | extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o" | |
fa958513 DJ |
1157 | ;; |
1158 | powerpc64-*-darwin*) | |
574c09da IS |
1159 | #Â We build the darwin10 EH shim for Rosetta (running on x86 machines). |
1160 | tm_file="$tm_file i386/darwin-lib.h" | |
f9989b51 | 1161 | tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble" |
179c7ef5 | 1162 | extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o" |
fa958513 | 1163 | ;; |
d82ad50d AT |
1164 | powerpc*-*-freebsd*) |
1165 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp" | |
5f73c6cc | 1166 | extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
d82ad50d AT |
1167 | case ${host} in |
1168 | powerpc64*) | |
1169 | tmake_file="${tmake_file} rs6000/t-freebsd64" | |
1170 | md_unwind_header=rs6000/freebsd-unwind.h | |
1171 | ;; | |
1172 | esac | |
fa958513 DJ |
1173 | ;; |
1174 | powerpc-*-netbsd*) | |
d4b4b542 | 1175 | tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff" |
fa958513 | 1176 | ;; |
fa958513 | 1177 | powerpc-*-eabispe*) |
7da38058 | 1178 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1179 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1180 | ;; |
1181 | powerpc-*-eabisimaltivec*) | |
f9c55897 | 1182 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1183 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1184 | ;; |
1185 | powerpc-*-eabisim*) | |
f9c55897 | 1186 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1187 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1188 | ;; |
1189 | powerpc-*-elf*) | |
49dcafd4 | 1190 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1191 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1192 | ;; |
1193 | powerpc-*-eabialtivec*) | |
f9c55897 | 1194 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1195 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
569dc494 RO |
1196 | ;; |
1197 | powerpc-xilinx-eabi*) | |
f9c55897 | 1198 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1199 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1200 | ;; |
1201 | powerpc-*-eabi*) | |
f9c55897 | 1202 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1203 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1204 | ;; |
1205 | powerpc-*-rtems*) | |
6f288860 | 1206 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1207 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 | 1208 | ;; |
b9a7eb5d | 1209 | powerpc*-*-linux*) |
693b297b | 1210 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-linux t-dfprules rs6000/t-ppc64-fp t-slibgcc-libgcc" |
0f0fd745 | 1211 | tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000" |
d80c2bea JM |
1212 | case $ppc_fp_type in |
1213 | 64) | |
1214 | ;; | |
1215 | hard) | |
1216 | tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp" | |
1217 | ;; | |
1218 | soft) | |
e610393c | 1219 | tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp" |
d80c2bea | 1220 | ;; |
bc1b3a88 | 1221 | e500v1) |
e610393c | 1222 | tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp" |
bc1b3a88 JM |
1223 | ;; |
1224 | e500v2) | |
e610393c | 1225 | tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp" |
d80c2bea JM |
1226 | ;; |
1227 | *) | |
1228 | echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2 | |
1229 | exit 1 | |
1230 | ;; | |
1231 | esac | |
a71c0334 MM |
1232 | |
1233 | if test $libgcc_cv_powerpc_float128 = yes; then | |
1234 | tmake_file="${tmake_file} rs6000/t-float128" | |
1235 | fi | |
1236 | ||
1237 | if test $libgcc_cv_powerpc_float128_hw = yes; then | |
1238 | tmake_file="${tmake_file} rs6000/t-float128-hw" | |
1239 | fi | |
1240 | ||
9090f480 CL |
1241 | if test $libgcc_cv_powerpc_3_1_float128_hw = yes; then |
1242 | tmake_file="${tmake_file} rs6000/t-float128-p10-hw" | |
1243 | fi | |
1244 | ||
5f73c6cc | 1245 | extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o" |
58cd1d70 | 1246 | md_unwind_header=rs6000/linux-unwind.h |
fa958513 | 1247 | ;; |
17867980 | 1248 | powerpc*-wrs-vxworks7*) |
04577ac0 | 1249 | tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-dfprules rs6000/t-ppc64-fp" |
0ecb48d7 | 1250 | tmake_file="rs6000/t-crtstuff ${tmake_file}" |
17867980 DR |
1251 | case $ppc_fp_type in |
1252 | 64) | |
1253 | ;; | |
1254 | hard) | |
1255 | tmake_file="${tmake_file} t-hardfp-sfdf" | |
1256 | ;; | |
1257 | soft) | |
1258 | tmake_file="${tmake_file} t-softfp-sfdf t-softfp" | |
1259 | ;; | |
1260 | *) | |
1261 | echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2 | |
1262 | exit 1 | |
1263 | ;; | |
1264 | esac | |
1265 | ;; | |
611e7036 | 1266 | powerpc-wrs-vxworks*) |
68fd247e | 1267 | tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-fdpbit" |
fa958513 | 1268 | ;; |
fa958513 | 1269 | powerpc-*-lynxos*) |
d4b4b542 | 1270 | tmake_file="$tmake_file rs6000/t-lynx t-fdpbit" |
fa958513 | 1271 | ;; |
fa958513 | 1272 | powerpcle-*-elf*) |
f9c55897 | 1273 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1274 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1275 | ;; |
1276 | powerpcle-*-eabisim*) | |
f9c55897 | 1277 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1278 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1279 | ;; |
1280 | powerpcle-*-eabi*) | |
f9c55897 | 1281 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1282 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 | 1283 | ;; |
ae7deb4b DD |
1284 | pru-*-*) |
1285 | tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru" | |
1286 | tm_file="$tm_file pru/pru-abi.h" | |
1287 | ;; | |
0bd99911 | 1288 | riscv*-*-linux*) |
2f4d8951 | 1289 | tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc" |
0bd99911 PD |
1290 | extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o" |
1291 | md_unwind_header=riscv/linux-unwind.h | |
1292 | ;; | |
4d47fe5a | 1293 | riscv*-*-freebsd*) |
2f4d8951 | 1294 | tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc" |
4d47fe5a RB |
1295 | extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o" |
1296 | ;; | |
0bd99911 PD |
1297 | riscv*-*-*) |
1298 | tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}" | |
1299 | extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" | |
1300 | ;; | |
fa958513 | 1301 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
201cdb74 | 1302 | md_unwind_header=rs6000/aix-unwind.h |
138f5acd | 1303 | tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble" |
fa958513 DJ |
1304 | ;; |
1305 | rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) | |
201cdb74 | 1306 | md_unwind_header=rs6000/aix-unwind.h |
138f5acd | 1307 | tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble" |
fa958513 DJ |
1308 | ;; |
1309 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
201cdb74 | 1310 | md_unwind_header=rs6000/aix-unwind.h |
99113dff | 1311 | tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa" |
47ddb895 | 1312 | extra_parts="crtcxa.o crtcxa_s.o crtdbase.o crtcxa_64.o crtcxa_64_s.o crtdbase_64.o" |
fa958513 | 1313 | ;; |
85b8555e DD |
1314 | rl78-*-elf) |
1315 | tmake_file="$tm_file t-fdpbit rl78/t-rl78" | |
1316 | ;; | |
65a324b4 | 1317 | rx-*-elf) |
569dc494 | 1318 | tmake_file="rx/t-rx t-fdpbit" |
852b75ed | 1319 | tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h" |
65a324b4 | 1320 | ;; |
76aaa9cd | 1321 | rx-*-linux*) |
e69a13d1 YS |
1322 | tmake_file="rx/t-rx t-fdpbit" |
1323 | tm_file="$tm_file rx/rx-lib.h" | |
76aaa9cd | 1324 | ;; |
fa958513 | 1325 | s390-*-linux*) |
4cb4721f | 1326 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390" |
58cd1d70 | 1327 | md_unwind_header=s390/linux-unwind.h |
fa958513 DJ |
1328 | ;; |
1329 | s390x-*-linux*) | |
4cb4721f | 1330 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390" |
59976ef8 AK |
1331 | if test "${host_address}" = 32; then |
1332 | tmake_file="${tmake_file} s390/32/t-floattodi" | |
1333 | fi | |
58cd1d70 | 1334 | md_unwind_header=s390/linux-unwind.h |
fa958513 DJ |
1335 | ;; |
1336 | s390x-ibm-tpf*) | |
0993851d | 1337 | tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip s390/t-tpf" |
5f73c6cc | 1338 | extra_parts="crtbeginS.o crtendS.o" |
10c4cabc | 1339 | md_unwind_header=s390/tpf-unwind.h |
fa958513 | 1340 | ;; |
5f73c6cc RO |
1341 | sh-*-elf* | sh[12346l]*-*-elf*) |
1342 | tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit" | |
1343 | extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \ | |
1344 | libic_invalidate_array_4-100.a \ | |
1345 | libic_invalidate_array_4-200.a \ | |
1346 | libic_invalidate_array_4a.a \ | |
1347 | libgcc-Os-4-200.a libgcc-4-300.a" | |
26900826 | 1348 | case ${host} in |
5f73c6cc RO |
1349 | sh*-superh-elf) |
1350 | tmake_file="$tmake_file sh/t-superh" | |
1351 | extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o" | |
1352 | ;; | |
1353 | esac | |
1354 | ;; | |
1355 | sh-*-linux* | sh[2346lbe]*-*-linux*) | |
45b86625 | 1356 | tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit" |
5f73c6cc RO |
1357 | md_unwind_header=sh/linux-unwind.h |
1358 | ;; | |
bc6d9014 | 1359 | sh-*-netbsdelf* | shl*-*-netbsdelf*) |
45b86625 | 1360 | tmake_file="$tmake_file sh/t-sh sh/t-netbsd" |
bc6d9014 | 1361 | |
5f73c6cc RO |
1362 | # NetBSD's C library includes a fast software FP library that |
1363 | # has support for setting/setting the rounding mode, exception | |
1364 | # mask, etc. Therefore, we don't want to include software FP | |
1365 | # in libgcc. | |
fa958513 | 1366 | ;; |
fa958513 | 1367 | sh-*-rtems*) |
45b86625 | 1368 | tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1369 | extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \ |
76c78361 RC |
1370 | libic_invalidate_array_4-100.a \ |
1371 | libic_invalidate_array_4-200.a \ | |
1372 | libic_invalidate_array_4a.a \ | |
1373 | libgcc-Os-4-200.a libgcc-4-300.a" | |
fa958513 DJ |
1374 | ;; |
1375 | sh-wrs-vxworks) | |
45b86625 | 1376 | tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit" |
fa958513 | 1377 | ;; |
fa958513 DJ |
1378 | sparc-*-netbsdelf*) |
1379 | ;; | |
1380 | sparc64-*-openbsd*) | |
1381 | ;; | |
1382 | sparc-*-elf*) | |
ca24c5ad RO |
1383 | case ${host} in |
1384 | *-leon[3-9]*) | |
1385 | ;; | |
1386 | *) | |
1387 | tmake_file="sparc/t-softmul" | |
1388 | ;; | |
1389 | esac | |
5f73c6cc RO |
1390 | tmake_file="${tmake_file} t-fdpbit t-crtfm" |
1391 | extra_parts="$extra_parts crti.o crtn.o crtfastmath.o" | |
fa958513 DJ |
1392 | ;; |
1393 | sparc-*-linux*) # SPARC's running GNU/Linux, libc6 | |
d2a7d041 DM |
1394 | tmake_file="${tmake_file} t-crtfm" |
1395 | if test "${host_address}" = 64; then | |
1396 | tmake_file="$tmake_file sparc/t-linux64" | |
1397 | fi | |
569dc494 RO |
1398 | case ${host} in |
1399 | *-leon*) | |
b040f2be RO |
1400 | tmake_file="${tmake_file} t-fdpbit" |
1401 | ;; | |
1402 | *) | |
1403 | tmake_file="${tmake_file} sparc/t-linux" | |
569dc494 RO |
1404 | ;; |
1405 | esac | |
45b86625 RO |
1406 | case ${host} in |
1407 | *-leon[3-9]*) | |
1408 | ;; | |
1409 | *) | |
d2a7d041 DM |
1410 | if test "${host_address}" = 32; then |
1411 | tmake_file="$tmake_file sparc/t-softmul" | |
1412 | fi | |
45b86625 RO |
1413 | ;; |
1414 | esac | |
fa958513 | 1415 | extra_parts="$extra_parts crtfastmath.o" |
10c4cabc | 1416 | md_unwind_header=sparc/linux-unwind.h |
fa958513 | 1417 | ;; |
569dc494 | 1418 | sparc-*-rtems*) |
c9cd1a07 | 1419 | tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit" |
5f73c6cc | 1420 | extra_parts="$extra_parts crti.o crtn.o crtfastmath.o" |
fa958513 | 1421 | ;; |
ca24c5ad RO |
1422 | sparc*-*-solaris2*) |
1423 | tmake_file="$tmake_file t-crtfm" | |
1424 | extra_parts="$extra_parts crtfastmath.o" | |
58cd1d70 | 1425 | md_unwind_header=sparc/sol2-unwind.h |
fa958513 | 1426 | ;; |
fa958513 | 1427 | sparc64-*-elf*) |
5f73c6cc RO |
1428 | tmake_file="${tmake_file} t-crtfm" |
1429 | extra_parts="$extra_parts crti.o crtn.o crtfastmath.o" | |
fa958513 | 1430 | ;; |
569dc494 | 1431 | sparc64-*-rtems*) |
43a8f1a1 | 1432 | tmake_file="$tmake_file t-crtfm" |
5f73c6cc | 1433 | extra_parts="$extra_parts crti.o crtn.o crtfastmath.o" |
569dc494 | 1434 | ;; |
1910440e RS |
1435 | sparc-wrs-vxworks) |
1436 | ;; | |
fa958513 | 1437 | sparc64-*-freebsd*|ultrasparc-*-freebsd*) |
35d8090d | 1438 | tmake_file="$tmake_file t-crtfm" |
5f73c6cc | 1439 | extra_parts="$extra_parts crtfastmath.o" |
fa958513 DJ |
1440 | ;; |
1441 | sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux | |
1442 | extra_parts="$extra_parts crtfastmath.o" | |
d2a7d041 DM |
1443 | tmake_file="${tmake_file} t-crtfm sparc/t-linux" |
1444 | if test "${host_address}" = 64; then | |
1445 | tmake_file="${tmake_file} sparc/t-linux64" | |
1446 | fi | |
1447 | if test "${host_address}" = 32; then | |
1448 | tmake_file="${tmake_file} sparc/t-softmul" | |
1449 | fi | |
58cd1d70 | 1450 | md_unwind_header=sparc/linux-unwind.h |
fa958513 DJ |
1451 | ;; |
1452 | sparc64-*-netbsd*) | |
1453 | ;; | |
b040f2be | 1454 | tic6x-*-uclinux) |
4d5ae4ea BS |
1455 | tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \ |
1456 | c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \ | |
1457 | t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix" | |
852b75ed | 1458 | tm_file="$tm_file c6x/c6x-abi.h" |
4d5ae4ea | 1459 | extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o" |
b040f2be RO |
1460 | unwind_header=config/c6x/unwind-c6x.h |
1461 | ;; | |
5f73c6cc RO |
1462 | tic6x-*-elf) |
1463 | tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf" | |
852b75ed | 1464 | tm_file="$tm_file c6x/c6x-abi.h" |
5f73c6cc | 1465 | extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o" |
1e874273 | 1466 | unwind_header=config/c6x/unwind-c6x.h |
bcead286 | 1467 | ;; |
4be46d19 | 1468 | v850*-*-*) |
d02bbcf3 | 1469 | tmake_file="${tmake_file} v850/t-v850 t-fdpbit" |
fa958513 | 1470 | ;; |
fea96e25 | 1471 | vax-*-linux*) |
45b86625 | 1472 | tmake_file="$tmake_file vax/t-linux" |
fea96e25 | 1473 | ;; |
fa958513 DJ |
1474 | vax-*-netbsdelf*) |
1475 | ;; | |
fa958513 DJ |
1476 | vax-*-openbsd*) |
1477 | ;; | |
0969ec7d EB |
1478 | visium-*-elf*) |
1479 | extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" | |
1480 | tmake_file="visium/t-visium t-fdpbit" | |
1481 | ;; | |
fa958513 | 1482 | xstormy16-*-elf) |
200feb07 | 1483 | tmake_file="stormy16/t-stormy16 t-fdpbit" |
fa958513 | 1484 | ;; |
c660f132 | 1485 | xtensa*-*-elf*) |
5f73c6cc RO |
1486 | tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf" |
1487 | extra_parts="$extra_parts crti.o crtn.o" | |
fa958513 | 1488 | ;; |
c660f132 | 1489 | xtensa*-*-linux*) |
800d8bd5 | 1490 | tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc" |
58cd1d70 | 1491 | md_unwind_header=xtensa/linux-unwind.h |
fa958513 | 1492 | ;; |
4a0a9457 MF |
1493 | xtensa*-*-uclinux*) |
1494 | tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc" | |
1495 | md_unwind_header=xtensa/linux-unwind.h | |
1496 | extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o" | |
1497 | ;; | |
fa958513 | 1498 | am33_2.0-*-linux*) |
5f73c6cc | 1499 | # Don't need crtbeginT.o from *-*-linux* default. |
fa958513 | 1500 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
b040f2be | 1501 | tmake_file="$tmake_file t-fdpbit" |
fa958513 | 1502 | ;; |
1ddf31af | 1503 | m32c-*-elf*) |
45b86625 | 1504 | tmake_file="$tmake_file m32c/t-m32c" |
fa958513 | 1505 | ;; |
738f2522 BS |
1506 | nvptx-*) |
1507 | tmake_file="$tmake_file nvptx/t-nvptx" | |
1508 | extra_parts="crt0.o" | |
1509 | ;; | |
fa958513 DJ |
1510 | *) |
1511 | echo "*** Configuration ${host} not supported" 1>&2 | |
1512 | exit 1 | |
1513 | ;; | |
1514 | esac | |
6f461e76 | 1515 | |
aca06c90 RO |
1516 | case ${host} in |
1517 | i[34567]86-*-* | x86_64-*-*) | |
9d8f95de SN |
1518 | case ${host} in |
1519 | *-musl*) | |
1520 | tmake_file="${tmake_file} i386/t-cpuinfo-static" | |
1521 | ;; | |
1522 | *) | |
1523 | tmake_file="${tmake_file} i386/t-cpuinfo" | |
1524 | ;; | |
1525 | esac | |
aca06c90 RO |
1526 | ;; |
1527 | esac | |
1528 | ||
6f461e76 | 1529 | case ${host} in |
2a761e46 | 1530 | i[34567]86-*-linux* | x86_64-*-linux* | \ |
b040f2be | 1531 | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \ |
5f8950b4 | 1532 | i[34567]86-*-gnu* | x86_64-*-gnu*) |
d6d4d770 | 1533 | tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc" |
b6110d6d | 1534 | if test "$libgcc_cv_cfi" = "yes"; then |
ca007d11 | 1535 | tmake_file="${tmake_file} t-stack i386/t-stack-i386" |
b6110d6d | 1536 | fi |
6f461e76 L |
1537 | ;; |
1538 | esac | |
ff473280 L |
1539 | |
1540 | case ${host} in | |
21184026 JM |
1541 | i[34567]86-*-elfiamcu | i[34567]86-*-rtems*) |
1542 | # These use soft-fp for SFmode and DFmode, not just TFmode. | |
1543 | ;; | |
1544 | i[34567]86-*-* | x86_64-*-*) | |
aca0b0b3 | 1545 | tmake_file="${tmake_file} t-softfp-tf" |
b387e664 | 1546 | tmake_file="${tmake_file} i386/${host_address}/t-softfp i386/t-softfp t-softfp" |
c174f11c L |
1547 | ;; |
1548 | esac | |
1549 | ||
1550 | case ${host} in | |
1551 | i[34567]86-*-linux* | x86_64-*-linux*) | |
1552 | # Provide backward binary compatibility for 64bit Linux/x86. | |
1553 | if test "${host_address}" = 64; then | |
1554 | tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat" | |
1555 | fi | |
852b75ed | 1556 | tm_file="${tm_file} i386/value-unwind.h" |
ff473280 | 1557 | ;; |
31927af6 AP |
1558 | aarch64*-*-*) |
1559 | # ILP32 needs an extra header for unwinding | |
1560 | tm_file="${tm_file} aarch64/value-unwind.h" | |
1561 | ;; | |
89367e79 KC |
1562 | riscv*-*-*) |
1563 | tm_file="${tm_file} riscv/value-unwind.h" | |
1564 | ;; | |
ff473280 | 1565 | esac |
806dd047 | 1566 | |
0ecd0f1c OH |
1567 | # Setup to build a shared libgcc for VxWorks when that was requested, |
1568 | # for library variants that support it (rtp only, code model not large). | |
1569 | # | |
1570 | ||
1571 | case ${host} in | |
1572 | *vxworks*) | |
1573 | case ${with_multisubdir}-${enable_shared} in | |
1574 | *large*) | |
1575 | ;; | |
1576 | *mrtp*-yes) | |
1577 | tmake_file="${tmake_file} t-libgcc-pic" | |
1578 | ||
1579 | # Arrange to set a soname on libgcc_s so DT_NEEDED entries | |
1580 | # for it refer to that alone. This ensures absence of path | |
1581 | # components which would be incorrect as the runtime loader | |
1582 | # on target has no visibility over the host filesystem. | |
1583 | tmake_file="${tmake_file} t-slibgcc-gld-nover" | |
1584 | tmake_file="${tmake_file} t-slibgcc" | |
1585 | ||
1586 | # t-slibgcc-libgcc is needed on at least aarch64 (for | |
1587 | # lse) and at most harmless on other targets. | |
1588 | tmake_file="${tmake_file} t-slibgcc-libgcc" | |
1589 | ||
1590 | tmake_file="${tmake_file} t-crtstuff-pic t-vxcrtstuffS" | |
1591 | ;; | |
1592 | esac | |
1593 | ;; | |
1594 | esac | |
1595 | ||
806dd047 CG |
1596 | # The vxworks threads implementation relies on a few extra sources, |
1597 | # which we arrange to add after everything else: | |
1598 | ||
1599 | case ${target_thread_file} in | |
1600 | vxworks) | |
1601 | case ${host} in | |
36e5f4d4 OH |
1602 | *-*-vxworksae) |
1603 | tmake_file="${tmake_file} t-gthr-vxworksae" | |
1604 | ;; | |
806dd047 CG |
1605 | *-*-vxworks*) |
1606 | tmake_file="${tmake_file} t-gthr-vxworks" | |
1607 | ;; | |
1608 | esac | |
1609 | esac | |
3d3a96a2 SN |
1610 | |
1611 | case ${host} in | |
1612 | *-*-musl*) | |
1613 | # The gthr weak references are unsafe with static linking | |
1614 | tmake_file="$tmake_file t-gthr-noweak" | |
1615 | ;; | |
1616 | esac |