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-lse t-slibgcc-libgcc"
354 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
355 md_unwind_header=aarch64/aarch64-unwind.h
358 extra_parts="$extra_parts crtfastmath.o"
359 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
360 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
361 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
362 md_unwind_header=aarch64/freebsd-unwind.h
365 extra_parts="$extra_parts crtfastmath.o"
366 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
367 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
368 md_unwind_header=aarch64/aarch64-unwind.h
371 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
372 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
373 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
376 extra_parts="$extra_parts crtfastmath.o"
377 md_unwind_header=aarch64/linux-unwind.h
378 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
379 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
380 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
383 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
384 extra_parts="$extra_parts crtfastmath.o"
385 md_unwind_header=alpha/linux-unwind.h
388 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
389 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
392 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
395 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
398 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
399 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
400 md_unwind_header=alpha/vms-unwind.h
403 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
404 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
405 md_unwind_header=alpha/vms-unwind.h
408 tmake_file="$tmake_file gcn/t-amdgcn"
412 tmake_file="arc/t-arc"
413 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
414 extra_parts="$extra_parts crttls.o"
417 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
418 extra_parts="$extra_parts crti.o crtn.o"
419 extra_parts="$extra_parts crttls.o"
420 md_unwind_header=arc/linux-unwind.h
422 arm-wrs-vxworks|arm-wrs-vxworks7)
423 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
424 extra_parts="$extra_parts crti.o crtn.o"
427 # Note that arm/t-bpabi will reset the LIB2ADDEH macro.
428 # This is intentional.
429 tmake_file="$tmake_file arm/t-bpabi arm/t-vxworks7"
430 tm_file="$tm_file arm/bpabi-lib.h"
431 unwind_header=config/arm/unwind-arm.h
435 arm*-*-freebsd*) # ARM FreeBSD EABI
436 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
437 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
438 tm_file="${tm_file} arm/bpabi-lib.h"
439 unwind_header=config/arm/unwind-arm.h
440 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
443 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
444 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
445 tm_file="${tm_file} arm/bpabi-lib.h"
446 unwind_header=config/arm/unwind-arm.h
449 tmake_file="$tmake_file arm/t-arm"
451 arm*-*-netbsdelf-*eabi*)
452 tmake_file="${tmake_file} arm/t-netbsd-eabi"
453 unwind_header=config/arm/unwind-arm.h
456 tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover"
460 arm*-*-linux* | arm*-*-uclinuxfdpiceabi)
461 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
462 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
463 tm_file="$tm_file arm/bpabi-lib.h"
464 unwind_header=config/arm/unwind-arm.h
465 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
466 extra_parts="$extra_parts crtfastmath.o"
468 arm*-*-uclinux*) # ARM ucLinux
469 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
470 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
471 tmake_file="${tmake_file} arm/t-bpabi"
472 tm_file="$tm_file arm/bpabi-lib.h"
473 unwind_header=config/arm/unwind-arm.h
474 extra_parts="$extra_parts crti.o crtn.o"
477 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
478 tmake_file="${tmake_file} arm/t-bpabi"
479 tm_file="$tm_file arm/bpabi-lib.h"
480 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
481 unwind_header=config/arm/unwind-arm.h
483 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
484 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
485 tm_file="$tm_file arm/bpabi-lib.h"
487 arm*-*-eabi* | arm*-*-rtems*)
488 tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
489 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
492 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
493 tm_file="$tm_file arm/symbian-lib.h"
494 # Symbian OS provides its own startup code.
497 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
498 extra_parts="$extra_parts crtfastmath.o"
499 unwind_header=config/arm/unwind-arm.h
502 # Make HImode functions for AVR
503 tmake_file="${cpu_type}/t-avr t-fpbit"
504 if test x${with_avrlibc} != xno; then
505 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
507 tm_file="$tm_file avr/avr-lib.h"
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 crti.o crtn.o crtlibid.o"
514 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
515 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
516 md_unwind_header=bfin/linux-unwind.h
519 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
520 # No need to build crtbeginT.o on uClibc systems. Should probably
521 # be moved to the OS specific section above.
522 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
523 md_unwind_header=bfin/linux-unwind.h
526 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
527 extra_parts="$extra_parts crti.o crtn.o"
530 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
531 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
534 tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
535 extra_parts="crti.o crtn.o"
538 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
539 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
542 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
545 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
547 cris-*-linux* | crisv32-*-linux*)
548 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
551 tmake_file="csky/t-csky t-fdpbit"
552 extra_parts="$extra_parts crti.o crtn.o"
555 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
556 extra_parts="$extra_parts crti.o crtn.o"
557 md_unwind_header=csky/linux-unwind.h
559 epiphany-*-elf* | epiphany-*-rtems*)
560 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
561 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
564 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
565 extra_parts="$extra_parts crti.o crtn.o"
568 tmake_file="$tmake_file frv/t-frv t-fdpbit"
569 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
570 # Don't use crtbegin.o, crtend.o.
571 extra_parts="frvbegin.o frvend.o"
574 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
575 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
578 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
579 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
582 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
583 tm_file="$tm_file h8300/h8300-lib.h"
584 extra_parts="$extra_parts crti.o crtn.o"
587 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
588 tm_file="$tm_file h8300/h8300-lib.h"
591 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
592 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
595 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
596 # Set the libgcc version number
597 if test x$ac_cv_sjlj_exceptions = xyes; then
598 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
600 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
602 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
603 md_unwind_header=pa/linux-unwind.h
606 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
607 # Set the libgcc version number
608 if test x$ac_cv_sjlj_exceptions = xyes; then
609 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
611 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
613 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
614 md_unwind_header=pa/hpux-unwind.h
617 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
618 # Set the libgcc version number
619 if test x$ac_cv_sjlj_exceptions = xyes; then
620 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
622 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
624 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
625 tm_file="$tm_file pa/pa64-hpux-lib.h"
626 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
628 md_unwind_header=pa/hpux-unwind.h
631 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
632 # Set the libgcc version number
633 if test x$ac_cv_sjlj_exceptions = xyes; then
634 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
636 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
638 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
639 extra_parts="libgcc_stub.a"
640 md_unwind_header=pa/hpux-unwind.h
643 tmake_file="$tmake_file pa/t-openbsd"
646 tmake_file="$tmake_file pa/t-netbsd"
648 i[34567]86-*-darwin*)
649 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
650 tm_file="$tm_file i386/darwin-lib.h"
651 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
654 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
655 tm_file="$tm_file i386/darwin-lib.h"
656 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
658 i[34567]86-*-elfiamcu)
659 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"
662 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
664 x86_64-*-elf* | x86_64-*-rtems*)
665 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
668 extra_parts="$extra_parts crti.o crtn.o"
673 tmake_file="$tmake_file t-libgcc-pic"
675 i[34567]86-*-dragonfly*)
676 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
677 md_unwind_header=i386/dragonfly-unwind.h
680 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
681 md_unwind_header=i386/dragonfly-unwind.h
683 i[34567]86-*-freebsd*)
684 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
685 md_unwind_header=i386/freebsd-unwind.h
688 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
689 md_unwind_header=i386/freebsd-unwind.h
691 i[34567]86-*-netbsdelf*)
692 tmake_file="${tmake_file} i386/t-crtstuff"
695 tmake_file="${tmake_file} i386/t-crtstuff"
697 i[34567]86-*-openbsd*)
702 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
703 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
704 tm_file="${tm_file} i386/elf-lib.h"
705 md_unwind_header=i386/linux-unwind.h
707 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
708 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
709 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
710 tm_file="${tm_file} i386/elf-lib.h"
713 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
714 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
715 tm_file="${tm_file} i386/elf-lib.h"
716 md_unwind_header=i386/linux-unwind.h
718 x86_64-*-kfreebsd*-gnu)
719 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
720 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
721 tm_file="${tm_file} i386/elf-lib.h"
723 i[34567]86-pc-msdosdjgpp*)
725 i[34567]86-*-lynxos*)
727 i[34567]86-*-nto-qnx*)
728 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
729 extra_parts=crtbegin.o
732 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
733 extra_parts="$extra_parts crti.o crtn.o"
735 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
736 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
737 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
738 tm_file="${tm_file} i386/elf-lib.h"
739 md_unwind_header=i386/sol2-unwind.h
741 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
743 i[34567]86-*-cygwin*)
744 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
745 if test x$enable_vtable_verify = xyes; then
746 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
748 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
749 if test x$ac_cv_sjlj_exceptions = xyes; then
750 tmake_eh_file="i386/t-sjlj-eh"
752 tmake_eh_file="i386/t-dw2-eh"
754 # Shared libgcc DLL install dir depends on cross/native build.
755 if test x${build} = x${host} ; then
756 tmake_dlldir_file="i386/t-dlldir"
758 tmake_dlldir_file="i386/t-dlldir-x"
760 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"
763 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
764 if test x$enable_vtable_verify = xyes; then
765 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
767 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
768 if test x$ac_cv_sjlj_exceptions = xyes; then
769 tmake_eh_file="i386/t-sjlj-eh"
770 elif test "${host_address}" = 32; then
771 # biarch -m32 with --disable-sjlj-exceptions
772 tmake_eh_file="i386/t-dw2-eh"
774 tmake_eh_file="i386/t-seh-eh"
776 # Shared libgcc DLL install dir depends on cross/native build.
777 if test x${build} = x${host} ; then
778 tmake_dlldir_file="i386/t-dlldir"
780 tmake_dlldir_file="i386/t-dlldir-x"
782 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
783 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"
786 extra_parts="crtbegin.o crtend.o crtfastmath.o"
787 if test x$enable_vtable_verify = xyes; then
788 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
790 case ${target_thread_file} in
792 tmake_file="$tmake_file i386/t-gthr-win32"
795 tmake_file="i386/t-mingw-pthread $tmake_file"
798 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
799 if test x$ac_cv_sjlj_exceptions = xyes; then
800 tmake_eh_file="i386/t-sjlj-eh"
802 tmake_eh_file="i386/t-dw2-eh"
803 md_unwind_header=i386/w32-unwind.h
805 # Shared libgcc DLL install dir depends on cross/native build.
806 if test x${build} = x${host} ; then
807 tmake_dlldir_file="i386/t-dlldir"
809 tmake_dlldir_file="i386/t-dlldir-x"
811 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"
814 case ${target_thread_file} in
816 tmake_file="$tmake_file i386/t-gthr-win32"
819 tmake_file="i386/t-mingw-pthread $tmake_file"
822 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
823 if test x$ac_cv_sjlj_exceptions = xyes; then
824 tmake_eh_file="i386/t-sjlj-eh"
825 elif test "${host_address}" = 32; then
826 # biarch -m32 with --disable-sjlj-exceptions
827 tmake_eh_file="i386/t-dw2-eh"
828 md_unwind_header=i386/w32-unwind.h
830 tmake_eh_file="i386/t-seh-eh"
832 # Shared libgcc DLL install dir depends on cross/native build.
833 if test x${build} = x${host} ; then
834 tmake_dlldir_file="i386/t-dlldir"
836 tmake_dlldir_file="i386/t-dlldir-x"
838 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"
839 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
840 if test x$enable_vtable_verify = xyes; then
841 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
845 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
846 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 extra_parts="$extra_parts crtfastmath.o"
850 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"
853 # Don't use crtbeginT.o from *-*-linux* default.
854 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
855 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"
856 if test x$with_system_libunwind != xyes ; then
857 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
859 md_unwind_header=ia64/linux-unwind.h
862 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
865 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"
866 extra_parts="$extra_parts crtinitS.o"
867 md_unwind_header=ia64/vms-unwind.h
870 tmake_file="iq2000/t-iq2000 t-fdpbit"
875 extra_parts="$extra_parts crti.o crtn.o"
876 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
879 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
880 extra_parts="$extra_parts crti.o crtn.o"
883 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
884 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
887 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
888 extra_parts="$extra_parts crtinit.o crtfini.o"
894 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
897 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
899 m68k-*-elf* | fido-*-elf)
900 tmake_file="$tmake_file m68k/t-floatlib"
906 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
907 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
908 md_unwind_header=m68k/linux-unwind.h
910 m68k-*-linux*) # Motorola m68k's running GNU/Linux
911 # with ELF format using glibc 2
912 # aka the GNU/Linux C library 6.
913 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
914 # If not configured with setjmp/longjmp exceptions, bump the
915 # libgcc version number.
916 if test x$ac_cv_sjlj_exceptions != xyes; then
917 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
919 md_unwind_header=m68k/linux-unwind.h
922 tmake_file="$tmake_file m68k/t-floatlib"
923 extra_parts="$extra_parts crti.o crtn.o"
926 tmake_file="mcore/t-mcore t-fdpbit"
927 extra_parts="$extra_parts crti.o crtn.o"
930 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
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 microblaze*-*-rtems*)
937 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
938 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
940 mips*-*-netbsd*) # NetBSD/mips, either endian.
942 mips*-*-linux*) # Linux MIPS, either endian.
943 extra_parts="$extra_parts crtfastmath.o"
944 tmake_file="${tmake_file} t-crtfm"
946 mips64r5900* | mipsr5900*)
947 # The MIPS16 support code uses floating point
948 # instructions that are not supported on r5900.
951 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
954 md_unwind_header=mips/linux-unwind.h
957 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
958 case "${with_newlib}" in
963 # MIPS toolkit libraries.
964 tmake_file="$tmake_file mips/t-sdemtk"
967 extra_parts="$extra_parts crti.o crtn.o"
969 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
970 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
971 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
972 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
973 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
974 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
975 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
976 extra_parts="$extra_parts crti.o crtn.o"
978 mipsisa64sr71k-*-elf*)
979 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
980 extra_parts="$extra_parts crti.o crtn.o"
982 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-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 mips-*-elf* | mipsel-*-elf*)
987 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
988 extra_parts="$extra_parts crti.o crtn.o"
990 mipsr5900-*-elf* | mipsr5900el-*-elf*)
991 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
992 extra_parts="$extra_parts crti.o crtn.o"
994 mips64-*-elf* | mips64el-*-elf*)
995 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
996 extra_parts="$extra_parts crti.o crtn.o"
998 mips64r5900-*-elf* | mips64r5900el-*-elf*)
999 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1000 extra_parts="$extra_parts crti.o crtn.o"
1002 mips64vr-*-elf* | mips64vrel-*-elf*)
1003 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
1004 extra_parts="$extra_parts crti.o crtn.o"
1006 mips64orion-*-elf* | mips64orionel-*-elf*)
1007 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1008 extra_parts="$extra_parts crti.o crtn.o"
1011 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1012 extra_parts="$extra_parts crti.o crtn.o"
1016 mipstx39-*-elf* | mipstx39el-*-elf*)
1017 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1019 mmix-knuth-mmixware)
1020 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1021 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1026 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1027 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1028 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1031 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1032 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1035 # Basic makefile fragment and extra_parts for crt stuff.
1036 # We also append c-isr library implementation.
1037 tmake_file="${tmake_file} t-slibgcc-libgcc"
1038 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1039 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1040 md_unwind_header=nds32/linux-unwind.h
1041 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1042 case "${with_nds32_lib}" in
1043 "" | glibc | uclibc )
1046 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1052 # Basic makefile fragment and extra_parts for crt stuff.
1053 # We also append c-isr library implementation.
1054 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1055 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1056 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1057 case "${with_nds32_lib}" in
1059 # Append library definition makefile fragment t-nds32-newlib.
1060 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1061 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1064 # Append library definition makefile fragment t-nds32-mculib.
1065 # The software floating point library is included in mculib.
1066 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1069 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1075 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
1076 md_unwind_header=nios2/linux-unwind.h
1079 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1080 extra_parts="$extra_parts crti.o crtn.o"
1083 tmake_file="$tmake_file or1k/t-or1k"
1084 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1085 md_unwind_header=or1k/linux-unwind.h
1088 tmake_file="$tmake_file or1k/t-or1k"
1089 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1092 tmake_file="pdp11/t-pdp11 t-fdpbit"
1096 *-*-darwin9* | *-*-darwin[12][0-9]*)
1097 # libSystem contains unwind information for signal frames since
1101 md_unwind_header=rs6000/darwin-unwind.h
1104 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1105 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1107 powerpc64-*-darwin*)
1108 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1109 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1111 powerpc*-*-freebsd*)
1112 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1113 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1116 tmake_file="${tmake_file} rs6000/t-freebsd64"
1117 md_unwind_header=rs6000/freebsd-unwind.h
1122 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1125 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr 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"
1128 powerpc-*-eabisimaltivec*)
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-crtstuff t-crtstuff-pic t-fdpbit"
1134 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1137 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1138 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1140 powerpc-*-eabialtivec*)
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"
1144 powerpc-xilinx-eabi*)
1145 tmake_file="${tmake_file} rs6000/t-ppccomm 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 crtbegin.o crtend.o 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 t-crtstuff-pic t-fdpbit"
1154 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1157 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"
1158 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1159 case $ppc_fp_type in
1163 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1166 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1169 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1172 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1175 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1180 if test $libgcc_cv_powerpc_float128 = yes; then
1181 tmake_file="${tmake_file} rs6000/t-float128"
1184 if test $libgcc_cv_powerpc_float128_hw = yes; then
1185 tmake_file="${tmake_file} rs6000/t-float128-hw"
1188 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1189 md_unwind_header=rs6000/linux-unwind.h
1191 powerpc-wrs-vxworks*)
1192 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
1193 extra_parts="$extra_parts crtbegin.o crtend.o"
1196 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1199 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1200 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1202 powerpcle-*-eabisim*)
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} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1208 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1211 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1212 tm_file="$tm_file pru/pru-abi.h"
1215 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1216 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1217 md_unwind_header=riscv/linux-unwind.h
1220 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1221 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1224 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1225 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1227 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
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-aix5.1.* | powerpc-ibm-aix5.1.*)
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"
1235 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1236 md_unwind_header=rs6000/aix-unwind.h
1237 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1238 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
1241 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1244 tmake_file="rx/t-rx t-fdpbit"
1245 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1248 tmake_file="rx/t-rx t-fdpbit"
1249 tm_file="$tm_file rx/rx-lib.h"
1252 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1253 md_unwind_header=s390/linux-unwind.h
1256 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1257 if test "${host_address}" = 32; then
1258 tmake_file="${tmake_file} s390/32/t-floattodi"
1260 md_unwind_header=s390/linux-unwind.h
1263 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
1264 extra_parts="crtbeginS.o crtendS.o"
1265 md_unwind_header=s390/tpf-unwind.h
1267 sh-*-elf* | sh[12346l]*-*-elf*)
1268 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1269 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1270 libic_invalidate_array_4-100.a \
1271 libic_invalidate_array_4-200.a \
1272 libic_invalidate_array_4a.a \
1273 libgcc-Os-4-200.a libgcc-4-300.a"
1276 tmake_file="$tmake_file sh/t-superh"
1277 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1281 sh-*-linux* | sh[2346lbe]*-*-linux*)
1282 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1283 md_unwind_header=sh/linux-unwind.h
1285 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1286 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1288 # NetBSD's C library includes a fast software FP library that
1289 # has support for setting/setting the rounding mode, exception
1290 # mask, etc. Therefore, we don't want to include software FP
1294 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1295 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1296 libic_invalidate_array_4-100.a \
1297 libic_invalidate_array_4-200.a \
1298 libic_invalidate_array_4a.a \
1299 libgcc-Os-4-200.a libgcc-4-300.a"
1302 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1313 tmake_file="sparc/t-softmul"
1316 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1317 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1319 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1320 tmake_file="${tmake_file} t-crtfm"
1321 if test "${host_address}" = 64; then
1322 tmake_file="$tmake_file sparc/t-linux64"
1326 tmake_file="${tmake_file} t-fdpbit"
1329 tmake_file="${tmake_file} sparc/t-linux"
1336 if test "${host_address}" = 32; then
1337 tmake_file="$tmake_file sparc/t-softmul"
1341 extra_parts="$extra_parts crtfastmath.o"
1342 md_unwind_header=sparc/linux-unwind.h
1345 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1346 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1349 tmake_file="$tmake_file t-crtfm"
1350 extra_parts="$extra_parts crtfastmath.o"
1351 md_unwind_header=sparc/sol2-unwind.h
1354 tmake_file="${tmake_file} t-crtfm"
1355 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1358 tmake_file="$tmake_file t-crtfm"
1359 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1363 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1364 tmake_file="$tmake_file t-crtfm"
1365 extra_parts="$extra_parts crtfastmath.o"
1367 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1368 extra_parts="$extra_parts crtfastmath.o"
1369 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1370 if test "${host_address}" = 64; then
1371 tmake_file="${tmake_file} sparc/t-linux64"
1373 if test "${host_address}" = 32; then
1374 tmake_file="${tmake_file} sparc/t-softmul"
1376 md_unwind_header=sparc/linux-unwind.h
1381 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1382 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1383 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1384 tm_file="$tm_file c6x/c6x-abi.h"
1385 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1386 unwind_header=config/c6x/unwind-c6x.h
1389 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1390 tm_file="$tm_file c6x/c6x-abi.h"
1391 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1392 unwind_header=config/c6x/unwind-c6x.h
1395 if test "${host_address}" = 64; then
1396 tmake_file="${tmake_file} tilegx/t-softfp"
1398 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1399 md_unwind_header=tilepro/linux-unwind.h
1402 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1403 md_unwind_header=tilepro/linux-unwind.h
1406 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1409 tmake_file="$tmake_file vax/t-linux"
1416 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1417 tmake_file="visium/t-visium t-fdpbit"
1420 tmake_file="stormy16/t-stormy16 t-fdpbit"
1423 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1424 extra_parts="$extra_parts crti.o crtn.o"
1427 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1428 md_unwind_header=xtensa/linux-unwind.h
1431 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1432 md_unwind_header=xtensa/linux-unwind.h
1433 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1436 # Don't need crtbeginT.o from *-*-linux* default.
1437 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1438 tmake_file="$tmake_file t-fdpbit"
1440 m32c-*-elf*|m32c-*-rtems*)
1441 tmake_file="$tmake_file m32c/t-m32c"
1444 tmake_file="$tmake_file nvptx/t-nvptx"
1445 extra_parts="crt0.o"
1448 echo "*** Configuration ${host} not supported" 1>&2
1454 i[34567]86-*-* | x86_64-*-*)
1457 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1460 tmake_file="${tmake_file} i386/t-cpuinfo"
1467 i[34567]86-*-linux* | x86_64-*-linux* | \
1468 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1470 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1471 if test "$libgcc_cv_cfi" = "yes"; then
1472 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1478 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1479 # These use soft-fp for SFmode and DFmode, not just TFmode.
1481 i[34567]86-*-* | x86_64-*-*)
1482 tmake_file="${tmake_file} t-softfp-tf"
1483 if test "${host_address}" = 32; then
1484 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1486 tmake_file="${tmake_file} i386/t-softfp t-softfp"
1491 i[34567]86-*-linux* | x86_64-*-linux*)
1492 # Provide backward binary compatibility for 64bit Linux/x86.
1493 if test "${host_address}" = 64; then
1494 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1496 tm_file="${tm_file} i386/value-unwind.h"
1499 # ILP32 needs an extra header for unwinding
1500 tm_file="${tm_file} aarch64/value-unwind.h"