1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2018 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/-.*$//'`
121 moxie*) cpu_type=moxie
146 # All MIPS targets provide a full set of FP routines.
148 tmake_file="mips/t-mips"
149 if test "${libgcc_cv_mips_hard_float}" = yes; then
150 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
152 tmake_file="${tmake_file} t-softfp-sfdf"
154 if test "${ac_cv_sizeof_long_double}" = 16; then
155 tmake_file="${tmake_file} mips/t-softfp-tf"
157 if test "${host_address}" = 64; then
158 tmake_file="${tmake_file} mips/t-mips64"
160 tmake_file="${tmake_file} t-softfp"
191 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
192 sh[123456789lbe]*-*-*)
209 # Common parts for widely ported systems.
212 asm_hidden_op=.private_extern
213 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin"
214 extra_parts="crt3.o d10-uwfef.o crttms.o crttme.o"
217 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
218 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
219 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
222 # This is the generic ELF configuration of FreeBSD. Later
223 # machine-specific sections may refine and add to this
225 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"
226 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
227 case ${target_thread_file} in
229 tmake_file="${tmake_file} t-freebsd-thread"
230 # Before 5.0, FreeBSD can't bind shared libraries to -lc
231 # when "optionally" threaded via weak pthread_* checks.
233 *-*-freebsd[34] | *-*-freebsd[34].*)
234 tmake_file="${tmake_file} t-slibgcc-nolc-override"
241 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
242 extra_parts="crtbegin.o crtend.o"
244 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
245 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"
246 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
247 if test x$enable_vtable_verify = xyes; then
248 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
252 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
253 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
256 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
257 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
258 tmake_file="$tmake_file t-slibgcc-libgcc"
259 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
262 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
263 case ${target_thread_file} in
265 tmake_file="$tmake_file t-openbsd-thread"
270 tmake_file="$tmake_file t-rtems"
271 extra_parts="crtbegin.o crtend.o"
274 # Unless linker support and dl_iterate_phdr are present,
275 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
276 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
277 if test $with_gnu_ld = yes; then
278 tmake_file="$tmake_file t-slibgcc-gld"
280 tmake_file="$tmake_file t-slibgcc-sld"
282 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
283 tmake_file="$tmake_file $cpu_type/t-sol2"
284 extra_parts="gmon.o crtbegin.o crtend.o"
285 if test "${libgcc_cv_solaris_crts}" = yes; then
286 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
287 # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
288 extra_parts="$extra_parts crtp.o crtpg.o"
289 # If the Solaris CRTs are present, both ld and gld will have PIE support.
290 extra_parts="$extra_parts crtbeginS.o crtendS.o"
293 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
294 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
295 # part of the base system.
297 sparc*-*-solaris2.1[0-9]*)
298 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
299 extra_parts="$extra_parts crt1.o gcrt1.o"
303 if test x$enable_vtable_verify = xyes; then
304 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
308 extra_parts="crtbegin.o crtend.o"
311 tmake_file="vms/t-vms"
312 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
315 tmake_file=t-vxworks7
321 extra_parts="crtbegin.o crtend.o"
326 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
328 enable_execute_stack=enable-execute-stack-mprotect.c
330 i[34567]86-*-mingw* | x86_64-*-mingw*)
331 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
333 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
334 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
337 enable_execute_stack=enable-execute-stack-empty.c;
342 aarch64*-*-elf | aarch64*-*-rtems*)
343 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
344 extra_parts="$extra_parts crtfastmath.o"
345 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
346 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
347 md_unwind_header=aarch64/aarch64-unwind.h
350 extra_parts="$extra_parts crtfastmath.o"
351 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
352 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
353 md_unwind_header=aarch64/freebsd-unwind.h
356 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
357 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
360 extra_parts="$extra_parts crtfastmath.o"
361 md_unwind_header=aarch64/linux-unwind.h
362 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
363 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
366 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
367 extra_parts="$extra_parts crtfastmath.o"
368 md_unwind_header=alpha/linux-unwind.h
371 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
372 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
375 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
378 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
381 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
382 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
383 md_unwind_header=alpha/vms-unwind.h
386 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
387 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
388 md_unwind_header=alpha/vms-unwind.h
391 tmake_file="arc/t-arc"
392 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
393 extra_parts="$extra_parts crttls.o"
396 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
397 extra_parts="$extra_parts crti.o crtn.o"
398 extra_parts="$extra_parts crttls.o"
399 md_unwind_header=arc/linux-unwind.h
401 arm-wrs-vxworks|arm-wrs-vxworks7)
402 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
403 extra_parts="$extra_parts crti.o crtn.o"
406 # Note that arm/t-bpabi will reset the LIB2ADDEH macro.
407 # This is intentional.
408 tmake_file="$tmake_file arm/t-bpabi arm/t-vxworks7"
409 tm_file="$tm_file arm/bpabi-lib.h"
410 unwind_header=config/arm/unwind-arm.h
414 arm*-*-freebsd*) # ARM FreeBSD EABI
415 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
416 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
417 tm_file="${tm_file} arm/bpabi-lib.h"
418 unwind_header=config/arm/unwind-arm.h
419 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
422 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
423 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
424 tm_file="${tm_file} arm/bpabi-lib.h"
425 unwind_header=config/arm/unwind-arm.h
428 tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover"
430 arm*-*-linux*) # ARM GNU/Linux with ELF
431 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
432 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
433 tm_file="$tm_file arm/bpabi-lib.h"
434 unwind_header=config/arm/unwind-arm.h
435 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
436 extra_parts="$extra_parts crtfastmath.o"
438 arm*-*-uclinux*) # ARM ucLinux
439 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
440 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
441 tmake_file="${tmake_file} arm/t-bpabi"
442 tm_file="$tm_file arm/bpabi-lib.h"
443 unwind_header=config/arm/unwind-arm.h
444 extra_parts="$extra_parts crti.o crtn.o"
447 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
448 tmake_file="${tmake_file} arm/t-bpabi"
449 tm_file="$tm_file arm/bpabi-lib.h"
450 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
451 unwind_header=config/arm/unwind-arm.h
453 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
454 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
455 tm_file="$tm_file arm/bpabi-lib.h"
457 arm*-*-eabi* | arm*-*-rtems*)
458 tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
459 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
462 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
463 tm_file="$tm_file arm/symbian-lib.h"
464 # Symbian OS provides its own startup code.
467 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
468 extra_parts="$extra_parts crtfastmath.o"
469 unwind_header=config/arm/unwind-arm.h
472 # Make HImode functions for AVR
473 tmake_file="${cpu_type}/t-avr t-fpbit"
474 if test x${with_avrlibc} != xno; then
475 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
477 tm_file="$tm_file avr/avr-lib.h"
480 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
481 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
484 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
485 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
486 md_unwind_header=bfin/linux-unwind.h
489 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
490 # No need to build crtbeginT.o on uClibc systems. Should probably
491 # be moved to the OS specific section above.
492 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
493 md_unwind_header=bfin/linux-unwind.h
496 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
497 extra_parts="$extra_parts crti.o crtn.o"
500 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
501 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
504 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
505 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
508 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
511 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
513 cris-*-linux* | crisv32-*-linux*)
514 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
517 tmake_file="csky/t-csky t-fdpbit"
518 extra_parts="$extra_parts crti.o crtn.o"
521 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
522 extra_parts="$extra_parts crti.o crtn.o"
523 md_unwind_header=csky/linux-unwind.h
525 epiphany-*-elf* | epiphany-*-rtems*)
526 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
527 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
530 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
531 extra_parts="$extra_parts crti.o crtn.o"
534 tmake_file="$tmake_file frv/t-frv t-fdpbit"
535 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
536 # Don't use crtbegin.o, crtend.o.
537 extra_parts="frvbegin.o frvend.o"
540 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
541 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
544 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
545 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
548 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
549 tm_file="$tm_file h8300/h8300-lib.h"
550 extra_parts="$extra_parts crti.o crtn.o"
553 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
554 tm_file="$tm_file h8300/h8300-lib.h"
557 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
558 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
561 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
562 # Set the libgcc version number
563 if test x$ac_cv_sjlj_exceptions = xyes; then
564 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
566 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
568 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
569 md_unwind_header=pa/linux-unwind.h
572 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
573 # Set the libgcc version number
574 if test x$ac_cv_sjlj_exceptions = xyes; then
575 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
577 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
579 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
580 md_unwind_header=pa/hpux-unwind.h
583 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
584 # Set the libgcc version number
585 if test x$ac_cv_sjlj_exceptions = xyes; then
586 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
588 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
590 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
591 tm_file="$tm_file pa/pa64-hpux-lib.h"
592 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
594 md_unwind_header=pa/hpux-unwind.h
597 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
598 # Set the libgcc version number
599 if test x$ac_cv_sjlj_exceptions = xyes; then
600 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
602 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
604 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
605 extra_parts="libgcc_stub.a"
606 md_unwind_header=pa/hpux-unwind.h
609 tmake_file="$tmake_file pa/t-openbsd"
611 i[34567]86-*-darwin*)
612 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
613 tm_file="$tm_file i386/darwin-lib.h"
614 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
617 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
618 tm_file="$tm_file i386/darwin-lib.h"
619 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
621 i[34567]86-*-elfiamcu)
622 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"
625 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
627 x86_64-*-elf* | x86_64-*-rtems*)
628 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
631 extra_parts="$extra_parts crti.o crtn.o"
636 tmake_file="$tmake_file t-libgcc-pic"
638 i[34567]86-*-dragonfly*)
639 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
640 md_unwind_header=i386/dragonfly-unwind.h
643 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
644 md_unwind_header=i386/dragonfly-unwind.h
646 i[34567]86-*-freebsd*)
647 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
648 md_unwind_header=i386/freebsd-unwind.h
651 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
652 md_unwind_header=i386/freebsd-unwind.h
654 i[34567]86-*-netbsdelf*)
655 tmake_file="${tmake_file} i386/t-crtstuff"
658 tmake_file="${tmake_file} i386/t-crtstuff"
660 i[34567]86-*-openbsd*)
665 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
666 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
667 tm_file="${tm_file} i386/elf-lib.h"
668 md_unwind_header=i386/linux-unwind.h
670 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
671 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
672 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
673 tm_file="${tm_file} i386/elf-lib.h"
676 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
677 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
678 tm_file="${tm_file} i386/elf-lib.h"
679 md_unwind_header=i386/linux-unwind.h
681 x86_64-*-kfreebsd*-gnu)
682 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
683 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
684 tm_file="${tm_file} i386/elf-lib.h"
686 i[34567]86-pc-msdosdjgpp*)
688 i[34567]86-*-lynxos*)
690 i[34567]86-*-nto-qnx*)
691 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
692 extra_parts=crtbegin.o
695 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
696 extra_parts="$extra_parts crti.o crtn.o"
698 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
699 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
700 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
701 tm_file="${tm_file} i386/elf-lib.h"
702 md_unwind_header=i386/sol2-unwind.h
704 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
706 i[34567]86-*-cygwin*)
707 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
708 if test x$enable_vtable_verify = xyes; then
709 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
711 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
712 if test x$ac_cv_sjlj_exceptions = xyes; then
713 tmake_eh_file="i386/t-sjlj-eh"
715 tmake_eh_file="i386/t-dw2-eh"
717 # Shared libgcc DLL install dir depends on cross/native build.
718 if test x${build} = x${host} ; then
719 tmake_dlldir_file="i386/t-dlldir"
721 tmake_dlldir_file="i386/t-dlldir-x"
723 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"
726 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
727 if test x$enable_vtable_verify = xyes; then
728 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
730 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
731 if test x$ac_cv_sjlj_exceptions = xyes; then
732 tmake_eh_file="i386/t-sjlj-eh"
733 elif test "${host_address}" = 32; then
734 # biarch -m32 with --disable-sjlj-exceptions
735 tmake_eh_file="i386/t-dw2-eh"
737 tmake_eh_file="i386/t-seh-eh"
739 # Shared libgcc DLL install dir depends on cross/native build.
740 if test x${build} = x${host} ; then
741 tmake_dlldir_file="i386/t-dlldir"
743 tmake_dlldir_file="i386/t-dlldir-x"
745 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
746 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"
749 extra_parts="crtbegin.o crtend.o crtfastmath.o"
750 if test x$enable_vtable_verify = xyes; then
751 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
753 case ${target_thread_file} in
755 tmake_file="$tmake_file i386/t-gthr-win32"
758 tmake_file="i386/t-mingw-pthread $tmake_file"
761 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
762 if test x$ac_cv_sjlj_exceptions = xyes; then
763 tmake_eh_file="i386/t-sjlj-eh"
765 tmake_eh_file="i386/t-dw2-eh"
766 md_unwind_header=i386/w32-unwind.h
768 # Shared libgcc DLL install dir depends on cross/native build.
769 if test x${build} = x${host} ; then
770 tmake_dlldir_file="i386/t-dlldir"
772 tmake_dlldir_file="i386/t-dlldir-x"
774 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"
777 case ${target_thread_file} in
779 tmake_file="$tmake_file i386/t-gthr-win32"
782 tmake_file="i386/t-mingw-pthread $tmake_file"
785 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
786 if test x$ac_cv_sjlj_exceptions = xyes; then
787 tmake_eh_file="i386/t-sjlj-eh"
788 elif test "${host_address}" = 32; then
789 # biarch -m32 with --disable-sjlj-exceptions
790 tmake_eh_file="i386/t-dw2-eh"
791 md_unwind_header=i386/w32-unwind.h
793 tmake_eh_file="i386/t-seh-eh"
795 # Shared libgcc DLL install dir depends on cross/native build.
796 if test x${build} = x${host} ; then
797 tmake_dlldir_file="i386/t-dlldir"
799 tmake_dlldir_file="i386/t-dlldir-x"
801 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"
802 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
803 if test x$enable_vtable_verify = xyes; then
804 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
808 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
809 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"
812 extra_parts="$extra_parts crtfastmath.o"
813 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"
816 # Don't use crtbeginT.o from *-*-linux* default.
817 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
818 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"
819 if test x$with_system_libunwind != xyes ; then
820 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
822 md_unwind_header=ia64/linux-unwind.h
825 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
828 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"
829 extra_parts="$extra_parts crtinitS.o"
830 md_unwind_header=ia64/vms-unwind.h
833 tmake_file="iq2000/t-iq2000 t-fdpbit"
838 extra_parts="$extra_parts crti.o crtn.o"
839 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
842 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
843 extra_parts="$extra_parts crti.o crtn.o"
846 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
847 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
850 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
851 extra_parts="$extra_parts crtinit.o crtfini.o"
857 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
860 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
862 m68k-*-elf* | fido-*-elf)
863 tmake_file="$tmake_file m68k/t-floatlib"
869 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
870 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
871 md_unwind_header=m68k/linux-unwind.h
873 m68k-*-linux*) # Motorola m68k's running GNU/Linux
874 # with ELF format using glibc 2
875 # aka the GNU/Linux C library 6.
876 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
877 # If not configured with setjmp/longjmp exceptions, bump the
878 # libgcc version number.
879 if test x$ac_cv_sjlj_exceptions != xyes; then
880 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
882 md_unwind_header=m68k/linux-unwind.h
885 tmake_file="$tmake_file m68k/t-floatlib"
886 extra_parts="$extra_parts crti.o crtn.o"
889 tmake_file="mcore/t-mcore t-fdpbit"
890 extra_parts="$extra_parts crti.o crtn.o"
893 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
896 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
897 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
899 microblaze*-*-rtems*)
900 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
901 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
903 mips*-*-netbsd*) # NetBSD/mips, either endian.
905 mips*-*-linux*) # Linux MIPS, either endian.
906 extra_parts="$extra_parts crtfastmath.o"
907 tmake_file="${tmake_file} t-crtfm"
909 mips64r5900* | mipsr5900*)
910 # The MIPS16 support code uses floating point
911 # instructions that are not supported on r5900.
914 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
917 md_unwind_header=mips/linux-unwind.h
920 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
921 case "${with_newlib}" in
926 # MIPS toolkit libraries.
927 tmake_file="$tmake_file mips/t-sdemtk"
930 extra_parts="$extra_parts crti.o crtn.o"
932 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
933 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
934 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
935 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
936 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
937 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
938 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
939 extra_parts="$extra_parts crti.o crtn.o"
941 mipsisa64sr71k-*-elf*)
942 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
943 extra_parts="$extra_parts crti.o crtn.o"
945 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
946 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
947 extra_parts="$extra_parts crti.o crtn.o"
949 mips-*-elf* | mipsel-*-elf*)
950 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
951 extra_parts="$extra_parts crti.o crtn.o"
953 mipsr5900-*-elf* | mipsr5900el-*-elf*)
954 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
955 extra_parts="$extra_parts crti.o crtn.o"
957 mips64-*-elf* | mips64el-*-elf*)
958 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
959 extra_parts="$extra_parts crti.o crtn.o"
961 mips64r5900-*-elf* | mips64r5900el-*-elf*)
962 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
963 extra_parts="$extra_parts crti.o crtn.o"
965 mips64vr-*-elf* | mips64vrel-*-elf*)
966 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
967 extra_parts="$extra_parts crti.o crtn.o"
969 mips64orion-*-elf* | mips64orionel-*-elf*)
970 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
971 extra_parts="$extra_parts crti.o crtn.o"
974 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
975 extra_parts="$extra_parts crti.o crtn.o"
979 mipstx39-*-elf* | mipstx39el-*-elf*)
980 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
983 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
984 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
989 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
990 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
991 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
994 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
995 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
998 # Basic makefile fragment and extra_parts for crt stuff.
999 # We also append c-isr library implementation.
1000 tmake_file="${tmake_file} t-slibgcc-libgcc"
1001 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1002 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1003 md_unwind_header=nds32/linux-unwind.h
1004 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1005 case "${with_nds32_lib}" in
1006 "" | glibc | uclibc )
1009 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1015 # Basic makefile fragment and extra_parts for crt stuff.
1016 # We also append c-isr library implementation.
1017 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1018 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1019 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1020 case "${with_nds32_lib}" in
1022 # Append library definition makefile fragment t-nds32-newlib.
1023 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1024 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1027 # Append library definition makefile fragment t-nds32-mculib.
1028 # The software floating point library is included in mculib.
1029 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1032 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1038 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
1039 md_unwind_header=nios2/linux-unwind.h
1042 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1043 extra_parts="$extra_parts crti.o crtn.o"
1046 tmake_file="$tmake_file or1k/t-or1k"
1047 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1048 md_unwind_header=or1k/linux-unwind.h
1051 tmake_file="$tmake_file or1k/t-or1k"
1052 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1055 tmake_file="pdp11/t-pdp11 t-fdpbit"
1059 *-*-darwin9* | *-*-darwin[12][0-9]*)
1060 # libSystem contains unwind information for signal frames since
1064 md_unwind_header=rs6000/darwin-unwind.h
1067 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
1068 extra_parts="$extra_parts crt2.o"
1070 powerpc64-*-darwin*)
1071 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1072 extra_parts="$extra_parts crt2.o"
1074 powerpc*-*-freebsd*)
1075 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1076 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1079 tmake_file="${tmake_file} rs6000/t-freebsd64"
1080 md_unwind_header=rs6000/freebsd-unwind.h
1085 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1088 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1089 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1091 powerpc-*-eabisimaltivec*)
1092 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1093 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1096 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1097 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1100 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1101 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1103 powerpc-*-eabialtivec*)
1104 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1105 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1107 powerpc-xilinx-eabi*)
1108 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1109 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1112 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1113 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1116 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1117 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1120 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"
1121 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1122 case $ppc_fp_type in
1126 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1129 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1132 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1135 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1138 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1143 if test $libgcc_cv_powerpc_float128 = yes; then
1144 tmake_file="${tmake_file} rs6000/t-float128"
1147 if test $libgcc_cv_powerpc_float128_hw = yes; then
1148 tmake_file="${tmake_file} rs6000/t-float128-hw"
1151 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1152 md_unwind_header=rs6000/linux-unwind.h
1154 powerpc-wrs-vxworks*)
1155 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
1156 extra_parts="$extra_parts crtbegin.o crtend.o"
1159 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1162 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1163 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1165 powerpcle-*-eabisim*)
1166 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1167 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1170 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1171 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1174 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1175 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1176 md_unwind_header=riscv/linux-unwind.h
1179 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1180 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1183 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1184 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1186 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1187 md_unwind_header=rs6000/aix-unwind.h
1188 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1190 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1191 md_unwind_header=rs6000/aix-unwind.h
1192 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1194 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1195 md_unwind_header=rs6000/aix-unwind.h
1196 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1197 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
1200 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1203 tmake_file="rx/t-rx t-fdpbit"
1204 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1207 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1208 md_unwind_header=s390/linux-unwind.h
1211 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1212 if test "${host_address}" = 32; then
1213 tmake_file="${tmake_file} s390/32/t-floattodi"
1215 md_unwind_header=s390/linux-unwind.h
1218 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
1219 extra_parts="crtbeginS.o crtendS.o"
1220 md_unwind_header=s390/tpf-unwind.h
1222 sh-*-elf* | sh[12346l]*-*-elf*)
1223 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1224 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1225 libic_invalidate_array_4-100.a \
1226 libic_invalidate_array_4-200.a \
1227 libic_invalidate_array_4a.a \
1228 libgcc-Os-4-200.a libgcc-4-300.a"
1231 tmake_file="$tmake_file sh/t-superh"
1232 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1236 sh-*-linux* | sh[2346lbe]*-*-linux*)
1237 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1238 md_unwind_header=sh/linux-unwind.h
1240 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1241 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1243 # NetBSD's C library includes a fast software FP library that
1244 # has support for setting/setting the rounding mode, exception
1245 # mask, etc. Therefore, we don't want to include software FP
1249 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1250 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1251 libic_invalidate_array_4-100.a \
1252 libic_invalidate_array_4-200.a \
1253 libic_invalidate_array_4a.a \
1254 libgcc-Os-4-200.a libgcc-4-300.a"
1257 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1268 tmake_file="sparc/t-softmul"
1271 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1272 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1274 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1275 tmake_file="${tmake_file} t-crtfm"
1276 if test "${host_address}" = 64; then
1277 tmake_file="$tmake_file sparc/t-linux64"
1281 tmake_file="${tmake_file} t-fdpbit"
1284 tmake_file="${tmake_file} sparc/t-linux"
1291 if test "${host_address}" = 32; then
1292 tmake_file="$tmake_file sparc/t-softmul"
1296 extra_parts="$extra_parts crtfastmath.o"
1297 md_unwind_header=sparc/linux-unwind.h
1300 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1301 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1304 tmake_file="$tmake_file t-crtfm"
1305 extra_parts="$extra_parts crtfastmath.o"
1306 md_unwind_header=sparc/sol2-unwind.h
1309 tmake_file="${tmake_file} t-crtfm"
1310 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1313 tmake_file="$tmake_file t-crtfm"
1314 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1318 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1319 tmake_file="$tmake_file t-crtfm"
1320 extra_parts="$extra_parts crtfastmath.o"
1322 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1323 extra_parts="$extra_parts crtfastmath.o"
1324 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1325 if test "${host_address}" = 64; then
1326 tmake_file="${tmake_file} sparc/t-linux64"
1328 if test "${host_address}" = 32; then
1329 tmake_file="${tmake_file} sparc/t-softmul"
1331 md_unwind_header=sparc/linux-unwind.h
1336 tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
1337 extra_parts="$extra_parts \
1338 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1339 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1340 libgcc_cache64k.a libgcc_cache128k.a"
1343 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1344 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1345 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1346 tm_file="$tm_file c6x/c6x-abi.h"
1347 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1348 unwind_header=config/c6x/unwind-c6x.h
1351 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1352 tm_file="$tm_file c6x/c6x-abi.h"
1353 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1354 unwind_header=config/c6x/unwind-c6x.h
1357 if test "${host_address}" = 64; then
1358 tmake_file="${tmake_file} tilegx/t-softfp"
1360 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1361 md_unwind_header=tilepro/linux-unwind.h
1364 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1365 md_unwind_header=tilepro/linux-unwind.h
1368 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1371 tmake_file="$tmake_file vax/t-linux"
1378 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1379 tmake_file="visium/t-visium t-fdpbit"
1382 tmake_file="stormy16/t-stormy16 t-fdpbit"
1385 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1386 extra_parts="$extra_parts crti.o crtn.o"
1389 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1390 md_unwind_header=xtensa/linux-unwind.h
1393 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1394 md_unwind_header=xtensa/linux-unwind.h
1395 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1398 # Don't need crtbeginT.o from *-*-linux* default.
1399 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1400 tmake_file="$tmake_file t-fdpbit"
1402 m32c-*-elf*|m32c-*-rtems*)
1403 tmake_file="$tmake_file m32c/t-m32c"
1406 tmake_file="$tmake_file nvptx/t-nvptx"
1407 extra_parts="crt0.o"
1410 echo "*** Configuration ${host} not supported" 1>&2
1416 i[34567]86-*-* | x86_64-*-*)
1419 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1422 tmake_file="${tmake_file} i386/t-cpuinfo"
1429 i[34567]86-*-linux* | x86_64-*-linux* | \
1430 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1432 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1433 if test "$libgcc_cv_cfi" = "yes"; then
1434 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1440 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1441 # These use soft-fp for SFmode and DFmode, not just TFmode.
1443 i[34567]86-*-* | x86_64-*-*)
1444 tmake_file="${tmake_file} t-softfp-tf"
1445 if test "${host_address}" = 32; then
1446 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1448 tmake_file="${tmake_file} i386/t-softfp t-softfp"
1453 i[34567]86-*-linux* | x86_64-*-linux*)
1454 # Provide backward binary compatibility for 64bit Linux/x86.
1455 if test "${host_address}" = 64; then
1456 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1458 tm_file="${tm_file} i386/value-unwind.h"
1461 # ILP32 needs an extra header for unwinding
1462 tm_file="${tm_file} aarch64/value-unwind.h"