1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2023 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"
123 moxie*) cpu_type=moxie
141 tmake_file="loongarch/t-loongarch"
142 if test "${libgcc_cv_loongarch_hard_float}" = yes; then
143 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
145 tmake_file="${tmake_file} t-softfp-sfdf"
147 if test "${ac_cv_sizeof_long_double}" = 16; then
148 tmake_file="${tmake_file} loongarch/t-softfp-tf"
150 if test "${host_address}" = 64; then
151 tmake_file="${tmake_file} loongarch/t-loongarch64"
153 tmake_file="${tmake_file} t-softfp"
164 # All MIPS targets provide a full set of FP routines.
166 tmake_file="mips/t-mips"
167 if test "${libgcc_cv_mips_hard_float}" = yes; then
168 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
170 tmake_file="${tmake_file} t-softfp-sfdf"
172 if test "${ac_cv_sizeof_long_double}" = 16; then
173 tmake_file="${tmake_file} mips/t-softfp-tf"
175 if test "${host_address}" = 64; then
176 tmake_file="${tmake_file} mips/t-mips64"
178 tmake_file="${tmake_file} t-softfp"
202 tmake_file="${tmake_file} sparc/t-sparc"
206 tmake_file="${tmake_file} sparc/t-sparc"
211 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
212 sh[123456789lbe]*-*-*)
223 # Common parts for widely ported systems.
226 asm_hidden_op=.private_extern
227 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic"
228 # The unwinder is provided by the system shared libraries, do not add one
229 # to the shared libgcc but, for older systems, we build a shared unwinder
230 # separately so that we can construct a libgcc_s.1 to use for binaries
231 # linked against the old libgcc_ext.10.x stubs.
233 *-*-darwin[89]* | *-*-darwin10*)
234 tmake_file="$tmake_file t-darwin-ehs ${cpu_type}/t-darwin-ehs"
237 tmake_file="$tmake_file t-slibgcc-darwin"
239 *-*-darwin1[89]* | *-*-darwin2* )
240 tmake_file="t-darwin-min-8 $tmake_file"
242 *-*-darwin9* | *-*-darwin1[0-7]*)
243 tmake_file="t-darwin-min-5 $tmake_file"
246 tmake_file="t-darwin-min-1 $tmake_file"
249 # Fall back to configuring for the oldest system known to work with
250 # all archs and the current sources.
251 tmake_file="t-darwin-min-5 $tmake_file"
252 echo "Warning: libgcc configured to support macOS 10.5" 1>&2
255 # We are not using libtool to build the libs here, so we need to replicate
256 # a little of the logic around setting Darwin rpaths. Setting an explicit
257 # yes or no is honoured, otherwise we choose a suitable default.
258 # Sadly, this has to be kept in line with the rules in libtool.m4.
259 # This make fragment will override the setting in t-slibgcc-darwin so it
260 # must appear after it.
261 if test "x$enable_darwin_at_rpath" = "x"; then
262 echo "enable_darwin_at_rpath is unset" 1>&2
265 *-darwin9* | *-darwin1[01234]*) ;; # We might default these on later.
267 echo "but is needed after macOS 10.11 (setting it on)" 1>&2
268 enable_darwin_at_rpath=yes
272 echo "enable_darwin_at_rpath is '$enable_darwin_at_rpath'" 1>&2
274 if test "x$enable_darwin_at_rpath" = "xyes"; then
275 tmake_file="$tmake_file t-darwin-rpath "
277 extra_parts="crt3.o libd10-uwfef.a crttms.o crttme.o libemutls_w.a"
280 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
281 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
282 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
285 # This is the generic ELF configuration of FreeBSD. Later
286 # machine-specific sections may refine and add to this
288 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"
289 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
290 case ${target_thread_file} in
292 tmake_file="${tmake_file} t-freebsd-thread"
293 # Before 5.0, FreeBSD can't bind shared libraries to -lc
294 # when "optionally" threaded via weak pthread_* checks.
296 *-*-freebsd[34] | *-*-freebsd[34].*)
297 tmake_file="${tmake_file} t-slibgcc-nolc-override"
304 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
305 extra_parts="crtbegin.o crtend.o"
307 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
308 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"
309 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
310 if test x$enable_vtable_verify = xyes; then
311 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
315 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
316 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
319 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
320 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
321 tmake_file="$tmake_file t-slibgcc-libgcc"
322 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
325 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
326 case ${target_thread_file} in
328 tmake_file="$tmake_file t-openbsd-thread"
333 tmake_file="$tmake_file t-rtems"
334 extra_parts="crtbegin.o crtend.o"
337 # Unless linker support and dl_iterate_phdr are present,
338 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
339 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
340 if test $with_gnu_ld = yes; then
341 tmake_file="$tmake_file t-slibgcc-gld"
343 tmake_file="$tmake_file t-slibgcc-sld"
345 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
346 tmake_file="$tmake_file $cpu_type/t-sol2"
347 extra_parts="gmon.o crtbegin.o crtend.o"
348 if test "${libgcc_cv_solaris_crts}" = yes; then
349 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
350 # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
351 extra_parts="$extra_parts crtp.o crtpg.o"
352 # If the Solaris CRTs are present, both ld and gld will have PIE support.
353 extra_parts="$extra_parts crtbeginS.o crtendS.o"
356 i?86-*-solaris2* | x86_64-*-solaris2*)
357 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
358 # part of the base system.
361 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
362 extra_parts="$extra_parts crt1.o gcrt1.o"
366 if test x$enable_vtable_verify = xyes; then
367 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
371 extra_parts="crtbegin.o crtend.o"
374 tmake_file="vms/t-vms"
375 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
378 tmake_file=t-vxworksae
384 extra_parts="crtbegin.o crtend.o"
388 # VxWorks ports rely on specially crafted crtstuff files
391 tmake_file="${tmake_file} t-vxcrtstuff"
396 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
398 enable_execute_stack=enable-execute-stack-mprotect.c
400 i[34567]86-*-mingw* | x86_64-*-mingw*)
401 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
403 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
404 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
407 enable_execute_stack=enable-execute-stack-empty.c;
412 aarch64*-*-elf | aarch64*-*-rtems*)
413 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
414 extra_parts="$extra_parts crtfastmath.o"
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"
418 tmake_file="${tmake_file} t-dfprules"
419 md_unwind_header=aarch64/aarch64-unwind.h
422 extra_parts="$extra_parts crtfastmath.o"
423 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
424 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
425 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
426 tmake_file="${tmake_file} t-dfprules"
427 md_unwind_header=aarch64/freebsd-unwind.h
430 extra_parts="$extra_parts crtfastmath.o"
431 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
432 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
433 tmake_file="${tmake_file} t-dfprules"
434 md_unwind_header=aarch64/aarch64-unwind.h
437 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
438 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
439 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
440 tmake_file="${tmake_file} t-dfprules"
443 extra_parts="$extra_parts crtfastmath.o"
444 md_unwind_header=aarch64/linux-unwind.h
445 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
446 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
447 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
448 tmake_file="${tmake_file} t-dfprules"
449 tmake_file="${tmake_file} ${cpu_type}/t-heap-trampoline"
451 aarch64*-*-vxworks7*)
452 extra_parts="$extra_parts crtfastmath.o"
453 md_unwind_header=aarch64/aarch64-unwind.h
454 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
455 tmake_file="${tmake_file} ${cpu_type}/t-lse"
456 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
457 tmake_file="${tmake_file} t-dfprules"
460 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
461 extra_parts="$extra_parts crtfastmath.o"
462 md_unwind_header=alpha/linux-unwind.h
465 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
466 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
469 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
472 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
475 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
476 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
477 md_unwind_header=alpha/vms-unwind.h
480 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
481 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
482 md_unwind_header=alpha/vms-unwind.h
485 tmake_file="$tmake_file gcn/t-amdgcn"
489 tmake_file="arc/t-arc"
490 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
491 extra_parts="$extra_parts crttls.o"
494 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
495 extra_parts="$extra_parts crti.o crtn.o"
496 extra_parts="$extra_parts crttls.o"
497 md_unwind_header=arc/linux-unwind.h
500 tmake_file="$tmake_file arm/t-arm arm/t-elf arm/t-bpabi arm/t-vxworks7"
501 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
502 tm_file="$tm_file arm/bpabi-lib.h"
503 unwind_header=config/arm/unwind-arm.h
504 extra_parts="$extra_parts crti.o crtn.o"
506 arm*-*-freebsd*) # ARM FreeBSD EABI
507 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
508 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
509 tm_file="${tm_file} arm/bpabi-lib.h"
510 unwind_header=config/arm/unwind-arm.h
511 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
514 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
515 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
516 tm_file="${tm_file} arm/bpabi-lib.h"
517 unwind_header=config/arm/unwind-arm.h
520 tmake_file="$tmake_file arm/t-arm"
522 arm*-*-netbsdelf-*eabi*)
523 tmake_file="${tmake_file} arm/t-netbsd-eabi"
524 unwind_header=config/arm/unwind-arm.h
527 tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover"
531 arm*-*-linux* | arm*-*-uclinuxfdpiceabi)
532 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
533 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
534 tm_file="$tm_file arm/bpabi-lib.h"
535 unwind_header=config/arm/unwind-arm.h
536 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
537 extra_parts="$extra_parts crtfastmath.o"
539 arm*-*-uclinux*) # ARM ucLinux
540 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
541 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
542 tmake_file="${tmake_file} arm/t-bpabi"
543 tm_file="$tm_file arm/bpabi-lib.h"
544 unwind_header=config/arm/unwind-arm.h
545 extra_parts="$extra_parts crti.o crtn.o"
548 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
549 tmake_file="${tmake_file} arm/t-bpabi"
550 tm_file="$tm_file arm/bpabi-lib.h"
551 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
552 unwind_header=config/arm/unwind-arm.h
554 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
555 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
556 tm_file="$tm_file arm/bpabi-lib.h"
558 arm*-*-eabi* | arm*-*-rtems*)
559 tmake_file="${tmake_file} arm/t-bpabi arm/t-sync t-crtfm"
560 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
563 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
564 tm_file="$tm_file arm/symbian-lib.h"
565 # Symbian OS provides its own startup code.
568 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
569 extra_parts="$extra_parts crtfastmath.o"
570 unwind_header=config/arm/unwind-arm.h
573 # Make HImode functions for AVR
574 tmake_file="${cpu_type}/t-avr t-fpbit"
575 # Make some DFmode functions from libf7, part of avr-libgcc.
576 # This must be prior to adding t-avrlibc.
577 case "y${with_libf7}" in
582 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
585 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
586 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
588 ymath-symbols | yyes | y)
589 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math-symbols"
590 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
591 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
594 echo "Error: --with-libf7=${with_libf7} but can only be used with: 'libgcc', 'math', 'math-symbols', 'yes', 'no'" 1>&2
598 if test x${with_avrlibc} != xno; then
599 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
601 tm_file="$tm_file avr/avr-lib.h"
602 if test x${with_fixed_point} = xno; then
607 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
608 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
611 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
612 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
613 md_unwind_header=bfin/linux-unwind.h
616 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
617 # No need to build crtbeginT.o on uClibc systems. Should probably
618 # be moved to the OS specific section above.
619 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
620 md_unwind_header=bfin/linux-unwind.h
623 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
624 extra_parts="$extra_parts crti.o crtn.o"
627 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
628 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
631 tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
632 extra_parts="crti.o crtn.o"
635 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
638 tmake_file="csky/t-csky t-fdpbit"
639 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
642 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
643 extra_parts="$extra_parts crti.o crtn.o"
644 md_unwind_header=csky/linux-unwind.h
646 epiphany-*-elf* | epiphany-*-rtems*)
647 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
648 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
651 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
652 extra_parts="$extra_parts crti.o crtn.o"
655 tmake_file="$tmake_file frv/t-frv t-fdpbit"
656 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
657 # Don't use crtbegin.o, crtend.o.
658 extra_parts="frvbegin.o frvend.o"
661 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
662 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
665 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
666 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
669 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
670 tm_file="$tm_file h8300/h8300-lib.h"
671 extra_parts="$extra_parts crti.o crtn.o"
674 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
675 tm_file="$tm_file h8300/h8300-lib.h"
678 tmake_file="$tmake_file pa/t-pa64-linux pa/t-dimode"
679 tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
680 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
683 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
684 # Set the libgcc version number
685 if test x$ac_cv_sjlj_exceptions = xyes; then
686 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
688 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
690 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
691 md_unwind_header=pa/linux-unwind.h
694 tmake_file="$tmake_file pa/t-pa64-hpux pa/t-dimode"
695 tmake_file="$tmake_file pa/t-stublib t-libgcc-pic t-slibgcc"
696 # Set the libgcc version number
697 if test x$ac_cv_sjlj_exceptions = xyes; then
698 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
700 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
702 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
703 tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
704 tm_file="$tm_file pa/pa64-hpux-lib.h"
705 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
707 md_unwind_header=pa/hpux-unwind.h
710 tmake_file="$tmake_file pa/t-openbsd"
713 tmake_file="$tmake_file pa/t-netbsd"
715 i[34567]86-*-darwin*)
716 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
717 tm_file="$tm_file i386/darwin-lib.h"
718 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
721 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
722 tm_file="$tm_file i386/darwin-lib.h"
723 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
724 tmake_file="${tmake_file} i386/t-heap-trampoline"
726 i[34567]86-*-elfiamcu)
727 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"
730 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
732 x86_64-*-elf* | x86_64-*-rtems*)
733 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
736 extra_parts="$extra_parts crti.o crtn.o"
741 tmake_file="$tmake_file t-libgcc-pic"
743 i[34567]86-*-dragonfly*)
744 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
745 md_unwind_header=i386/dragonfly-unwind.h
748 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
749 md_unwind_header=i386/dragonfly-unwind.h
751 i[34567]86-*-freebsd*)
752 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
753 md_unwind_header=i386/freebsd-unwind.h
756 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
757 md_unwind_header=i386/freebsd-unwind.h
759 i[34567]86-*-netbsdelf*)
760 tmake_file="${tmake_file} i386/t-crtstuff"
763 tmake_file="${tmake_file} i386/t-crtstuff"
765 i[34567]86-*-openbsd*)
770 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
771 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
772 tm_file="${tm_file} i386/elf-lib.h"
773 md_unwind_header=i386/linux-unwind.h
775 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-kopensolaris*-gnu)
776 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
777 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
778 tm_file="${tm_file} i386/elf-lib.h"
781 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
782 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
783 tm_file="${tm_file} i386/elf-lib.h"
784 md_unwind_header=i386/gnu-unwind.h
787 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
788 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
789 tm_file="${tm_file} i386/elf-lib.h"
790 md_unwind_header=i386/linux-unwind.h
791 tmake_file="${tmake_file} i386/t-heap-trampoline"
793 x86_64-*-kfreebsd*-gnu)
794 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
795 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
796 tm_file="${tm_file} i386/elf-lib.h"
799 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
800 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
801 tm_file="${tm_file} i386/elf-lib.h"
802 md_unwind_header=i386/gnu-unwind.h
804 i[34567]86-pc-msdosdjgpp*)
806 i[34567]86-*-lynxos*)
808 i[34567]86-*-nto-qnx*)
809 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
810 extra_parts=crtbegin.o
813 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
814 extra_parts="$extra_parts crti.o crtn.o"
816 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
817 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
818 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
819 tm_file="${tm_file} i386/elf-lib.h"
820 md_unwind_header=i386/sol2-unwind.h
822 i[4567]86-wrs-vxworks*|x86_64-wrs-vxworks*)
824 i[34567]86-*-cygwin*)
825 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
826 if test x$enable_vtable_verify = xyes; then
827 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
829 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
830 if test x$ac_cv_sjlj_exceptions = xyes; then
831 tmake_eh_file="i386/t-sjlj-eh"
833 tmake_eh_file="i386/t-dw2-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 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"
844 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
845 if test x$enable_vtable_verify = xyes; then
846 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
848 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
849 if test x$ac_cv_sjlj_exceptions = xyes; then
850 tmake_eh_file="i386/t-sjlj-eh"
851 elif test "${host_address}" = 32; then
852 # biarch -m32 with --disable-sjlj-exceptions
853 tmake_eh_file="i386/t-dw2-eh"
855 tmake_eh_file="i386/t-seh-eh"
857 # Shared libgcc DLL install dir depends on cross/native build.
858 if test x${build} = x${host} ; then
859 tmake_dlldir_file="i386/t-dlldir"
861 tmake_dlldir_file="i386/t-dlldir-x"
863 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
864 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"
867 extra_parts="crtbegin.o crtend.o crtfastmath.o"
868 if test x$enable_vtable_verify = xyes; then
869 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
871 case ${target_thread_file} in
873 tmake_thr_file="i386/t-gthr-win32"
876 tmake_thr_file="i386/t-mingw-pthread"
879 tmake_thr_file="i386/t-mingw-mcfgthread"
882 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
883 if test x$ac_cv_sjlj_exceptions = xyes; then
884 tmake_eh_file="i386/t-sjlj-eh"
886 tmake_eh_file="i386/t-dw2-eh"
887 md_unwind_header=i386/w32-unwind.h
889 # Shared libgcc DLL install dir depends on cross/native build.
890 if test x${build} = x${host} ; then
891 tmake_dlldir_file="i386/t-dlldir"
893 tmake_dlldir_file="i386/t-dlldir-x"
895 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_thr_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-slibgcc-mingw i386/t-cygming i386/t-mingw32 t-crtfm i386/t-chkstk t-dfprules"
898 case ${target_thread_file} in
900 tmake_thr_file="i386/t-gthr-win32"
903 tmake_thr_file="i386/t-mingw-pthread"
906 tmake_thr_file="i386/t-mingw-mcfgthread"
909 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
910 if test x$ac_cv_sjlj_exceptions = xyes; then
911 tmake_eh_file="i386/t-sjlj-eh"
912 elif test "${host_address}" = 32; then
913 # biarch -m32 with --disable-sjlj-exceptions
914 tmake_eh_file="i386/t-dw2-eh"
915 md_unwind_header=i386/w32-unwind.h
917 tmake_eh_file="i386/t-seh-eh"
919 # Shared libgcc DLL install dir depends on cross/native build.
920 if test x${build} = x${host} ; then
921 tmake_dlldir_file="i386/t-dlldir"
923 tmake_dlldir_file="i386/t-dlldir-x"
925 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_thr_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-slibgcc-mingw i386/t-cygming i386/t-mingw32 t-dfprules t-crtfm i386/t-chkstk"
926 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
927 if test x$enable_vtable_verify = xyes; then
928 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
932 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
933 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"
936 extra_parts="$extra_parts crtfastmath.o"
937 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"
940 # Don't use crtbeginT.o from *-*-linux* default.
941 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
942 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"
943 if test x$with_system_libunwind != xyes ; then
944 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
946 md_unwind_header=ia64/linux-unwind.h
949 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
952 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"
953 extra_parts="$extra_parts crtinitS.o"
954 md_unwind_header=ia64/vms-unwind.h
957 tmake_file="iq2000/t-iq2000 t-fdpbit"
962 extra_parts="$extra_parts crti.o crtn.o"
963 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
966 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
967 extra_parts="$extra_parts crti.o crtn.o"
970 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
971 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
974 extra_parts="$extra_parts crtfastmath.o"
975 tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
978 tmake_file="${tmake_file} t-slibgcc-libgcc"
981 md_unwind_header=loongarch/linux-unwind.h
984 extra_parts="$extra_parts crtfastmath.o"
985 tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
986 tmake_file="${tmake_file} t-slibgcc-libgcc"
989 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
990 extra_parts="$extra_parts crtinit.o crtfini.o"
995 m68k-*-elf* | fido-*-elf)
996 tmake_file="$tmake_file m68k/t-floatlib"
1002 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
1003 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
1004 md_unwind_header=m68k/linux-unwind.h
1006 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1007 # with ELF format using glibc 2
1008 # aka the GNU/Linux C library 6.
1009 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
1010 # If not configured with setjmp/longjmp exceptions, bump the
1011 # libgcc version number.
1012 if test x$ac_cv_sjlj_exceptions != xyes; then
1013 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
1015 md_unwind_header=m68k/linux-unwind.h
1018 tmake_file="$tmake_file m68k/t-floatlib"
1019 extra_parts="$extra_parts crti.o crtn.o"
1022 tmake_file="mcore/t-mcore t-fdpbit"
1023 extra_parts="$extra_parts crti.o crtn.o"
1026 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
1029 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
1030 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
1032 microblaze*-*-rtems*)
1033 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
1034 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
1036 mips*-*-netbsd*) # NetBSD/mips, either endian.
1038 mips*-*-linux*) # Linux MIPS, either endian.
1039 extra_parts="$extra_parts crtfastmath.o"
1040 tmake_file="${tmake_file} t-crtfm"
1042 mips64r5900* | mipsr5900*)
1043 # The MIPS16 support code uses floating point
1044 # instructions that are not supported on r5900.
1047 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
1050 md_unwind_header=mips/linux-unwind.h
1053 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1054 case "${with_newlib}" in
1056 # newlib / libgloss.
1059 # MIPS toolkit libraries.
1060 tmake_file="$tmake_file mips/t-sdemtk"
1063 extra_parts="$extra_parts crti.o crtn.o"
1065 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
1066 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
1067 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
1068 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
1069 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
1070 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
1071 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1072 extra_parts="$extra_parts crti.o crtn.o"
1074 mipsisa64sr71k-*-elf*)
1075 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
1076 extra_parts="$extra_parts crti.o crtn.o"
1078 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1079 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1080 extra_parts="$extra_parts crti.o crtn.o"
1082 mips-*-elf* | mipsel-*-elf*)
1083 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1084 extra_parts="$extra_parts crti.o crtn.o"
1086 mipsr5900-*-elf* | mipsr5900el-*-elf*)
1087 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1088 extra_parts="$extra_parts crti.o crtn.o"
1090 mips64-*-elf* | mips64el-*-elf*)
1091 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1092 extra_parts="$extra_parts crti.o crtn.o"
1094 mips64r5900-*-elf* | mips64r5900el-*-elf*)
1095 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1096 extra_parts="$extra_parts crti.o crtn.o"
1098 mips64vr-*-elf* | mips64vrel-*-elf*)
1099 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
1100 extra_parts="$extra_parts crti.o crtn.o"
1102 mips64orion-*-elf* | mips64orionel-*-elf*)
1103 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1104 extra_parts="$extra_parts crti.o crtn.o"
1107 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1108 extra_parts="$extra_parts crti.o crtn.o"
1112 mipstx39-*-elf* | mipstx39el-*-elf*)
1113 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1115 mmix-knuth-mmixware)
1116 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1117 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1122 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1123 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1124 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1127 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1128 extra_parts="crtbegin.o crtend.o crtbegin_no_eh.o crtend_no_eh.o"
1129 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1132 # Basic makefile fragment and extra_parts for crt stuff.
1133 # We also append c-isr library implementation.
1134 tmake_file="${tmake_file} t-slibgcc-libgcc"
1135 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1136 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1137 md_unwind_header=nds32/linux-unwind.h
1138 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1139 case "${with_nds32_lib}" in
1140 "" | glibc | uclibc )
1143 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1149 # Basic makefile fragment and extra_parts for crt stuff.
1150 # We also append c-isr library implementation.
1151 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1152 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1153 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1154 case "${with_nds32_lib}" in
1156 # Append library definition makefile fragment t-nds32-newlib.
1157 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1158 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1161 # Append library definition makefile fragment t-nds32-mculib.
1162 # The software floating point library is included in mculib.
1163 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1166 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1172 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-eh-dw2-dip t-slibgcc-libgcc"
1173 tm_file="$tm_file nios2/elf-lib.h"
1174 md_unwind_header=nios2/linux-unwind.h
1177 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1178 extra_parts="$extra_parts crti.o crtn.o"
1181 tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
1182 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1183 md_unwind_header=or1k/linux-unwind.h
1186 tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
1187 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1190 tmake_file="pdp11/t-pdp11 t-fdpbit"
1194 *-*-darwin9* | *-*-darwin[12][0-9]*)
1195 # libSystem contains unwind information for signal frames since
1199 md_unwind_header=rs6000/darwin-unwind.h
1202 #Â We build the darwin10 EH shim for Rosetta (running on x86 machines).
1203 tm_file="$tm_file i386/darwin-lib.h"
1204 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1205 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1207 powerpc64-*-darwin*)
1208 #Â We build the darwin10 EH shim for Rosetta (running on x86 machines).
1209 tm_file="$tm_file i386/darwin-lib.h"
1210 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1211 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1213 powerpc*-*-freebsd*)
1214 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1215 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1218 tmake_file="${tmake_file} rs6000/t-freebsd64"
1219 md_unwind_header=rs6000/freebsd-unwind.h
1224 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1227 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1228 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1230 powerpc-*-eabisimaltivec*)
1231 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1232 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1235 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1236 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1239 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1240 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1242 powerpc-*-eabialtivec*)
1243 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1244 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1246 powerpc-xilinx-eabi*)
1247 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1248 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1251 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1252 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1255 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1256 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1259 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"
1260 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1261 case $ppc_fp_type in
1265 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1268 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1271 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1274 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1277 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1282 if test $libgcc_cv_powerpc_float128 = yes; then
1283 tmake_file="${tmake_file} rs6000/t-float128"
1286 if test $libgcc_cv_powerpc_float128_hw = yes; then
1287 tmake_file="${tmake_file} rs6000/t-float128-hw"
1290 if test $libgcc_cv_powerpc_3_1_float128_hw = yes; then
1291 tmake_file="${tmake_file} rs6000/t-float128-p10-hw"
1294 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1295 md_unwind_header=rs6000/linux-unwind.h
1297 powerpc*-wrs-vxworks7*)
1298 tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-dfprules rs6000/t-ppc64-fp"
1299 tmake_file="rs6000/t-crtstuff ${tmake_file}"
1300 case $ppc_fp_type in
1304 tmake_file="${tmake_file} t-hardfp-sfdf"
1307 tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
1310 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1315 powerpc-wrs-vxworks*)
1316 tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-fdpbit"
1319 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1322 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1323 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1325 powerpcle-*-eabisim*)
1326 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1327 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1330 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1331 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1334 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1335 tm_file="$tm_file pru/pru-abi.h"
1338 tmake_file="${tmake_file} riscv/t-crtstuff riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1339 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1340 md_unwind_header=riscv/linux-unwind.h
1343 tmake_file="${tmake_file} riscv/t-crtstuff riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1344 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1347 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1348 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1350 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1351 md_unwind_header=rs6000/aix-unwind.h
1352 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1354 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1355 md_unwind_header=rs6000/aix-unwind.h
1356 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1358 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1359 md_unwind_header=rs6000/aix-unwind.h
1360 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1361 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o crtcxa_64.o crtcxa_64_s.o crtdbase_64.o"
1364 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1367 tmake_file="rx/t-rx t-fdpbit"
1368 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1371 tmake_file="rx/t-rx t-fdpbit"
1372 tm_file="$tm_file rx/rx-lib.h"
1375 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1376 md_unwind_header=s390/linux-unwind.h
1379 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1380 if test "${host_address}" = 32; then
1381 tmake_file="${tmake_file} s390/32/t-floattodi"
1383 md_unwind_header=s390/linux-unwind.h
1386 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip s390/t-tpf"
1387 extra_parts="crtbeginS.o crtendS.o"
1388 md_unwind_header=s390/tpf-unwind.h
1390 sh-*-elf* | sh[12346l]*-*-elf*)
1391 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1392 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1393 libic_invalidate_array_4-100.a \
1394 libic_invalidate_array_4-200.a \
1395 libic_invalidate_array_4a.a \
1396 libgcc-Os-4-200.a libgcc-4-300.a"
1399 tmake_file="$tmake_file sh/t-superh"
1400 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1404 sh-*-linux* | sh[2346lbe]*-*-linux*)
1405 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1406 md_unwind_header=sh/linux-unwind.h
1408 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1409 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1411 # NetBSD's C library includes a fast software FP library that
1412 # has support for setting/setting the rounding mode, exception
1413 # mask, etc. Therefore, we don't want to include software FP
1417 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1418 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1419 libic_invalidate_array_4-100.a \
1420 libic_invalidate_array_4-200.a \
1421 libic_invalidate_array_4a.a \
1422 libgcc-Os-4-200.a libgcc-4-300.a"
1425 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1436 tmake_file="sparc/t-softmul"
1439 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1440 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1442 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1443 tmake_file="${tmake_file} t-crtfm"
1444 if test "${host_address}" = 64; then
1445 tmake_file="$tmake_file sparc/t-linux64"
1449 tmake_file="${tmake_file} t-fdpbit"
1452 tmake_file="${tmake_file} sparc/t-linux"
1459 if test "${host_address}" = 32; then
1460 tmake_file="$tmake_file sparc/t-softmul"
1464 extra_parts="$extra_parts crtfastmath.o"
1465 md_unwind_header=sparc/linux-unwind.h
1468 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1469 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1472 tmake_file="$tmake_file t-crtfm"
1473 extra_parts="$extra_parts crtfastmath.o"
1474 md_unwind_header=sparc/sol2-unwind.h
1477 tmake_file="${tmake_file} t-crtfm"
1478 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1481 tmake_file="$tmake_file t-crtfm"
1482 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1486 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1487 tmake_file="$tmake_file t-crtfm"
1488 extra_parts="$extra_parts crtfastmath.o"
1490 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1491 extra_parts="$extra_parts crtfastmath.o"
1492 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1493 if test "${host_address}" = 64; then
1494 tmake_file="${tmake_file} sparc/t-linux64"
1496 if test "${host_address}" = 32; then
1497 tmake_file="${tmake_file} sparc/t-softmul"
1499 md_unwind_header=sparc/linux-unwind.h
1504 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1505 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1506 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1507 tm_file="$tm_file c6x/c6x-abi.h"
1508 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1509 unwind_header=config/c6x/unwind-c6x.h
1512 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1513 tm_file="$tm_file c6x/c6x-abi.h"
1514 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1515 unwind_header=config/c6x/unwind-c6x.h
1518 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1521 tmake_file="$tmake_file vax/t-linux"
1528 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1529 tmake_file="visium/t-visium t-fdpbit"
1532 tmake_file="stormy16/t-stormy16 t-fdpbit"
1535 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1536 extra_parts="$extra_parts crti.o crtn.o"
1539 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1540 md_unwind_header=xtensa/linux-unwind.h
1543 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1544 md_unwind_header=xtensa/linux-unwind.h
1545 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1548 # Don't need crtbeginT.o from *-*-linux* default.
1549 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1550 tmake_file="$tmake_file t-fdpbit"
1553 tmake_file="$tmake_file m32c/t-m32c"
1556 tmake_file="$tmake_file nvptx/t-nvptx"
1557 extra_parts="crt0.o"
1560 echo "*** Configuration ${host} not supported" 1>&2
1566 i[34567]86-*-* | x86_64-*-*)
1569 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1572 tmake_file="${tmake_file} i386/t-cpuinfo"
1579 i[34567]86-*-linux* | x86_64-*-linux* | \
1580 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1581 i[34567]86-*-gnu* | x86_64-*-gnu*)
1582 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1583 if test "$libgcc_cv_cfi" = "yes"; then
1584 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1590 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1591 # These use soft-fp for SFmode and DFmode, not just TFmode.
1593 i[34567]86-*-* | x86_64-*-*)
1594 tmake_file="${tmake_file} t-softfp-tf"
1595 tmake_file="${tmake_file} i386/${host_address}/t-softfp i386/t-softfp t-softfp"
1600 i[34567]86-*-linux* | x86_64-*-linux*)
1601 # Provide backward binary compatibility for 64bit Linux/x86.
1602 if test "${host_address}" = 64; then
1603 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1605 tm_file="${tm_file} i386/value-unwind.h"
1608 # ILP32 needs an extra header for unwinding
1609 tm_file="${tm_file} aarch64/value-unwind.h"
1612 tm_file="${tm_file} riscv/value-unwind.h"
1616 # Setup to build a shared libgcc for VxWorks when that was requested,
1617 # for library variants that support it (rtp only, code model not large).
1622 case ${with_multisubdir}-${enable_shared} in
1626 tmake_file="${tmake_file} t-libgcc-pic"
1628 # Arrange to set a soname on libgcc_s so DT_NEEDED entries
1629 # for it refer to that alone. This ensures absence of path
1630 # components which would be incorrect as the runtime loader
1631 # on target has no visibility over the host filesystem.
1632 tmake_file="${tmake_file} t-slibgcc-gld-nover"
1633 tmake_file="${tmake_file} t-slibgcc"
1635 # t-slibgcc-libgcc is needed on at least aarch64 (for
1636 # lse) and at most harmless on other targets.
1637 tmake_file="${tmake_file} t-slibgcc-libgcc"
1639 tmake_file="${tmake_file} t-crtstuff-pic t-vxcrtstuffS"
1645 # The vxworks threads implementation relies on a few extra sources,
1646 # which we arrange to add after everything else:
1648 case ${target_thread_file} in
1652 tmake_file="${tmake_file} t-gthr-vxworksae"
1655 tmake_file="${tmake_file} t-gthr-vxworks"
1662 # The gthr weak references are unsafe with static linking
1663 tmake_file="$tmake_file t-gthr-noweak"