1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2019 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/-.*$//'`
96 tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
125 moxie*) cpu_type=moxie
150 # All MIPS targets provide a full set of FP routines.
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"
156 tmake_file="${tmake_file} t-softfp-sfdf"
158 if test "${ac_cv_sizeof_long_double}" = 16; then
159 tmake_file="${tmake_file} mips/t-softfp-tf"
161 if test "${host_address}" = 64; then
162 tmake_file="${tmake_file} mips/t-mips64"
164 tmake_file="${tmake_file} t-softfp"
195 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
196 sh[123456789lbe]*-*-*)
213 # Common parts for widely ported systems.
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"
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"
226 # This is the generic ELF configuration of FreeBSD. Later
227 # machine-specific sections may refine and add to this
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
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.
237 *-*-freebsd[34] | *-*-freebsd[34].*)
238 tmake_file="${tmake_file} t-slibgcc-nolc-override"
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"
248 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
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"
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"
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"
266 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
267 case ${target_thread_file} in
269 tmake_file="$tmake_file t-openbsd-thread"
274 tmake_file="$tmake_file t-rtems"
275 extra_parts="crtbegin.o crtend.o"
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"
284 tmake_file="$tmake_file t-slibgcc-sld"
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"
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.
302 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
303 extra_parts="$extra_parts crt1.o gcrt1.o"
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"
312 extra_parts="crtbegin.o crtend.o"
315 tmake_file="vms/t-vms"
316 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
319 tmake_file=t-vxworks7
325 extra_parts="crtbegin.o crtend.o"
330 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
332 enable_execute_stack=enable-execute-stack-mprotect.c
334 i[34567]86-*-mingw* | x86_64-*-mingw*)
335 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
337 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
338 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
341 enable_execute_stack=enable-execute-stack-empty.c;
346 aarch64*-*-elf | aarch64*-*-rtems*)
347 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
348 extra_parts="$extra_parts crtfastmath.o"
349 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
350 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
351 md_unwind_header=aarch64/aarch64-unwind.h
354 extra_parts="$extra_parts crtfastmath.o"
355 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
356 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
357 md_unwind_header=aarch64/freebsd-unwind.h
360 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
361 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
364 extra_parts="$extra_parts crtfastmath.o"
365 md_unwind_header=aarch64/linux-unwind.h
366 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
367 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
370 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
371 extra_parts="$extra_parts crtfastmath.o"
372 md_unwind_header=alpha/linux-unwind.h
375 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
376 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
379 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
382 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
385 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
386 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
387 md_unwind_header=alpha/vms-unwind.h
390 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
391 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
392 md_unwind_header=alpha/vms-unwind.h
395 tmake_file="$tmake_file gcn/t-amdgcn"
399 tmake_file="arc/t-arc"
400 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
401 extra_parts="$extra_parts crttls.o"
404 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
405 extra_parts="$extra_parts crti.o crtn.o"
406 extra_parts="$extra_parts crttls.o"
407 md_unwind_header=arc/linux-unwind.h
409 arm-wrs-vxworks|arm-wrs-vxworks7)
410 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
411 extra_parts="$extra_parts crti.o crtn.o"
414 # Note that arm/t-bpabi will reset the LIB2ADDEH macro.
415 # This is intentional.
416 tmake_file="$tmake_file arm/t-bpabi arm/t-vxworks7"
417 tm_file="$tm_file arm/bpabi-lib.h"
418 unwind_header=config/arm/unwind-arm.h
422 arm*-*-freebsd*) # ARM FreeBSD EABI
423 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
424 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
425 tm_file="${tm_file} arm/bpabi-lib.h"
426 unwind_header=config/arm/unwind-arm.h
427 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
430 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
431 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
432 tm_file="${tm_file} arm/bpabi-lib.h"
433 unwind_header=config/arm/unwind-arm.h
436 tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover"
438 arm*-*-linux*) # ARM GNU/Linux with ELF
439 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
440 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
441 tm_file="$tm_file arm/bpabi-lib.h"
442 unwind_header=config/arm/unwind-arm.h
443 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
444 extra_parts="$extra_parts crtfastmath.o"
446 arm*-*-uclinux*) # ARM ucLinux
447 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
448 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
449 tmake_file="${tmake_file} arm/t-bpabi"
450 tm_file="$tm_file arm/bpabi-lib.h"
451 unwind_header=config/arm/unwind-arm.h
452 extra_parts="$extra_parts crti.o crtn.o"
455 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
456 tmake_file="${tmake_file} arm/t-bpabi"
457 tm_file="$tm_file arm/bpabi-lib.h"
458 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
459 unwind_header=config/arm/unwind-arm.h
461 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
462 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
463 tm_file="$tm_file arm/bpabi-lib.h"
465 arm*-*-eabi* | arm*-*-rtems*)
466 tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
467 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
470 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
471 tm_file="$tm_file arm/symbian-lib.h"
472 # Symbian OS provides its own startup code.
475 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
476 extra_parts="$extra_parts crtfastmath.o"
477 unwind_header=config/arm/unwind-arm.h
480 # Make HImode functions for AVR
481 tmake_file="${cpu_type}/t-avr t-fpbit"
482 if test x${with_avrlibc} != xno; then
483 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
485 tm_file="$tm_file avr/avr-lib.h"
488 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
489 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
492 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
493 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
494 md_unwind_header=bfin/linux-unwind.h
497 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
498 # No need to build crtbeginT.o on uClibc systems. Should probably
499 # be moved to the OS specific section above.
500 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
501 md_unwind_header=bfin/linux-unwind.h
504 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
505 extra_parts="$extra_parts crti.o crtn.o"
508 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
509 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
512 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
513 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
516 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
519 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
521 cris-*-linux* | crisv32-*-linux*)
522 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
525 tmake_file="csky/t-csky t-fdpbit"
526 extra_parts="$extra_parts crti.o crtn.o"
529 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
530 extra_parts="$extra_parts crti.o crtn.o"
531 md_unwind_header=csky/linux-unwind.h
533 epiphany-*-elf* | epiphany-*-rtems*)
534 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
535 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
538 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
539 extra_parts="$extra_parts crti.o crtn.o"
542 tmake_file="$tmake_file frv/t-frv t-fdpbit"
543 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
544 # Don't use crtbegin.o, crtend.o.
545 extra_parts="frvbegin.o frvend.o"
548 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
549 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
552 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
553 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
556 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
557 tm_file="$tm_file h8300/h8300-lib.h"
558 extra_parts="$extra_parts crti.o crtn.o"
561 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
562 tm_file="$tm_file h8300/h8300-lib.h"
565 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
566 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
569 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
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 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
577 md_unwind_header=pa/linux-unwind.h
580 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 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 md_unwind_header=pa/hpux-unwind.h
591 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
592 # Set the libgcc version number
593 if test x$ac_cv_sjlj_exceptions = xyes; then
594 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
596 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
598 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
599 tm_file="$tm_file pa/pa64-hpux-lib.h"
600 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
602 md_unwind_header=pa/hpux-unwind.h
605 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
606 # Set the libgcc version number
607 if test x$ac_cv_sjlj_exceptions = xyes; then
608 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
610 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
612 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
613 extra_parts="libgcc_stub.a"
614 md_unwind_header=pa/hpux-unwind.h
617 tmake_file="$tmake_file pa/t-openbsd"
619 i[34567]86-*-darwin*)
620 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
621 tm_file="$tm_file i386/darwin-lib.h"
622 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
625 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
626 tm_file="$tm_file i386/darwin-lib.h"
627 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
629 i[34567]86-*-elfiamcu)
630 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"
633 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
635 x86_64-*-elf* | x86_64-*-rtems*)
636 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
639 extra_parts="$extra_parts crti.o crtn.o"
644 tmake_file="$tmake_file t-libgcc-pic"
646 i[34567]86-*-dragonfly*)
647 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
648 md_unwind_header=i386/dragonfly-unwind.h
651 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
652 md_unwind_header=i386/dragonfly-unwind.h
654 i[34567]86-*-freebsd*)
655 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
656 md_unwind_header=i386/freebsd-unwind.h
659 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
660 md_unwind_header=i386/freebsd-unwind.h
662 i[34567]86-*-netbsdelf*)
663 tmake_file="${tmake_file} i386/t-crtstuff"
666 tmake_file="${tmake_file} i386/t-crtstuff"
668 i[34567]86-*-openbsd*)
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 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-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"
684 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
685 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
686 tm_file="${tm_file} i386/elf-lib.h"
687 md_unwind_header=i386/linux-unwind.h
689 x86_64-*-kfreebsd*-gnu)
690 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
691 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
692 tm_file="${tm_file} i386/elf-lib.h"
694 i[34567]86-pc-msdosdjgpp*)
696 i[34567]86-*-lynxos*)
698 i[34567]86-*-nto-qnx*)
699 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
700 extra_parts=crtbegin.o
703 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
704 extra_parts="$extra_parts crti.o crtn.o"
706 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
707 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
708 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
709 tm_file="${tm_file} i386/elf-lib.h"
710 md_unwind_header=i386/sol2-unwind.h
712 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
714 i[34567]86-*-cygwin*)
715 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
716 if test x$enable_vtable_verify = xyes; then
717 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
719 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
720 if test x$ac_cv_sjlj_exceptions = xyes; then
721 tmake_eh_file="i386/t-sjlj-eh"
723 tmake_eh_file="i386/t-dw2-eh"
725 # Shared libgcc DLL install dir depends on cross/native build.
726 if test x${build} = x${host} ; then
727 tmake_dlldir_file="i386/t-dlldir"
729 tmake_dlldir_file="i386/t-dlldir-x"
731 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"
734 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
735 if test x$enable_vtable_verify = xyes; then
736 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
738 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
739 if test x$ac_cv_sjlj_exceptions = xyes; then
740 tmake_eh_file="i386/t-sjlj-eh"
741 elif test "${host_address}" = 32; then
742 # biarch -m32 with --disable-sjlj-exceptions
743 tmake_eh_file="i386/t-dw2-eh"
745 tmake_eh_file="i386/t-seh-eh"
747 # Shared libgcc DLL install dir depends on cross/native build.
748 if test x${build} = x${host} ; then
749 tmake_dlldir_file="i386/t-dlldir"
751 tmake_dlldir_file="i386/t-dlldir-x"
753 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
754 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"
757 extra_parts="crtbegin.o crtend.o crtfastmath.o"
758 if test x$enable_vtable_verify = xyes; then
759 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
761 case ${target_thread_file} in
763 tmake_file="$tmake_file i386/t-gthr-win32"
766 tmake_file="i386/t-mingw-pthread $tmake_file"
769 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
770 if test x$ac_cv_sjlj_exceptions = xyes; then
771 tmake_eh_file="i386/t-sjlj-eh"
773 tmake_eh_file="i386/t-dw2-eh"
774 md_unwind_header=i386/w32-unwind.h
776 # Shared libgcc DLL install dir depends on cross/native build.
777 if test x${build} = x${host} ; then
778 tmake_dlldir_file="i386/t-dlldir"
780 tmake_dlldir_file="i386/t-dlldir-x"
782 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"
785 case ${target_thread_file} in
787 tmake_file="$tmake_file i386/t-gthr-win32"
790 tmake_file="i386/t-mingw-pthread $tmake_file"
793 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
794 if test x$ac_cv_sjlj_exceptions = xyes; then
795 tmake_eh_file="i386/t-sjlj-eh"
796 elif test "${host_address}" = 32; then
797 # biarch -m32 with --disable-sjlj-exceptions
798 tmake_eh_file="i386/t-dw2-eh"
799 md_unwind_header=i386/w32-unwind.h
801 tmake_eh_file="i386/t-seh-eh"
803 # Shared libgcc DLL install dir depends on cross/native build.
804 if test x${build} = x${host} ; then
805 tmake_dlldir_file="i386/t-dlldir"
807 tmake_dlldir_file="i386/t-dlldir-x"
809 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"
810 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
811 if test x$enable_vtable_verify = xyes; then
812 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
816 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
817 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"
820 extra_parts="$extra_parts crtfastmath.o"
821 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"
824 # Don't use crtbeginT.o from *-*-linux* default.
825 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
826 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"
827 if test x$with_system_libunwind != xyes ; then
828 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
830 md_unwind_header=ia64/linux-unwind.h
833 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
836 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"
837 extra_parts="$extra_parts crtinitS.o"
838 md_unwind_header=ia64/vms-unwind.h
841 tmake_file="iq2000/t-iq2000 t-fdpbit"
846 extra_parts="$extra_parts crti.o crtn.o"
847 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
850 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
851 extra_parts="$extra_parts crti.o crtn.o"
854 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
855 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
858 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
859 extra_parts="$extra_parts crtinit.o crtfini.o"
865 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
868 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
870 m68k-*-elf* | fido-*-elf)
871 tmake_file="$tmake_file m68k/t-floatlib"
877 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
878 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
879 md_unwind_header=m68k/linux-unwind.h
881 m68k-*-linux*) # Motorola m68k's running GNU/Linux
882 # with ELF format using glibc 2
883 # aka the GNU/Linux C library 6.
884 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
885 # If not configured with setjmp/longjmp exceptions, bump the
886 # libgcc version number.
887 if test x$ac_cv_sjlj_exceptions != xyes; then
888 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
890 md_unwind_header=m68k/linux-unwind.h
893 tmake_file="$tmake_file m68k/t-floatlib"
894 extra_parts="$extra_parts crti.o crtn.o"
897 tmake_file="mcore/t-mcore t-fdpbit"
898 extra_parts="$extra_parts crti.o crtn.o"
901 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
904 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
905 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
907 microblaze*-*-rtems*)
908 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
909 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
911 mips*-*-netbsd*) # NetBSD/mips, either endian.
913 mips*-*-linux*) # Linux MIPS, either endian.
914 extra_parts="$extra_parts crtfastmath.o"
915 tmake_file="${tmake_file} t-crtfm"
917 mips64r5900* | mipsr5900*)
918 # The MIPS16 support code uses floating point
919 # instructions that are not supported on r5900.
922 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
925 md_unwind_header=mips/linux-unwind.h
928 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
929 case "${with_newlib}" in
934 # MIPS toolkit libraries.
935 tmake_file="$tmake_file mips/t-sdemtk"
938 extra_parts="$extra_parts crti.o crtn.o"
940 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
941 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
942 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
943 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
944 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
945 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
946 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
947 extra_parts="$extra_parts crti.o crtn.o"
949 mipsisa64sr71k-*-elf*)
950 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
951 extra_parts="$extra_parts crti.o crtn.o"
953 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
954 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
955 extra_parts="$extra_parts crti.o crtn.o"
957 mips-*-elf* | mipsel-*-elf*)
958 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
959 extra_parts="$extra_parts crti.o crtn.o"
961 mipsr5900-*-elf* | mipsr5900el-*-elf*)
962 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
963 extra_parts="$extra_parts crti.o crtn.o"
965 mips64-*-elf* | mips64el-*-elf*)
966 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
967 extra_parts="$extra_parts crti.o crtn.o"
969 mips64r5900-*-elf* | mips64r5900el-*-elf*)
970 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
971 extra_parts="$extra_parts crti.o crtn.o"
973 mips64vr-*-elf* | mips64vrel-*-elf*)
974 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
975 extra_parts="$extra_parts crti.o crtn.o"
977 mips64orion-*-elf* | mips64orionel-*-elf*)
978 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
979 extra_parts="$extra_parts crti.o crtn.o"
982 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
983 extra_parts="$extra_parts crti.o crtn.o"
987 mipstx39-*-elf* | mipstx39el-*-elf*)
988 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
991 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
992 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
997 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
998 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
999 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1002 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1003 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1006 # Basic makefile fragment and extra_parts for crt stuff.
1007 # We also append c-isr library implementation.
1008 tmake_file="${tmake_file} t-slibgcc-libgcc"
1009 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1010 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1011 md_unwind_header=nds32/linux-unwind.h
1012 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1013 case "${with_nds32_lib}" in
1014 "" | glibc | uclibc )
1017 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1023 # Basic makefile fragment and extra_parts for crt stuff.
1024 # We also append c-isr library implementation.
1025 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1026 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1027 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1028 case "${with_nds32_lib}" in
1030 # Append library definition makefile fragment t-nds32-newlib.
1031 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1032 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1035 # Append library definition makefile fragment t-nds32-mculib.
1036 # The software floating point library is included in mculib.
1037 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1040 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1046 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
1047 md_unwind_header=nios2/linux-unwind.h
1050 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1051 extra_parts="$extra_parts crti.o crtn.o"
1054 tmake_file="$tmake_file or1k/t-or1k"
1055 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1056 md_unwind_header=or1k/linux-unwind.h
1059 tmake_file="$tmake_file or1k/t-or1k"
1060 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1063 tmake_file="pdp11/t-pdp11 t-fdpbit"
1067 *-*-darwin9* | *-*-darwin[12][0-9]*)
1068 # libSystem contains unwind information for signal frames since
1072 md_unwind_header=rs6000/darwin-unwind.h
1075 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
1076 extra_parts="$extra_parts crt2.o"
1078 powerpc64-*-darwin*)
1079 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1080 extra_parts="$extra_parts crt2.o"
1082 powerpc*-*-freebsd*)
1083 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1084 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1087 tmake_file="${tmake_file} rs6000/t-freebsd64"
1088 md_unwind_header=rs6000/freebsd-unwind.h
1093 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1096 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr 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"
1099 powerpc-*-eabisimaltivec*)
1100 tmake_file="${tmake_file} rs6000/t-ppccomm 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-crtstuff t-crtstuff-pic t-fdpbit"
1105 extra_parts="$extra_parts crtbegin.o crtend.o 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 t-crtstuff-pic t-fdpbit"
1109 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1111 powerpc-*-eabialtivec*)
1112 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1113 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1115 powerpc-xilinx-eabi*)
1116 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1117 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1120 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1121 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1124 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1125 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1128 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"
1129 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1130 case $ppc_fp_type in
1134 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1137 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1140 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1143 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1146 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1151 if test $libgcc_cv_powerpc_float128 = yes; then
1152 tmake_file="${tmake_file} rs6000/t-float128"
1155 if test $libgcc_cv_powerpc_float128_hw = yes; then
1156 tmake_file="${tmake_file} rs6000/t-float128-hw"
1159 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1160 md_unwind_header=rs6000/linux-unwind.h
1162 powerpc-wrs-vxworks*)
1163 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
1164 extra_parts="$extra_parts crtbegin.o crtend.o"
1167 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1170 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1171 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1173 powerpcle-*-eabisim*)
1174 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1175 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1178 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1179 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1182 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1183 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1184 md_unwind_header=riscv/linux-unwind.h
1187 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1188 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1191 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1192 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1194 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1195 md_unwind_header=rs6000/aix-unwind.h
1196 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1198 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1199 md_unwind_header=rs6000/aix-unwind.h
1200 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1202 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1203 md_unwind_header=rs6000/aix-unwind.h
1204 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1205 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
1208 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1211 tmake_file="rx/t-rx t-fdpbit"
1212 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1215 tmake_file="rx/t-rx t-fdpbit"
1216 tm_file="$tm_file rx/rx-lib.h"
1219 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1220 md_unwind_header=s390/linux-unwind.h
1223 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1224 if test "${host_address}" = 32; then
1225 tmake_file="${tmake_file} s390/32/t-floattodi"
1227 md_unwind_header=s390/linux-unwind.h
1230 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
1231 extra_parts="crtbeginS.o crtendS.o"
1232 md_unwind_header=s390/tpf-unwind.h
1234 sh-*-elf* | sh[12346l]*-*-elf*)
1235 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1236 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1237 libic_invalidate_array_4-100.a \
1238 libic_invalidate_array_4-200.a \
1239 libic_invalidate_array_4a.a \
1240 libgcc-Os-4-200.a libgcc-4-300.a"
1243 tmake_file="$tmake_file sh/t-superh"
1244 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1248 sh-*-linux* | sh[2346lbe]*-*-linux*)
1249 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1250 md_unwind_header=sh/linux-unwind.h
1252 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1253 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1255 # NetBSD's C library includes a fast software FP library that
1256 # has support for setting/setting the rounding mode, exception
1257 # mask, etc. Therefore, we don't want to include software FP
1261 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1262 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1263 libic_invalidate_array_4-100.a \
1264 libic_invalidate_array_4-200.a \
1265 libic_invalidate_array_4a.a \
1266 libgcc-Os-4-200.a libgcc-4-300.a"
1269 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1280 tmake_file="sparc/t-softmul"
1283 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1284 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1286 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1287 tmake_file="${tmake_file} t-crtfm"
1288 if test "${host_address}" = 64; then
1289 tmake_file="$tmake_file sparc/t-linux64"
1293 tmake_file="${tmake_file} t-fdpbit"
1296 tmake_file="${tmake_file} sparc/t-linux"
1303 if test "${host_address}" = 32; then
1304 tmake_file="$tmake_file sparc/t-softmul"
1308 extra_parts="$extra_parts crtfastmath.o"
1309 md_unwind_header=sparc/linux-unwind.h
1312 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1313 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1316 tmake_file="$tmake_file t-crtfm"
1317 extra_parts="$extra_parts crtfastmath.o"
1318 md_unwind_header=sparc/sol2-unwind.h
1321 tmake_file="${tmake_file} t-crtfm"
1322 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1325 tmake_file="$tmake_file t-crtfm"
1326 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1330 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1331 tmake_file="$tmake_file t-crtfm"
1332 extra_parts="$extra_parts crtfastmath.o"
1334 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1335 extra_parts="$extra_parts crtfastmath.o"
1336 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1337 if test "${host_address}" = 64; then
1338 tmake_file="${tmake_file} sparc/t-linux64"
1340 if test "${host_address}" = 32; then
1341 tmake_file="${tmake_file} sparc/t-softmul"
1343 md_unwind_header=sparc/linux-unwind.h
1348 tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
1349 extra_parts="$extra_parts \
1350 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1351 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1352 libgcc_cache64k.a libgcc_cache128k.a"
1355 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1356 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1357 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1358 tm_file="$tm_file c6x/c6x-abi.h"
1359 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1360 unwind_header=config/c6x/unwind-c6x.h
1363 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1364 tm_file="$tm_file c6x/c6x-abi.h"
1365 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1366 unwind_header=config/c6x/unwind-c6x.h
1369 if test "${host_address}" = 64; then
1370 tmake_file="${tmake_file} tilegx/t-softfp"
1372 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1373 md_unwind_header=tilepro/linux-unwind.h
1376 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1377 md_unwind_header=tilepro/linux-unwind.h
1380 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1383 tmake_file="$tmake_file vax/t-linux"
1390 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1391 tmake_file="visium/t-visium t-fdpbit"
1394 tmake_file="stormy16/t-stormy16 t-fdpbit"
1397 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1398 extra_parts="$extra_parts crti.o crtn.o"
1401 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1402 md_unwind_header=xtensa/linux-unwind.h
1405 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1406 md_unwind_header=xtensa/linux-unwind.h
1407 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1410 # Don't need crtbeginT.o from *-*-linux* default.
1411 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1412 tmake_file="$tmake_file t-fdpbit"
1414 m32c-*-elf*|m32c-*-rtems*)
1415 tmake_file="$tmake_file m32c/t-m32c"
1418 tmake_file="$tmake_file nvptx/t-nvptx"
1419 extra_parts="crt0.o"
1422 echo "*** Configuration ${host} not supported" 1>&2
1428 i[34567]86-*-* | x86_64-*-*)
1431 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1434 tmake_file="${tmake_file} i386/t-cpuinfo"
1441 i[34567]86-*-linux* | x86_64-*-linux* | \
1442 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1444 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1445 if test "$libgcc_cv_cfi" = "yes"; then
1446 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1452 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1453 # These use soft-fp for SFmode and DFmode, not just TFmode.
1455 i[34567]86-*-* | x86_64-*-*)
1456 tmake_file="${tmake_file} t-softfp-tf"
1457 if test "${host_address}" = 32; then
1458 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1460 tmake_file="${tmake_file} i386/t-softfp t-softfp"
1465 i[34567]86-*-linux* | x86_64-*-linux*)
1466 # Provide backward binary compatibility for 64bit Linux/x86.
1467 if test "${host_address}" = 64; then
1468 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1470 tm_file="${tm_file} i386/value-unwind.h"
1473 # ILP32 needs an extra header for unwinding
1474 tm_file="${tm_file} aarch64/value-unwind.h"