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"
209 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
210 sh[123456789lbe]*-*-*)
221 # Common parts for widely ported systems.
224 asm_hidden_op=.private_extern
225 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic"
226 # The unwinder is provided by the system shared libraries, do not add one
227 # to the shared libgcc but, for older systems, we build a shared unwinder
228 # separately so that we can construct a libgcc_s.1 to use for binaries
229 # linked against the old libgcc_ext.10.x stubs.
231 *-*-darwin[89]* | *-*-darwin10*)
232 tmake_file="$tmake_file t-darwin-ehs ${cpu_type}/t-darwin-ehs"
235 tmake_file="$tmake_file t-slibgcc-darwin"
237 *-*-darwin1[89]* | *-*-darwin2* )
238 tmake_file="t-darwin-min-8 $tmake_file"
240 *-*-darwin9* | *-*-darwin1[0-7]*)
241 tmake_file="t-darwin-min-5 $tmake_file"
244 tmake_file="t-darwin-min-1 $tmake_file"
247 # Fall back to configuring for the oldest system known to work with
248 # all archs and the current sources.
249 tmake_file="t-darwin-min-5 $tmake_file"
250 echo "Warning: libgcc configured to support macOS 10.5" 1>&2
253 # We are not using libtool to build the libs here, so we need to replicate
254 # a little of the logic around setting Darwin rpaths. Setting an explicit
255 # yes or no is honoured, otherwise we choose a suitable default.
256 # Sadly, this has to be kept in line with the rules in libtool.m4.
257 # This make fragment will override the setting in t-slibgcc-darwin so it
258 # must appear after it.
259 if test "x$enable_darwin_at_rpath" = "x"; then
260 echo "enable_darwin_at_rpath is unset" 1>&2
263 *-darwin9* | *-darwin1[01234]*) ;; # We might default these on later.
265 echo "but is needed after macOS 10.11 (setting it on)" 1>&2
266 enable_darwin_at_rpath=yes
270 echo "enable_darwin_at_rpath is '$enable_darwin_at_rpath'" 1>&2
272 if test "x$enable_darwin_at_rpath" = "xyes"; then
273 tmake_file="$tmake_file t-darwin-rpath "
275 extra_parts="crt3.o libd10-uwfef.a crttms.o crttme.o libemutls_w.a"
278 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
279 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
280 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
283 # This is the generic ELF configuration of FreeBSD. Later
284 # machine-specific sections may refine and add to this
286 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"
287 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
288 case ${target_thread_file} in
290 tmake_file="${tmake_file} t-freebsd-thread"
291 # Before 5.0, FreeBSD can't bind shared libraries to -lc
292 # when "optionally" threaded via weak pthread_* checks.
294 *-*-freebsd[34] | *-*-freebsd[34].*)
295 tmake_file="${tmake_file} t-slibgcc-nolc-override"
302 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
303 extra_parts="crtbegin.o crtend.o"
305 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
306 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"
307 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
308 if test x$enable_vtable_verify = xyes; then
309 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
313 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
314 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
317 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
318 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
319 tmake_file="$tmake_file t-slibgcc-libgcc"
320 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
323 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
324 case ${target_thread_file} in
326 tmake_file="$tmake_file t-openbsd-thread"
331 tmake_file="$tmake_file t-rtems"
332 extra_parts="crtbegin.o crtend.o"
335 # Unless linker support and dl_iterate_phdr are present,
336 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
337 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
338 if test $with_gnu_ld = yes; then
339 tmake_file="$tmake_file t-slibgcc-gld"
341 tmake_file="$tmake_file t-slibgcc-sld"
343 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
344 tmake_file="$tmake_file $cpu_type/t-sol2"
345 extra_parts="gmon.o crtbegin.o crtend.o"
346 if test "${libgcc_cv_solaris_crts}" = yes; then
347 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
348 # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
349 extra_parts="$extra_parts crtp.o crtpg.o"
350 # If the Solaris CRTs are present, both ld and gld will have PIE support.
351 extra_parts="$extra_parts crtbeginS.o crtendS.o"
354 i?86-*-solaris2* | x86_64-*-solaris2*)
355 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
356 # part of the base system.
359 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
360 extra_parts="$extra_parts crt1.o gcrt1.o"
364 if test x$enable_vtable_verify = xyes; then
365 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
369 extra_parts="crtbegin.o crtend.o"
372 tmake_file="vms/t-vms"
373 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
376 tmake_file=t-vxworksae
382 extra_parts="crtbegin.o crtend.o"
386 # VxWorks ports rely on specially crafted crtstuff files
389 tmake_file="${tmake_file} t-vxcrtstuff"
394 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
396 enable_execute_stack=enable-execute-stack-mprotect.c
398 i[34567]86-*-mingw* | x86_64-*-mingw*)
399 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
401 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
402 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
405 enable_execute_stack=enable-execute-stack-empty.c;
410 aarch64*-*-elf | aarch64*-*-rtems*)
411 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
412 extra_parts="$extra_parts crtfastmath.o"
413 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
414 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
415 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
416 tmake_file="${tmake_file} t-dfprules"
417 md_unwind_header=aarch64/aarch64-unwind.h
420 extra_parts="$extra_parts crtfastmath.o"
421 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
422 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
423 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
424 tmake_file="${tmake_file} t-dfprules"
425 md_unwind_header=aarch64/freebsd-unwind.h
428 extra_parts="$extra_parts crtfastmath.o"
429 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
430 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
431 tmake_file="${tmake_file} t-dfprules"
432 md_unwind_header=aarch64/aarch64-unwind.h
435 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
436 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
437 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
438 tmake_file="${tmake_file} t-dfprules"
441 extra_parts="$extra_parts crtfastmath.o"
442 md_unwind_header=aarch64/linux-unwind.h
443 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
444 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
445 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
446 tmake_file="${tmake_file} t-dfprules"
447 tmake_file="${tmake_file} ${cpu_type}/t-heap-trampoline"
449 aarch64*-*-vxworks7*)
450 extra_parts="$extra_parts crtfastmath.o"
451 md_unwind_header=aarch64/aarch64-unwind.h
452 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
453 tmake_file="${tmake_file} ${cpu_type}/t-lse"
454 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
455 tmake_file="${tmake_file} t-dfprules"
458 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
459 extra_parts="$extra_parts crtfastmath.o"
460 md_unwind_header=alpha/linux-unwind.h
463 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
464 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
467 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
470 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
473 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
474 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
475 md_unwind_header=alpha/vms-unwind.h
478 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
479 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
480 md_unwind_header=alpha/vms-unwind.h
483 tmake_file="$tmake_file gcn/t-amdgcn"
487 tmake_file="arc/t-arc"
488 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
489 extra_parts="$extra_parts crttls.o"
492 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
493 extra_parts="$extra_parts crti.o crtn.o"
494 extra_parts="$extra_parts crttls.o"
495 md_unwind_header=arc/linux-unwind.h
498 tmake_file="$tmake_file arm/t-arm arm/t-elf arm/t-bpabi arm/t-vxworks7"
499 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
500 tm_file="$tm_file arm/bpabi-lib.h"
501 unwind_header=config/arm/unwind-arm.h
502 extra_parts="$extra_parts crti.o crtn.o"
504 arm*-*-freebsd*) # ARM FreeBSD EABI
505 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
506 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
507 tm_file="${tm_file} arm/bpabi-lib.h"
508 unwind_header=config/arm/unwind-arm.h
509 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
512 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
513 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
514 tm_file="${tm_file} arm/bpabi-lib.h"
515 unwind_header=config/arm/unwind-arm.h
518 tmake_file="$tmake_file arm/t-arm"
520 arm*-*-netbsdelf-*eabi*)
521 tmake_file="${tmake_file} arm/t-netbsd-eabi"
522 unwind_header=config/arm/unwind-arm.h
525 tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover"
529 arm*-*-linux* | arm*-*-uclinuxfdpiceabi)
530 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
531 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
532 tm_file="$tm_file arm/bpabi-lib.h"
533 unwind_header=config/arm/unwind-arm.h
534 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
535 extra_parts="$extra_parts crtfastmath.o"
537 arm*-*-uclinux*) # ARM ucLinux
538 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
539 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
540 tmake_file="${tmake_file} arm/t-bpabi"
541 tm_file="$tm_file arm/bpabi-lib.h"
542 unwind_header=config/arm/unwind-arm.h
543 extra_parts="$extra_parts crti.o crtn.o"
546 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
547 tmake_file="${tmake_file} arm/t-bpabi"
548 tm_file="$tm_file arm/bpabi-lib.h"
549 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
550 unwind_header=config/arm/unwind-arm.h
552 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
553 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
554 tm_file="$tm_file arm/bpabi-lib.h"
556 arm*-*-eabi* | arm*-*-rtems*)
557 tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
558 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
561 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
562 tm_file="$tm_file arm/symbian-lib.h"
563 # Symbian OS provides its own startup code.
566 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
567 extra_parts="$extra_parts crtfastmath.o"
568 unwind_header=config/arm/unwind-arm.h
571 # Make HImode functions for AVR
572 tmake_file="${cpu_type}/t-avr t-fpbit"
573 # Make some DFmode functions from libf7, part of avr-libgcc.
574 # This must be prior to adding t-avrlibc.
575 case "y${with_libf7}" in
580 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
583 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
584 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
586 ymath-symbols | yyes | y)
587 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math-symbols"
588 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
589 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
592 echo "Error: --with-libf7=${with_libf7} but can only be used with: 'libgcc', 'math', 'math-symbols', 'yes', 'no'" 1>&2
596 if test x${with_avrlibc} != xno; then
597 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
599 tm_file="$tm_file avr/avr-lib.h"
600 if test x${with_fixed_point} = xno; then
605 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
606 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
609 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
610 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
611 md_unwind_header=bfin/linux-unwind.h
614 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
615 # No need to build crtbeginT.o on uClibc systems. Should probably
616 # be moved to the OS specific section above.
617 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
618 md_unwind_header=bfin/linux-unwind.h
621 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
622 extra_parts="$extra_parts crti.o crtn.o"
625 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
626 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
629 tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
630 extra_parts="crti.o crtn.o"
633 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
636 tmake_file="csky/t-csky t-fdpbit"
637 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
640 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
641 extra_parts="$extra_parts crti.o crtn.o"
642 md_unwind_header=csky/linux-unwind.h
644 epiphany-*-elf* | epiphany-*-rtems*)
645 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
646 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
649 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
650 extra_parts="$extra_parts crti.o crtn.o"
653 tmake_file="$tmake_file frv/t-frv t-fdpbit"
654 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
655 # Don't use crtbegin.o, crtend.o.
656 extra_parts="frvbegin.o frvend.o"
659 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
660 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
663 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
664 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
667 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
668 tm_file="$tm_file h8300/h8300-lib.h"
669 extra_parts="$extra_parts crti.o crtn.o"
672 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
673 tm_file="$tm_file h8300/h8300-lib.h"
676 tmake_file="$tmake_file pa/t-pa64-linux pa/t-dimode"
677 tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
678 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
681 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
682 # Set the libgcc version number
683 if test x$ac_cv_sjlj_exceptions = xyes; then
684 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
686 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
688 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
689 md_unwind_header=pa/linux-unwind.h
692 tmake_file="$tmake_file pa/t-pa64-hpux pa/t-dimode"
693 tmake_file="$tmake_file pa/t-stublib t-libgcc-pic t-slibgcc"
694 # Set the libgcc version number
695 if test x$ac_cv_sjlj_exceptions = xyes; then
696 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
698 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
700 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
701 tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
702 tm_file="$tm_file pa/pa64-hpux-lib.h"
703 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
705 md_unwind_header=pa/hpux-unwind.h
708 tmake_file="$tmake_file pa/t-openbsd"
711 tmake_file="$tmake_file pa/t-netbsd"
713 i[34567]86-*-darwin*)
714 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
715 tm_file="$tm_file i386/darwin-lib.h"
716 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
719 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
720 tm_file="$tm_file i386/darwin-lib.h"
721 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
722 tmake_file="${tmake_file} i386/t-heap-trampoline"
724 i[34567]86-*-elfiamcu)
725 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"
728 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
730 x86_64-*-elf* | x86_64-*-rtems*)
731 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
734 extra_parts="$extra_parts crti.o crtn.o"
739 tmake_file="$tmake_file t-libgcc-pic"
741 i[34567]86-*-dragonfly*)
742 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
743 md_unwind_header=i386/dragonfly-unwind.h
746 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
747 md_unwind_header=i386/dragonfly-unwind.h
749 i[34567]86-*-freebsd*)
750 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
751 md_unwind_header=i386/freebsd-unwind.h
754 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
755 md_unwind_header=i386/freebsd-unwind.h
757 i[34567]86-*-netbsdelf*)
758 tmake_file="${tmake_file} i386/t-crtstuff"
761 tmake_file="${tmake_file} i386/t-crtstuff"
763 i[34567]86-*-openbsd*)
768 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
769 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
770 tm_file="${tm_file} i386/elf-lib.h"
771 md_unwind_header=i386/linux-unwind.h
773 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-kopensolaris*-gnu)
774 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
775 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
776 tm_file="${tm_file} i386/elf-lib.h"
779 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
780 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
781 tm_file="${tm_file} i386/elf-lib.h"
782 md_unwind_header=i386/gnu-unwind.h
785 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
786 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
787 tm_file="${tm_file} i386/elf-lib.h"
788 md_unwind_header=i386/linux-unwind.h
789 tmake_file="${tmake_file} i386/t-heap-trampoline"
791 x86_64-*-kfreebsd*-gnu)
792 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
793 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
794 tm_file="${tm_file} i386/elf-lib.h"
797 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
798 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
799 tm_file="${tm_file} i386/elf-lib.h"
800 md_unwind_header=i386/gnu-unwind.h
802 i[34567]86-pc-msdosdjgpp*)
804 i[34567]86-*-lynxos*)
806 i[34567]86-*-nto-qnx*)
807 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
808 extra_parts=crtbegin.o
811 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
812 extra_parts="$extra_parts crti.o crtn.o"
814 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
815 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
816 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
817 tm_file="${tm_file} i386/elf-lib.h"
818 md_unwind_header=i386/sol2-unwind.h
820 i[4567]86-wrs-vxworks*|x86_64-wrs-vxworks*)
822 i[34567]86-*-cygwin*)
823 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
824 if test x$enable_vtable_verify = xyes; then
825 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
827 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
828 if test x$ac_cv_sjlj_exceptions = xyes; then
829 tmake_eh_file="i386/t-sjlj-eh"
831 tmake_eh_file="i386/t-dw2-eh"
833 # Shared libgcc DLL install dir depends on cross/native build.
834 if test x${build} = x${host} ; then
835 tmake_dlldir_file="i386/t-dlldir"
837 tmake_dlldir_file="i386/t-dlldir-x"
839 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"
842 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
843 if test x$enable_vtable_verify = xyes; then
844 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
846 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
847 if test x$ac_cv_sjlj_exceptions = xyes; then
848 tmake_eh_file="i386/t-sjlj-eh"
849 elif test "${host_address}" = 32; then
850 # biarch -m32 with --disable-sjlj-exceptions
851 tmake_eh_file="i386/t-dw2-eh"
853 tmake_eh_file="i386/t-seh-eh"
855 # Shared libgcc DLL install dir depends on cross/native build.
856 if test x${build} = x${host} ; then
857 tmake_dlldir_file="i386/t-dlldir"
859 tmake_dlldir_file="i386/t-dlldir-x"
861 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
862 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"
865 extra_parts="crtbegin.o crtend.o crtfastmath.o"
866 if test x$enable_vtable_verify = xyes; then
867 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
869 case ${target_thread_file} in
871 tmake_thr_file="i386/t-gthr-win32"
874 tmake_thr_file="i386/t-mingw-pthread"
877 tmake_thr_file="i386/t-mingw-mcfgthread"
880 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
881 if test x$ac_cv_sjlj_exceptions = xyes; then
882 tmake_eh_file="i386/t-sjlj-eh"
884 tmake_eh_file="i386/t-dw2-eh"
885 md_unwind_header=i386/w32-unwind.h
887 # Shared libgcc DLL install dir depends on cross/native build.
888 if test x${build} = x${host} ; then
889 tmake_dlldir_file="i386/t-dlldir"
891 tmake_dlldir_file="i386/t-dlldir-x"
893 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"
896 case ${target_thread_file} in
898 tmake_thr_file="i386/t-gthr-win32"
901 tmake_thr_file="i386/t-mingw-pthread"
904 tmake_thr_file="i386/t-mingw-mcfgthread"
907 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
908 if test x$ac_cv_sjlj_exceptions = xyes; then
909 tmake_eh_file="i386/t-sjlj-eh"
910 elif test "${host_address}" = 32; then
911 # biarch -m32 with --disable-sjlj-exceptions
912 tmake_eh_file="i386/t-dw2-eh"
913 md_unwind_header=i386/w32-unwind.h
915 tmake_eh_file="i386/t-seh-eh"
917 # Shared libgcc DLL install dir depends on cross/native build.
918 if test x${build} = x${host} ; then
919 tmake_dlldir_file="i386/t-dlldir"
921 tmake_dlldir_file="i386/t-dlldir-x"
923 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"
924 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
925 if test x$enable_vtable_verify = xyes; then
926 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
930 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
931 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"
934 extra_parts="$extra_parts crtfastmath.o"
935 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"
938 # Don't use crtbeginT.o from *-*-linux* default.
939 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
940 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"
941 if test x$with_system_libunwind != xyes ; then
942 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
944 md_unwind_header=ia64/linux-unwind.h
947 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
950 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"
951 extra_parts="$extra_parts crtinitS.o"
952 md_unwind_header=ia64/vms-unwind.h
955 tmake_file="iq2000/t-iq2000 t-fdpbit"
960 extra_parts="$extra_parts crti.o crtn.o"
961 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
964 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
965 extra_parts="$extra_parts crti.o crtn.o"
968 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
969 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
972 extra_parts="$extra_parts crtfastmath.o"
973 tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
976 tmake_file="${tmake_file} t-slibgcc-libgcc"
979 md_unwind_header=loongarch/linux-unwind.h
982 extra_parts="$extra_parts crtfastmath.o"
983 tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
984 tmake_file="${tmake_file} t-slibgcc-libgcc"
987 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
988 extra_parts="$extra_parts crtinit.o crtfini.o"
993 m68k-*-elf* | fido-*-elf)
994 tmake_file="$tmake_file m68k/t-floatlib"
1000 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
1001 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
1002 md_unwind_header=m68k/linux-unwind.h
1004 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1005 # with ELF format using glibc 2
1006 # aka the GNU/Linux C library 6.
1007 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
1008 # If not configured with setjmp/longjmp exceptions, bump the
1009 # libgcc version number.
1010 if test x$ac_cv_sjlj_exceptions != xyes; then
1011 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
1013 md_unwind_header=m68k/linux-unwind.h
1016 tmake_file="$tmake_file m68k/t-floatlib"
1017 extra_parts="$extra_parts crti.o crtn.o"
1020 tmake_file="mcore/t-mcore t-fdpbit"
1021 extra_parts="$extra_parts crti.o crtn.o"
1024 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
1027 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
1028 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
1030 microblaze*-*-rtems*)
1031 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
1032 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
1034 mips*-*-netbsd*) # NetBSD/mips, either endian.
1036 mips*-*-linux*) # Linux MIPS, either endian.
1037 extra_parts="$extra_parts crtfastmath.o"
1038 tmake_file="${tmake_file} t-crtfm"
1040 mips64r5900* | mipsr5900*)
1041 # The MIPS16 support code uses floating point
1042 # instructions that are not supported on r5900.
1045 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
1048 md_unwind_header=mips/linux-unwind.h
1051 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1052 case "${with_newlib}" in
1054 # newlib / libgloss.
1057 # MIPS toolkit libraries.
1058 tmake_file="$tmake_file mips/t-sdemtk"
1061 extra_parts="$extra_parts crti.o crtn.o"
1063 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
1064 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
1065 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
1066 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
1067 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
1068 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
1069 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1070 extra_parts="$extra_parts crti.o crtn.o"
1072 mipsisa64sr71k-*-elf*)
1073 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
1074 extra_parts="$extra_parts crti.o crtn.o"
1076 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1077 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1078 extra_parts="$extra_parts crti.o crtn.o"
1080 mips-*-elf* | mipsel-*-elf*)
1081 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1082 extra_parts="$extra_parts crti.o crtn.o"
1084 mipsr5900-*-elf* | mipsr5900el-*-elf*)
1085 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1086 extra_parts="$extra_parts crti.o crtn.o"
1088 mips64-*-elf* | mips64el-*-elf*)
1089 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1090 extra_parts="$extra_parts crti.o crtn.o"
1092 mips64r5900-*-elf* | mips64r5900el-*-elf*)
1093 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1094 extra_parts="$extra_parts crti.o crtn.o"
1096 mips64vr-*-elf* | mips64vrel-*-elf*)
1097 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
1098 extra_parts="$extra_parts crti.o crtn.o"
1100 mips64orion-*-elf* | mips64orionel-*-elf*)
1101 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1102 extra_parts="$extra_parts crti.o crtn.o"
1105 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1106 extra_parts="$extra_parts crti.o crtn.o"
1110 mipstx39-*-elf* | mipstx39el-*-elf*)
1111 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1113 mmix-knuth-mmixware)
1114 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1115 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1120 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1121 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1122 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1125 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1126 extra_parts="crtbegin.o crtend.o crtbegin_no_eh.o crtend_no_eh.o"
1127 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1130 # Basic makefile fragment and extra_parts for crt stuff.
1131 # We also append c-isr library implementation.
1132 tmake_file="${tmake_file} t-slibgcc-libgcc"
1133 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1134 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1135 md_unwind_header=nds32/linux-unwind.h
1136 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1137 case "${with_nds32_lib}" in
1138 "" | glibc | uclibc )
1141 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1147 # Basic makefile fragment and extra_parts for crt stuff.
1148 # We also append c-isr library implementation.
1149 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1150 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1151 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1152 case "${with_nds32_lib}" in
1154 # Append library definition makefile fragment t-nds32-newlib.
1155 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1156 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1159 # Append library definition makefile fragment t-nds32-mculib.
1160 # The software floating point library is included in mculib.
1161 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1164 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1170 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-eh-dw2-dip t-slibgcc-libgcc"
1171 tm_file="$tm_file nios2/elf-lib.h"
1172 md_unwind_header=nios2/linux-unwind.h
1175 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1176 extra_parts="$extra_parts crti.o crtn.o"
1179 tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
1180 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1181 md_unwind_header=or1k/linux-unwind.h
1184 tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
1185 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1188 tmake_file="pdp11/t-pdp11 t-fdpbit"
1192 *-*-darwin9* | *-*-darwin[12][0-9]*)
1193 # libSystem contains unwind information for signal frames since
1197 md_unwind_header=rs6000/darwin-unwind.h
1200 #Â We build the darwin10 EH shim for Rosetta (running on x86 machines).
1201 tm_file="$tm_file i386/darwin-lib.h"
1202 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1203 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1205 powerpc64-*-darwin*)
1206 #Â We build the darwin10 EH shim for Rosetta (running on x86 machines).
1207 tm_file="$tm_file i386/darwin-lib.h"
1208 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1209 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1211 powerpc*-*-freebsd*)
1212 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1213 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1216 tmake_file="${tmake_file} rs6000/t-freebsd64"
1217 md_unwind_header=rs6000/freebsd-unwind.h
1222 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1225 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1226 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1228 powerpc-*-eabisimaltivec*)
1229 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1230 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1233 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1234 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1237 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1238 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1240 powerpc-*-eabialtivec*)
1241 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1242 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1244 powerpc-xilinx-eabi*)
1245 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1246 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1249 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1250 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1253 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1254 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1257 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"
1258 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1259 case $ppc_fp_type in
1263 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1266 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1269 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1272 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1275 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1280 if test $libgcc_cv_powerpc_float128 = yes; then
1281 tmake_file="${tmake_file} rs6000/t-float128"
1284 if test $libgcc_cv_powerpc_float128_hw = yes; then
1285 tmake_file="${tmake_file} rs6000/t-float128-hw"
1288 if test $libgcc_cv_powerpc_3_1_float128_hw = yes; then
1289 tmake_file="${tmake_file} rs6000/t-float128-p10-hw"
1292 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1293 md_unwind_header=rs6000/linux-unwind.h
1295 powerpc*-wrs-vxworks7*)
1296 tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-dfprules rs6000/t-ppc64-fp"
1297 tmake_file="rs6000/t-crtstuff ${tmake_file}"
1298 case $ppc_fp_type in
1302 tmake_file="${tmake_file} t-hardfp-sfdf"
1305 tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
1308 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1313 powerpc-wrs-vxworks*)
1314 tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-fdpbit"
1317 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1320 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1321 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1323 powerpcle-*-eabisim*)
1324 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1325 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1328 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1329 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1332 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1333 tm_file="$tm_file pru/pru-abi.h"
1336 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"
1337 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1338 md_unwind_header=riscv/linux-unwind.h
1341 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"
1342 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1345 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1346 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1348 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1349 md_unwind_header=rs6000/aix-unwind.h
1350 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1352 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1353 md_unwind_header=rs6000/aix-unwind.h
1354 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1356 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1357 md_unwind_header=rs6000/aix-unwind.h
1358 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1359 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o crtcxa_64.o crtcxa_64_s.o crtdbase_64.o"
1362 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1365 tmake_file="rx/t-rx t-fdpbit"
1366 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1369 tmake_file="rx/t-rx t-fdpbit"
1370 tm_file="$tm_file rx/rx-lib.h"
1373 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1374 md_unwind_header=s390/linux-unwind.h
1377 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1378 if test "${host_address}" = 32; then
1379 tmake_file="${tmake_file} s390/32/t-floattodi"
1381 md_unwind_header=s390/linux-unwind.h
1384 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip s390/t-tpf"
1385 extra_parts="crtbeginS.o crtendS.o"
1386 md_unwind_header=s390/tpf-unwind.h
1388 sh-*-elf* | sh[12346l]*-*-elf*)
1389 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1390 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1391 libic_invalidate_array_4-100.a \
1392 libic_invalidate_array_4-200.a \
1393 libic_invalidate_array_4a.a \
1394 libgcc-Os-4-200.a libgcc-4-300.a"
1397 tmake_file="$tmake_file sh/t-superh"
1398 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1402 sh-*-linux* | sh[2346lbe]*-*-linux*)
1403 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1404 md_unwind_header=sh/linux-unwind.h
1406 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1407 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1409 # NetBSD's C library includes a fast software FP library that
1410 # has support for setting/setting the rounding mode, exception
1411 # mask, etc. Therefore, we don't want to include software FP
1415 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1416 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1417 libic_invalidate_array_4-100.a \
1418 libic_invalidate_array_4-200.a \
1419 libic_invalidate_array_4a.a \
1420 libgcc-Os-4-200.a libgcc-4-300.a"
1423 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1434 tmake_file="sparc/t-softmul"
1437 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1438 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1440 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1441 tmake_file="${tmake_file} t-crtfm"
1442 if test "${host_address}" = 64; then
1443 tmake_file="$tmake_file sparc/t-linux64"
1447 tmake_file="${tmake_file} t-fdpbit"
1450 tmake_file="${tmake_file} sparc/t-linux"
1457 if test "${host_address}" = 32; then
1458 tmake_file="$tmake_file sparc/t-softmul"
1462 extra_parts="$extra_parts crtfastmath.o"
1463 md_unwind_header=sparc/linux-unwind.h
1466 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1467 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1470 tmake_file="$tmake_file t-crtfm"
1471 extra_parts="$extra_parts crtfastmath.o"
1472 md_unwind_header=sparc/sol2-unwind.h
1475 tmake_file="${tmake_file} t-crtfm"
1476 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1479 tmake_file="$tmake_file t-crtfm"
1480 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1484 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1485 tmake_file="$tmake_file t-crtfm"
1486 extra_parts="$extra_parts crtfastmath.o"
1488 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1489 extra_parts="$extra_parts crtfastmath.o"
1490 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1491 if test "${host_address}" = 64; then
1492 tmake_file="${tmake_file} sparc/t-linux64"
1494 if test "${host_address}" = 32; then
1495 tmake_file="${tmake_file} sparc/t-softmul"
1497 md_unwind_header=sparc/linux-unwind.h
1502 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1503 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1504 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1505 tm_file="$tm_file c6x/c6x-abi.h"
1506 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1507 unwind_header=config/c6x/unwind-c6x.h
1510 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1511 tm_file="$tm_file c6x/c6x-abi.h"
1512 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1513 unwind_header=config/c6x/unwind-c6x.h
1516 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1519 tmake_file="$tmake_file vax/t-linux"
1526 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1527 tmake_file="visium/t-visium t-fdpbit"
1530 tmake_file="stormy16/t-stormy16 t-fdpbit"
1533 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1534 extra_parts="$extra_parts crti.o crtn.o"
1537 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1538 md_unwind_header=xtensa/linux-unwind.h
1541 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1542 md_unwind_header=xtensa/linux-unwind.h
1543 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1546 # Don't need crtbeginT.o from *-*-linux* default.
1547 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1548 tmake_file="$tmake_file t-fdpbit"
1551 tmake_file="$tmake_file m32c/t-m32c"
1554 tmake_file="$tmake_file nvptx/t-nvptx"
1555 extra_parts="crt0.o"
1558 echo "*** Configuration ${host} not supported" 1>&2
1564 i[34567]86-*-* | x86_64-*-*)
1567 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1570 tmake_file="${tmake_file} i386/t-cpuinfo"
1577 i[34567]86-*-linux* | x86_64-*-linux* | \
1578 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1579 i[34567]86-*-gnu* | x86_64-*-gnu*)
1580 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1581 if test "$libgcc_cv_cfi" = "yes"; then
1582 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1588 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1589 # These use soft-fp for SFmode and DFmode, not just TFmode.
1591 i[34567]86-*-* | x86_64-*-*)
1592 tmake_file="${tmake_file} t-softfp-tf"
1593 tmake_file="${tmake_file} i386/${host_address}/t-softfp i386/t-softfp t-softfp"
1598 i[34567]86-*-linux* | x86_64-*-linux*)
1599 # Provide backward binary compatibility for 64bit Linux/x86.
1600 if test "${host_address}" = 64; then
1601 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1603 tm_file="${tm_file} i386/value-unwind.h"
1606 # ILP32 needs an extra header for unwinding
1607 tm_file="${tm_file} aarch64/value-unwind.h"
1610 tm_file="${tm_file} riscv/value-unwind.h"
1614 # Setup to build a shared libgcc for VxWorks when that was requested,
1615 # for library variants that support it (rtp only, code model not large).
1620 case ${with_multisubdir}-${enable_shared} in
1624 tmake_file="${tmake_file} t-libgcc-pic"
1626 # Arrange to set a soname on libgcc_s so DT_NEEDED entries
1627 # for it refer to that alone. This ensures absence of path
1628 # components which would be incorrect as the runtime loader
1629 # on target has no visibility over the host filesystem.
1630 tmake_file="${tmake_file} t-slibgcc-gld-nover"
1631 tmake_file="${tmake_file} t-slibgcc"
1633 # t-slibgcc-libgcc is needed on at least aarch64 (for
1634 # lse) and at most harmless on other targets.
1635 tmake_file="${tmake_file} t-slibgcc-libgcc"
1637 tmake_file="${tmake_file} t-crtstuff-pic t-vxcrtstuffS"
1643 # The vxworks threads implementation relies on a few extra sources,
1644 # which we arrange to add after everything else:
1646 case ${target_thread_file} in
1650 tmake_file="${tmake_file} t-gthr-vxworksae"
1653 tmake_file="${tmake_file} t-gthr-vxworks"
1660 # The gthr weak references are unsafe with static linking
1661 tmake_file="$tmake_file t-gthr-noweak"