1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2019 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify it under
7 #the terms of the GNU General Public License as published by the Free
8 #Software Foundation; either version 3, or (at your option) any later
11 #GCC is distributed in the hope that it will be useful, but WITHOUT
12 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING3. If not see
18 #<http://www.gnu.org/licenses/>.
20 # This is the libgcc host-specific configuration file
21 # where a configuration type is mapped to different system-specific
22 # definitions and files. This is invoked by the autoconf-generated
23 # configure script. Putting it in a separate shell file lets us skip
24 # running autoconf when modifying host-specific information.
26 # This file bears an obvious resemblance to gcc/config.gcc. The cases
27 # should be kept similar, to ease moving library-specific settings
28 # from config.gcc to this file. That is also why tmake_file is
29 # left as tmake_file, rather than hmake_file, even though this library
30 # switches on ${host}.
32 # This file switches on the shell variable ${host}, and also uses the
33 # following shell variables:
35 # with_* Various variables as set by configure.
37 # This file sets the following shell variables for use by the
38 # autoconf-generated configure script:
40 # asm_hidden_op The assembler pseudo-op to use for hide
41 # lists for object files implemented in
42 # assembly (with -fvisibility=hidden for C).
43 # The default is ".hidden".
44 # cpu_type The name of the cpu, if different from the first
45 # chunk of the canonical host name.
46 # enable_execute_stack The name of a source file implementing
47 # __enable_execute_stack.
48 # extra_parts List of extra object files that should be compiled
49 # for this target machine. This may be overridden
50 # by setting EXTRA_PARTS in a tmake_file fragment.
51 # If either is set, EXTRA_PARTS and
52 # EXTRA_MULTILIB_PARTS inherited from the GCC
53 # subdirectory will be ignored.
54 # md_unwind_header The name of a header file defining
55 # MD_FALLBACK_FRAME_STATE_FOR.
56 # sfp_machine_header The name of a sfp-machine.h header file for soft-fp.
57 # Defaults to "$cpu_type/sfp-machine.h" if it exists,
58 # no-sfp-machine.h otherwise.
59 # tmake_file A list of machine-description-specific
61 # tm_defines List of target macros to define for all compilations.
62 # tm_file A list of target macro files used only for code
63 # built for the target, not the host. These files
64 # are relative to $srcdir/config and must not have
65 # the same names as files in $srcdir/../gcc/config.
66 # unwind_header The name of the header file declaring the unwind
67 # runtime interface routines.
75 md_unwind_header=no-unwind.h
76 unwind_header=unwind-generic.h
78 # Set default cpu_type so it can be updated in each machine entry.
79 cpu_type=`echo ${host} | sed 's/-.*$//'`
96 tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
128 moxie*) cpu_type=moxie
153 # All MIPS targets provide a full set of FP routines.
155 tmake_file="mips/t-mips"
156 if test "${libgcc_cv_mips_hard_float}" = yes; then
157 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
159 tmake_file="${tmake_file} t-softfp-sfdf"
161 if test "${ac_cv_sizeof_long_double}" = 16; then
162 tmake_file="${tmake_file} mips/t-softfp-tf"
164 if test "${host_address}" = 64; then
165 tmake_file="${tmake_file} mips/t-mips64"
167 tmake_file="${tmake_file} t-softfp"
198 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
199 sh[123456789lbe]*-*-*)
216 # Common parts for widely ported systems.
219 asm_hidden_op=.private_extern
220 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin"
221 extra_parts="crt3.o d10-uwfef.o crttms.o crttme.o"
224 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
225 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
226 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
229 # This is the generic ELF configuration of FreeBSD. Later
230 # machine-specific sections may refine and add to this
232 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"
233 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
234 case ${target_thread_file} in
236 tmake_file="${tmake_file} t-freebsd-thread"
237 # Before 5.0, FreeBSD can't bind shared libraries to -lc
238 # when "optionally" threaded via weak pthread_* checks.
240 *-*-freebsd[34] | *-*-freebsd[34].*)
241 tmake_file="${tmake_file} t-slibgcc-nolc-override"
248 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
249 extra_parts="crtbegin.o crtend.o"
251 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
252 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"
253 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
254 if test x$enable_vtable_verify = xyes; then
255 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
259 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
260 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
263 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
264 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
265 tmake_file="$tmake_file t-slibgcc-libgcc"
266 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
269 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
270 case ${target_thread_file} in
272 tmake_file="$tmake_file t-openbsd-thread"
277 tmake_file="$tmake_file t-rtems"
278 extra_parts="crtbegin.o crtend.o"
281 # Unless linker support and dl_iterate_phdr are present,
282 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
283 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
284 if test $with_gnu_ld = yes; then
285 tmake_file="$tmake_file t-slibgcc-gld"
287 tmake_file="$tmake_file t-slibgcc-sld"
289 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
290 tmake_file="$tmake_file $cpu_type/t-sol2"
291 extra_parts="gmon.o crtbegin.o crtend.o"
292 if test "${libgcc_cv_solaris_crts}" = yes; then
293 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
294 # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
295 extra_parts="$extra_parts crtp.o crtpg.o"
296 # If the Solaris CRTs are present, both ld and gld will have PIE support.
297 extra_parts="$extra_parts crtbeginS.o crtendS.o"
300 i?86-*-solaris2* | x86_64-*-solaris2*)
301 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
302 # part of the base system.
305 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
306 extra_parts="$extra_parts crt1.o gcrt1.o"
310 if test x$enable_vtable_verify = xyes; then
311 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
315 extra_parts="crtbegin.o crtend.o"
318 tmake_file="vms/t-vms"
319 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
322 tmake_file=t-vxworks7
328 extra_parts="crtbegin.o crtend.o"
333 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
335 enable_execute_stack=enable-execute-stack-mprotect.c
337 i[34567]86-*-mingw* | x86_64-*-mingw*)
338 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
340 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
341 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
344 enable_execute_stack=enable-execute-stack-empty.c;
349 aarch64*-*-elf | aarch64*-*-rtems*)
350 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
351 extra_parts="$extra_parts crtfastmath.o"
352 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
353 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
354 md_unwind_header=aarch64/aarch64-unwind.h
357 extra_parts="$extra_parts crtfastmath.o"
358 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
359 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
360 md_unwind_header=aarch64/freebsd-unwind.h
363 extra_parts="$extra_parts crtfastmath.o"
364 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
365 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
366 md_unwind_header=aarch64/aarch64-unwind.h
369 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
370 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
373 extra_parts="$extra_parts crtfastmath.o"
374 md_unwind_header=aarch64/linux-unwind.h
375 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
376 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
379 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
380 extra_parts="$extra_parts crtfastmath.o"
381 md_unwind_header=alpha/linux-unwind.h
384 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
385 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
388 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
391 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
394 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
395 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
396 md_unwind_header=alpha/vms-unwind.h
399 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
400 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
401 md_unwind_header=alpha/vms-unwind.h
404 tmake_file="$tmake_file gcn/t-amdgcn"
408 tmake_file="arc/t-arc"
409 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
410 extra_parts="$extra_parts crttls.o"
413 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
414 extra_parts="$extra_parts crti.o crtn.o"
415 extra_parts="$extra_parts crttls.o"
416 md_unwind_header=arc/linux-unwind.h
418 arm-wrs-vxworks|arm-wrs-vxworks7)
419 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
420 extra_parts="$extra_parts crti.o crtn.o"
423 # Note that arm/t-bpabi will reset the LIB2ADDEH macro.
424 # This is intentional.
425 tmake_file="$tmake_file arm/t-bpabi arm/t-vxworks7"
426 tm_file="$tm_file arm/bpabi-lib.h"
427 unwind_header=config/arm/unwind-arm.h
431 arm*-*-freebsd*) # ARM FreeBSD EABI
432 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
433 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
434 tm_file="${tm_file} arm/bpabi-lib.h"
435 unwind_header=config/arm/unwind-arm.h
436 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
439 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
440 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
441 tm_file="${tm_file} arm/bpabi-lib.h"
442 unwind_header=config/arm/unwind-arm.h
445 tmake_file="$tmake_file arm/t-arm"
447 arm*-*-netbsdelf-*eabi*)
448 tmake_file="${tmake_file} arm/t-netbsd-eabi"
449 unwind_header=config/arm/unwind-arm.h
452 tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover"
456 arm*-*-linux* | arm*-*-uclinuxfdpiceabi)
457 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
458 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
459 tm_file="$tm_file arm/bpabi-lib.h"
460 unwind_header=config/arm/unwind-arm.h
461 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
462 extra_parts="$extra_parts crtfastmath.o"
464 arm*-*-uclinux*) # ARM ucLinux
465 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
466 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
467 tmake_file="${tmake_file} arm/t-bpabi"
468 tm_file="$tm_file arm/bpabi-lib.h"
469 unwind_header=config/arm/unwind-arm.h
470 extra_parts="$extra_parts crti.o crtn.o"
473 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
474 tmake_file="${tmake_file} arm/t-bpabi"
475 tm_file="$tm_file arm/bpabi-lib.h"
476 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
477 unwind_header=config/arm/unwind-arm.h
479 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
480 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
481 tm_file="$tm_file arm/bpabi-lib.h"
483 arm*-*-eabi* | arm*-*-rtems*)
484 tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
485 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
488 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
489 tm_file="$tm_file arm/symbian-lib.h"
490 # Symbian OS provides its own startup code.
493 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
494 extra_parts="$extra_parts crtfastmath.o"
495 unwind_header=config/arm/unwind-arm.h
498 # Make HImode functions for AVR
499 tmake_file="${cpu_type}/t-avr t-fpbit"
500 if test x${with_avrlibc} != xno; then
501 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
503 tm_file="$tm_file avr/avr-lib.h"
506 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
507 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
510 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
511 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
512 md_unwind_header=bfin/linux-unwind.h
515 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
516 # No need to build crtbeginT.o on uClibc systems. Should probably
517 # be moved to the OS specific section above.
518 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
519 md_unwind_header=bfin/linux-unwind.h
522 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
523 extra_parts="$extra_parts crti.o crtn.o"
526 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
527 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
530 tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
531 extra_parts="crti.o crtn.o"
534 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
535 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
538 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
541 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
543 cris-*-linux* | crisv32-*-linux*)
544 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
547 tmake_file="csky/t-csky t-fdpbit"
548 extra_parts="$extra_parts crti.o crtn.o"
551 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
552 extra_parts="$extra_parts crti.o crtn.o"
553 md_unwind_header=csky/linux-unwind.h
555 epiphany-*-elf* | epiphany-*-rtems*)
556 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
557 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
560 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
561 extra_parts="$extra_parts crti.o crtn.o"
564 tmake_file="$tmake_file frv/t-frv t-fdpbit"
565 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
566 # Don't use crtbegin.o, crtend.o.
567 extra_parts="frvbegin.o frvend.o"
570 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
571 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
574 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
575 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
578 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
579 tm_file="$tm_file h8300/h8300-lib.h"
580 extra_parts="$extra_parts crti.o crtn.o"
583 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
584 tm_file="$tm_file h8300/h8300-lib.h"
587 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
588 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
591 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
592 # Set the libgcc version number
593 if test x$ac_cv_sjlj_exceptions = xyes; then
594 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
596 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
598 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
599 md_unwind_header=pa/linux-unwind.h
602 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
603 # Set the libgcc version number
604 if test x$ac_cv_sjlj_exceptions = xyes; then
605 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
607 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
609 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
610 md_unwind_header=pa/hpux-unwind.h
613 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
614 # Set the libgcc version number
615 if test x$ac_cv_sjlj_exceptions = xyes; then
616 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
618 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
620 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
621 tm_file="$tm_file pa/pa64-hpux-lib.h"
622 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
624 md_unwind_header=pa/hpux-unwind.h
627 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
628 # Set the libgcc version number
629 if test x$ac_cv_sjlj_exceptions = xyes; then
630 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
632 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
634 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
635 extra_parts="libgcc_stub.a"
636 md_unwind_header=pa/hpux-unwind.h
639 tmake_file="$tmake_file pa/t-openbsd"
642 tmake_file="$tmake_file pa/t-netbsd"
644 i[34567]86-*-darwin*)
645 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
646 tm_file="$tm_file i386/darwin-lib.h"
647 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
650 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
651 tm_file="$tm_file i386/darwin-lib.h"
652 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
654 i[34567]86-*-elfiamcu)
655 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"
658 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
660 x86_64-*-elf* | x86_64-*-rtems*)
661 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
664 extra_parts="$extra_parts crti.o crtn.o"
669 tmake_file="$tmake_file t-libgcc-pic"
671 i[34567]86-*-dragonfly*)
672 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
673 md_unwind_header=i386/dragonfly-unwind.h
676 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
677 md_unwind_header=i386/dragonfly-unwind.h
679 i[34567]86-*-freebsd*)
680 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
681 md_unwind_header=i386/freebsd-unwind.h
684 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
685 md_unwind_header=i386/freebsd-unwind.h
687 i[34567]86-*-netbsdelf*)
688 tmake_file="${tmake_file} i386/t-crtstuff"
691 tmake_file="${tmake_file} i386/t-crtstuff"
693 i[34567]86-*-openbsd*)
698 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
699 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
700 tm_file="${tm_file} i386/elf-lib.h"
701 md_unwind_header=i386/linux-unwind.h
703 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
704 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
705 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
706 tm_file="${tm_file} i386/elf-lib.h"
709 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
710 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
711 tm_file="${tm_file} i386/elf-lib.h"
712 md_unwind_header=i386/linux-unwind.h
714 x86_64-*-kfreebsd*-gnu)
715 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
716 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
717 tm_file="${tm_file} i386/elf-lib.h"
719 i[34567]86-pc-msdosdjgpp*)
721 i[34567]86-*-lynxos*)
723 i[34567]86-*-nto-qnx*)
724 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
725 extra_parts=crtbegin.o
728 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
729 extra_parts="$extra_parts crti.o crtn.o"
731 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
732 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
733 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
734 tm_file="${tm_file} i386/elf-lib.h"
735 md_unwind_header=i386/sol2-unwind.h
737 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
739 i[34567]86-*-cygwin*)
740 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
741 if test x$enable_vtable_verify = xyes; then
742 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
744 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
745 if test x$ac_cv_sjlj_exceptions = xyes; then
746 tmake_eh_file="i386/t-sjlj-eh"
748 tmake_eh_file="i386/t-dw2-eh"
750 # Shared libgcc DLL install dir depends on cross/native build.
751 if test x${build} = x${host} ; then
752 tmake_dlldir_file="i386/t-dlldir"
754 tmake_dlldir_file="i386/t-dlldir-x"
756 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"
759 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
760 if test x$enable_vtable_verify = xyes; then
761 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
763 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
764 if test x$ac_cv_sjlj_exceptions = xyes; then
765 tmake_eh_file="i386/t-sjlj-eh"
766 elif test "${host_address}" = 32; then
767 # biarch -m32 with --disable-sjlj-exceptions
768 tmake_eh_file="i386/t-dw2-eh"
770 tmake_eh_file="i386/t-seh-eh"
772 # Shared libgcc DLL install dir depends on cross/native build.
773 if test x${build} = x${host} ; then
774 tmake_dlldir_file="i386/t-dlldir"
776 tmake_dlldir_file="i386/t-dlldir-x"
778 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
779 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"
782 extra_parts="crtbegin.o crtend.o crtfastmath.o"
783 if test x$enable_vtable_verify = xyes; then
784 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
786 case ${target_thread_file} in
788 tmake_file="$tmake_file i386/t-gthr-win32"
791 tmake_file="i386/t-mingw-pthread $tmake_file"
794 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
795 if test x$ac_cv_sjlj_exceptions = xyes; then
796 tmake_eh_file="i386/t-sjlj-eh"
798 tmake_eh_file="i386/t-dw2-eh"
799 md_unwind_header=i386/w32-unwind.h
801 # Shared libgcc DLL install dir depends on cross/native build.
802 if test x${build} = x${host} ; then
803 tmake_dlldir_file="i386/t-dlldir"
805 tmake_dlldir_file="i386/t-dlldir-x"
807 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"
810 case ${target_thread_file} in
812 tmake_file="$tmake_file i386/t-gthr-win32"
815 tmake_file="i386/t-mingw-pthread $tmake_file"
818 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
819 if test x$ac_cv_sjlj_exceptions = xyes; then
820 tmake_eh_file="i386/t-sjlj-eh"
821 elif test "${host_address}" = 32; then
822 # biarch -m32 with --disable-sjlj-exceptions
823 tmake_eh_file="i386/t-dw2-eh"
824 md_unwind_header=i386/w32-unwind.h
826 tmake_eh_file="i386/t-seh-eh"
828 # Shared libgcc DLL install dir depends on cross/native build.
829 if test x${build} = x${host} ; then
830 tmake_dlldir_file="i386/t-dlldir"
832 tmake_dlldir_file="i386/t-dlldir-x"
834 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"
835 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
836 if test x$enable_vtable_verify = xyes; then
837 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
841 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
842 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"
845 extra_parts="$extra_parts crtfastmath.o"
846 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"
849 # Don't use crtbeginT.o from *-*-linux* default.
850 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
851 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"
852 if test x$with_system_libunwind != xyes ; then
853 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
855 md_unwind_header=ia64/linux-unwind.h
858 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
861 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"
862 extra_parts="$extra_parts crtinitS.o"
863 md_unwind_header=ia64/vms-unwind.h
866 tmake_file="iq2000/t-iq2000 t-fdpbit"
871 extra_parts="$extra_parts crti.o crtn.o"
872 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
875 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
876 extra_parts="$extra_parts crti.o crtn.o"
879 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
880 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
883 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
884 extra_parts="$extra_parts crtinit.o crtfini.o"
890 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
893 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
895 m68k-*-elf* | fido-*-elf)
896 tmake_file="$tmake_file m68k/t-floatlib"
902 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
903 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
904 md_unwind_header=m68k/linux-unwind.h
906 m68k-*-linux*) # Motorola m68k's running GNU/Linux
907 # with ELF format using glibc 2
908 # aka the GNU/Linux C library 6.
909 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
910 # If not configured with setjmp/longjmp exceptions, bump the
911 # libgcc version number.
912 if test x$ac_cv_sjlj_exceptions != xyes; then
913 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
915 md_unwind_header=m68k/linux-unwind.h
918 tmake_file="$tmake_file m68k/t-floatlib"
919 extra_parts="$extra_parts crti.o crtn.o"
922 tmake_file="mcore/t-mcore t-fdpbit"
923 extra_parts="$extra_parts crti.o crtn.o"
926 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
929 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
930 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
932 microblaze*-*-rtems*)
933 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
934 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
936 mips*-*-netbsd*) # NetBSD/mips, either endian.
938 mips*-*-linux*) # Linux MIPS, either endian.
939 extra_parts="$extra_parts crtfastmath.o"
940 tmake_file="${tmake_file} t-crtfm"
942 mips64r5900* | mipsr5900*)
943 # The MIPS16 support code uses floating point
944 # instructions that are not supported on r5900.
947 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
950 md_unwind_header=mips/linux-unwind.h
953 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
954 case "${with_newlib}" in
959 # MIPS toolkit libraries.
960 tmake_file="$tmake_file mips/t-sdemtk"
963 extra_parts="$extra_parts crti.o crtn.o"
965 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
966 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
967 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
968 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
969 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
970 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
971 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
972 extra_parts="$extra_parts crti.o crtn.o"
974 mipsisa64sr71k-*-elf*)
975 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
976 extra_parts="$extra_parts crti.o crtn.o"
978 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
979 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
980 extra_parts="$extra_parts crti.o crtn.o"
982 mips-*-elf* | mipsel-*-elf*)
983 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
984 extra_parts="$extra_parts crti.o crtn.o"
986 mipsr5900-*-elf* | mipsr5900el-*-elf*)
987 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
988 extra_parts="$extra_parts crti.o crtn.o"
990 mips64-*-elf* | mips64el-*-elf*)
991 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
992 extra_parts="$extra_parts crti.o crtn.o"
994 mips64r5900-*-elf* | mips64r5900el-*-elf*)
995 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
996 extra_parts="$extra_parts crti.o crtn.o"
998 mips64vr-*-elf* | mips64vrel-*-elf*)
999 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
1000 extra_parts="$extra_parts crti.o crtn.o"
1002 mips64orion-*-elf* | mips64orionel-*-elf*)
1003 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1004 extra_parts="$extra_parts crti.o crtn.o"
1007 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1008 extra_parts="$extra_parts crti.o crtn.o"
1012 mipstx39-*-elf* | mipstx39el-*-elf*)
1013 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1015 mmix-knuth-mmixware)
1016 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1017 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1022 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1023 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1024 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1027 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1028 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1031 # Basic makefile fragment and extra_parts for crt stuff.
1032 # We also append c-isr library implementation.
1033 tmake_file="${tmake_file} t-slibgcc-libgcc"
1034 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1035 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1036 md_unwind_header=nds32/linux-unwind.h
1037 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1038 case "${with_nds32_lib}" in
1039 "" | glibc | uclibc )
1042 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1048 # Basic makefile fragment and extra_parts for crt stuff.
1049 # We also append c-isr library implementation.
1050 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1051 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1052 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1053 case "${with_nds32_lib}" in
1055 # Append library definition makefile fragment t-nds32-newlib.
1056 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1057 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1060 # Append library definition makefile fragment t-nds32-mculib.
1061 # The software floating point library is included in mculib.
1062 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1065 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1071 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
1072 md_unwind_header=nios2/linux-unwind.h
1075 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1076 extra_parts="$extra_parts crti.o crtn.o"
1079 tmake_file="$tmake_file or1k/t-or1k"
1080 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1081 md_unwind_header=or1k/linux-unwind.h
1084 tmake_file="$tmake_file or1k/t-or1k"
1085 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1088 tmake_file="pdp11/t-pdp11 t-fdpbit"
1092 *-*-darwin9* | *-*-darwin[12][0-9]*)
1093 # libSystem contains unwind information for signal frames since
1097 md_unwind_header=rs6000/darwin-unwind.h
1100 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1101 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1103 powerpc64-*-darwin*)
1104 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1105 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1107 powerpc*-*-freebsd*)
1108 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1109 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1112 tmake_file="${tmake_file} rs6000/t-freebsd64"
1113 md_unwind_header=rs6000/freebsd-unwind.h
1118 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1121 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1122 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1124 powerpc-*-eabisimaltivec*)
1125 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1126 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1129 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1130 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1133 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1134 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1136 powerpc-*-eabialtivec*)
1137 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1138 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1140 powerpc-xilinx-eabi*)
1141 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1142 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1145 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1146 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1149 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1150 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1153 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"
1154 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1155 case $ppc_fp_type in
1159 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1162 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1165 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1168 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1171 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1176 if test $libgcc_cv_powerpc_float128 = yes; then
1177 tmake_file="${tmake_file} rs6000/t-float128"
1180 if test $libgcc_cv_powerpc_float128_hw = yes; then
1181 tmake_file="${tmake_file} rs6000/t-float128-hw"
1184 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1185 md_unwind_header=rs6000/linux-unwind.h
1187 powerpc-wrs-vxworks*)
1188 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
1189 extra_parts="$extra_parts crtbegin.o crtend.o"
1192 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1195 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1196 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1198 powerpcle-*-eabisim*)
1199 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1200 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1203 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1204 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1207 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1208 tm_file="$tm_file pru/pru-abi.h"
1211 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1212 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1213 md_unwind_header=riscv/linux-unwind.h
1216 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1217 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1220 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1221 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1223 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1224 md_unwind_header=rs6000/aix-unwind.h
1225 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1227 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1228 md_unwind_header=rs6000/aix-unwind.h
1229 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1231 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1232 md_unwind_header=rs6000/aix-unwind.h
1233 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1234 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
1237 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1240 tmake_file="rx/t-rx t-fdpbit"
1241 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1244 tmake_file="rx/t-rx t-fdpbit"
1245 tm_file="$tm_file rx/rx-lib.h"
1248 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1249 md_unwind_header=s390/linux-unwind.h
1252 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1253 if test "${host_address}" = 32; then
1254 tmake_file="${tmake_file} s390/32/t-floattodi"
1256 md_unwind_header=s390/linux-unwind.h
1259 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
1260 extra_parts="crtbeginS.o crtendS.o"
1261 md_unwind_header=s390/tpf-unwind.h
1263 sh-*-elf* | sh[12346l]*-*-elf*)
1264 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1265 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1266 libic_invalidate_array_4-100.a \
1267 libic_invalidate_array_4-200.a \
1268 libic_invalidate_array_4a.a \
1269 libgcc-Os-4-200.a libgcc-4-300.a"
1272 tmake_file="$tmake_file sh/t-superh"
1273 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1277 sh-*-linux* | sh[2346lbe]*-*-linux*)
1278 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1279 md_unwind_header=sh/linux-unwind.h
1281 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1282 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1284 # NetBSD's C library includes a fast software FP library that
1285 # has support for setting/setting the rounding mode, exception
1286 # mask, etc. Therefore, we don't want to include software FP
1290 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1291 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1292 libic_invalidate_array_4-100.a \
1293 libic_invalidate_array_4-200.a \
1294 libic_invalidate_array_4a.a \
1295 libgcc-Os-4-200.a libgcc-4-300.a"
1298 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1309 tmake_file="sparc/t-softmul"
1312 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1313 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1315 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1316 tmake_file="${tmake_file} t-crtfm"
1317 if test "${host_address}" = 64; then
1318 tmake_file="$tmake_file sparc/t-linux64"
1322 tmake_file="${tmake_file} t-fdpbit"
1325 tmake_file="${tmake_file} sparc/t-linux"
1332 if test "${host_address}" = 32; then
1333 tmake_file="$tmake_file sparc/t-softmul"
1337 extra_parts="$extra_parts crtfastmath.o"
1338 md_unwind_header=sparc/linux-unwind.h
1341 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1342 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1345 tmake_file="$tmake_file t-crtfm"
1346 extra_parts="$extra_parts crtfastmath.o"
1347 md_unwind_header=sparc/sol2-unwind.h
1350 tmake_file="${tmake_file} t-crtfm"
1351 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1354 tmake_file="$tmake_file t-crtfm"
1355 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1359 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1360 tmake_file="$tmake_file t-crtfm"
1361 extra_parts="$extra_parts crtfastmath.o"
1363 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1364 extra_parts="$extra_parts crtfastmath.o"
1365 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1366 if test "${host_address}" = 64; then
1367 tmake_file="${tmake_file} sparc/t-linux64"
1369 if test "${host_address}" = 32; then
1370 tmake_file="${tmake_file} sparc/t-softmul"
1372 md_unwind_header=sparc/linux-unwind.h
1377 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1378 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1379 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1380 tm_file="$tm_file c6x/c6x-abi.h"
1381 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1382 unwind_header=config/c6x/unwind-c6x.h
1385 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1386 tm_file="$tm_file c6x/c6x-abi.h"
1387 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1388 unwind_header=config/c6x/unwind-c6x.h
1391 if test "${host_address}" = 64; then
1392 tmake_file="${tmake_file} tilegx/t-softfp"
1394 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1395 md_unwind_header=tilepro/linux-unwind.h
1398 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1399 md_unwind_header=tilepro/linux-unwind.h
1402 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1405 tmake_file="$tmake_file vax/t-linux"
1412 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1413 tmake_file="visium/t-visium t-fdpbit"
1416 tmake_file="stormy16/t-stormy16 t-fdpbit"
1419 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1420 extra_parts="$extra_parts crti.o crtn.o"
1423 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1424 md_unwind_header=xtensa/linux-unwind.h
1427 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1428 md_unwind_header=xtensa/linux-unwind.h
1429 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1432 # Don't need crtbeginT.o from *-*-linux* default.
1433 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1434 tmake_file="$tmake_file t-fdpbit"
1436 m32c-*-elf*|m32c-*-rtems*)
1437 tmake_file="$tmake_file m32c/t-m32c"
1440 tmake_file="$tmake_file nvptx/t-nvptx"
1441 extra_parts="crt0.o"
1444 echo "*** Configuration ${host} not supported" 1>&2
1450 i[34567]86-*-* | x86_64-*-*)
1453 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1456 tmake_file="${tmake_file} i386/t-cpuinfo"
1463 i[34567]86-*-linux* | x86_64-*-linux* | \
1464 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1466 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1467 if test "$libgcc_cv_cfi" = "yes"; then
1468 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1474 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1475 # These use soft-fp for SFmode and DFmode, not just TFmode.
1477 i[34567]86-*-* | x86_64-*-*)
1478 tmake_file="${tmake_file} t-softfp-tf"
1479 if test "${host_address}" = 32; then
1480 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1482 tmake_file="${tmake_file} i386/t-softfp t-softfp"
1487 i[34567]86-*-linux* | x86_64-*-linux*)
1488 # Provide backward binary compatibility for 64bit Linux/x86.
1489 if test "${host_address}" = 64; then
1490 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1492 tm_file="${tm_file} i386/value-unwind.h"
1495 # ILP32 needs an extra header for unwinding
1496 tm_file="${tm_file} aarch64/value-unwind.h"