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"
125 moxie*) cpu_type=moxie
150 # All MIPS targets provide a full set of FP routines.
152 tmake_file="mips/t-mips"
153 if test "${libgcc_cv_mips_hard_float}" = yes; then
154 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
156 tmake_file="${tmake_file} t-softfp-sfdf"
158 if test "${ac_cv_sizeof_long_double}" = 16; then
159 tmake_file="${tmake_file} mips/t-softfp-tf"
161 if test "${host_address}" = 64; then
162 tmake_file="${tmake_file} mips/t-mips64"
164 tmake_file="${tmake_file} t-softfp"
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)
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 GNU/Linux with ELF
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} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
531 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
534 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
537 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
539 cris-*-linux* | crisv32-*-linux*)
540 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
543 tmake_file="csky/t-csky t-fdpbit"
544 extra_parts="$extra_parts crti.o crtn.o"
547 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
548 extra_parts="$extra_parts crti.o crtn.o"
549 md_unwind_header=csky/linux-unwind.h
551 epiphany-*-elf* | epiphany-*-rtems*)
552 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
553 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
556 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
557 extra_parts="$extra_parts crti.o crtn.o"
560 tmake_file="$tmake_file frv/t-frv t-fdpbit"
561 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
562 # Don't use crtbegin.o, crtend.o.
563 extra_parts="frvbegin.o frvend.o"
566 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
567 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
570 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
571 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
574 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
575 tm_file="$tm_file h8300/h8300-lib.h"
576 extra_parts="$extra_parts crti.o crtn.o"
579 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
580 tm_file="$tm_file h8300/h8300-lib.h"
583 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
584 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
587 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
588 # Set the libgcc version number
589 if test x$ac_cv_sjlj_exceptions = xyes; then
590 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
592 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
594 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
595 md_unwind_header=pa/linux-unwind.h
598 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
599 # Set the libgcc version number
600 if test x$ac_cv_sjlj_exceptions = xyes; then
601 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
603 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
605 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
606 md_unwind_header=pa/hpux-unwind.h
609 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
610 # Set the libgcc version number
611 if test x$ac_cv_sjlj_exceptions = xyes; then
612 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
614 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
616 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
617 tm_file="$tm_file pa/pa64-hpux-lib.h"
618 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
620 md_unwind_header=pa/hpux-unwind.h
623 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
624 # Set the libgcc version number
625 if test x$ac_cv_sjlj_exceptions = xyes; then
626 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
628 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
630 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
631 extra_parts="libgcc_stub.a"
632 md_unwind_header=pa/hpux-unwind.h
635 tmake_file="$tmake_file pa/t-openbsd"
638 tmake_file="$tmake_file pa/t-netbsd"
640 i[34567]86-*-darwin*)
641 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
642 tm_file="$tm_file i386/darwin-lib.h"
643 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
646 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
647 tm_file="$tm_file i386/darwin-lib.h"
648 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
650 i[34567]86-*-elfiamcu)
651 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"
654 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
656 x86_64-*-elf* | x86_64-*-rtems*)
657 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
660 extra_parts="$extra_parts crti.o crtn.o"
665 tmake_file="$tmake_file t-libgcc-pic"
667 i[34567]86-*-dragonfly*)
668 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
669 md_unwind_header=i386/dragonfly-unwind.h
672 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
673 md_unwind_header=i386/dragonfly-unwind.h
675 i[34567]86-*-freebsd*)
676 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
677 md_unwind_header=i386/freebsd-unwind.h
680 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
681 md_unwind_header=i386/freebsd-unwind.h
683 i[34567]86-*-netbsdelf*)
684 tmake_file="${tmake_file} i386/t-crtstuff"
687 tmake_file="${tmake_file} i386/t-crtstuff"
689 i[34567]86-*-openbsd*)
694 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
695 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
696 tm_file="${tm_file} i386/elf-lib.h"
697 md_unwind_header=i386/linux-unwind.h
699 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
700 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
701 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
702 tm_file="${tm_file} i386/elf-lib.h"
705 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
706 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
707 tm_file="${tm_file} i386/elf-lib.h"
708 md_unwind_header=i386/linux-unwind.h
710 x86_64-*-kfreebsd*-gnu)
711 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
712 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
713 tm_file="${tm_file} i386/elf-lib.h"
715 i[34567]86-pc-msdosdjgpp*)
717 i[34567]86-*-lynxos*)
719 i[34567]86-*-nto-qnx*)
720 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
721 extra_parts=crtbegin.o
724 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
725 extra_parts="$extra_parts crti.o crtn.o"
727 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
728 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
729 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
730 tm_file="${tm_file} i386/elf-lib.h"
731 md_unwind_header=i386/sol2-unwind.h
733 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
735 i[34567]86-*-cygwin*)
736 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
737 if test x$enable_vtable_verify = xyes; then
738 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
740 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
741 if test x$ac_cv_sjlj_exceptions = xyes; then
742 tmake_eh_file="i386/t-sjlj-eh"
744 tmake_eh_file="i386/t-dw2-eh"
746 # Shared libgcc DLL install dir depends on cross/native build.
747 if test x${build} = x${host} ; then
748 tmake_dlldir_file="i386/t-dlldir"
750 tmake_dlldir_file="i386/t-dlldir-x"
752 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"
755 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
756 if test x$enable_vtable_verify = xyes; then
757 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
759 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
760 if test x$ac_cv_sjlj_exceptions = xyes; then
761 tmake_eh_file="i386/t-sjlj-eh"
762 elif test "${host_address}" = 32; then
763 # biarch -m32 with --disable-sjlj-exceptions
764 tmake_eh_file="i386/t-dw2-eh"
766 tmake_eh_file="i386/t-seh-eh"
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 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
775 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"
778 extra_parts="crtbegin.o crtend.o crtfastmath.o"
779 if test x$enable_vtable_verify = xyes; then
780 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
782 case ${target_thread_file} in
784 tmake_file="$tmake_file i386/t-gthr-win32"
787 tmake_file="i386/t-mingw-pthread $tmake_file"
790 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
791 if test x$ac_cv_sjlj_exceptions = xyes; then
792 tmake_eh_file="i386/t-sjlj-eh"
794 tmake_eh_file="i386/t-dw2-eh"
795 md_unwind_header=i386/w32-unwind.h
797 # Shared libgcc DLL install dir depends on cross/native build.
798 if test x${build} = x${host} ; then
799 tmake_dlldir_file="i386/t-dlldir"
801 tmake_dlldir_file="i386/t-dlldir-x"
803 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"
806 case ${target_thread_file} in
808 tmake_file="$tmake_file i386/t-gthr-win32"
811 tmake_file="i386/t-mingw-pthread $tmake_file"
814 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
815 if test x$ac_cv_sjlj_exceptions = xyes; then
816 tmake_eh_file="i386/t-sjlj-eh"
817 elif test "${host_address}" = 32; then
818 # biarch -m32 with --disable-sjlj-exceptions
819 tmake_eh_file="i386/t-dw2-eh"
820 md_unwind_header=i386/w32-unwind.h
822 tmake_eh_file="i386/t-seh-eh"
824 # Shared libgcc DLL install dir depends on cross/native build.
825 if test x${build} = x${host} ; then
826 tmake_dlldir_file="i386/t-dlldir"
828 tmake_dlldir_file="i386/t-dlldir-x"
830 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"
831 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
832 if test x$enable_vtable_verify = xyes; then
833 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
837 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
838 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"
841 extra_parts="$extra_parts crtfastmath.o"
842 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"
845 # Don't use crtbeginT.o from *-*-linux* default.
846 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
847 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"
848 if test x$with_system_libunwind != xyes ; then
849 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
851 md_unwind_header=ia64/linux-unwind.h
854 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
857 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"
858 extra_parts="$extra_parts crtinitS.o"
859 md_unwind_header=ia64/vms-unwind.h
862 tmake_file="iq2000/t-iq2000 t-fdpbit"
867 extra_parts="$extra_parts crti.o crtn.o"
868 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
871 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
872 extra_parts="$extra_parts crti.o crtn.o"
875 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
876 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
879 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
880 extra_parts="$extra_parts crtinit.o crtfini.o"
886 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
889 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
891 m68k-*-elf* | fido-*-elf)
892 tmake_file="$tmake_file m68k/t-floatlib"
898 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
899 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
900 md_unwind_header=m68k/linux-unwind.h
902 m68k-*-linux*) # Motorola m68k's running GNU/Linux
903 # with ELF format using glibc 2
904 # aka the GNU/Linux C library 6.
905 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
906 # If not configured with setjmp/longjmp exceptions, bump the
907 # libgcc version number.
908 if test x$ac_cv_sjlj_exceptions != xyes; then
909 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
911 md_unwind_header=m68k/linux-unwind.h
914 tmake_file="$tmake_file m68k/t-floatlib"
915 extra_parts="$extra_parts crti.o crtn.o"
918 tmake_file="mcore/t-mcore t-fdpbit"
919 extra_parts="$extra_parts crti.o crtn.o"
922 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
925 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
926 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
928 microblaze*-*-rtems*)
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 mips*-*-netbsd*) # NetBSD/mips, either endian.
934 mips*-*-linux*) # Linux MIPS, either endian.
935 extra_parts="$extra_parts crtfastmath.o"
936 tmake_file="${tmake_file} t-crtfm"
938 mips64r5900* | mipsr5900*)
939 # The MIPS16 support code uses floating point
940 # instructions that are not supported on r5900.
943 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
946 md_unwind_header=mips/linux-unwind.h
949 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
950 case "${with_newlib}" in
955 # MIPS toolkit libraries.
956 tmake_file="$tmake_file mips/t-sdemtk"
959 extra_parts="$extra_parts crti.o crtn.o"
961 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
962 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
963 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
964 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
965 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
966 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
967 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
968 extra_parts="$extra_parts crti.o crtn.o"
970 mipsisa64sr71k-*-elf*)
971 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
972 extra_parts="$extra_parts crti.o crtn.o"
974 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-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 mips-*-elf* | mipsel-*-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 mipsr5900-*-elf* | mipsr5900el-*-elf*)
983 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
984 extra_parts="$extra_parts crti.o crtn.o"
986 mips64-*-elf* | mips64el-*-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 mips64r5900-*-elf* | mips64r5900el-*-elf*)
991 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
992 extra_parts="$extra_parts crti.o crtn.o"
994 mips64vr-*-elf* | mips64vrel-*-elf*)
995 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
996 extra_parts="$extra_parts crti.o crtn.o"
998 mips64orion-*-elf* | mips64orionel-*-elf*)
999 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1000 extra_parts="$extra_parts crti.o crtn.o"
1003 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1004 extra_parts="$extra_parts crti.o crtn.o"
1008 mipstx39-*-elf* | mipstx39el-*-elf*)
1009 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1011 mmix-knuth-mmixware)
1012 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1013 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1018 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1019 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1020 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1023 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1024 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1027 # Basic makefile fragment and extra_parts for crt stuff.
1028 # We also append c-isr library implementation.
1029 tmake_file="${tmake_file} t-slibgcc-libgcc"
1030 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1031 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1032 md_unwind_header=nds32/linux-unwind.h
1033 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1034 case "${with_nds32_lib}" in
1035 "" | glibc | uclibc )
1038 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1044 # Basic makefile fragment and extra_parts for crt stuff.
1045 # We also append c-isr library implementation.
1046 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1047 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1048 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1049 case "${with_nds32_lib}" in
1051 # Append library definition makefile fragment t-nds32-newlib.
1052 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1053 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1056 # Append library definition makefile fragment t-nds32-mculib.
1057 # The software floating point library is included in mculib.
1058 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1061 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1067 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
1068 md_unwind_header=nios2/linux-unwind.h
1071 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1072 extra_parts="$extra_parts crti.o crtn.o"
1075 tmake_file="$tmake_file or1k/t-or1k"
1076 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1077 md_unwind_header=or1k/linux-unwind.h
1080 tmake_file="$tmake_file or1k/t-or1k"
1081 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1084 tmake_file="pdp11/t-pdp11 t-fdpbit"
1088 *-*-darwin9* | *-*-darwin[12][0-9]*)
1089 # libSystem contains unwind information for signal frames since
1093 md_unwind_header=rs6000/darwin-unwind.h
1096 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1097 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1099 powerpc64-*-darwin*)
1100 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1101 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1103 powerpc*-*-freebsd*)
1104 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1105 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1108 tmake_file="${tmake_file} rs6000/t-freebsd64"
1109 md_unwind_header=rs6000/freebsd-unwind.h
1114 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1117 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1118 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1120 powerpc-*-eabisimaltivec*)
1121 tmake_file="${tmake_file} rs6000/t-ppccomm 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"
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-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1130 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1132 powerpc-*-eabialtivec*)
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"
1136 powerpc-xilinx-eabi*)
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"
1141 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr 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 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 rs6000/t-linux t-dfprules rs6000/t-ppc64-fp t-slibgcc-libgcc"
1150 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1151 case $ppc_fp_type in
1155 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1158 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1161 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1164 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1167 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1172 if test $libgcc_cv_powerpc_float128 = yes; then
1173 tmake_file="${tmake_file} rs6000/t-float128"
1176 if test $libgcc_cv_powerpc_float128_hw = yes; then
1177 tmake_file="${tmake_file} rs6000/t-float128-hw"
1180 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1181 md_unwind_header=rs6000/linux-unwind.h
1183 powerpc-wrs-vxworks*)
1184 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
1185 extra_parts="$extra_parts crtbegin.o crtend.o"
1188 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1191 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1192 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1194 powerpcle-*-eabisim*)
1195 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1196 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
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} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1204 tm_file="$tm_file pru/pru-abi.h"
1207 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1208 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1209 md_unwind_header=riscv/linux-unwind.h
1212 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1213 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1216 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1217 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1219 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1220 md_unwind_header=rs6000/aix-unwind.h
1221 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1223 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
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-aix[56789].* | powerpc-ibm-aix[56789].*)
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 rs6000/t-aix-cxa"
1230 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
1233 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1236 tmake_file="rx/t-rx t-fdpbit"
1237 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1240 tmake_file="rx/t-rx t-fdpbit"
1241 tm_file="$tm_file rx/rx-lib.h"
1244 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1245 md_unwind_header=s390/linux-unwind.h
1248 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1249 if test "${host_address}" = 32; then
1250 tmake_file="${tmake_file} s390/32/t-floattodi"
1252 md_unwind_header=s390/linux-unwind.h
1255 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
1256 extra_parts="crtbeginS.o crtendS.o"
1257 md_unwind_header=s390/tpf-unwind.h
1259 sh-*-elf* | sh[12346l]*-*-elf*)
1260 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1261 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1262 libic_invalidate_array_4-100.a \
1263 libic_invalidate_array_4-200.a \
1264 libic_invalidate_array_4a.a \
1265 libgcc-Os-4-200.a libgcc-4-300.a"
1268 tmake_file="$tmake_file sh/t-superh"
1269 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1273 sh-*-linux* | sh[2346lbe]*-*-linux*)
1274 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1275 md_unwind_header=sh/linux-unwind.h
1277 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1278 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1280 # NetBSD's C library includes a fast software FP library that
1281 # has support for setting/setting the rounding mode, exception
1282 # mask, etc. Therefore, we don't want to include software FP
1286 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1287 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1288 libic_invalidate_array_4-100.a \
1289 libic_invalidate_array_4-200.a \
1290 libic_invalidate_array_4a.a \
1291 libgcc-Os-4-200.a libgcc-4-300.a"
1294 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1305 tmake_file="sparc/t-softmul"
1308 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1309 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1311 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1312 tmake_file="${tmake_file} t-crtfm"
1313 if test "${host_address}" = 64; then
1314 tmake_file="$tmake_file sparc/t-linux64"
1318 tmake_file="${tmake_file} t-fdpbit"
1321 tmake_file="${tmake_file} sparc/t-linux"
1328 if test "${host_address}" = 32; then
1329 tmake_file="$tmake_file sparc/t-softmul"
1333 extra_parts="$extra_parts crtfastmath.o"
1334 md_unwind_header=sparc/linux-unwind.h
1337 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1338 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1341 tmake_file="$tmake_file t-crtfm"
1342 extra_parts="$extra_parts crtfastmath.o"
1343 md_unwind_header=sparc/sol2-unwind.h
1346 tmake_file="${tmake_file} t-crtfm"
1347 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1350 tmake_file="$tmake_file t-crtfm"
1351 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1355 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1356 tmake_file="$tmake_file t-crtfm"
1357 extra_parts="$extra_parts crtfastmath.o"
1359 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1360 extra_parts="$extra_parts crtfastmath.o"
1361 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1362 if test "${host_address}" = 64; then
1363 tmake_file="${tmake_file} sparc/t-linux64"
1365 if test "${host_address}" = 32; then
1366 tmake_file="${tmake_file} sparc/t-softmul"
1368 md_unwind_header=sparc/linux-unwind.h
1373 tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
1374 extra_parts="$extra_parts \
1375 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1376 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1377 libgcc_cache64k.a libgcc_cache128k.a"
1380 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1381 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1382 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1383 tm_file="$tm_file c6x/c6x-abi.h"
1384 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1385 unwind_header=config/c6x/unwind-c6x.h
1388 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1389 tm_file="$tm_file c6x/c6x-abi.h"
1390 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1391 unwind_header=config/c6x/unwind-c6x.h
1394 if test "${host_address}" = 64; then
1395 tmake_file="${tmake_file} tilegx/t-softfp"
1397 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1398 md_unwind_header=tilepro/linux-unwind.h
1401 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1402 md_unwind_header=tilepro/linux-unwind.h
1405 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1408 tmake_file="$tmake_file vax/t-linux"
1415 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1416 tmake_file="visium/t-visium t-fdpbit"
1419 tmake_file="stormy16/t-stormy16 t-fdpbit"
1422 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1423 extra_parts="$extra_parts crti.o crtn.o"
1426 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1427 md_unwind_header=xtensa/linux-unwind.h
1430 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1431 md_unwind_header=xtensa/linux-unwind.h
1432 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1435 # Don't need crtbeginT.o from *-*-linux* default.
1436 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1437 tmake_file="$tmake_file t-fdpbit"
1439 m32c-*-elf*|m32c-*-rtems*)
1440 tmake_file="$tmake_file m32c/t-m32c"
1443 tmake_file="$tmake_file nvptx/t-nvptx"
1444 extra_parts="crt0.o"
1447 echo "*** Configuration ${host} not supported" 1>&2
1453 i[34567]86-*-* | x86_64-*-*)
1456 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1459 tmake_file="${tmake_file} i386/t-cpuinfo"
1466 i[34567]86-*-linux* | x86_64-*-linux* | \
1467 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1469 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1470 if test "$libgcc_cv_cfi" = "yes"; then
1471 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1477 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1478 # These use soft-fp for SFmode and DFmode, not just TFmode.
1480 i[34567]86-*-* | x86_64-*-*)
1481 tmake_file="${tmake_file} t-softfp-tf"
1482 if test "${host_address}" = 32; then
1483 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1485 tmake_file="${tmake_file} i386/t-softfp t-softfp"
1490 i[34567]86-*-linux* | x86_64-*-linux*)
1491 # Provide backward binary compatibility for 64bit Linux/x86.
1492 if test "${host_address}" = 64; then
1493 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1495 tm_file="${tm_file} i386/value-unwind.h"
1498 # ILP32 needs an extra header for unwinding
1499 tm_file="${tm_file} aarch64/value-unwind.h"