1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify it under
7 #the terms of the GNU General Public License as published by the Free
8 #Software Foundation; either version 3, or (at your option) any later
11 #GCC is distributed in the hope that it will be useful, but WITHOUT
12 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING3. If not see
18 #<http://www.gnu.org/licenses/>.
20 # This is the libgcc host-specific configuration file
21 # where a configuration type is mapped to different system-specific
22 # definitions and files. This is invoked by the autoconf-generated
23 # configure script. Putting it in a separate shell file lets us skip
24 # running autoconf when modifying host-specific information.
26 # This file bears an obvious resemblance to gcc/config.gcc. The cases
27 # should be kept similar, to ease moving library-specific settings
28 # from config.gcc to this file. That is also why tmake_file is
29 # left as tmake_file, rather than hmake_file, even though this library
30 # switches on ${host}.
32 # This file switches on the shell variable ${host}, and also uses the
33 # following shell variables:
35 # with_* Various variables as set by configure.
37 # This file sets the following shell variables for use by the
38 # autoconf-generated configure script:
40 # asm_hidden_op The assembler pseudo-op to use for hide
41 # lists for object files implemented in
42 # assembly (with -fvisibility=hidden for C).
43 # The default is ".hidden".
44 # cpu_type The name of the cpu, if different from the first
45 # chunk of the canonical host name.
46 # enable_execute_stack The name of a source file implementing
47 # __enable_execute_stack.
48 # extra_parts List of extra object files that should be compiled
49 # for this target machine. This may be overridden
50 # by setting EXTRA_PARTS in a tmake_file fragment.
51 # If either is set, EXTRA_PARTS and
52 # EXTRA_MULTILIB_PARTS inherited from the GCC
53 # subdirectory will be ignored.
54 # md_unwind_header The name of a header file defining
55 # MD_FALLBACK_FRAME_STATE_FOR.
56 # sfp_machine_header The name of a sfp-machine.h header file for soft-fp.
57 # Defaults to "$cpu_type/sfp-machine.h" if it exists,
58 # no-sfp-machine.h otherwise.
59 # tmake_file A list of machine-description-specific
61 # tm_defines List of target macros to define for all compilations.
62 # tm_file A list of target macro files used only for code
63 # built for the target, not the host. These files
64 # are relative to $srcdir/config and must not have
65 # the same names as files in $srcdir/../gcc/config.
66 # unwind_header The name of the header file declaring the unwind
67 # runtime interface routines.
75 md_unwind_header=no-unwind.h
76 unwind_header=unwind-generic.h
78 # Set default cpu_type so it can be updated in each machine entry.
79 cpu_type=`echo ${host} | sed 's/-.*$//'`
96 tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
125 moxie*) cpu_type=moxie
150 # All MIPS targets provide a full set of FP routines.
152 tmake_file="mips/t-mips"
153 if test "${libgcc_cv_mips_hard_float}" = yes; then
154 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
156 tmake_file="${tmake_file} t-softfp-sfdf"
158 if test "${ac_cv_sizeof_long_double}" = 16; then
159 tmake_file="${tmake_file} mips/t-softfp-tf"
161 if test "${host_address}" = 64; then
162 tmake_file="${tmake_file} mips/t-mips64"
164 tmake_file="${tmake_file} t-softfp"
195 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
196 sh[123456789lbe]*-*-*)
213 # Common parts for widely ported systems.
216 asm_hidden_op=.private_extern
217 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin"
218 extra_parts="crt3.o d10-uwfef.o crttms.o crttme.o"
221 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
222 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
223 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
226 # This is the generic ELF configuration of FreeBSD. Later
227 # machine-specific sections may refine and add to this
229 tmake_file="$tmake_file t-freebsd t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
230 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
231 case ${target_thread_file} in
233 tmake_file="${tmake_file} t-freebsd-thread"
234 # Before 5.0, FreeBSD can't bind shared libraries to -lc
235 # when "optionally" threaded via weak pthread_* checks.
237 *-*-freebsd[34] | *-*-freebsd[34].*)
238 tmake_file="${tmake_file} t-slibgcc-nolc-override"
245 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
246 extra_parts="crtbegin.o crtend.o"
248 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
249 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-linux"
250 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
251 if test x$enable_vtable_verify = xyes; then
252 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
256 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
257 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
260 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
261 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
262 tmake_file="$tmake_file t-slibgcc-libgcc"
263 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
266 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
267 case ${target_thread_file} in
269 tmake_file="$tmake_file t-openbsd-thread"
274 tmake_file="$tmake_file t-rtems"
275 extra_parts="crtbegin.o crtend.o"
278 # Unless linker support and dl_iterate_phdr are present,
279 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
280 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
281 if test $with_gnu_ld = yes; then
282 tmake_file="$tmake_file t-slibgcc-gld"
284 tmake_file="$tmake_file t-slibgcc-sld"
286 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
287 tmake_file="$tmake_file $cpu_type/t-sol2"
288 extra_parts="gmon.o crtbegin.o crtend.o"
289 if test "${libgcc_cv_solaris_crts}" = yes; then
290 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
291 # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
292 extra_parts="$extra_parts crtp.o crtpg.o"
293 # If the Solaris CRTs are present, both ld and gld will have PIE support.
294 extra_parts="$extra_parts crtbeginS.o crtendS.o"
297 i?86-*-solaris2* | x86_64-*-solaris2*)
298 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
299 # part of the base system.
302 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
303 extra_parts="$extra_parts crt1.o gcrt1.o"
307 if test x$enable_vtable_verify = xyes; then
308 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
312 extra_parts="crtbegin.o crtend.o"
315 tmake_file="vms/t-vms"
316 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
319 tmake_file=t-vxworks7
322 tmake_file=t-vxworksae
328 extra_parts="crtbegin.o crtend.o"
332 # Except on ARM where we do not use DWARF, table based EH on VxWorks
333 # relies on specially crafted crtstuff files
338 tmake_file="${tmake_file} t-vxcrtstuff"
343 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
345 enable_execute_stack=enable-execute-stack-mprotect.c
347 i[34567]86-*-mingw* | x86_64-*-mingw*)
348 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
350 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
351 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
354 enable_execute_stack=enable-execute-stack-empty.c;
359 aarch64*-*-elf | aarch64*-*-rtems*)
360 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
361 extra_parts="$extra_parts crtfastmath.o"
362 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
363 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
364 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
365 md_unwind_header=aarch64/aarch64-unwind.h
368 extra_parts="$extra_parts crtfastmath.o"
369 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
370 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
371 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
372 md_unwind_header=aarch64/freebsd-unwind.h
375 extra_parts="$extra_parts crtfastmath.o"
376 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
377 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
378 md_unwind_header=aarch64/aarch64-unwind.h
381 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
382 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
383 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
386 extra_parts="$extra_parts crtfastmath.o"
387 md_unwind_header=aarch64/linux-unwind.h
388 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
389 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
390 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
392 aarch64*-*-vxworks7*)
393 extra_parts="$extra_parts crtfastmath.o"
394 md_unwind_header=aarch64/aarch64-unwind.h
395 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
396 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
399 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
400 extra_parts="$extra_parts crtfastmath.o"
401 md_unwind_header=alpha/linux-unwind.h
404 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
405 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
408 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
411 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
414 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
415 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
416 md_unwind_header=alpha/vms-unwind.h
419 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
420 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
421 md_unwind_header=alpha/vms-unwind.h
424 tmake_file="$tmake_file gcn/t-amdgcn"
428 tmake_file="arc/t-arc"
429 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
430 extra_parts="$extra_parts crttls.o"
433 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
434 extra_parts="$extra_parts crti.o crtn.o"
435 extra_parts="$extra_parts crttls.o"
436 md_unwind_header=arc/linux-unwind.h
439 tmake_file="$tmake_file arm/t-arm arm/t-elf arm/t-bpabi arm/t-vxworks7"
440 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
441 tm_file="$tm_file arm/bpabi-lib.h"
442 unwind_header=config/arm/unwind-arm.h
443 extra_parts="$extra_parts crti.o crtn.o"
445 arm*-*-freebsd*) # ARM FreeBSD EABI
446 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
447 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
448 tm_file="${tm_file} arm/bpabi-lib.h"
449 unwind_header=config/arm/unwind-arm.h
450 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
453 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
454 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
455 tm_file="${tm_file} arm/bpabi-lib.h"
456 unwind_header=config/arm/unwind-arm.h
459 tmake_file="$tmake_file arm/t-arm"
461 arm*-*-netbsdelf-*eabi*)
462 tmake_file="${tmake_file} arm/t-netbsd-eabi"
463 unwind_header=config/arm/unwind-arm.h
466 tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover"
470 arm*-*-linux* | arm*-*-uclinuxfdpiceabi)
471 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
472 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
473 tm_file="$tm_file arm/bpabi-lib.h"
474 unwind_header=config/arm/unwind-arm.h
475 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
476 extra_parts="$extra_parts crtfastmath.o"
478 arm*-*-uclinux*) # ARM ucLinux
479 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
480 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
481 tmake_file="${tmake_file} arm/t-bpabi"
482 tm_file="$tm_file arm/bpabi-lib.h"
483 unwind_header=config/arm/unwind-arm.h
484 extra_parts="$extra_parts crti.o crtn.o"
487 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
488 tmake_file="${tmake_file} arm/t-bpabi"
489 tm_file="$tm_file arm/bpabi-lib.h"
490 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
491 unwind_header=config/arm/unwind-arm.h
493 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
494 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
495 tm_file="$tm_file arm/bpabi-lib.h"
497 arm*-*-eabi* | arm*-*-rtems*)
498 tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
499 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
502 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
503 tm_file="$tm_file arm/symbian-lib.h"
504 # Symbian OS provides its own startup code.
507 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
508 extra_parts="$extra_parts crtfastmath.o"
509 unwind_header=config/arm/unwind-arm.h
512 # Make HImode functions for AVR
513 tmake_file="${cpu_type}/t-avr t-fpbit"
514 # Make some DFmode functions from libf7, part of avr-libgcc.
515 # This must be prior to adding t-avrlibc.
516 case "y${with_libf7}" in
521 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
524 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
525 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
527 ymath-symbols | yyes | y)
528 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math-symbols"
529 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
530 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
533 echo "Error: --with-libf7=${with_libf7} but can only be used with: 'libgcc', 'math', 'math-symbols', 'yes', 'no'" 1>&2
537 if test x${with_avrlibc} != xno; then
538 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
540 tm_file="$tm_file avr/avr-lib.h"
541 if test x${with_fixed_point} = xno; then
546 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
547 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
550 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
551 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
552 md_unwind_header=bfin/linux-unwind.h
555 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
556 # No need to build crtbeginT.o on uClibc systems. Should probably
557 # be moved to the OS specific section above.
558 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
559 md_unwind_header=bfin/linux-unwind.h
562 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
563 extra_parts="$extra_parts crti.o crtn.o"
566 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
567 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
570 tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
571 extra_parts="crti.o crtn.o"
574 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
575 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
578 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
581 tmake_file="csky/t-csky t-fdpbit"
582 extra_parts="$extra_parts crti.o crtn.o"
585 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
586 extra_parts="$extra_parts crti.o crtn.o"
587 md_unwind_header=csky/linux-unwind.h
589 epiphany-*-elf* | epiphany-*-rtems*)
590 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
591 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
594 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
595 extra_parts="$extra_parts crti.o crtn.o"
598 tmake_file="$tmake_file frv/t-frv t-fdpbit"
599 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
600 # Don't use crtbegin.o, crtend.o.
601 extra_parts="frvbegin.o frvend.o"
604 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
605 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
608 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
609 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
612 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
613 tm_file="$tm_file h8300/h8300-lib.h"
614 extra_parts="$extra_parts crti.o crtn.o"
617 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
618 tm_file="$tm_file h8300/h8300-lib.h"
621 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
622 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
625 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
626 # Set the libgcc version number
627 if test x$ac_cv_sjlj_exceptions = xyes; then
628 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
630 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
632 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
633 md_unwind_header=pa/linux-unwind.h
636 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
637 # Set the libgcc version number
638 if test x$ac_cv_sjlj_exceptions = xyes; then
639 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
641 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
643 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
644 md_unwind_header=pa/hpux-unwind.h
647 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
648 # Set the libgcc version number
649 if test x$ac_cv_sjlj_exceptions = xyes; then
650 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
652 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
654 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
655 tm_file="$tm_file pa/pa64-hpux-lib.h"
656 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
658 md_unwind_header=pa/hpux-unwind.h
661 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
662 # Set the libgcc version number
663 if test x$ac_cv_sjlj_exceptions = xyes; then
664 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
666 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
668 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
669 extra_parts="libgcc_stub.a"
670 md_unwind_header=pa/hpux-unwind.h
673 tmake_file="$tmake_file pa/t-openbsd"
676 tmake_file="$tmake_file pa/t-netbsd"
678 i[34567]86-*-darwin*)
679 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
680 tm_file="$tm_file i386/darwin-lib.h"
681 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
684 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
685 tm_file="$tm_file i386/darwin-lib.h"
686 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
688 i[34567]86-*-elfiamcu)
689 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"
692 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
694 x86_64-*-elf* | x86_64-*-rtems*)
695 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
698 extra_parts="$extra_parts crti.o crtn.o"
703 tmake_file="$tmake_file t-libgcc-pic"
705 i[34567]86-*-dragonfly*)
706 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
707 md_unwind_header=i386/dragonfly-unwind.h
710 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
711 md_unwind_header=i386/dragonfly-unwind.h
713 i[34567]86-*-freebsd*)
714 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
715 md_unwind_header=i386/freebsd-unwind.h
718 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
719 md_unwind_header=i386/freebsd-unwind.h
721 i[34567]86-*-netbsdelf*)
722 tmake_file="${tmake_file} i386/t-crtstuff"
725 tmake_file="${tmake_file} i386/t-crtstuff"
727 i[34567]86-*-openbsd*)
732 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
733 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
734 tm_file="${tm_file} i386/elf-lib.h"
735 md_unwind_header=i386/linux-unwind.h
737 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-kopensolaris*-gnu)
738 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
739 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
740 tm_file="${tm_file} i386/elf-lib.h"
743 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
744 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
745 tm_file="${tm_file} i386/elf-lib.h"
746 md_unwind_header=i386/gnu-unwind.h
749 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
750 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
751 tm_file="${tm_file} i386/elf-lib.h"
752 md_unwind_header=i386/linux-unwind.h
754 x86_64-*-kfreebsd*-gnu)
755 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
756 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
757 tm_file="${tm_file} i386/elf-lib.h"
759 i[34567]86-pc-msdosdjgpp*)
761 i[34567]86-*-lynxos*)
763 i[34567]86-*-nto-qnx*)
764 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
765 extra_parts=crtbegin.o
768 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
769 extra_parts="$extra_parts crti.o crtn.o"
771 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
772 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
773 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
774 tm_file="${tm_file} i386/elf-lib.h"
775 md_unwind_header=i386/sol2-unwind.h
777 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
779 i[34567]86-*-cygwin*)
780 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
781 if test x$enable_vtable_verify = xyes; then
782 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
784 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
785 if test x$ac_cv_sjlj_exceptions = xyes; then
786 tmake_eh_file="i386/t-sjlj-eh"
788 tmake_eh_file="i386/t-dw2-eh"
790 # Shared libgcc DLL install dir depends on cross/native build.
791 if test x${build} = x${host} ; then
792 tmake_dlldir_file="i386/t-dlldir"
794 tmake_dlldir_file="i386/t-dlldir-x"
796 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"
799 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
800 if test x$enable_vtable_verify = xyes; then
801 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
803 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
804 if test x$ac_cv_sjlj_exceptions = xyes; then
805 tmake_eh_file="i386/t-sjlj-eh"
806 elif test "${host_address}" = 32; then
807 # biarch -m32 with --disable-sjlj-exceptions
808 tmake_eh_file="i386/t-dw2-eh"
810 tmake_eh_file="i386/t-seh-eh"
812 # Shared libgcc DLL install dir depends on cross/native build.
813 if test x${build} = x${host} ; then
814 tmake_dlldir_file="i386/t-dlldir"
816 tmake_dlldir_file="i386/t-dlldir-x"
818 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
819 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"
822 extra_parts="crtbegin.o crtend.o crtfastmath.o"
823 if test x$enable_vtable_verify = xyes; then
824 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
826 case ${target_thread_file} in
828 tmake_file="$tmake_file i386/t-gthr-win32"
831 tmake_file="i386/t-mingw-pthread $tmake_file"
834 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
835 if test x$ac_cv_sjlj_exceptions = xyes; then
836 tmake_eh_file="i386/t-sjlj-eh"
838 tmake_eh_file="i386/t-dw2-eh"
839 md_unwind_header=i386/w32-unwind.h
841 # Shared libgcc DLL install dir depends on cross/native build.
842 if test x${build} = x${host} ; then
843 tmake_dlldir_file="i386/t-dlldir"
845 tmake_dlldir_file="i386/t-dlldir-x"
847 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 t-crtfm i386/t-chkstk t-dfprules"
850 case ${target_thread_file} in
852 tmake_file="$tmake_file i386/t-gthr-win32"
855 tmake_file="i386/t-mingw-pthread $tmake_file"
858 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
859 if test x$ac_cv_sjlj_exceptions = xyes; then
860 tmake_eh_file="i386/t-sjlj-eh"
861 elif test "${host_address}" = 32; then
862 # biarch -m32 with --disable-sjlj-exceptions
863 tmake_eh_file="i386/t-dw2-eh"
864 md_unwind_header=i386/w32-unwind.h
866 tmake_eh_file="i386/t-seh-eh"
868 # Shared libgcc DLL install dir depends on cross/native build.
869 if test x${build} = x${host} ; then
870 tmake_dlldir_file="i386/t-dlldir"
872 tmake_dlldir_file="i386/t-dlldir-x"
874 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 t-dfprules t-crtfm i386/t-chkstk"
875 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
876 if test x$enable_vtable_verify = xyes; then
877 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
881 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
882 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"
885 extra_parts="$extra_parts crtfastmath.o"
886 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"
889 # Don't use crtbeginT.o from *-*-linux* default.
890 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
891 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"
892 if test x$with_system_libunwind != xyes ; then
893 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
895 md_unwind_header=ia64/linux-unwind.h
898 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
901 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"
902 extra_parts="$extra_parts crtinitS.o"
903 md_unwind_header=ia64/vms-unwind.h
906 tmake_file="iq2000/t-iq2000 t-fdpbit"
911 extra_parts="$extra_parts crti.o crtn.o"
912 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
915 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
916 extra_parts="$extra_parts crti.o crtn.o"
919 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
920 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
923 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
924 extra_parts="$extra_parts crtinit.o crtfini.o"
930 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
933 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
935 m68k-*-elf* | fido-*-elf)
936 tmake_file="$tmake_file m68k/t-floatlib"
942 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
943 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
944 md_unwind_header=m68k/linux-unwind.h
946 m68k-*-linux*) # Motorola m68k's running GNU/Linux
947 # with ELF format using glibc 2
948 # aka the GNU/Linux C library 6.
949 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
950 # If not configured with setjmp/longjmp exceptions, bump the
951 # libgcc version number.
952 if test x$ac_cv_sjlj_exceptions != xyes; then
953 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
955 md_unwind_header=m68k/linux-unwind.h
958 tmake_file="$tmake_file m68k/t-floatlib"
959 extra_parts="$extra_parts crti.o crtn.o"
962 tmake_file="mcore/t-mcore t-fdpbit"
963 extra_parts="$extra_parts crti.o crtn.o"
966 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
969 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
970 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
972 microblaze*-*-rtems*)
973 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
974 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
976 mips*-*-netbsd*) # NetBSD/mips, either endian.
978 mips*-*-linux*) # Linux MIPS, either endian.
979 extra_parts="$extra_parts crtfastmath.o"
980 tmake_file="${tmake_file} t-crtfm"
982 mips64r5900* | mipsr5900*)
983 # The MIPS16 support code uses floating point
984 # instructions that are not supported on r5900.
987 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
990 md_unwind_header=mips/linux-unwind.h
993 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
994 case "${with_newlib}" in
999 # MIPS toolkit libraries.
1000 tmake_file="$tmake_file mips/t-sdemtk"
1003 extra_parts="$extra_parts crti.o crtn.o"
1005 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
1006 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
1007 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
1008 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
1009 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
1010 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
1011 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1012 extra_parts="$extra_parts crti.o crtn.o"
1014 mipsisa64sr71k-*-elf*)
1015 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
1016 extra_parts="$extra_parts crti.o crtn.o"
1018 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1019 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1020 extra_parts="$extra_parts crti.o crtn.o"
1022 mips-*-elf* | mipsel-*-elf*)
1023 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1024 extra_parts="$extra_parts crti.o crtn.o"
1026 mipsr5900-*-elf* | mipsr5900el-*-elf*)
1027 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1028 extra_parts="$extra_parts crti.o crtn.o"
1030 mips64-*-elf* | mips64el-*-elf*)
1031 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1032 extra_parts="$extra_parts crti.o crtn.o"
1034 mips64r5900-*-elf* | mips64r5900el-*-elf*)
1035 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1036 extra_parts="$extra_parts crti.o crtn.o"
1038 mips64vr-*-elf* | mips64vrel-*-elf*)
1039 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
1040 extra_parts="$extra_parts crti.o crtn.o"
1042 mips64orion-*-elf* | mips64orionel-*-elf*)
1043 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1044 extra_parts="$extra_parts crti.o crtn.o"
1047 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1048 extra_parts="$extra_parts crti.o crtn.o"
1052 mipstx39-*-elf* | mipstx39el-*-elf*)
1053 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1055 mmix-knuth-mmixware)
1056 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1057 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1062 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1063 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1064 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1067 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1068 extra_parts="crtbegin.o crtend.o crtbegin_no_eh.o crtend_no_eh.o"
1069 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1072 # Basic makefile fragment and extra_parts for crt stuff.
1073 # We also append c-isr library implementation.
1074 tmake_file="${tmake_file} t-slibgcc-libgcc"
1075 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1076 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1077 md_unwind_header=nds32/linux-unwind.h
1078 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1079 case "${with_nds32_lib}" in
1080 "" | glibc | uclibc )
1083 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1089 # Basic makefile fragment and extra_parts for crt stuff.
1090 # We also append c-isr library implementation.
1091 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1092 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1093 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1094 case "${with_nds32_lib}" in
1096 # Append library definition makefile fragment t-nds32-newlib.
1097 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1098 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1101 # Append library definition makefile fragment t-nds32-mculib.
1102 # The software floating point library is included in mculib.
1103 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1106 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1112 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-eh-dw2-dip t-slibgcc-libgcc"
1113 tm_file="$tm_file nios2/elf-lib.h"
1114 md_unwind_header=nios2/linux-unwind.h
1117 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1118 extra_parts="$extra_parts crti.o crtn.o"
1121 tmake_file="$tmake_file or1k/t-or1k"
1122 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1123 md_unwind_header=or1k/linux-unwind.h
1126 tmake_file="$tmake_file or1k/t-or1k"
1127 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1130 tmake_file="pdp11/t-pdp11 t-fdpbit"
1134 *-*-darwin9* | *-*-darwin[12][0-9]*)
1135 # libSystem contains unwind information for signal frames since
1139 md_unwind_header=rs6000/darwin-unwind.h
1142 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1143 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1145 powerpc64-*-darwin*)
1146 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1147 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1149 powerpc*-*-freebsd*)
1150 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1151 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1154 tmake_file="${tmake_file} rs6000/t-freebsd64"
1155 md_unwind_header=rs6000/freebsd-unwind.h
1160 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1163 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1164 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1166 powerpc-*-eabisimaltivec*)
1167 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1168 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1171 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1172 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1175 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1176 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1178 powerpc-*-eabialtivec*)
1179 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1180 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1182 powerpc-xilinx-eabi*)
1183 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1184 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1187 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1188 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1191 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1192 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1195 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"
1196 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1197 case $ppc_fp_type in
1201 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1204 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1207 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1210 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1213 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1218 if test $libgcc_cv_powerpc_float128 = yes; then
1219 tmake_file="${tmake_file} rs6000/t-float128"
1222 if test $libgcc_cv_powerpc_float128_hw = yes; then
1223 tmake_file="${tmake_file} rs6000/t-float128-hw"
1226 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1227 md_unwind_header=rs6000/linux-unwind.h
1229 powerpc-wrs-vxworks*)
1230 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
1231 extra_parts="$extra_parts crtbegin.o crtend.o"
1234 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1237 tmake_file="${tmake_file} rs6000/t-ppccomm 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 powerpcle-*-eabisim*)
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"
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} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1250 tm_file="$tm_file pru/pru-abi.h"
1253 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1254 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1255 md_unwind_header=riscv/linux-unwind.h
1258 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1259 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1262 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1263 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1265 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1266 md_unwind_header=rs6000/aix-unwind.h
1267 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1269 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1270 md_unwind_header=rs6000/aix-unwind.h
1271 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1273 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1274 md_unwind_header=rs6000/aix-unwind.h
1275 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1276 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o crtcxa_64.o crtcxa_64_s.o crtdbase_64.o"
1279 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1282 tmake_file="rx/t-rx t-fdpbit"
1283 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1286 tmake_file="rx/t-rx t-fdpbit"
1287 tm_file="$tm_file rx/rx-lib.h"
1290 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1291 md_unwind_header=s390/linux-unwind.h
1294 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1295 if test "${host_address}" = 32; then
1296 tmake_file="${tmake_file} s390/32/t-floattodi"
1298 md_unwind_header=s390/linux-unwind.h
1301 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip s390/t-tpf"
1302 extra_parts="crtbeginS.o crtendS.o"
1303 md_unwind_header=s390/tpf-unwind.h
1305 sh-*-elf* | sh[12346l]*-*-elf*)
1306 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1307 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1308 libic_invalidate_array_4-100.a \
1309 libic_invalidate_array_4-200.a \
1310 libic_invalidate_array_4a.a \
1311 libgcc-Os-4-200.a libgcc-4-300.a"
1314 tmake_file="$tmake_file sh/t-superh"
1315 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1319 sh-*-linux* | sh[2346lbe]*-*-linux*)
1320 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1321 md_unwind_header=sh/linux-unwind.h
1323 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1324 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1326 # NetBSD's C library includes a fast software FP library that
1327 # has support for setting/setting the rounding mode, exception
1328 # mask, etc. Therefore, we don't want to include software FP
1332 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1333 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1334 libic_invalidate_array_4-100.a \
1335 libic_invalidate_array_4-200.a \
1336 libic_invalidate_array_4a.a \
1337 libgcc-Os-4-200.a libgcc-4-300.a"
1340 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1351 tmake_file="sparc/t-softmul"
1354 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1355 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1357 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1358 tmake_file="${tmake_file} t-crtfm"
1359 if test "${host_address}" = 64; then
1360 tmake_file="$tmake_file sparc/t-linux64"
1364 tmake_file="${tmake_file} t-fdpbit"
1367 tmake_file="${tmake_file} sparc/t-linux"
1374 if test "${host_address}" = 32; then
1375 tmake_file="$tmake_file sparc/t-softmul"
1379 extra_parts="$extra_parts crtfastmath.o"
1380 md_unwind_header=sparc/linux-unwind.h
1383 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1384 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1387 tmake_file="$tmake_file t-crtfm"
1388 extra_parts="$extra_parts crtfastmath.o"
1389 md_unwind_header=sparc/sol2-unwind.h
1392 tmake_file="${tmake_file} t-crtfm"
1393 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1396 tmake_file="$tmake_file t-crtfm"
1397 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1401 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1402 tmake_file="$tmake_file t-crtfm"
1403 extra_parts="$extra_parts crtfastmath.o"
1405 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1406 extra_parts="$extra_parts crtfastmath.o"
1407 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1408 if test "${host_address}" = 64; then
1409 tmake_file="${tmake_file} sparc/t-linux64"
1411 if test "${host_address}" = 32; then
1412 tmake_file="${tmake_file} sparc/t-softmul"
1414 md_unwind_header=sparc/linux-unwind.h
1419 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1420 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1421 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1422 tm_file="$tm_file c6x/c6x-abi.h"
1423 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1424 unwind_header=config/c6x/unwind-c6x.h
1427 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1428 tm_file="$tm_file c6x/c6x-abi.h"
1429 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1430 unwind_header=config/c6x/unwind-c6x.h
1433 if test "${host_address}" = 64; then
1434 tmake_file="${tmake_file} tilegx/t-softfp"
1436 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1437 md_unwind_header=tilepro/linux-unwind.h
1440 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1441 md_unwind_header=tilepro/linux-unwind.h
1444 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1447 tmake_file="$tmake_file vax/t-linux"
1454 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1455 tmake_file="visium/t-visium t-fdpbit"
1458 tmake_file="stormy16/t-stormy16 t-fdpbit"
1461 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1462 extra_parts="$extra_parts crti.o crtn.o"
1465 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1466 md_unwind_header=xtensa/linux-unwind.h
1469 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1470 md_unwind_header=xtensa/linux-unwind.h
1471 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1474 # Don't need crtbeginT.o from *-*-linux* default.
1475 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1476 tmake_file="$tmake_file t-fdpbit"
1478 m32c-*-elf*|m32c-*-rtems*)
1479 tmake_file="$tmake_file m32c/t-m32c"
1482 tmake_file="$tmake_file nvptx/t-nvptx"
1483 extra_parts="crt0.o"
1486 echo "*** Configuration ${host} not supported" 1>&2
1492 i[34567]86-*-* | x86_64-*-*)
1495 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1498 tmake_file="${tmake_file} i386/t-cpuinfo"
1505 i[34567]86-*-linux* | x86_64-*-linux* | \
1506 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1508 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1509 if test "$libgcc_cv_cfi" = "yes"; then
1510 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1516 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1517 # These use soft-fp for SFmode and DFmode, not just TFmode.
1519 i[34567]86-*-* | x86_64-*-*)
1520 tmake_file="${tmake_file} t-softfp-tf"
1521 if test "${host_address}" = 32; then
1522 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1524 tmake_file="${tmake_file} i386/t-softfp t-softfp"
1529 i[34567]86-*-linux* | x86_64-*-linux*)
1530 # Provide backward binary compatibility for 64bit Linux/x86.
1531 if test "${host_address}" = 64; then
1532 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1534 tm_file="${tm_file} i386/value-unwind.h"
1537 # ILP32 needs an extra header for unwinding
1538 tm_file="${tm_file} aarch64/value-unwind.h"
1542 # The vxworks threads implementation relies on a few extra sources,
1543 # which we arrange to add after everything else:
1545 case ${target_thread_file} in
1549 tmake_file="${tmake_file} t-gthr-vxworksae"
1552 tmake_file="${tmake_file} t-gthr-vxworks"
1559 # The gthr weak references are unsafe with static linking
1560 tmake_file="$tmake_file t-gthr-noweak"