1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
4 #This file is part of GCC.
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
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
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/>.
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.
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}.
32 # This file switches on the shell variable ${host}, and also uses the
33 # following shell variables:
35 # with_* Various variables as set by configure.
37 # This file sets the following shell variables for use by the
38 # autoconf-generated configure script:
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
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.
75 md_unwind_header=no-unwind.h
76 unwind_header=unwind-generic.h
78 # Set default cpu_type so it can be updated in each machine entry.
79 cpu_type=`echo ${host} | sed 's/-.*$//'`
121 moxie*) cpu_type=moxie
146 # All MIPS targets provide a full set of FP routines.
148 tmake_file="mips/t-mips"
149 if test "${libgcc_cv_mips_hard_float}" = yes; then
150 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
152 tmake_file="${tmake_file} t-softfp-sfdf"
154 if test "${ac_cv_sizeof_long_double}" = 16; then
155 tmake_file="${tmake_file} mips/t-softfp-tf"
157 if test "${host_address}" = 64; then
158 tmake_file="${tmake_file} mips/t-mips64"
160 tmake_file="${tmake_file} t-softfp"
188 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
189 sh[123456789lbe]*-*-*)
206 # Common parts for widely ported systems.
209 asm_hidden_op=.private_extern
210 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin"
211 extra_parts="crt3.o d10-uwfef.o crttms.o crttme.o"
214 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
215 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
216 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
219 # This is the generic ELF configuration of FreeBSD. Later
220 # machine-specific sections may refine and add to this
222 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"
223 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
224 case ${target_thread_file} in
226 tmake_file="${tmake_file} t-freebsd-thread"
227 # Before 5.0, FreeBSD can't bind shared libraries to -lc
228 # when "optionally" threaded via weak pthread_* checks.
230 *-*-freebsd[34] | *-*-freebsd[34].*)
231 tmake_file="${tmake_file} t-slibgcc-nolc-override"
238 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
239 extra_parts="crtbegin.o crtend.o"
241 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
242 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"
243 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
244 if test x$enable_vtable_verify = xyes; then
245 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
249 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
250 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
253 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
254 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
255 tmake_file="$tmake_file t-slibgcc-libgcc"
256 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
259 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
260 case ${target_thread_file} in
262 tmake_file="$tmake_file t-openbsd-thread"
267 tmake_file="$tmake_file t-rtems"
268 extra_parts="crtbegin.o crtend.o"
271 # Unless linker support and dl_iterate_phdr are present,
272 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
273 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
274 if test $with_gnu_ld = yes; then
275 tmake_file="$tmake_file t-slibgcc-gld"
277 tmake_file="$tmake_file t-slibgcc-sld"
279 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
280 tmake_file="$tmake_file $cpu_type/t-sol2"
281 extra_parts="gmon.o crtbegin.o crtend.o"
282 if test "${libgcc_cv_solaris_crts}" = yes; then
283 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
284 # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
285 extra_parts="$extra_parts crtp.o crtpg.o"
286 # If the Solaris CRTs are present, both ld and gld will have PIE support.
287 extra_parts="$extra_parts crtbeginS.o crtendS.o"
290 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
291 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
292 # part of the base system.
294 sparc*-*-solaris2.1[0-9]*)
295 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
296 extra_parts="$extra_parts crt1.o gcrt1.o"
300 if test x$enable_vtable_verify = xyes; then
301 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
305 extra_parts="crtbegin.o crtend.o"
308 tmake_file="vms/t-vms"
309 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
312 tmake_file=t-vxworks7
318 extra_parts="crtbegin.o crtend.o"
323 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
325 enable_execute_stack=enable-execute-stack-mprotect.c
327 i[34567]86-*-mingw* | x86_64-*-mingw*)
328 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
330 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
331 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
334 enable_execute_stack=enable-execute-stack-empty.c;
339 aarch64*-*-elf | aarch64*-*-rtems*)
340 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
341 extra_parts="$extra_parts crtfastmath.o"
342 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
343 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
344 md_unwind_header=aarch64/aarch64-unwind.h
347 extra_parts="$extra_parts crtfastmath.o"
348 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
349 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
350 md_unwind_header=aarch64/freebsd-unwind.h
353 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
354 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
357 extra_parts="$extra_parts crtfastmath.o"
358 md_unwind_header=aarch64/linux-unwind.h
359 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
360 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
363 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
364 extra_parts="$extra_parts crtfastmath.o"
365 md_unwind_header=alpha/linux-unwind.h
368 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
369 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
372 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
375 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
378 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
379 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
380 md_unwind_header=alpha/vms-unwind.h
383 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
384 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
385 md_unwind_header=alpha/vms-unwind.h
388 tmake_file="arc/t-arc"
389 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
390 extra_parts="$extra_parts crttls.o"
393 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
394 extra_parts="$extra_parts crti.o crtn.o"
395 extra_parts="$extra_parts crttls.o"
396 md_unwind_header=arc/linux-unwind.h
398 arm-wrs-vxworks|arm-wrs-vxworks7)
399 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
400 extra_parts="$extra_parts crti.o crtn.o"
403 # Note that arm/t-bpabi will reset the LIB2ADDEH macro.
404 # This is intentional.
405 tmake_file="$tmake_file arm/t-bpabi arm/t-vxworks7"
406 tm_file="$tm_file arm/bpabi-lib.h"
407 unwind_header=config/arm/unwind-arm.h
411 arm*-*-freebsd*) # ARM FreeBSD EABI
412 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
413 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
414 tm_file="${tm_file} arm/bpabi-lib.h"
415 unwind_header=config/arm/unwind-arm.h
416 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
419 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
420 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
421 tm_file="${tm_file} arm/bpabi-lib.h"
422 unwind_header=config/arm/unwind-arm.h
425 tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover"
427 arm*-*-linux*) # ARM GNU/Linux with ELF
428 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
429 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
430 tm_file="$tm_file arm/bpabi-lib.h"
431 unwind_header=config/arm/unwind-arm.h
432 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
433 extra_parts="$extra_parts crtfastmath.o"
435 arm*-*-uclinux*) # ARM ucLinux
436 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
437 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
438 tmake_file="${tmake_file} arm/t-bpabi"
439 tm_file="$tm_file arm/bpabi-lib.h"
440 unwind_header=config/arm/unwind-arm.h
441 extra_parts="$extra_parts crti.o crtn.o"
444 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
445 tmake_file="${tmake_file} arm/t-bpabi"
446 tm_file="$tm_file arm/bpabi-lib.h"
447 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
448 unwind_header=config/arm/unwind-arm.h
450 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
451 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
452 tm_file="$tm_file arm/bpabi-lib.h"
454 arm*-*-eabi* | arm*-*-rtems*)
455 tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
456 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
459 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
460 tm_file="$tm_file arm/symbian-lib.h"
461 # Symbian OS provides its own startup code.
464 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
465 extra_parts="$extra_parts crtfastmath.o"
466 unwind_header=config/arm/unwind-arm.h
469 # Make HImode functions for AVR
470 tmake_file="${cpu_type}/t-avr t-fpbit"
471 if test x${with_avrlibc} != xno; then
472 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
474 tm_file="$tm_file avr/avr-lib.h"
477 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
478 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
481 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
482 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
483 md_unwind_header=bfin/linux-unwind.h
486 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
487 # No need to build crtbeginT.o on uClibc systems. Should probably
488 # be moved to the OS specific section above.
489 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
490 md_unwind_header=bfin/linux-unwind.h
493 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
494 extra_parts="$extra_parts crti.o crtn.o"
497 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
498 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
501 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
502 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
505 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
508 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
510 cris-*-linux* | crisv32-*-linux*)
511 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
514 tmake_file="csky/t-csky t-fdpbit"
515 extra_parts="$extra_parts crti.o crtn.o"
518 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
519 extra_parts="$extra_parts crti.o crtn.o"
520 md_unwind_header=csky/linux-unwind.h
522 epiphany-*-elf* | epiphany-*-rtems*)
523 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
524 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
527 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
528 extra_parts="$extra_parts crti.o crtn.o"
531 tmake_file="$tmake_file frv/t-frv t-fdpbit"
532 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
533 # Don't use crtbegin.o, crtend.o.
534 extra_parts="frvbegin.o frvend.o"
537 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
538 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
541 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
542 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
545 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
546 tm_file="$tm_file h8300/h8300-lib.h"
547 extra_parts="$extra_parts crti.o crtn.o"
550 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
551 tm_file="$tm_file h8300/h8300-lib.h"
554 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
555 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
558 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
559 # Set the libgcc version number
560 if test x$ac_cv_sjlj_exceptions = xyes; then
561 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
563 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
565 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
566 md_unwind_header=pa/linux-unwind.h
569 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
570 # Set the libgcc version number
571 if test x$ac_cv_sjlj_exceptions = xyes; then
572 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
574 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
576 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
577 md_unwind_header=pa/hpux-unwind.h
580 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
581 # Set the libgcc version number
582 if test x$ac_cv_sjlj_exceptions = xyes; then
583 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
585 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
587 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
588 tm_file="$tm_file pa/pa64-hpux-lib.h"
589 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
591 md_unwind_header=pa/hpux-unwind.h
594 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
595 # Set the libgcc version number
596 if test x$ac_cv_sjlj_exceptions = xyes; then
597 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
599 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
601 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
602 extra_parts="libgcc_stub.a"
603 md_unwind_header=pa/hpux-unwind.h
606 tmake_file="$tmake_file pa/t-openbsd"
608 i[34567]86-*-darwin*)
609 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
610 tm_file="$tm_file i386/darwin-lib.h"
611 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
614 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
615 tm_file="$tm_file i386/darwin-lib.h"
616 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
618 i[34567]86-*-elfiamcu)
619 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"
622 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
624 x86_64-*-elf* | x86_64-*-rtems*)
625 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
628 extra_parts="$extra_parts crti.o crtn.o"
633 tmake_file="$tmake_file t-libgcc-pic"
635 i[34567]86-*-dragonfly*)
636 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
637 md_unwind_header=i386/dragonfly-unwind.h
640 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
641 md_unwind_header=i386/dragonfly-unwind.h
643 i[34567]86-*-freebsd*)
644 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
645 md_unwind_header=i386/freebsd-unwind.h
648 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
649 md_unwind_header=i386/freebsd-unwind.h
651 i[34567]86-*-netbsdelf*)
652 tmake_file="${tmake_file} i386/t-crtstuff"
655 tmake_file="${tmake_file} i386/t-crtstuff"
657 i[34567]86-*-openbsd*)
662 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
663 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
664 tm_file="${tm_file} i386/elf-lib.h"
665 md_unwind_header=i386/linux-unwind.h
667 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
668 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
669 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
670 tm_file="${tm_file} i386/elf-lib.h"
673 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
674 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
675 tm_file="${tm_file} i386/elf-lib.h"
676 md_unwind_header=i386/linux-unwind.h
678 x86_64-*-kfreebsd*-gnu)
679 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
680 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
681 tm_file="${tm_file} i386/elf-lib.h"
683 i[34567]86-pc-msdosdjgpp*)
685 i[34567]86-*-lynxos*)
687 i[34567]86-*-nto-qnx*)
688 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
689 extra_parts=crtbegin.o
692 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
693 extra_parts="$extra_parts crti.o crtn.o"
695 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
696 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
697 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
698 tm_file="${tm_file} i386/elf-lib.h"
699 md_unwind_header=i386/sol2-unwind.h
701 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
703 i[34567]86-*-cygwin*)
704 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
705 if test x$enable_vtable_verify = xyes; then
706 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
708 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
709 if test x$ac_cv_sjlj_exceptions = xyes; then
710 tmake_eh_file="i386/t-sjlj-eh"
712 tmake_eh_file="i386/t-dw2-eh"
714 # Shared libgcc DLL install dir depends on cross/native build.
715 if test x${build} = x${host} ; then
716 tmake_dlldir_file="i386/t-dlldir"
718 tmake_dlldir_file="i386/t-dlldir-x"
720 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"
723 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
724 if test x$enable_vtable_verify = xyes; then
725 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
727 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
728 if test x$ac_cv_sjlj_exceptions = xyes; then
729 tmake_eh_file="i386/t-sjlj-eh"
730 elif test "${host_address}" = 32; then
731 # biarch -m32 with --disable-sjlj-exceptions
732 tmake_eh_file="i386/t-dw2-eh"
734 tmake_eh_file="i386/t-seh-eh"
736 # Shared libgcc DLL install dir depends on cross/native build.
737 if test x${build} = x${host} ; then
738 tmake_dlldir_file="i386/t-dlldir"
740 tmake_dlldir_file="i386/t-dlldir-x"
742 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
743 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"
746 extra_parts="crtbegin.o crtend.o crtfastmath.o"
747 if test x$enable_vtable_verify = xyes; then
748 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
750 case ${target_thread_file} in
752 tmake_file="$tmake_file i386/t-gthr-win32"
755 tmake_file="i386/t-mingw-pthread $tmake_file"
758 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
759 if test x$ac_cv_sjlj_exceptions = xyes; then
760 tmake_eh_file="i386/t-sjlj-eh"
762 tmake_eh_file="i386/t-dw2-eh"
763 md_unwind_header=i386/w32-unwind.h
765 # Shared libgcc DLL install dir depends on cross/native build.
766 if test x${build} = x${host} ; then
767 tmake_dlldir_file="i386/t-dlldir"
769 tmake_dlldir_file="i386/t-dlldir-x"
771 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"
774 case ${target_thread_file} in
776 tmake_file="$tmake_file i386/t-gthr-win32"
779 tmake_file="i386/t-mingw-pthread $tmake_file"
782 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
783 if test x$ac_cv_sjlj_exceptions = xyes; then
784 tmake_eh_file="i386/t-sjlj-eh"
785 elif test "${host_address}" = 32; then
786 # biarch -m32 with --disable-sjlj-exceptions
787 tmake_eh_file="i386/t-dw2-eh"
788 md_unwind_header=i386/w32-unwind.h
790 tmake_eh_file="i386/t-seh-eh"
792 # Shared libgcc DLL install dir depends on cross/native build.
793 if test x${build} = x${host} ; then
794 tmake_dlldir_file="i386/t-dlldir"
796 tmake_dlldir_file="i386/t-dlldir-x"
798 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"
799 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
800 if test x$enable_vtable_verify = xyes; then
801 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
805 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
806 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"
809 extra_parts="$extra_parts crtfastmath.o"
810 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"
813 # Don't use crtbeginT.o from *-*-linux* default.
814 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
815 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"
816 if test x$with_system_libunwind != xyes ; then
817 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
819 md_unwind_header=ia64/linux-unwind.h
822 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
825 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"
826 extra_parts="$extra_parts crtinitS.o"
827 md_unwind_header=ia64/vms-unwind.h
830 tmake_file="iq2000/t-iq2000 t-fdpbit"
835 extra_parts="$extra_parts crti.o crtn.o"
836 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
839 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
840 extra_parts="$extra_parts crti.o crtn.o"
843 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
844 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
847 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
848 extra_parts="$extra_parts crtinit.o crtfini.o"
854 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
857 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
859 m68k-*-elf* | fido-*-elf)
860 tmake_file="$tmake_file m68k/t-floatlib"
866 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
867 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
868 md_unwind_header=m68k/linux-unwind.h
870 m68k-*-linux*) # Motorola m68k's running GNU/Linux
871 # with ELF format using glibc 2
872 # aka the GNU/Linux C library 6.
873 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
874 # If not configured with setjmp/longjmp exceptions, bump the
875 # libgcc version number.
876 if test x$ac_cv_sjlj_exceptions != xyes; then
877 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
879 md_unwind_header=m68k/linux-unwind.h
882 tmake_file="$tmake_file m68k/t-floatlib"
883 extra_parts="$extra_parts crti.o crtn.o"
886 tmake_file="mcore/t-mcore t-fdpbit"
887 extra_parts="$extra_parts crti.o crtn.o"
890 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
893 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
894 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
896 microblaze*-*-rtems*)
897 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
898 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
900 mips*-*-netbsd*) # NetBSD/mips, either endian.
902 mips*-*-linux*) # Linux MIPS, either endian.
903 extra_parts="$extra_parts crtfastmath.o"
904 tmake_file="${tmake_file} t-crtfm"
906 mips64r5900* | mipsr5900*)
907 # The MIPS16 support code uses floating point
908 # instructions that are not supported on r5900.
911 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
914 md_unwind_header=mips/linux-unwind.h
917 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
918 case "${with_newlib}" in
923 # MIPS toolkit libraries.
924 tmake_file="$tmake_file mips/t-sdemtk"
927 extra_parts="$extra_parts crti.o crtn.o"
929 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
930 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
931 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
932 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
933 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
934 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
935 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
936 extra_parts="$extra_parts crti.o crtn.o"
938 mipsisa64sr71k-*-elf*)
939 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
940 extra_parts="$extra_parts crti.o crtn.o"
942 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
943 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
944 extra_parts="$extra_parts crti.o crtn.o"
946 mips-*-elf* | mipsel-*-elf*)
947 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
948 extra_parts="$extra_parts crti.o crtn.o"
950 mipsr5900-*-elf* | mipsr5900el-*-elf*)
951 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
952 extra_parts="$extra_parts crti.o crtn.o"
954 mips64-*-elf* | mips64el-*-elf*)
955 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
956 extra_parts="$extra_parts crti.o crtn.o"
958 mips64r5900-*-elf* | mips64r5900el-*-elf*)
959 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
960 extra_parts="$extra_parts crti.o crtn.o"
962 mips64vr-*-elf* | mips64vrel-*-elf*)
963 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
964 extra_parts="$extra_parts crti.o crtn.o"
966 mips64orion-*-elf* | mips64orionel-*-elf*)
967 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
968 extra_parts="$extra_parts crti.o crtn.o"
971 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
972 extra_parts="$extra_parts crti.o crtn.o"
976 mipstx39-*-elf* | mipstx39el-*-elf*)
977 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
980 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
981 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
986 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
987 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
988 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
991 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
992 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
995 # Basic makefile fragment and extra_parts for crt stuff.
996 # We also append c-isr library implementation.
997 tmake_file="${tmake_file} t-slibgcc-libgcc"
998 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
999 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1000 md_unwind_header=nds32/linux-unwind.h
1001 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1002 case "${with_nds32_lib}" in
1003 "" | glibc | uclibc )
1006 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1012 # Basic makefile fragment and extra_parts for crt stuff.
1013 # We also append c-isr library implementation.
1014 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1015 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1016 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1017 case "${with_nds32_lib}" in
1019 # Append library definition makefile fragment t-nds32-newlib.
1020 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1021 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1024 # Append library definition makefile fragment t-nds32-mculib.
1025 # The software floating point library is included in mculib.
1026 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1029 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1035 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
1036 md_unwind_header=nios2/linux-unwind.h
1039 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1040 extra_parts="$extra_parts crti.o crtn.o"
1043 tmake_file="pdp11/t-pdp11 t-fdpbit"
1047 *-*-darwin9* | *-*-darwin[12][0-9]*)
1048 # libSystem contains unwind information for signal frames since
1052 md_unwind_header=rs6000/darwin-unwind.h
1055 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
1056 extra_parts="$extra_parts crt2.o"
1058 powerpc64-*-darwin*)
1059 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1060 extra_parts="$extra_parts crt2.o"
1062 powerpc*-*-freebsd*)
1063 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1064 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1067 tmake_file="${tmake_file} rs6000/t-freebsd64"
1068 md_unwind_header=rs6000/freebsd-unwind.h
1073 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1076 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1077 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1079 powerpc-*-eabisimaltivec*)
1080 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1081 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1084 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1085 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1088 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1089 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1091 powerpc-*-eabialtivec*)
1092 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1093 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1095 powerpc-xilinx-eabi*)
1096 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1097 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1100 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1101 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1104 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1105 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1108 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"
1109 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1110 case $ppc_fp_type in
1114 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1117 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1120 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1123 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1126 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1131 if test $libgcc_cv_powerpc_float128 = yes; then
1132 tmake_file="${tmake_file} rs6000/t-float128"
1135 if test $libgcc_cv_powerpc_float128_hw = yes; then
1136 tmake_file="${tmake_file} rs6000/t-float128-hw"
1139 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1140 md_unwind_header=rs6000/linux-unwind.h
1142 powerpc-wrs-vxworks*)
1143 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
1144 extra_parts="$extra_parts crtbegin.o crtend.o"
1147 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1150 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1151 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1153 powerpcle-*-eabisim*)
1154 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1155 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1158 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1159 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1162 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1163 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1164 md_unwind_header=riscv/linux-unwind.h
1167 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1168 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1171 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1172 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1174 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1175 md_unwind_header=rs6000/aix-unwind.h
1176 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1178 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1179 md_unwind_header=rs6000/aix-unwind.h
1180 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1182 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1183 md_unwind_header=rs6000/aix-unwind.h
1184 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1185 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
1188 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1191 tmake_file="rx/t-rx t-fdpbit"
1192 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1195 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1196 md_unwind_header=s390/linux-unwind.h
1199 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1200 if test "${host_address}" = 32; then
1201 tmake_file="${tmake_file} s390/32/t-floattodi"
1203 md_unwind_header=s390/linux-unwind.h
1206 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
1207 extra_parts="crtbeginS.o crtendS.o"
1208 md_unwind_header=s390/tpf-unwind.h
1210 sh-*-elf* | sh[12346l]*-*-elf*)
1211 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1212 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1213 libic_invalidate_array_4-100.a \
1214 libic_invalidate_array_4-200.a \
1215 libic_invalidate_array_4a.a \
1216 libgcc-Os-4-200.a libgcc-4-300.a"
1219 tmake_file="$tmake_file sh/t-superh"
1220 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1224 sh-*-linux* | sh[2346lbe]*-*-linux*)
1225 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1226 md_unwind_header=sh/linux-unwind.h
1228 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1229 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1231 # NetBSD's C library includes a fast software FP library that
1232 # has support for setting/setting the rounding mode, exception
1233 # mask, etc. Therefore, we don't want to include software FP
1237 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1238 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1239 libic_invalidate_array_4-100.a \
1240 libic_invalidate_array_4-200.a \
1241 libic_invalidate_array_4a.a \
1242 libgcc-Os-4-200.a libgcc-4-300.a"
1245 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1256 tmake_file="sparc/t-softmul"
1259 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1260 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1262 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1263 tmake_file="${tmake_file} t-crtfm"
1264 if test "${host_address}" = 64; then
1265 tmake_file="$tmake_file sparc/t-linux64"
1269 tmake_file="${tmake_file} t-fdpbit"
1272 tmake_file="${tmake_file} sparc/t-linux"
1279 if test "${host_address}" = 32; then
1280 tmake_file="$tmake_file sparc/t-softmul"
1284 extra_parts="$extra_parts crtfastmath.o"
1285 md_unwind_header=sparc/linux-unwind.h
1288 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1289 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1292 tmake_file="$tmake_file t-crtfm"
1293 extra_parts="$extra_parts crtfastmath.o"
1294 md_unwind_header=sparc/sol2-unwind.h
1297 tmake_file="${tmake_file} t-crtfm"
1298 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1301 tmake_file="$tmake_file t-crtfm"
1302 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1306 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1307 tmake_file="$tmake_file t-crtfm"
1308 extra_parts="$extra_parts crtfastmath.o"
1310 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1311 extra_parts="$extra_parts crtfastmath.o"
1312 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1313 if test "${host_address}" = 64; then
1314 tmake_file="${tmake_file} sparc/t-linux64"
1316 if test "${host_address}" = 32; then
1317 tmake_file="${tmake_file} sparc/t-softmul"
1319 md_unwind_header=sparc/linux-unwind.h
1324 tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
1325 extra_parts="$extra_parts \
1326 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1327 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1328 libgcc_cache64k.a libgcc_cache128k.a"
1331 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1332 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1333 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1334 tm_file="$tm_file c6x/c6x-abi.h"
1335 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1336 unwind_header=config/c6x/unwind-c6x.h
1339 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1340 tm_file="$tm_file c6x/c6x-abi.h"
1341 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1342 unwind_header=config/c6x/unwind-c6x.h
1345 if test "${host_address}" = 64; then
1346 tmake_file="${tmake_file} tilegx/t-softfp"
1348 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1349 md_unwind_header=tilepro/linux-unwind.h
1352 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1353 md_unwind_header=tilepro/linux-unwind.h
1356 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1359 tmake_file="$tmake_file vax/t-linux"
1366 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1367 tmake_file="visium/t-visium t-fdpbit"
1370 tmake_file="stormy16/t-stormy16 t-fdpbit"
1373 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1374 extra_parts="$extra_parts crti.o crtn.o"
1377 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1378 md_unwind_header=xtensa/linux-unwind.h
1381 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1382 md_unwind_header=xtensa/linux-unwind.h
1383 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1386 # Don't need crtbeginT.o from *-*-linux* default.
1387 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1388 tmake_file="$tmake_file t-fdpbit"
1390 m32c-*-elf*|m32c-*-rtems*)
1391 tmake_file="$tmake_file m32c/t-m32c"
1394 tmake_file="$tmake_file nvptx/t-nvptx"
1395 extra_parts="crt0.o"
1398 echo "*** Configuration ${host} not supported" 1>&2
1404 i[34567]86-*-* | x86_64-*-*)
1407 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1410 tmake_file="${tmake_file} i386/t-cpuinfo"
1417 i[34567]86-*-linux* | x86_64-*-linux* | \
1418 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1420 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1421 if test "$libgcc_cv_cfi" = "yes"; then
1422 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1428 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1429 # These use soft-fp for SFmode and DFmode, not just TFmode.
1431 i[34567]86-*-* | x86_64-*-*)
1432 tmake_file="${tmake_file} t-softfp-tf"
1433 if test "${host_address}" = 32; then
1434 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1436 tmake_file="${tmake_file} i386/t-softfp t-softfp"
1441 i[34567]86-*-linux* | x86_64-*-linux*)
1442 # Provide backward binary compatibility for 64bit Linux/x86.
1443 if test "${host_address}" = 64; then
1444 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1446 tm_file="${tm_file} i386/value-unwind.h"
1449 # ILP32 needs an extra header for unwinding
1450 tm_file="${tm_file} aarch64/value-unwind.h"