]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgcc/config.host
libgcc: cris: Remove support for crisv32-*-* and cris*-*-linux
[thirdparty/gcc.git] / libgcc / config.host
1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
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
8 #Software Foundation; either version 3, or (at your option) any later
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
17 #along with GCC; see the file COPYING3. If not see
18 #<http://www.gnu.org/licenses/>.
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.
46 # enable_execute_stack The name of a source file implementing
47 # __enable_execute_stack.
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.
54 # md_unwind_header The name of a header file defining
55 # MD_FALLBACK_FRAME_STATE_FOR.
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.
59 # tmake_file A list of machine-description-specific
60 # makefile fragments.
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.
66 # unwind_header The name of the header file declaring the unwind
67 # runtime interface routines.
68
69 asm_hidden_op=.hidden
70 enable_execute_stack=
71 extra_parts=
72 tmake_file=
73 tm_file=
74 tm_define=
75 md_unwind_header=no-unwind.h
76 unwind_header=unwind-generic.h
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
83 tmake_file=t-fdpbit
84 ;;
85 aarch64*-*-*)
86 cpu_type=aarch64
87 ;;
88 alpha*-*-*)
89 cpu_type=alpha
90 ;;
91 am33_2.0-*-linux*)
92 cpu_type=mn10300
93 ;;
94 amdgcn*-*-*)
95 cpu_type=gcn
96 tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
97 ;;
98 arc*-*-*)
99 cpu_type=arc
100 ;;
101 arm*-*-*)
102 cpu_type=arm
103 ;;
104 avr-*-*)
105 cpu_type=avr
106 ;;
107 bfin*-*)
108 cpu_type=bfin
109 ;;
110 bpf-*-*)
111 cpu_type=bpf
112 ;;
113 cr16-*-*)
114 ;;
115 csky*-*-*)
116 cpu_type=csky
117 ;;
118 fido-*-*)
119 cpu_type=m68k
120 ;;
121 frv*) cpu_type=frv
122 ;;
123 ft32*) cpu_type=ft32
124 ;;
125 moxie*) cpu_type=moxie
126 ;;
127 i[34567]86-*-*)
128 cpu_type=i386
129 ;;
130 x86_64-*-*)
131 cpu_type=i386
132 ;;
133 ia64-*-*)
134 ;;
135 hppa*-*-*)
136 cpu_type=pa
137 ;;
138 lm32*-*-*)
139 cpu_type=lm32
140 ;;
141 m32r*-*-*)
142 cpu_type=m32r
143 ;;
144 m68k-*-*)
145 ;;
146 microblaze*-*-*)
147 cpu_type=microblaze
148 ;;
149 mips*-*-*)
150 # All MIPS targets provide a full set of FP routines.
151 cpu_type=mips
152 tmake_file="mips/t-mips"
153 if test "${libgcc_cv_mips_hard_float}" = yes; then
154 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
155 else
156 tmake_file="${tmake_file} t-softfp-sfdf"
157 fi
158 if test "${ac_cv_sizeof_long_double}" = 16; then
159 tmake_file="${tmake_file} mips/t-softfp-tf"
160 fi
161 if test "${host_address}" = 64; then
162 tmake_file="${tmake_file} mips/t-mips64"
163 fi
164 tmake_file="${tmake_file} t-softfp"
165 ;;
166 nds32*-*)
167 cpu_type=nds32
168 ;;
169 nios2*-*-*)
170 cpu_type=nios2
171 ;;
172 or1k*-*-*)
173 cpu_type=or1k
174 ;;
175 powerpc*-*-*)
176 cpu_type=rs6000
177 ;;
178 pru-*-*)
179 cpu_type=pru
180 ;;
181 rs6000*-*-*)
182 ;;
183 riscv*-*-*)
184 cpu_type=riscv
185 ;;
186 sparc64*-*-*)
187 cpu_type=sparc
188 ;;
189 sparc*-*-*)
190 cpu_type=sparc
191 ;;
192 s390*-*-*)
193 cpu_type=s390
194 ;;
195 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
196 sh[123456789lbe]*-*-*)
197 cpu_type=sh
198 ;;
199 tilegx*-*-*)
200 cpu_type=tilegx
201 ;;
202 tilepro*-*-*)
203 cpu_type=tilepro
204 ;;
205 v850*-*-*)
206 cpu_type=v850
207 ;;
208 tic6x-*-*)
209 cpu_type=c6x
210 ;;
211 esac
212
213 # Common parts for widely ported systems.
214 case ${host} in
215 *-*-darwin*)
216 asm_hidden_op=.private_extern
217 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin"
218 extra_parts="crt3.o d10-uwfef.o crttms.o crttme.o"
219 ;;
220 *-*-dragonfly*)
221 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
222 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
223 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
224 ;;
225 *-*-freebsd*)
226 # This is the generic ELF configuration of FreeBSD. Later
227 # machine-specific sections may refine and add to this
228 # configuration.
229 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"
230 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
231 case ${target_thread_file} in
232 posix)
233 tmake_file="${tmake_file} t-freebsd-thread"
234 # Before 5.0, FreeBSD can't bind shared libraries to -lc
235 # when "optionally" threaded via weak pthread_* checks.
236 case ${host} in
237 *-*-freebsd[34] | *-*-freebsd[34].*)
238 tmake_file="${tmake_file} t-slibgcc-nolc-override"
239 ;;
240 esac
241 ;;
242 esac
243 ;;
244 *-*-fuchsia*)
245 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
246 extra_parts="crtbegin.o crtend.o"
247 ;;
248 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
249 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"
250 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
251 if test x$enable_vtable_verify = xyes; then
252 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
253 fi
254 ;;
255 *-*-lynxos*)
256 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
257 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
258 ;;
259 *-*-netbsd*)
260 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
261 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
262 tmake_file="$tmake_file t-slibgcc-libgcc"
263 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
264 ;;
265 *-*-openbsd*)
266 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
267 case ${target_thread_file} in
268 posix)
269 tmake_file="$tmake_file t-openbsd-thread"
270 ;;
271 esac
272 ;;
273 *-*-rtems*)
274 tmake_file="$tmake_file t-rtems"
275 extra_parts="crtbegin.o crtend.o"
276 ;;
277 *-*-solaris2*)
278 # Unless linker support and dl_iterate_phdr are present,
279 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
280 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
281 if test $with_gnu_ld = yes; then
282 tmake_file="$tmake_file t-slibgcc-gld"
283 else
284 tmake_file="$tmake_file t-slibgcc-sld"
285 fi
286 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
287 tmake_file="$tmake_file $cpu_type/t-sol2"
288 extra_parts="gmon.o crtbegin.o crtend.o"
289 if test "${libgcc_cv_solaris_crts}" = yes; then
290 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
291 # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
292 extra_parts="$extra_parts crtp.o crtpg.o"
293 # If the Solaris CRTs are present, both ld and gld will have PIE support.
294 extra_parts="$extra_parts crtbeginS.o crtendS.o"
295 else
296 case ${host} in
297 i?86-*-solaris2* | x86_64-*-solaris2*)
298 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
299 # part of the base system.
300 ;;
301 sparc*-*-solaris2*)
302 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
303 extra_parts="$extra_parts crt1.o gcrt1.o"
304 ;;
305 esac
306 fi
307 if test x$enable_vtable_verify = xyes; then
308 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
309 fi
310 ;;
311 *-*-uclinux*)
312 extra_parts="crtbegin.o crtend.o"
313 ;;
314 *-*-*vms*)
315 tmake_file="vms/t-vms"
316 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
317 ;;
318 *-*-vxworks7*)
319 tmake_file=t-vxworks7
320 ;;
321 *-*-vxworksae*)
322 tmake_file=t-vxworksae
323 ;;
324 *-*-vxworks*)
325 tmake_file=t-vxworks
326 ;;
327 *-*-elf)
328 extra_parts="crtbegin.o crtend.o"
329 ;;
330 esac
331
332 # Except on ARM where we do not use DWARF, table based EH on VxWorks
333 # relies on specially crafted crtstuff files
334 case ${host} in
335 arm-*-vxworks*)
336 ;;
337 *-*-vxworks*)
338 tmake_file="${tmake_file} t-vxcrtstuff"
339 ;;
340 esac
341
342 case ${host} in
343 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
344 *-*-solaris2*)
345 enable_execute_stack=enable-execute-stack-mprotect.c
346 ;;
347 i[34567]86-*-mingw* | x86_64-*-mingw*)
348 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
349 ;;
350 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
351 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
352 ;;
353 *)
354 enable_execute_stack=enable-execute-stack-empty.c;
355 ;;
356 esac
357
358 case ${host} in
359 aarch64*-*-elf | aarch64*-*-rtems*)
360 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
361 extra_parts="$extra_parts crtfastmath.o"
362 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
363 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
364 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
365 md_unwind_header=aarch64/aarch64-unwind.h
366 ;;
367 aarch64*-*-freebsd*)
368 extra_parts="$extra_parts crtfastmath.o"
369 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
370 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
371 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
372 md_unwind_header=aarch64/freebsd-unwind.h
373 ;;
374 aarch64*-*-netbsd*)
375 extra_parts="$extra_parts crtfastmath.o"
376 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
377 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
378 md_unwind_header=aarch64/aarch64-unwind.h
379 ;;
380 aarch64*-*-fuchsia*)
381 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
382 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
383 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
384 ;;
385 aarch64*-*-linux*)
386 extra_parts="$extra_parts crtfastmath.o"
387 md_unwind_header=aarch64/linux-unwind.h
388 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
389 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
390 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
391 ;;
392 aarch64*-*-vxworks7*)
393 extra_parts="$extra_parts crtfastmath.o"
394 md_unwind_header=aarch64/aarch64-unwind.h
395 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
396 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
397 ;;
398 alpha*-*-linux*)
399 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
400 extra_parts="$extra_parts crtfastmath.o"
401 md_unwind_header=alpha/linux-unwind.h
402 ;;
403 alpha*-*-freebsd*)
404 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
405 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
406 ;;
407 alpha*-*-netbsd*)
408 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
409 ;;
410 alpha*-*-openbsd*)
411 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
412 ;;
413 alpha64-dec-*vms*)
414 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
415 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
416 md_unwind_header=alpha/vms-unwind.h
417 ;;
418 alpha*-dec-*vms*)
419 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
420 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
421 md_unwind_header=alpha/vms-unwind.h
422 ;;
423 amdgcn*-*-amdhsa)
424 tmake_file="$tmake_file gcn/t-amdgcn"
425 extra_parts="crt0.o"
426 ;;
427 arc*-*-elf*)
428 tmake_file="arc/t-arc"
429 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
430 extra_parts="$extra_parts crttls.o"
431 ;;
432 arc*-*-linux*)
433 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
434 extra_parts="$extra_parts crti.o crtn.o"
435 extra_parts="$extra_parts crttls.o"
436 md_unwind_header=arc/linux-unwind.h
437 ;;
438 arm-wrs-vxworks7*)
439 tmake_file="$tmake_file arm/t-arm arm/t-elf arm/t-bpabi arm/t-vxworks7"
440 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
441 tm_file="$tm_file arm/bpabi-lib.h"
442 unwind_header=config/arm/unwind-arm.h
443 extra_parts="$extra_parts crti.o crtn.o"
444 ;;
445 arm*-*-freebsd*) # ARM FreeBSD EABI
446 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
447 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
448 tm_file="${tm_file} arm/bpabi-lib.h"
449 unwind_header=config/arm/unwind-arm.h
450 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
451 ;;
452 arm*-*-fuchsia*)
453 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
454 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
455 tm_file="${tm_file} arm/bpabi-lib.h"
456 unwind_header=config/arm/unwind-arm.h
457 ;;
458 arm*-*-netbsdelf*)
459 tmake_file="$tmake_file arm/t-arm"
460 case ${host} in
461 arm*-*-netbsdelf-*eabi*)
462 tmake_file="${tmake_file} arm/t-netbsd-eabi"
463 unwind_header=config/arm/unwind-arm.h
464 ;;
465 *)
466 tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover"
467 ;;
468 esac
469 ;;
470 arm*-*-linux* | arm*-*-uclinuxfdpiceabi)
471 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
472 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
473 tm_file="$tm_file arm/bpabi-lib.h"
474 unwind_header=config/arm/unwind-arm.h
475 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
476 extra_parts="$extra_parts crtfastmath.o"
477 ;;
478 arm*-*-uclinux*) # ARM ucLinux
479 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
480 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
481 tmake_file="${tmake_file} arm/t-bpabi"
482 tm_file="$tm_file arm/bpabi-lib.h"
483 unwind_header=config/arm/unwind-arm.h
484 extra_parts="$extra_parts crti.o crtn.o"
485 ;;
486 arm*-*-phoenix*)
487 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
488 tmake_file="${tmake_file} arm/t-bpabi"
489 tm_file="$tm_file arm/bpabi-lib.h"
490 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
491 unwind_header=config/arm/unwind-arm.h
492 ;;
493 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
494 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
495 tm_file="$tm_file arm/bpabi-lib.h"
496 case ${host} in
497 arm*-*-eabi* | arm*-*-rtems*)
498 tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
499 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
500 ;;
501 arm*-*-symbianelf*)
502 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
503 tm_file="$tm_file arm/symbian-lib.h"
504 # Symbian OS provides its own startup code.
505 ;;
506 esac
507 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
508 extra_parts="$extra_parts crtfastmath.o"
509 unwind_header=config/arm/unwind-arm.h
510 ;;
511 avr-*-*)
512 # Make HImode functions for AVR
513 tmake_file="${cpu_type}/t-avr t-fpbit"
514 # Make some DFmode functions from libf7, part of avr-libgcc.
515 # This must be prior to adding t-avrlibc.
516 case "y${with_libf7}" in
517 yno)
518 # No libf7 support.
519 ;;
520 ylibgcc)
521 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
522 ;;
523 ymath)
524 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
525 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
526 ;;
527 ymath-symbols | yyes | y)
528 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math-symbols"
529 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
530 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
531 ;;
532 *)
533 echo "Error: --with-libf7=${with_libf7} but can only be used with: 'libgcc', 'math', 'math-symbols', 'yes', 'no'" 1>&2
534 exit 1
535 ;;
536 esac
537 if test x${with_avrlibc} != xno; then
538 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
539 fi
540 tm_file="$tm_file avr/avr-lib.h"
541 if test x${with_fixed_point} = xno; then
542 fixed_point=no
543 fi
544 ;;
545 bfin*-elf*)
546 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
547 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
548 ;;
549 bfin*-uclinux*)
550 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
551 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
552 md_unwind_header=bfin/linux-unwind.h
553 ;;
554 bfin*-linux-uclibc*)
555 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
556 # No need to build crtbeginT.o on uClibc systems. Should probably
557 # be moved to the OS specific section above.
558 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
559 md_unwind_header=bfin/linux-unwind.h
560 ;;
561 bfin*-rtems*)
562 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
563 extra_parts="$extra_parts crti.o crtn.o"
564 ;;
565 bfin*-*)
566 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
567 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
568 ;;
569 bpf-*-*)
570 tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
571 extra_parts="crti.o crtn.o"
572 ;;
573 cr16-*-elf)
574 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
575 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
576 ;;
577 cris-*-elf)
578 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
579 ;;
580 csky-*-elf*)
581 tmake_file="csky/t-csky t-fdpbit"
582 extra_parts="$extra_parts crti.o crtn.o"
583 ;;
584 csky-*-linux*)
585 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
586 extra_parts="$extra_parts crti.o crtn.o"
587 md_unwind_header=csky/linux-unwind.h
588 ;;
589 epiphany-*-elf* | epiphany-*-rtems*)
590 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
591 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
592 ;;
593 fr30-*-elf)
594 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
595 extra_parts="$extra_parts crti.o crtn.o"
596 ;;
597 frv-*-elf)
598 tmake_file="$tmake_file frv/t-frv t-fdpbit"
599 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
600 # Don't use crtbegin.o, crtend.o.
601 extra_parts="frvbegin.o frvend.o"
602 ;;
603 frv-*-*linux*)
604 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
605 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
606 ;;
607 ft32-*-elf)
608 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
609 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
610 ;;
611 h8300-*-elf*)
612 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
613 tm_file="$tm_file h8300/h8300-lib.h"
614 extra_parts="$extra_parts crti.o crtn.o"
615 ;;
616 h8300-*-linux*)
617 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
618 tm_file="$tm_file h8300/h8300-lib.h"
619 ;;
620 hppa*64*-*-linux*)
621 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
622 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
623 ;;
624 hppa*-*-linux*)
625 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
626 # Set the libgcc version number
627 if test x$ac_cv_sjlj_exceptions = xyes; then
628 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
629 else
630 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
631 fi
632 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
633 md_unwind_header=pa/linux-unwind.h
634 ;;
635 hppa[12]*-*-hpux10*)
636 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
637 # Set the libgcc version number
638 if test x$ac_cv_sjlj_exceptions = xyes; then
639 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
640 else
641 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
642 fi
643 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
644 md_unwind_header=pa/hpux-unwind.h
645 ;;
646 hppa*64*-*-hpux11*)
647 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
648 # Set the libgcc version number
649 if test x$ac_cv_sjlj_exceptions = xyes; then
650 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
651 else
652 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
653 fi
654 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
655 tm_file="$tm_file pa/pa64-hpux-lib.h"
656 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
657 libgcc_stub.a"
658 md_unwind_header=pa/hpux-unwind.h
659 ;;
660 hppa[12]*-*-hpux11*)
661 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
662 # Set the libgcc version number
663 if test x$ac_cv_sjlj_exceptions = xyes; then
664 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
665 else
666 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
667 fi
668 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
669 extra_parts="libgcc_stub.a"
670 md_unwind_header=pa/hpux-unwind.h
671 ;;
672 hppa*-*-openbsd*)
673 tmake_file="$tmake_file pa/t-openbsd"
674 ;;
675 hppa*-*-netbsd*)
676 tmake_file="$tmake_file pa/t-netbsd"
677 ;;
678 i[34567]86-*-darwin*)
679 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
680 tm_file="$tm_file i386/darwin-lib.h"
681 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
682 ;;
683 x86_64-*-darwin*)
684 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
685 tm_file="$tm_file i386/darwin-lib.h"
686 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
687 ;;
688 i[34567]86-*-elfiamcu)
689 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"
690 ;;
691 i[34567]86-*-elf*)
692 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
693 ;;
694 x86_64-*-elf* | x86_64-*-rtems*)
695 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
696 case ${host} in
697 x86_64-*-rtems*)
698 extra_parts="$extra_parts crti.o crtn.o"
699 ;;
700 esac
701 ;;
702 x86_64-*-fuchsia*)
703 tmake_file="$tmake_file t-libgcc-pic"
704 ;;
705 i[34567]86-*-dragonfly*)
706 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
707 md_unwind_header=i386/dragonfly-unwind.h
708 ;;
709 x86_64-*-dragonfly*)
710 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
711 md_unwind_header=i386/dragonfly-unwind.h
712 ;;
713 i[34567]86-*-freebsd*)
714 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
715 md_unwind_header=i386/freebsd-unwind.h
716 ;;
717 x86_64-*-freebsd*)
718 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
719 md_unwind_header=i386/freebsd-unwind.h
720 ;;
721 i[34567]86-*-netbsdelf*)
722 tmake_file="${tmake_file} i386/t-crtstuff"
723 ;;
724 x86_64-*-netbsd*)
725 tmake_file="${tmake_file} i386/t-crtstuff"
726 ;;
727 i[34567]86-*-openbsd*)
728 ;;
729 x86_64-*-openbsd*)
730 ;;
731 i[34567]86-*-linux*)
732 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
733 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
734 tm_file="${tm_file} i386/elf-lib.h"
735 md_unwind_header=i386/linux-unwind.h
736 ;;
737 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-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 ;;
742 x86_64-*-linux*)
743 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
744 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
745 tm_file="${tm_file} i386/elf-lib.h"
746 md_unwind_header=i386/linux-unwind.h
747 ;;
748 x86_64-*-kfreebsd*-gnu)
749 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
750 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
751 tm_file="${tm_file} i386/elf-lib.h"
752 ;;
753 i[34567]86-pc-msdosdjgpp*)
754 ;;
755 i[34567]86-*-lynxos*)
756 ;;
757 i[34567]86-*-nto-qnx*)
758 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
759 extra_parts=crtbegin.o
760 ;;
761 i[34567]86-*-rtems*)
762 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
763 extra_parts="$extra_parts crti.o crtn.o"
764 ;;
765 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
766 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
767 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
768 tm_file="${tm_file} i386/elf-lib.h"
769 md_unwind_header=i386/sol2-unwind.h
770 ;;
771 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
772 ;;
773 i[34567]86-*-cygwin*)
774 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
775 if test x$enable_vtable_verify = xyes; then
776 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
777 fi
778 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
779 if test x$ac_cv_sjlj_exceptions = xyes; then
780 tmake_eh_file="i386/t-sjlj-eh"
781 else
782 tmake_eh_file="i386/t-dw2-eh"
783 fi
784 # Shared libgcc DLL install dir depends on cross/native build.
785 if test x${build} = x${host} ; then
786 tmake_dlldir_file="i386/t-dlldir"
787 else
788 tmake_dlldir_file="i386/t-dlldir-x"
789 fi
790 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"
791 ;;
792 x86_64-*-cygwin*)
793 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
794 if test x$enable_vtable_verify = xyes; then
795 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
796 fi
797 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
798 if test x$ac_cv_sjlj_exceptions = xyes; then
799 tmake_eh_file="i386/t-sjlj-eh"
800 elif test "${host_address}" = 32; then
801 # biarch -m32 with --disable-sjlj-exceptions
802 tmake_eh_file="i386/t-dw2-eh"
803 else
804 tmake_eh_file="i386/t-seh-eh"
805 fi
806 # Shared libgcc DLL install dir depends on cross/native build.
807 if test x${build} = x${host} ; then
808 tmake_dlldir_file="i386/t-dlldir"
809 else
810 tmake_dlldir_file="i386/t-dlldir-x"
811 fi
812 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
813 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"
814 ;;
815 i[34567]86-*-mingw*)
816 extra_parts="crtbegin.o crtend.o crtfastmath.o"
817 if test x$enable_vtable_verify = xyes; then
818 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
819 fi
820 case ${target_thread_file} in
821 win32)
822 tmake_file="$tmake_file i386/t-gthr-win32"
823 ;;
824 posix)
825 tmake_file="i386/t-mingw-pthread $tmake_file"
826 ;;
827 esac
828 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
829 if test x$ac_cv_sjlj_exceptions = xyes; then
830 tmake_eh_file="i386/t-sjlj-eh"
831 else
832 tmake_eh_file="i386/t-dw2-eh"
833 md_unwind_header=i386/w32-unwind.h
834 fi
835 # Shared libgcc DLL install dir depends on cross/native build.
836 if test x${build} = x${host} ; then
837 tmake_dlldir_file="i386/t-dlldir"
838 else
839 tmake_dlldir_file="i386/t-dlldir-x"
840 fi
841 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 t-crtfm i386/t-chkstk t-dfprules"
842 ;;
843 x86_64-*-mingw*)
844 case ${target_thread_file} in
845 win32)
846 tmake_file="$tmake_file i386/t-gthr-win32"
847 ;;
848 posix)
849 tmake_file="i386/t-mingw-pthread $tmake_file"
850 ;;
851 esac
852 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
853 if test x$ac_cv_sjlj_exceptions = xyes; then
854 tmake_eh_file="i386/t-sjlj-eh"
855 elif test "${host_address}" = 32; then
856 # biarch -m32 with --disable-sjlj-exceptions
857 tmake_eh_file="i386/t-dw2-eh"
858 md_unwind_header=i386/w32-unwind.h
859 else
860 tmake_eh_file="i386/t-seh-eh"
861 fi
862 # Shared libgcc DLL install dir depends on cross/native build.
863 if test x${build} = x${host} ; then
864 tmake_dlldir_file="i386/t-dlldir"
865 else
866 tmake_dlldir_file="i386/t-dlldir-x"
867 fi
868 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 t-dfprules t-crtfm i386/t-chkstk"
869 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
870 if test x$enable_vtable_verify = xyes; then
871 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
872 fi
873 ;;
874 ia64*-*-elf*)
875 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
876 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"
877 ;;
878 ia64*-*-freebsd*)
879 extra_parts="$extra_parts crtfastmath.o"
880 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"
881 ;;
882 ia64*-*-linux*)
883 # Don't use crtbeginT.o from *-*-linux* default.
884 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
885 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"
886 if test x$with_system_libunwind != xyes ; then
887 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
888 fi
889 md_unwind_header=ia64/linux-unwind.h
890 ;;
891 ia64*-*-hpux*)
892 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
893 ;;
894 ia64-hp-*vms*)
895 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"
896 extra_parts="$extra_parts crtinitS.o"
897 md_unwind_header=ia64/vms-unwind.h
898 ;;
899 iq2000*-*-elf*)
900 tmake_file="iq2000/t-iq2000 t-fdpbit"
901 # Don't use default.
902 extra_parts=
903 ;;
904 lm32-*-elf*)
905 extra_parts="$extra_parts crti.o crtn.o"
906 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
907 ;;
908 lm32-*-rtems*)
909 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
910 extra_parts="$extra_parts crti.o crtn.o"
911 ;;
912 lm32-*-uclinux*)
913 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
914 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
915 ;;
916 m32r-*-elf*)
917 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
918 extra_parts="$extra_parts crtinit.o crtfini.o"
919 ;;
920 m32rle-*-elf*)
921 tmake_file=t-fdpbit
922 ;;
923 m32r-*-linux*)
924 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
925 ;;
926 m32rle-*-linux*)
927 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
928 ;;
929 m68k-*-elf* | fido-*-elf)
930 tmake_file="$tmake_file m68k/t-floatlib"
931 ;;
932 m68k*-*-netbsdelf*)
933 ;;
934 m68k*-*-openbsd*)
935 ;;
936 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
937 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
938 md_unwind_header=m68k/linux-unwind.h
939 ;;
940 m68k-*-linux*) # Motorola m68k's running GNU/Linux
941 # with ELF format using glibc 2
942 # aka the GNU/Linux C library 6.
943 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
944 # If not configured with setjmp/longjmp exceptions, bump the
945 # libgcc version number.
946 if test x$ac_cv_sjlj_exceptions != xyes; then
947 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
948 fi
949 md_unwind_header=m68k/linux-unwind.h
950 ;;
951 m68k-*-rtems*)
952 tmake_file="$tmake_file m68k/t-floatlib"
953 extra_parts="$extra_parts crti.o crtn.o"
954 ;;
955 mcore-*-elf)
956 tmake_file="mcore/t-mcore t-fdpbit"
957 extra_parts="$extra_parts crti.o crtn.o"
958 ;;
959 microblaze*-linux*)
960 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
961 ;;
962 microblaze*-*-elf)
963 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
964 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
965 ;;
966 microblaze*-*-rtems*)
967 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
968 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
969 ;;
970 mips*-*-netbsd*) # NetBSD/mips, either endian.
971 ;;
972 mips*-*-linux*) # Linux MIPS, either endian.
973 extra_parts="$extra_parts crtfastmath.o"
974 tmake_file="${tmake_file} t-crtfm"
975 case ${host} in
976 mips64r5900* | mipsr5900*)
977 # The MIPS16 support code uses floating point
978 # instructions that are not supported on r5900.
979 ;;
980 *)
981 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
982 ;;
983 esac
984 md_unwind_header=mips/linux-unwind.h
985 ;;
986 mips*-sde-elf*)
987 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
988 case "${with_newlib}" in
989 yes)
990 # newlib / libgloss.
991 ;;
992 *)
993 # MIPS toolkit libraries.
994 tmake_file="$tmake_file mips/t-sdemtk"
995 ;;
996 esac
997 extra_parts="$extra_parts crti.o crtn.o"
998 ;;
999 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
1000 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
1001 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
1002 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
1003 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
1004 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
1005 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1006 extra_parts="$extra_parts crti.o crtn.o"
1007 ;;
1008 mipsisa64sr71k-*-elf*)
1009 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
1010 extra_parts="$extra_parts crti.o crtn.o"
1011 ;;
1012 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1013 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1014 extra_parts="$extra_parts crti.o crtn.o"
1015 ;;
1016 mips-*-elf* | mipsel-*-elf*)
1017 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1018 extra_parts="$extra_parts crti.o crtn.o"
1019 ;;
1020 mipsr5900-*-elf* | mipsr5900el-*-elf*)
1021 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1022 extra_parts="$extra_parts crti.o crtn.o"
1023 ;;
1024 mips64-*-elf* | mips64el-*-elf*)
1025 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1026 extra_parts="$extra_parts crti.o crtn.o"
1027 ;;
1028 mips64r5900-*-elf* | mips64r5900el-*-elf*)
1029 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1030 extra_parts="$extra_parts crti.o crtn.o"
1031 ;;
1032 mips64vr-*-elf* | mips64vrel-*-elf*)
1033 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
1034 extra_parts="$extra_parts crti.o crtn.o"
1035 ;;
1036 mips64orion-*-elf* | mips64orionel-*-elf*)
1037 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1038 extra_parts="$extra_parts crti.o crtn.o"
1039 ;;
1040 mips*-*-rtems*)
1041 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1042 extra_parts="$extra_parts crti.o crtn.o"
1043 ;;
1044 mips-wrs-vxworks)
1045 ;;
1046 mipstx39-*-elf* | mipstx39el-*-elf*)
1047 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1048 ;;
1049 mmix-knuth-mmixware)
1050 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1051 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1052 ;;
1053 mn10300-*-*)
1054 tmake_file=t-fdpbit
1055 ;;
1056 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1057 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1058 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1059 ;;
1060 msp430-*-elf*)
1061 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1062 extra_parts="crtbegin.o crtend.o crtbegin_no_eh.o crtend_no_eh.o"
1063 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1064 ;;
1065 nds32*-linux*)
1066 # Basic makefile fragment and extra_parts for crt stuff.
1067 # We also append c-isr library implementation.
1068 tmake_file="${tmake_file} t-slibgcc-libgcc"
1069 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1070 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1071 md_unwind_header=nds32/linux-unwind.h
1072 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1073 case "${with_nds32_lib}" in
1074 "" | glibc | uclibc )
1075 ;;
1076 *)
1077 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1078 exit 1
1079 ;;
1080 esac
1081 ;;
1082 nds32*-elf*)
1083 # Basic makefile fragment and extra_parts for crt stuff.
1084 # We also append c-isr library implementation.
1085 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1086 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1087 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1088 case "${with_nds32_lib}" in
1089 "" | newlib)
1090 # Append library definition makefile fragment t-nds32-newlib.
1091 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1092 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1093 ;;
1094 mculib)
1095 # Append library definition makefile fragment t-nds32-mculib.
1096 # The software floating point library is included in mculib.
1097 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1098 ;;
1099 *)
1100 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1101 exit 1
1102 ;;
1103 esac
1104 ;;
1105 nios2-*-linux*)
1106 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-eh-dw2-dip t-slibgcc-libgcc"
1107 tm_file="$tm_file nios2/elf-lib.h"
1108 md_unwind_header=nios2/linux-unwind.h
1109 ;;
1110 nios2-*-*)
1111 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1112 extra_parts="$extra_parts crti.o crtn.o"
1113 ;;
1114 or1k-*-linux*)
1115 tmake_file="$tmake_file or1k/t-or1k"
1116 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1117 md_unwind_header=or1k/linux-unwind.h
1118 ;;
1119 or1k-*-*)
1120 tmake_file="$tmake_file or1k/t-or1k"
1121 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1122 ;;
1123 pdp11-*-*)
1124 tmake_file="pdp11/t-pdp11 t-fdpbit"
1125 ;;
1126 powerpc-*-darwin*)
1127 case ${host} in
1128 *-*-darwin9* | *-*-darwin[12][0-9]*)
1129 # libSystem contains unwind information for signal frames since
1130 # Darwin 9.
1131 ;;
1132 *)
1133 md_unwind_header=rs6000/darwin-unwind.h
1134 ;;
1135 esac
1136 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1137 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1138 ;;
1139 powerpc64-*-darwin*)
1140 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1141 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1142 ;;
1143 powerpc*-*-freebsd*)
1144 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1145 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1146 case ${host} in
1147 powerpc64*)
1148 tmake_file="${tmake_file} rs6000/t-freebsd64"
1149 md_unwind_header=rs6000/freebsd-unwind.h
1150 ;;
1151 esac
1152 ;;
1153 powerpc-*-netbsd*)
1154 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1155 ;;
1156 powerpc-*-eabispe*)
1157 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1158 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1159 ;;
1160 powerpc-*-eabisimaltivec*)
1161 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1162 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1163 ;;
1164 powerpc-*-eabisim*)
1165 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1166 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1167 ;;
1168 powerpc-*-elf*)
1169 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1170 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1171 ;;
1172 powerpc-*-eabialtivec*)
1173 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1174 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1175 ;;
1176 powerpc-xilinx-eabi*)
1177 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1178 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1179 ;;
1180 powerpc-*-eabi*)
1181 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1182 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1183 ;;
1184 powerpc-*-rtems*)
1185 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1186 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1187 ;;
1188 powerpc*-*-linux*)
1189 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"
1190 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1191 case $ppc_fp_type in
1192 64)
1193 ;;
1194 hard)
1195 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1196 ;;
1197 soft)
1198 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1199 ;;
1200 e500v1)
1201 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1202 ;;
1203 e500v2)
1204 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1205 ;;
1206 *)
1207 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1208 exit 1
1209 ;;
1210 esac
1211
1212 if test $libgcc_cv_powerpc_float128 = yes; then
1213 tmake_file="${tmake_file} rs6000/t-float128"
1214 fi
1215
1216 if test $libgcc_cv_powerpc_float128_hw = yes; then
1217 tmake_file="${tmake_file} rs6000/t-float128-hw"
1218 fi
1219
1220 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1221 md_unwind_header=rs6000/linux-unwind.h
1222 ;;
1223 powerpc-wrs-vxworks*)
1224 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
1225 extra_parts="$extra_parts crtbegin.o crtend.o"
1226 ;;
1227 powerpc-*-lynxos*)
1228 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1229 ;;
1230 powerpcle-*-elf*)
1231 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1232 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1233 ;;
1234 powerpcle-*-eabisim*)
1235 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1236 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1237 ;;
1238 powerpcle-*-eabi*)
1239 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1240 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1241 ;;
1242 pru-*-*)
1243 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1244 tm_file="$tm_file pru/pru-abi.h"
1245 ;;
1246 riscv*-*-linux*)
1247 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1248 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1249 md_unwind_header=riscv/linux-unwind.h
1250 ;;
1251 riscv*-*-freebsd*)
1252 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1253 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1254 ;;
1255 riscv*-*-*)
1256 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1257 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1258 ;;
1259 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1260 md_unwind_header=rs6000/aix-unwind.h
1261 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1262 ;;
1263 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1264 md_unwind_header=rs6000/aix-unwind.h
1265 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1266 ;;
1267 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1268 md_unwind_header=rs6000/aix-unwind.h
1269 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1270 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
1271 ;;
1272 rl78-*-elf)
1273 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1274 ;;
1275 rx-*-elf)
1276 tmake_file="rx/t-rx t-fdpbit"
1277 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1278 ;;
1279 rx-*-linux*)
1280 tmake_file="rx/t-rx t-fdpbit"
1281 tm_file="$tm_file rx/rx-lib.h"
1282 ;;
1283 s390-*-linux*)
1284 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1285 md_unwind_header=s390/linux-unwind.h
1286 ;;
1287 s390x-*-linux*)
1288 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1289 if test "${host_address}" = 32; then
1290 tmake_file="${tmake_file} s390/32/t-floattodi"
1291 fi
1292 md_unwind_header=s390/linux-unwind.h
1293 ;;
1294 s390x-ibm-tpf*)
1295 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip s390/t-tpf"
1296 extra_parts="crtbeginS.o crtendS.o"
1297 md_unwind_header=s390/tpf-unwind.h
1298 ;;
1299 sh-*-elf* | sh[12346l]*-*-elf*)
1300 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1301 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1302 libic_invalidate_array_4-100.a \
1303 libic_invalidate_array_4-200.a \
1304 libic_invalidate_array_4a.a \
1305 libgcc-Os-4-200.a libgcc-4-300.a"
1306 case ${host} in
1307 sh*-superh-elf)
1308 tmake_file="$tmake_file sh/t-superh"
1309 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1310 ;;
1311 esac
1312 ;;
1313 sh-*-linux* | sh[2346lbe]*-*-linux*)
1314 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1315 md_unwind_header=sh/linux-unwind.h
1316 ;;
1317 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1318 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1319
1320 # NetBSD's C library includes a fast software FP library that
1321 # has support for setting/setting the rounding mode, exception
1322 # mask, etc. Therefore, we don't want to include software FP
1323 # in libgcc.
1324 ;;
1325 sh-*-rtems*)
1326 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1327 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1328 libic_invalidate_array_4-100.a \
1329 libic_invalidate_array_4-200.a \
1330 libic_invalidate_array_4a.a \
1331 libgcc-Os-4-200.a libgcc-4-300.a"
1332 ;;
1333 sh-wrs-vxworks)
1334 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1335 ;;
1336 sparc-*-netbsdelf*)
1337 ;;
1338 sparc64-*-openbsd*)
1339 ;;
1340 sparc-*-elf*)
1341 case ${host} in
1342 *-leon[3-9]*)
1343 ;;
1344 *)
1345 tmake_file="sparc/t-softmul"
1346 ;;
1347 esac
1348 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1349 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1350 ;;
1351 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1352 tmake_file="${tmake_file} t-crtfm"
1353 if test "${host_address}" = 64; then
1354 tmake_file="$tmake_file sparc/t-linux64"
1355 fi
1356 case ${host} in
1357 *-leon*)
1358 tmake_file="${tmake_file} t-fdpbit"
1359 ;;
1360 *)
1361 tmake_file="${tmake_file} sparc/t-linux"
1362 ;;
1363 esac
1364 case ${host} in
1365 *-leon[3-9]*)
1366 ;;
1367 *)
1368 if test "${host_address}" = 32; then
1369 tmake_file="$tmake_file sparc/t-softmul"
1370 fi
1371 ;;
1372 esac
1373 extra_parts="$extra_parts crtfastmath.o"
1374 md_unwind_header=sparc/linux-unwind.h
1375 ;;
1376 sparc-*-rtems*)
1377 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1378 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1379 ;;
1380 sparc*-*-solaris2*)
1381 tmake_file="$tmake_file t-crtfm"
1382 extra_parts="$extra_parts crtfastmath.o"
1383 md_unwind_header=sparc/sol2-unwind.h
1384 ;;
1385 sparc64-*-elf*)
1386 tmake_file="${tmake_file} t-crtfm"
1387 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1388 ;;
1389 sparc64-*-rtems*)
1390 tmake_file="$tmake_file t-crtfm"
1391 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1392 ;;
1393 sparc-wrs-vxworks)
1394 ;;
1395 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1396 tmake_file="$tmake_file t-crtfm"
1397 extra_parts="$extra_parts crtfastmath.o"
1398 ;;
1399 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1400 extra_parts="$extra_parts crtfastmath.o"
1401 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1402 if test "${host_address}" = 64; then
1403 tmake_file="${tmake_file} sparc/t-linux64"
1404 fi
1405 if test "${host_address}" = 32; then
1406 tmake_file="${tmake_file} sparc/t-softmul"
1407 fi
1408 md_unwind_header=sparc/linux-unwind.h
1409 ;;
1410 sparc64-*-netbsd*)
1411 ;;
1412 tic6x-*-uclinux)
1413 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1414 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1415 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1416 tm_file="$tm_file c6x/c6x-abi.h"
1417 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1418 unwind_header=config/c6x/unwind-c6x.h
1419 ;;
1420 tic6x-*-elf)
1421 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1422 tm_file="$tm_file c6x/c6x-abi.h"
1423 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1424 unwind_header=config/c6x/unwind-c6x.h
1425 ;;
1426 tilegx*-*-linux*)
1427 if test "${host_address}" = 64; then
1428 tmake_file="${tmake_file} tilegx/t-softfp"
1429 fi
1430 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1431 md_unwind_header=tilepro/linux-unwind.h
1432 ;;
1433 tilepro*-*-linux*)
1434 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1435 md_unwind_header=tilepro/linux-unwind.h
1436 ;;
1437 v850*-*-*)
1438 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1439 ;;
1440 vax-*-linux*)
1441 tmake_file="$tmake_file vax/t-linux"
1442 ;;
1443 vax-*-netbsdelf*)
1444 ;;
1445 vax-*-openbsd*)
1446 ;;
1447 visium-*-elf*)
1448 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1449 tmake_file="visium/t-visium t-fdpbit"
1450 ;;
1451 xstormy16-*-elf)
1452 tmake_file="stormy16/t-stormy16 t-fdpbit"
1453 ;;
1454 xtensa*-*-elf*)
1455 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1456 extra_parts="$extra_parts crti.o crtn.o"
1457 ;;
1458 xtensa*-*-linux*)
1459 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1460 md_unwind_header=xtensa/linux-unwind.h
1461 ;;
1462 xtensa*-*-uclinux*)
1463 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1464 md_unwind_header=xtensa/linux-unwind.h
1465 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1466 ;;
1467 am33_2.0-*-linux*)
1468 # Don't need crtbeginT.o from *-*-linux* default.
1469 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1470 tmake_file="$tmake_file t-fdpbit"
1471 ;;
1472 m32c-*-elf*|m32c-*-rtems*)
1473 tmake_file="$tmake_file m32c/t-m32c"
1474 ;;
1475 nvptx-*)
1476 tmake_file="$tmake_file nvptx/t-nvptx"
1477 extra_parts="crt0.o"
1478 ;;
1479 *)
1480 echo "*** Configuration ${host} not supported" 1>&2
1481 exit 1
1482 ;;
1483 esac
1484
1485 case ${host} in
1486 i[34567]86-*-* | x86_64-*-*)
1487 case ${host} in
1488 *-musl*)
1489 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1490 ;;
1491 *)
1492 tmake_file="${tmake_file} i386/t-cpuinfo"
1493 ;;
1494 esac
1495 ;;
1496 esac
1497
1498 case ${host} in
1499 i[34567]86-*-linux* | x86_64-*-linux* | \
1500 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1501 i[34567]86-*-gnu*)
1502 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1503 if test "$libgcc_cv_cfi" = "yes"; then
1504 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1505 fi
1506 ;;
1507 esac
1508
1509 case ${host} in
1510 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1511 # These use soft-fp for SFmode and DFmode, not just TFmode.
1512 ;;
1513 i[34567]86-*-* | x86_64-*-*)
1514 tmake_file="${tmake_file} t-softfp-tf"
1515 if test "${host_address}" = 32; then
1516 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1517 fi
1518 tmake_file="${tmake_file} i386/t-softfp t-softfp"
1519 ;;
1520 esac
1521
1522 case ${host} in
1523 i[34567]86-*-linux* | x86_64-*-linux*)
1524 # Provide backward binary compatibility for 64bit Linux/x86.
1525 if test "${host_address}" = 64; then
1526 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1527 fi
1528 tm_file="${tm_file} i386/value-unwind.h"
1529 ;;
1530 aarch64*-*-*)
1531 # ILP32 needs an extra header for unwinding
1532 tm_file="${tm_file} aarch64/value-unwind.h"
1533 ;;
1534 esac
1535
1536 # The vxworks threads implementation relies on a few extra sources,
1537 # which we arrange to add after everything else:
1538
1539 case ${target_thread_file} in
1540 vxworks)
1541 case ${host} in
1542 *-*-vxworksae)
1543 tmake_file="${tmake_file} t-gthr-vxworksae"
1544 ;;
1545 *-*-vxworks*)
1546 tmake_file="${tmake_file} t-gthr-vxworks"
1547 ;;
1548 esac
1549 esac
1550
1551 case ${host} in
1552 *-*-musl*)
1553 # The gthr weak references are unsafe with static linking
1554 tmake_file="$tmake_file t-gthr-noweak"
1555 ;;
1556 esac