1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2022 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
143 tmake_file="loongarch/t-loongarch"
144 if test "${libgcc_cv_loongarch_hard_float}" = yes; then
145 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
147 tmake_file="${tmake_file} t-softfp-sfdf"
149 if test "${ac_cv_sizeof_long_double}" = 16; then
150 tmake_file="${tmake_file} loongarch/t-softfp-tf"
152 if test "${host_address}" = 64; then
153 tmake_file="${tmake_file} loongarch/t-loongarch64"
155 tmake_file="${tmake_file} t-softfp"
166 # All MIPS targets provide a full set of FP routines.
168 tmake_file="mips/t-mips"
169 if test "${libgcc_cv_mips_hard_float}" = yes; then
170 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
172 tmake_file="${tmake_file} t-softfp-sfdf"
174 if test "${ac_cv_sizeof_long_double}" = 16; then
175 tmake_file="${tmake_file} mips/t-softfp-tf"
177 if test "${host_address}" = 64; then
178 tmake_file="${tmake_file} mips/t-mips64"
180 tmake_file="${tmake_file} t-softfp"
211 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
212 sh[123456789lbe]*-*-*)
229 # Common parts for widely ported systems.
232 asm_hidden_op=.private_extern
233 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic"
234 # The unwinder is provided by the system shared libraries, do not add one
235 # to the shared libgcc but, for older systems, we build a shared unwinder
236 # separately so that we can construct a libgcc_s.1 to use for binaries
237 # linked against the old libgcc_ext.10.x stubs.
239 *-*-darwin[89]* | *-*-darwin10*)
240 tmake_file="$tmake_file t-darwin-ehs ${cpu_type}/t-darwin-ehs"
243 tmake_file="$tmake_file t-slibgcc-darwin"
244 extra_parts="crt3.o libd10-uwfef.a crttms.o crttme.o libemutls_w.a"
247 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
248 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
249 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
252 # This is the generic ELF configuration of FreeBSD. Later
253 # machine-specific sections may refine and add to this
255 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"
256 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
257 case ${target_thread_file} in
259 tmake_file="${tmake_file} t-freebsd-thread"
260 # Before 5.0, FreeBSD can't bind shared libraries to -lc
261 # when "optionally" threaded via weak pthread_* checks.
263 *-*-freebsd[34] | *-*-freebsd[34].*)
264 tmake_file="${tmake_file} t-slibgcc-nolc-override"
271 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
272 extra_parts="crtbegin.o crtend.o"
274 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
275 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"
276 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
277 if test x$enable_vtable_verify = xyes; then
278 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
282 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
283 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
286 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
287 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
288 tmake_file="$tmake_file t-slibgcc-libgcc"
289 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
292 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
293 case ${target_thread_file} in
295 tmake_file="$tmake_file t-openbsd-thread"
300 tmake_file="$tmake_file t-rtems"
301 extra_parts="crtbegin.o crtend.o"
304 # Unless linker support and dl_iterate_phdr are present,
305 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
306 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
307 if test $with_gnu_ld = yes; then
308 tmake_file="$tmake_file t-slibgcc-gld"
310 tmake_file="$tmake_file t-slibgcc-sld"
312 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
313 tmake_file="$tmake_file $cpu_type/t-sol2"
314 extra_parts="gmon.o crtbegin.o crtend.o"
315 if test "${libgcc_cv_solaris_crts}" = yes; then
316 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
317 # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
318 extra_parts="$extra_parts crtp.o crtpg.o"
319 # If the Solaris CRTs are present, both ld and gld will have PIE support.
320 extra_parts="$extra_parts crtbeginS.o crtendS.o"
323 i?86-*-solaris2* | x86_64-*-solaris2*)
324 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
325 # part of the base system.
328 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
329 extra_parts="$extra_parts crt1.o gcrt1.o"
333 if test x$enable_vtable_verify = xyes; then
334 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
338 extra_parts="crtbegin.o crtend.o"
341 tmake_file="vms/t-vms"
342 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
345 tmake_file=t-vxworksae
351 extra_parts="crtbegin.o crtend.o"
355 # VxWorks ports rely on specially crafted crtstuff files
358 tmake_file="${tmake_file} t-vxcrtstuff"
363 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
365 enable_execute_stack=enable-execute-stack-mprotect.c
367 i[34567]86-*-mingw* | x86_64-*-mingw*)
368 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
370 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
371 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
374 enable_execute_stack=enable-execute-stack-empty.c;
379 aarch64*-*-elf | aarch64*-*-rtems*)
380 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
381 extra_parts="$extra_parts crtfastmath.o"
382 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
383 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
384 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
385 md_unwind_header=aarch64/aarch64-unwind.h
388 extra_parts="$extra_parts crtfastmath.o"
389 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
390 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
391 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
392 md_unwind_header=aarch64/freebsd-unwind.h
395 extra_parts="$extra_parts crtfastmath.o"
396 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
397 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
398 md_unwind_header=aarch64/aarch64-unwind.h
401 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
402 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
403 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
406 extra_parts="$extra_parts crtfastmath.o"
407 md_unwind_header=aarch64/linux-unwind.h
408 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
409 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
410 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
412 aarch64*-*-vxworks7*)
413 extra_parts="$extra_parts crtfastmath.o"
414 md_unwind_header=aarch64/aarch64-unwind.h
415 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
416 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
417 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
420 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
421 extra_parts="$extra_parts crtfastmath.o"
422 md_unwind_header=alpha/linux-unwind.h
425 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
426 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
429 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
432 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
435 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
436 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
437 md_unwind_header=alpha/vms-unwind.h
440 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
441 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
442 md_unwind_header=alpha/vms-unwind.h
445 tmake_file="$tmake_file gcn/t-amdgcn"
449 tmake_file="arc/t-arc"
450 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
451 extra_parts="$extra_parts crttls.o"
454 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
455 extra_parts="$extra_parts crti.o crtn.o"
456 extra_parts="$extra_parts crttls.o"
457 md_unwind_header=arc/linux-unwind.h
460 tmake_file="$tmake_file arm/t-arm arm/t-elf arm/t-bpabi arm/t-vxworks7"
461 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
462 tm_file="$tm_file arm/bpabi-lib.h"
463 unwind_header=config/arm/unwind-arm.h
464 extra_parts="$extra_parts crti.o crtn.o"
466 arm*-*-freebsd*) # ARM FreeBSD EABI
467 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
468 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
469 tm_file="${tm_file} arm/bpabi-lib.h"
470 unwind_header=config/arm/unwind-arm.h
471 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
474 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
475 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
476 tm_file="${tm_file} arm/bpabi-lib.h"
477 unwind_header=config/arm/unwind-arm.h
480 tmake_file="$tmake_file arm/t-arm"
482 arm*-*-netbsdelf-*eabi*)
483 tmake_file="${tmake_file} arm/t-netbsd-eabi"
484 unwind_header=config/arm/unwind-arm.h
487 tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover"
491 arm*-*-linux* | arm*-*-uclinuxfdpiceabi)
492 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
493 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
494 tm_file="$tm_file arm/bpabi-lib.h"
495 unwind_header=config/arm/unwind-arm.h
496 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
497 extra_parts="$extra_parts crtfastmath.o"
499 arm*-*-uclinux*) # ARM ucLinux
500 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
501 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
502 tmake_file="${tmake_file} arm/t-bpabi"
503 tm_file="$tm_file arm/bpabi-lib.h"
504 unwind_header=config/arm/unwind-arm.h
505 extra_parts="$extra_parts crti.o crtn.o"
508 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
509 tmake_file="${tmake_file} arm/t-bpabi"
510 tm_file="$tm_file arm/bpabi-lib.h"
511 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
512 unwind_header=config/arm/unwind-arm.h
514 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
515 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
516 tm_file="$tm_file arm/bpabi-lib.h"
518 arm*-*-eabi* | arm*-*-rtems*)
519 tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
520 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
523 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
524 tm_file="$tm_file arm/symbian-lib.h"
525 # Symbian OS provides its own startup code.
528 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
529 extra_parts="$extra_parts crtfastmath.o"
530 unwind_header=config/arm/unwind-arm.h
533 # Make HImode functions for AVR
534 tmake_file="${cpu_type}/t-avr t-fpbit"
535 # Make some DFmode functions from libf7, part of avr-libgcc.
536 # This must be prior to adding t-avrlibc.
537 case "y${with_libf7}" in
542 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
545 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
546 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
548 ymath-symbols | yyes | y)
549 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math-symbols"
550 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
551 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
554 echo "Error: --with-libf7=${with_libf7} but can only be used with: 'libgcc', 'math', 'math-symbols', 'yes', 'no'" 1>&2
558 if test x${with_avrlibc} != xno; then
559 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
561 tm_file="$tm_file avr/avr-lib.h"
562 if test x${with_fixed_point} = xno; then
567 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
568 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
571 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
572 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
573 md_unwind_header=bfin/linux-unwind.h
576 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
577 # No need to build crtbeginT.o on uClibc systems. Should probably
578 # be moved to the OS specific section above.
579 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
580 md_unwind_header=bfin/linux-unwind.h
583 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
584 extra_parts="$extra_parts crti.o crtn.o"
587 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
588 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
591 tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
592 extra_parts="crti.o crtn.o"
595 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
596 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
599 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
602 tmake_file="csky/t-csky t-fdpbit"
603 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
606 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
607 extra_parts="$extra_parts crti.o crtn.o"
608 md_unwind_header=csky/linux-unwind.h
610 epiphany-*-elf* | epiphany-*-rtems*)
611 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
612 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
615 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
616 extra_parts="$extra_parts crti.o crtn.o"
619 tmake_file="$tmake_file frv/t-frv t-fdpbit"
620 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
621 # Don't use crtbegin.o, crtend.o.
622 extra_parts="frvbegin.o frvend.o"
625 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
626 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
629 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
630 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
633 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
634 tm_file="$tm_file h8300/h8300-lib.h"
635 extra_parts="$extra_parts crti.o crtn.o"
638 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
639 tm_file="$tm_file h8300/h8300-lib.h"
642 tmake_file="$tmake_file pa/t-linux64 pa/t-dimode"
643 tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
644 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
647 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
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"
652 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
654 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
655 md_unwind_header=pa/linux-unwind.h
658 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
659 # Set the libgcc version number
660 if test x$ac_cv_sjlj_exceptions = xyes; then
661 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
663 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
665 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
666 md_unwind_header=pa/hpux-unwind.h
669 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-dimode"
670 tmake_file="$tmake_file pa/t-stublib t-libgcc-pic t-slibgcc"
671 # Set the libgcc version number
672 if test x$ac_cv_sjlj_exceptions = xyes; then
673 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
675 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
677 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
678 tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
679 tm_file="$tm_file pa/pa64-hpux-lib.h"
680 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
682 md_unwind_header=pa/hpux-unwind.h
685 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
686 # Set the libgcc version number
687 if test x$ac_cv_sjlj_exceptions = xyes; then
688 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
690 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
692 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
693 md_unwind_header=pa/hpux-unwind.h
696 tmake_file="$tmake_file pa/t-openbsd"
699 tmake_file="$tmake_file pa/t-netbsd"
701 i[34567]86-*-darwin*)
702 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
703 tm_file="$tm_file i386/darwin-lib.h"
704 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
707 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
708 tm_file="$tm_file i386/darwin-lib.h"
709 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
711 i[34567]86-*-elfiamcu)
712 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"
715 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
717 x86_64-*-elf* | x86_64-*-rtems*)
718 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
721 extra_parts="$extra_parts crti.o crtn.o"
726 tmake_file="$tmake_file t-libgcc-pic"
728 i[34567]86-*-dragonfly*)
729 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
730 md_unwind_header=i386/dragonfly-unwind.h
733 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
734 md_unwind_header=i386/dragonfly-unwind.h
736 i[34567]86-*-freebsd*)
737 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
738 md_unwind_header=i386/freebsd-unwind.h
741 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
742 md_unwind_header=i386/freebsd-unwind.h
744 i[34567]86-*-netbsdelf*)
745 tmake_file="${tmake_file} i386/t-crtstuff"
748 tmake_file="${tmake_file} i386/t-crtstuff"
750 i[34567]86-*-openbsd*)
755 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
756 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
757 tm_file="${tm_file} i386/elf-lib.h"
758 md_unwind_header=i386/linux-unwind.h
760 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-kopensolaris*-gnu)
761 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
762 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
763 tm_file="${tm_file} i386/elf-lib.h"
766 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
767 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
768 tm_file="${tm_file} i386/elf-lib.h"
769 md_unwind_header=i386/gnu-unwind.h
772 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
773 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
774 tm_file="${tm_file} i386/elf-lib.h"
775 md_unwind_header=i386/linux-unwind.h
777 x86_64-*-kfreebsd*-gnu)
778 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
779 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
780 tm_file="${tm_file} i386/elf-lib.h"
782 i[34567]86-pc-msdosdjgpp*)
784 i[34567]86-*-lynxos*)
786 i[34567]86-*-nto-qnx*)
787 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
788 extra_parts=crtbegin.o
791 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
792 extra_parts="$extra_parts crti.o crtn.o"
794 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
795 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
796 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
797 tm_file="${tm_file} i386/elf-lib.h"
798 md_unwind_header=i386/sol2-unwind.h
800 i[4567]86-wrs-vxworks*|x86_64-wrs-vxworks*)
802 i[34567]86-*-cygwin*)
803 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
804 if test x$enable_vtable_verify = xyes; then
805 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
807 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
808 if test x$ac_cv_sjlj_exceptions = xyes; then
809 tmake_eh_file="i386/t-sjlj-eh"
811 tmake_eh_file="i386/t-dw2-eh"
813 # Shared libgcc DLL install dir depends on cross/native build.
814 if test x${build} = x${host} ; then
815 tmake_dlldir_file="i386/t-dlldir"
817 tmake_dlldir_file="i386/t-dlldir-x"
819 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"
822 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
823 if test x$enable_vtable_verify = xyes; then
824 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
826 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
827 if test x$ac_cv_sjlj_exceptions = xyes; then
828 tmake_eh_file="i386/t-sjlj-eh"
829 elif test "${host_address}" = 32; then
830 # biarch -m32 with --disable-sjlj-exceptions
831 tmake_eh_file="i386/t-dw2-eh"
833 tmake_eh_file="i386/t-seh-eh"
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"
839 tmake_dlldir_file="i386/t-dlldir-x"
841 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
842 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"
845 extra_parts="crtbegin.o crtend.o crtfastmath.o"
846 if test x$enable_vtable_verify = xyes; then
847 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
849 case ${target_thread_file} in
851 tmake_file="$tmake_file i386/t-gthr-win32"
854 tmake_file="i386/t-mingw-pthread $tmake_file"
857 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
858 if test x$ac_cv_sjlj_exceptions = xyes; then
859 tmake_eh_file="i386/t-sjlj-eh"
861 tmake_eh_file="i386/t-dw2-eh"
862 md_unwind_header=i386/w32-unwind.h
864 # Shared libgcc DLL install dir depends on cross/native build.
865 if test x${build} = x${host} ; then
866 tmake_dlldir_file="i386/t-dlldir"
868 tmake_dlldir_file="i386/t-dlldir-x"
870 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"
873 case ${target_thread_file} in
875 tmake_file="$tmake_file i386/t-gthr-win32"
878 tmake_file="i386/t-mingw-pthread $tmake_file"
881 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
882 if test x$ac_cv_sjlj_exceptions = xyes; then
883 tmake_eh_file="i386/t-sjlj-eh"
884 elif test "${host_address}" = 32; then
885 # biarch -m32 with --disable-sjlj-exceptions
886 tmake_eh_file="i386/t-dw2-eh"
887 md_unwind_header=i386/w32-unwind.h
889 tmake_eh_file="i386/t-seh-eh"
891 # Shared libgcc DLL install dir depends on cross/native build.
892 if test x${build} = x${host} ; then
893 tmake_dlldir_file="i386/t-dlldir"
895 tmake_dlldir_file="i386/t-dlldir-x"
897 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"
898 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
899 if test x$enable_vtable_verify = xyes; then
900 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
904 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
905 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"
908 extra_parts="$extra_parts crtfastmath.o"
909 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"
912 # Don't use crtbeginT.o from *-*-linux* default.
913 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
914 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"
915 if test x$with_system_libunwind != xyes ; then
916 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
918 md_unwind_header=ia64/linux-unwind.h
921 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
924 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"
925 extra_parts="$extra_parts crtinitS.o"
926 md_unwind_header=ia64/vms-unwind.h
929 tmake_file="iq2000/t-iq2000 t-fdpbit"
934 extra_parts="$extra_parts crti.o crtn.o"
935 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
938 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
939 extra_parts="$extra_parts crti.o crtn.o"
942 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
943 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
946 extra_parts="$extra_parts crtfastmath.o"
947 tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
950 tmake_file="${tmake_file} t-slibgcc-libgcc"
953 md_unwind_header=loongarch/linux-unwind.h
956 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
957 extra_parts="$extra_parts crtinit.o crtfini.o"
962 m68k-*-elf* | fido-*-elf)
963 tmake_file="$tmake_file m68k/t-floatlib"
969 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
970 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
971 md_unwind_header=m68k/linux-unwind.h
973 m68k-*-linux*) # Motorola m68k's running GNU/Linux
974 # with ELF format using glibc 2
975 # aka the GNU/Linux C library 6.
976 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
977 # If not configured with setjmp/longjmp exceptions, bump the
978 # libgcc version number.
979 if test x$ac_cv_sjlj_exceptions != xyes; then
980 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
982 md_unwind_header=m68k/linux-unwind.h
985 tmake_file="$tmake_file m68k/t-floatlib"
986 extra_parts="$extra_parts crti.o crtn.o"
989 tmake_file="mcore/t-mcore t-fdpbit"
990 extra_parts="$extra_parts crti.o crtn.o"
993 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
996 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
997 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
999 microblaze*-*-rtems*)
1000 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
1001 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
1003 mips*-*-netbsd*) # NetBSD/mips, either endian.
1005 mips*-*-linux*) # Linux MIPS, either endian.
1006 extra_parts="$extra_parts crtfastmath.o"
1007 tmake_file="${tmake_file} t-crtfm"
1009 mips64r5900* | mipsr5900*)
1010 # The MIPS16 support code uses floating point
1011 # instructions that are not supported on r5900.
1014 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
1017 md_unwind_header=mips/linux-unwind.h
1020 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1021 case "${with_newlib}" in
1023 # newlib / libgloss.
1026 # MIPS toolkit libraries.
1027 tmake_file="$tmake_file mips/t-sdemtk"
1030 extra_parts="$extra_parts crti.o crtn.o"
1032 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
1033 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
1034 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
1035 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
1036 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
1037 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
1038 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1039 extra_parts="$extra_parts crti.o crtn.o"
1041 mipsisa64sr71k-*-elf*)
1042 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
1043 extra_parts="$extra_parts crti.o crtn.o"
1045 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1046 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1047 extra_parts="$extra_parts crti.o crtn.o"
1049 mips-*-elf* | mipsel-*-elf*)
1050 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1051 extra_parts="$extra_parts crti.o crtn.o"
1053 mipsr5900-*-elf* | mipsr5900el-*-elf*)
1054 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1055 extra_parts="$extra_parts crti.o crtn.o"
1057 mips64-*-elf* | mips64el-*-elf*)
1058 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1059 extra_parts="$extra_parts crti.o crtn.o"
1061 mips64r5900-*-elf* | mips64r5900el-*-elf*)
1062 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1063 extra_parts="$extra_parts crti.o crtn.o"
1065 mips64vr-*-elf* | mips64vrel-*-elf*)
1066 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
1067 extra_parts="$extra_parts crti.o crtn.o"
1069 mips64orion-*-elf* | mips64orionel-*-elf*)
1070 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1071 extra_parts="$extra_parts crti.o crtn.o"
1074 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1075 extra_parts="$extra_parts crti.o crtn.o"
1079 mipstx39-*-elf* | mipstx39el-*-elf*)
1080 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1082 mmix-knuth-mmixware)
1083 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1084 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1089 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1090 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1091 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1094 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1095 extra_parts="crtbegin.o crtend.o crtbegin_no_eh.o crtend_no_eh.o"
1096 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1099 # Basic makefile fragment and extra_parts for crt stuff.
1100 # We also append c-isr library implementation.
1101 tmake_file="${tmake_file} t-slibgcc-libgcc"
1102 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1103 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1104 md_unwind_header=nds32/linux-unwind.h
1105 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1106 case "${with_nds32_lib}" in
1107 "" | glibc | uclibc )
1110 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1116 # Basic makefile fragment and extra_parts for crt stuff.
1117 # We also append c-isr library implementation.
1118 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1119 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1120 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1121 case "${with_nds32_lib}" in
1123 # Append library definition makefile fragment t-nds32-newlib.
1124 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1125 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1128 # Append library definition makefile fragment t-nds32-mculib.
1129 # The software floating point library is included in mculib.
1130 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1133 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1139 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-eh-dw2-dip t-slibgcc-libgcc"
1140 tm_file="$tm_file nios2/elf-lib.h"
1141 md_unwind_header=nios2/linux-unwind.h
1144 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1145 extra_parts="$extra_parts crti.o crtn.o"
1148 tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
1149 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1150 md_unwind_header=or1k/linux-unwind.h
1153 tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
1154 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1157 tmake_file="pdp11/t-pdp11 t-fdpbit"
1161 *-*-darwin9* | *-*-darwin[12][0-9]*)
1162 # libSystem contains unwind information for signal frames since
1166 md_unwind_header=rs6000/darwin-unwind.h
1169 #Â We build the darwin10 EH shim for Rosetta (running on x86 machines).
1170 tm_file="$tm_file i386/darwin-lib.h"
1171 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1172 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1174 powerpc64-*-darwin*)
1175 #Â We build the darwin10 EH shim for Rosetta (running on x86 machines).
1176 tm_file="$tm_file i386/darwin-lib.h"
1177 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1178 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1180 powerpc*-*-freebsd*)
1181 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1182 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1185 tmake_file="${tmake_file} rs6000/t-freebsd64"
1186 md_unwind_header=rs6000/freebsd-unwind.h
1191 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1194 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1195 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1197 powerpc-*-eabisimaltivec*)
1198 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1199 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1202 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1203 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1206 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1207 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1209 powerpc-*-eabialtivec*)
1210 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1211 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1213 powerpc-xilinx-eabi*)
1214 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1215 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1218 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1219 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1222 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1223 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1226 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"
1227 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1228 case $ppc_fp_type in
1232 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1235 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1238 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1241 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1244 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1249 if test $libgcc_cv_powerpc_float128 = yes; then
1250 tmake_file="${tmake_file} rs6000/t-float128"
1253 if test $libgcc_cv_powerpc_float128_hw = yes; then
1254 tmake_file="${tmake_file} rs6000/t-float128-hw"
1257 if test $libgcc_cv_powerpc_3_1_float128_hw = yes; then
1258 tmake_file="${tmake_file} rs6000/t-float128-p10-hw"
1261 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1262 md_unwind_header=rs6000/linux-unwind.h
1264 powerpc*-wrs-vxworks7*)
1265 tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-dfprules rs6000/t-ppc64-fp"
1266 tmake_file="rs6000/t-crtstuff ${tmake_file}"
1267 case $ppc_fp_type in
1271 tmake_file="${tmake_file} t-hardfp-sfdf"
1274 tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
1277 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1282 powerpc-wrs-vxworks*)
1283 tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-fdpbit"
1286 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1289 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1290 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1292 powerpcle-*-eabisim*)
1293 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1294 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1297 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1298 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1301 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1302 tm_file="$tm_file pru/pru-abi.h"
1305 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1306 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1307 md_unwind_header=riscv/linux-unwind.h
1310 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1311 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1314 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1315 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1317 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1318 md_unwind_header=rs6000/aix-unwind.h
1319 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1321 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1322 md_unwind_header=rs6000/aix-unwind.h
1323 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1325 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1326 md_unwind_header=rs6000/aix-unwind.h
1327 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1328 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o crtcxa_64.o crtcxa_64_s.o crtdbase_64.o"
1331 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1334 tmake_file="rx/t-rx t-fdpbit"
1335 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1338 tmake_file="rx/t-rx t-fdpbit"
1339 tm_file="$tm_file rx/rx-lib.h"
1342 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1343 md_unwind_header=s390/linux-unwind.h
1346 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1347 if test "${host_address}" = 32; then
1348 tmake_file="${tmake_file} s390/32/t-floattodi"
1350 md_unwind_header=s390/linux-unwind.h
1353 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip s390/t-tpf"
1354 extra_parts="crtbeginS.o crtendS.o"
1355 md_unwind_header=s390/tpf-unwind.h
1357 sh-*-elf* | sh[12346l]*-*-elf*)
1358 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1359 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1360 libic_invalidate_array_4-100.a \
1361 libic_invalidate_array_4-200.a \
1362 libic_invalidate_array_4a.a \
1363 libgcc-Os-4-200.a libgcc-4-300.a"
1366 tmake_file="$tmake_file sh/t-superh"
1367 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1371 sh-*-linux* | sh[2346lbe]*-*-linux*)
1372 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1373 md_unwind_header=sh/linux-unwind.h
1375 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1376 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1378 # NetBSD's C library includes a fast software FP library that
1379 # has support for setting/setting the rounding mode, exception
1380 # mask, etc. Therefore, we don't want to include software FP
1384 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1385 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1386 libic_invalidate_array_4-100.a \
1387 libic_invalidate_array_4-200.a \
1388 libic_invalidate_array_4a.a \
1389 libgcc-Os-4-200.a libgcc-4-300.a"
1392 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1403 tmake_file="sparc/t-softmul"
1406 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1407 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1409 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1410 tmake_file="${tmake_file} t-crtfm"
1411 if test "${host_address}" = 64; then
1412 tmake_file="$tmake_file sparc/t-linux64"
1416 tmake_file="${tmake_file} t-fdpbit"
1419 tmake_file="${tmake_file} sparc/t-linux"
1426 if test "${host_address}" = 32; then
1427 tmake_file="$tmake_file sparc/t-softmul"
1431 extra_parts="$extra_parts crtfastmath.o"
1432 md_unwind_header=sparc/linux-unwind.h
1435 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1436 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1439 tmake_file="$tmake_file t-crtfm"
1440 extra_parts="$extra_parts crtfastmath.o"
1441 md_unwind_header=sparc/sol2-unwind.h
1444 tmake_file="${tmake_file} t-crtfm"
1445 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1448 tmake_file="$tmake_file t-crtfm"
1449 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1453 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1454 tmake_file="$tmake_file t-crtfm"
1455 extra_parts="$extra_parts crtfastmath.o"
1457 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1458 extra_parts="$extra_parts crtfastmath.o"
1459 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1460 if test "${host_address}" = 64; then
1461 tmake_file="${tmake_file} sparc/t-linux64"
1463 if test "${host_address}" = 32; then
1464 tmake_file="${tmake_file} sparc/t-softmul"
1466 md_unwind_header=sparc/linux-unwind.h
1471 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1472 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1473 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1474 tm_file="$tm_file c6x/c6x-abi.h"
1475 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1476 unwind_header=config/c6x/unwind-c6x.h
1479 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1480 tm_file="$tm_file c6x/c6x-abi.h"
1481 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1482 unwind_header=config/c6x/unwind-c6x.h
1485 if test "${host_address}" = 64; then
1486 tmake_file="${tmake_file} tilegx/t-softfp"
1488 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1489 md_unwind_header=tilepro/linux-unwind.h
1492 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1493 md_unwind_header=tilepro/linux-unwind.h
1496 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1499 tmake_file="$tmake_file vax/t-linux"
1506 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1507 tmake_file="visium/t-visium t-fdpbit"
1510 tmake_file="stormy16/t-stormy16 t-fdpbit"
1513 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1514 extra_parts="$extra_parts crti.o crtn.o"
1517 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1518 md_unwind_header=xtensa/linux-unwind.h
1521 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1522 md_unwind_header=xtensa/linux-unwind.h
1523 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1526 # Don't need crtbeginT.o from *-*-linux* default.
1527 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1528 tmake_file="$tmake_file t-fdpbit"
1530 m32c-*-elf*|m32c-*-rtems*)
1531 tmake_file="$tmake_file m32c/t-m32c"
1534 tmake_file="$tmake_file nvptx/t-nvptx"
1535 extra_parts="crt0.o"
1538 echo "*** Configuration ${host} not supported" 1>&2
1544 i[34567]86-*-* | x86_64-*-*)
1547 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1550 tmake_file="${tmake_file} i386/t-cpuinfo"
1557 i[34567]86-*-linux* | x86_64-*-linux* | \
1558 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1560 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1561 if test "$libgcc_cv_cfi" = "yes"; then
1562 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1568 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1569 # These use soft-fp for SFmode and DFmode, not just TFmode.
1571 i[34567]86-*-* | x86_64-*-*)
1572 tmake_file="${tmake_file} t-softfp-tf"
1573 tmake_file="${tmake_file} i386/${host_address}/t-softfp i386/t-softfp t-softfp"
1578 i[34567]86-*-linux* | x86_64-*-linux*)
1579 # Provide backward binary compatibility for 64bit Linux/x86.
1580 if test "${host_address}" = 64; then
1581 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1583 tm_file="${tm_file} i386/value-unwind.h"
1586 # ILP32 needs an extra header for unwinding
1587 tm_file="${tm_file} aarch64/value-unwind.h"
1591 # The vxworks threads implementation relies on a few extra sources,
1592 # which we arrange to add after everything else:
1594 case ${target_thread_file} in
1598 tmake_file="${tmake_file} t-gthr-vxworksae"
1601 tmake_file="${tmake_file} t-gthr-vxworks"
1608 # The gthr weak references are unsafe with static linking
1609 tmake_file="$tmake_file t-gthr-noweak"