1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2022 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"
123 moxie*) cpu_type=moxie
141 tmake_file="loongarch/t-loongarch"
142 if test "${libgcc_cv_loongarch_hard_float}" = yes; then
143 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
145 tmake_file="${tmake_file} t-softfp-sfdf"
147 if test "${ac_cv_sizeof_long_double}" = 16; then
148 tmake_file="${tmake_file} loongarch/t-softfp-tf"
150 if test "${host_address}" = 64; then
151 tmake_file="${tmake_file} loongarch/t-loongarch64"
153 tmake_file="${tmake_file} t-softfp"
164 # All MIPS targets provide a full set of FP routines.
166 tmake_file="mips/t-mips"
167 if test "${libgcc_cv_mips_hard_float}" = yes; then
168 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
170 tmake_file="${tmake_file} t-softfp-sfdf"
172 if test "${ac_cv_sizeof_long_double}" = 16; then
173 tmake_file="${tmake_file} mips/t-softfp-tf"
175 if test "${host_address}" = 64; then
176 tmake_file="${tmake_file} mips/t-mips64"
178 tmake_file="${tmake_file} t-softfp"
209 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
210 sh[123456789lbe]*-*-*)
221 # Common parts for widely ported systems.
224 asm_hidden_op=.private_extern
225 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic"
226 # The unwinder is provided by the system shared libraries, do not add one
227 # to the shared libgcc but, for older systems, we build a shared unwinder
228 # separately so that we can construct a libgcc_s.1 to use for binaries
229 # linked against the old libgcc_ext.10.x stubs.
231 *-*-darwin[89]* | *-*-darwin10*)
232 tmake_file="$tmake_file t-darwin-ehs ${cpu_type}/t-darwin-ehs"
235 tmake_file="$tmake_file t-slibgcc-darwin"
236 extra_parts="crt3.o libd10-uwfef.a crttms.o crttme.o libemutls_w.a"
239 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
240 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
241 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
244 # This is the generic ELF configuration of FreeBSD. Later
245 # machine-specific sections may refine and add to this
247 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"
248 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
249 case ${target_thread_file} in
251 tmake_file="${tmake_file} t-freebsd-thread"
252 # Before 5.0, FreeBSD can't bind shared libraries to -lc
253 # when "optionally" threaded via weak pthread_* checks.
255 *-*-freebsd[34] | *-*-freebsd[34].*)
256 tmake_file="${tmake_file} t-slibgcc-nolc-override"
263 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
264 extra_parts="crtbegin.o crtend.o"
266 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
267 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"
268 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
269 if test x$enable_vtable_verify = xyes; then
270 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
274 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
275 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
278 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
279 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
280 tmake_file="$tmake_file t-slibgcc-libgcc"
281 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
284 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
285 case ${target_thread_file} in
287 tmake_file="$tmake_file t-openbsd-thread"
292 tmake_file="$tmake_file t-rtems"
293 extra_parts="crtbegin.o crtend.o"
296 # Unless linker support and dl_iterate_phdr are present,
297 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
298 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
299 if test $with_gnu_ld = yes; then
300 tmake_file="$tmake_file t-slibgcc-gld"
302 tmake_file="$tmake_file t-slibgcc-sld"
304 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
305 tmake_file="$tmake_file $cpu_type/t-sol2"
306 extra_parts="gmon.o crtbegin.o crtend.o"
307 if test "${libgcc_cv_solaris_crts}" = yes; then
308 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
309 # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
310 extra_parts="$extra_parts crtp.o crtpg.o"
311 # If the Solaris CRTs are present, both ld and gld will have PIE support.
312 extra_parts="$extra_parts crtbeginS.o crtendS.o"
315 i?86-*-solaris2* | x86_64-*-solaris2*)
316 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
317 # part of the base system.
320 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
321 extra_parts="$extra_parts crt1.o gcrt1.o"
325 if test x$enable_vtable_verify = xyes; then
326 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
330 extra_parts="crtbegin.o crtend.o"
333 tmake_file="vms/t-vms"
334 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
337 tmake_file=t-vxworksae
343 extra_parts="crtbegin.o crtend.o"
347 # VxWorks ports rely on specially crafted crtstuff files
350 tmake_file="${tmake_file} t-vxcrtstuff"
355 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
357 enable_execute_stack=enable-execute-stack-mprotect.c
359 i[34567]86-*-mingw* | x86_64-*-mingw*)
360 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
362 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
363 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
366 enable_execute_stack=enable-execute-stack-empty.c;
371 aarch64*-*-elf | aarch64*-*-rtems*)
372 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
373 extra_parts="$extra_parts crtfastmath.o"
374 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
375 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
376 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
377 tmake_file="${tmake_file} t-dfprules"
378 md_unwind_header=aarch64/aarch64-unwind.h
381 extra_parts="$extra_parts crtfastmath.o"
382 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
383 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
384 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
385 tmake_file="${tmake_file} t-dfprules"
386 md_unwind_header=aarch64/freebsd-unwind.h
389 extra_parts="$extra_parts crtfastmath.o"
390 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
391 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
392 tmake_file="${tmake_file} t-dfprules"
393 md_unwind_header=aarch64/aarch64-unwind.h
396 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
397 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
398 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
399 tmake_file="${tmake_file} t-dfprules"
402 extra_parts="$extra_parts crtfastmath.o"
403 md_unwind_header=aarch64/linux-unwind.h
404 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
405 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
406 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
407 tmake_file="${tmake_file} t-dfprules"
409 aarch64*-*-vxworks7*)
410 extra_parts="$extra_parts crtfastmath.o"
411 md_unwind_header=aarch64/aarch64-unwind.h
412 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
413 tmake_file="${tmake_file} ${cpu_type}/t-lse"
414 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
415 tmake_file="${tmake_file} t-dfprules"
418 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
419 extra_parts="$extra_parts crtfastmath.o"
420 md_unwind_header=alpha/linux-unwind.h
423 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
424 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
427 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
430 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
433 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
434 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
435 md_unwind_header=alpha/vms-unwind.h
438 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
439 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
440 md_unwind_header=alpha/vms-unwind.h
443 tmake_file="$tmake_file gcn/t-amdgcn"
447 tmake_file="arc/t-arc"
448 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
449 extra_parts="$extra_parts crttls.o"
452 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
453 extra_parts="$extra_parts crti.o crtn.o"
454 extra_parts="$extra_parts crttls.o"
455 md_unwind_header=arc/linux-unwind.h
458 tmake_file="$tmake_file arm/t-arm arm/t-elf arm/t-bpabi arm/t-vxworks7"
459 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
460 tm_file="$tm_file arm/bpabi-lib.h"
461 unwind_header=config/arm/unwind-arm.h
462 extra_parts="$extra_parts crti.o crtn.o"
464 arm*-*-freebsd*) # ARM FreeBSD EABI
465 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
466 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
467 tm_file="${tm_file} arm/bpabi-lib.h"
468 unwind_header=config/arm/unwind-arm.h
469 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
472 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
473 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
474 tm_file="${tm_file} arm/bpabi-lib.h"
475 unwind_header=config/arm/unwind-arm.h
478 tmake_file="$tmake_file arm/t-arm"
480 arm*-*-netbsdelf-*eabi*)
481 tmake_file="${tmake_file} arm/t-netbsd-eabi"
482 unwind_header=config/arm/unwind-arm.h
485 tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover"
489 arm*-*-linux* | arm*-*-uclinuxfdpiceabi)
490 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
491 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
492 tm_file="$tm_file arm/bpabi-lib.h"
493 unwind_header=config/arm/unwind-arm.h
494 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
495 extra_parts="$extra_parts crtfastmath.o"
497 arm*-*-uclinux*) # ARM ucLinux
498 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
499 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
500 tmake_file="${tmake_file} arm/t-bpabi"
501 tm_file="$tm_file arm/bpabi-lib.h"
502 unwind_header=config/arm/unwind-arm.h
503 extra_parts="$extra_parts crti.o crtn.o"
506 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
507 tmake_file="${tmake_file} arm/t-bpabi"
508 tm_file="$tm_file arm/bpabi-lib.h"
509 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
510 unwind_header=config/arm/unwind-arm.h
512 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
513 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
514 tm_file="$tm_file arm/bpabi-lib.h"
516 arm*-*-eabi* | arm*-*-rtems*)
517 tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
518 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
521 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
522 tm_file="$tm_file arm/symbian-lib.h"
523 # Symbian OS provides its own startup code.
526 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
527 extra_parts="$extra_parts crtfastmath.o"
528 unwind_header=config/arm/unwind-arm.h
531 # Make HImode functions for AVR
532 tmake_file="${cpu_type}/t-avr t-fpbit"
533 # Make some DFmode functions from libf7, part of avr-libgcc.
534 # This must be prior to adding t-avrlibc.
535 case "y${with_libf7}" in
540 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
543 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
544 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
546 ymath-symbols | yyes | y)
547 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math-symbols"
548 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
549 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
552 echo "Error: --with-libf7=${with_libf7} but can only be used with: 'libgcc', 'math', 'math-symbols', 'yes', 'no'" 1>&2
556 if test x${with_avrlibc} != xno; then
557 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
559 tm_file="$tm_file avr/avr-lib.h"
560 if test x${with_fixed_point} = xno; then
565 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
566 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
569 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
570 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
571 md_unwind_header=bfin/linux-unwind.h
574 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
575 # No need to build crtbeginT.o on uClibc systems. Should probably
576 # be moved to the OS specific section above.
577 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
578 md_unwind_header=bfin/linux-unwind.h
581 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
582 extra_parts="$extra_parts crti.o crtn.o"
585 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
586 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
589 tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
590 extra_parts="crti.o crtn.o"
593 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
596 tmake_file="csky/t-csky t-fdpbit"
597 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
600 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
601 extra_parts="$extra_parts crti.o crtn.o"
602 md_unwind_header=csky/linux-unwind.h
604 epiphany-*-elf* | epiphany-*-rtems*)
605 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
606 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
609 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
610 extra_parts="$extra_parts crti.o crtn.o"
613 tmake_file="$tmake_file frv/t-frv t-fdpbit"
614 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
615 # Don't use crtbegin.o, crtend.o.
616 extra_parts="frvbegin.o frvend.o"
619 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
620 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
623 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
624 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
627 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
628 tm_file="$tm_file h8300/h8300-lib.h"
629 extra_parts="$extra_parts crti.o crtn.o"
632 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
633 tm_file="$tm_file h8300/h8300-lib.h"
636 tmake_file="$tmake_file pa/t-linux64 pa/t-dimode"
637 tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
638 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
641 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
642 # Set the libgcc version number
643 if test x$ac_cv_sjlj_exceptions = xyes; then
644 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
646 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
648 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
649 md_unwind_header=pa/linux-unwind.h
652 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-dimode"
653 tmake_file="$tmake_file pa/t-stublib t-libgcc-pic t-slibgcc"
654 # Set the libgcc version number
655 if test x$ac_cv_sjlj_exceptions = xyes; then
656 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
658 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
660 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
661 tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
662 tm_file="$tm_file pa/pa64-hpux-lib.h"
663 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
665 md_unwind_header=pa/hpux-unwind.h
668 tmake_file="$tmake_file pa/t-openbsd"
671 tmake_file="$tmake_file pa/t-netbsd"
673 i[34567]86-*-darwin*)
674 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
675 tm_file="$tm_file i386/darwin-lib.h"
676 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
679 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
680 tm_file="$tm_file i386/darwin-lib.h"
681 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
683 i[34567]86-*-elfiamcu)
684 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"
687 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
689 x86_64-*-elf* | x86_64-*-rtems*)
690 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
693 extra_parts="$extra_parts crti.o crtn.o"
698 tmake_file="$tmake_file t-libgcc-pic"
700 i[34567]86-*-dragonfly*)
701 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
702 md_unwind_header=i386/dragonfly-unwind.h
705 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
706 md_unwind_header=i386/dragonfly-unwind.h
708 i[34567]86-*-freebsd*)
709 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
710 md_unwind_header=i386/freebsd-unwind.h
713 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
714 md_unwind_header=i386/freebsd-unwind.h
716 i[34567]86-*-netbsdelf*)
717 tmake_file="${tmake_file} i386/t-crtstuff"
720 tmake_file="${tmake_file} i386/t-crtstuff"
722 i[34567]86-*-openbsd*)
727 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
728 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
729 tm_file="${tm_file} i386/elf-lib.h"
730 md_unwind_header=i386/linux-unwind.h
732 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-kopensolaris*-gnu)
733 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
734 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
735 tm_file="${tm_file} i386/elf-lib.h"
738 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
739 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
740 tm_file="${tm_file} i386/elf-lib.h"
741 md_unwind_header=i386/gnu-unwind.h
744 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
745 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
746 tm_file="${tm_file} i386/elf-lib.h"
747 md_unwind_header=i386/linux-unwind.h
749 x86_64-*-kfreebsd*-gnu)
750 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
751 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
752 tm_file="${tm_file} i386/elf-lib.h"
754 i[34567]86-pc-msdosdjgpp*)
756 i[34567]86-*-lynxos*)
758 i[34567]86-*-nto-qnx*)
759 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
760 extra_parts=crtbegin.o
763 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
764 extra_parts="$extra_parts crti.o crtn.o"
766 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
767 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
768 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
769 tm_file="${tm_file} i386/elf-lib.h"
770 md_unwind_header=i386/sol2-unwind.h
772 i[4567]86-wrs-vxworks*|x86_64-wrs-vxworks*)
774 i[34567]86-*-cygwin*)
775 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
776 if test x$enable_vtable_verify = xyes; then
777 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
779 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
780 if test x$ac_cv_sjlj_exceptions = xyes; then
781 tmake_eh_file="i386/t-sjlj-eh"
783 tmake_eh_file="i386/t-dw2-eh"
785 # Shared libgcc DLL install dir depends on cross/native build.
786 if test x${build} = x${host} ; then
787 tmake_dlldir_file="i386/t-dlldir"
789 tmake_dlldir_file="i386/t-dlldir-x"
791 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"
794 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
795 if test x$enable_vtable_verify = xyes; then
796 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
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"
801 elif test "${host_address}" = 32; then
802 # biarch -m32 with --disable-sjlj-exceptions
803 tmake_eh_file="i386/t-dw2-eh"
805 tmake_eh_file="i386/t-seh-eh"
807 # Shared libgcc DLL install dir depends on cross/native build.
808 if test x${build} = x${host} ; then
809 tmake_dlldir_file="i386/t-dlldir"
811 tmake_dlldir_file="i386/t-dlldir-x"
813 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
814 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"
817 extra_parts="crtbegin.o crtend.o crtfastmath.o"
818 if test x$enable_vtable_verify = xyes; then
819 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
821 case ${target_thread_file} in
823 tmake_file="$tmake_file i386/t-gthr-win32"
826 tmake_file="i386/t-mingw-pthread $tmake_file"
829 tmake_file="i386/t-mingw-mcfgthread $tmake_file"
832 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
833 if test x$ac_cv_sjlj_exceptions = xyes; then
834 tmake_eh_file="i386/t-sjlj-eh"
836 tmake_eh_file="i386/t-dw2-eh"
837 md_unwind_header=i386/w32-unwind.h
839 # Shared libgcc DLL install dir depends on cross/native build.
840 if test x${build} = x${host} ; then
841 tmake_dlldir_file="i386/t-dlldir"
843 tmake_dlldir_file="i386/t-dlldir-x"
845 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"
848 case ${target_thread_file} in
850 tmake_file="$tmake_file i386/t-gthr-win32"
853 tmake_file="i386/t-mingw-pthread $tmake_file"
856 tmake_file="i386/t-mingw-mcfgthread $tmake_file"
859 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
860 if test x$ac_cv_sjlj_exceptions = xyes; then
861 tmake_eh_file="i386/t-sjlj-eh"
862 elif test "${host_address}" = 32; then
863 # biarch -m32 with --disable-sjlj-exceptions
864 tmake_eh_file="i386/t-dw2-eh"
865 md_unwind_header=i386/w32-unwind.h
867 tmake_eh_file="i386/t-seh-eh"
869 # Shared libgcc DLL install dir depends on cross/native build.
870 if test x${build} = x${host} ; then
871 tmake_dlldir_file="i386/t-dlldir"
873 tmake_dlldir_file="i386/t-dlldir-x"
875 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"
876 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
877 if test x$enable_vtable_verify = xyes; then
878 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
882 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
883 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"
886 extra_parts="$extra_parts crtfastmath.o"
887 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"
890 # Don't use crtbeginT.o from *-*-linux* default.
891 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
892 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"
893 if test x$with_system_libunwind != xyes ; then
894 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
896 md_unwind_header=ia64/linux-unwind.h
899 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
902 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"
903 extra_parts="$extra_parts crtinitS.o"
904 md_unwind_header=ia64/vms-unwind.h
907 tmake_file="iq2000/t-iq2000 t-fdpbit"
912 extra_parts="$extra_parts crti.o crtn.o"
913 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
916 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
917 extra_parts="$extra_parts crti.o crtn.o"
920 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
921 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
924 extra_parts="$extra_parts crtfastmath.o"
925 tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
928 tmake_file="${tmake_file} t-slibgcc-libgcc"
931 md_unwind_header=loongarch/linux-unwind.h
934 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
935 extra_parts="$extra_parts crtinit.o crtfini.o"
940 m68k-*-elf* | fido-*-elf)
941 tmake_file="$tmake_file m68k/t-floatlib"
947 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
948 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
949 md_unwind_header=m68k/linux-unwind.h
951 m68k-*-linux*) # Motorola m68k's running GNU/Linux
952 # with ELF format using glibc 2
953 # aka the GNU/Linux C library 6.
954 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
955 # If not configured with setjmp/longjmp exceptions, bump the
956 # libgcc version number.
957 if test x$ac_cv_sjlj_exceptions != xyes; then
958 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
960 md_unwind_header=m68k/linux-unwind.h
963 tmake_file="$tmake_file m68k/t-floatlib"
964 extra_parts="$extra_parts crti.o crtn.o"
967 tmake_file="mcore/t-mcore t-fdpbit"
968 extra_parts="$extra_parts crti.o crtn.o"
971 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
974 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
975 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
977 microblaze*-*-rtems*)
978 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
979 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
981 mips*-*-netbsd*) # NetBSD/mips, either endian.
983 mips*-*-linux*) # Linux MIPS, either endian.
984 extra_parts="$extra_parts crtfastmath.o"
985 tmake_file="${tmake_file} t-crtfm"
987 mips64r5900* | mipsr5900*)
988 # The MIPS16 support code uses floating point
989 # instructions that are not supported on r5900.
992 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
995 md_unwind_header=mips/linux-unwind.h
998 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
999 case "${with_newlib}" in
1001 # newlib / libgloss.
1004 # MIPS toolkit libraries.
1005 tmake_file="$tmake_file mips/t-sdemtk"
1008 extra_parts="$extra_parts crti.o crtn.o"
1010 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
1011 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
1012 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
1013 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
1014 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
1015 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
1016 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1017 extra_parts="$extra_parts crti.o crtn.o"
1019 mipsisa64sr71k-*-elf*)
1020 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
1021 extra_parts="$extra_parts crti.o crtn.o"
1023 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1024 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1025 extra_parts="$extra_parts crti.o crtn.o"
1027 mips-*-elf* | mipsel-*-elf*)
1028 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1029 extra_parts="$extra_parts crti.o crtn.o"
1031 mipsr5900-*-elf* | mipsr5900el-*-elf*)
1032 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1033 extra_parts="$extra_parts crti.o crtn.o"
1035 mips64-*-elf* | mips64el-*-elf*)
1036 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1037 extra_parts="$extra_parts crti.o crtn.o"
1039 mips64r5900-*-elf* | mips64r5900el-*-elf*)
1040 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1041 extra_parts="$extra_parts crti.o crtn.o"
1043 mips64vr-*-elf* | mips64vrel-*-elf*)
1044 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
1045 extra_parts="$extra_parts crti.o crtn.o"
1047 mips64orion-*-elf* | mips64orionel-*-elf*)
1048 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1049 extra_parts="$extra_parts crti.o crtn.o"
1052 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1053 extra_parts="$extra_parts crti.o crtn.o"
1057 mipstx39-*-elf* | mipstx39el-*-elf*)
1058 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1060 mmix-knuth-mmixware)
1061 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1062 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1067 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1068 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1069 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1072 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1073 extra_parts="crtbegin.o crtend.o crtbegin_no_eh.o crtend_no_eh.o"
1074 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1077 # Basic makefile fragment and extra_parts for crt stuff.
1078 # We also append c-isr library implementation.
1079 tmake_file="${tmake_file} t-slibgcc-libgcc"
1080 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1081 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1082 md_unwind_header=nds32/linux-unwind.h
1083 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1084 case "${with_nds32_lib}" in
1085 "" | glibc | uclibc )
1088 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1094 # Basic makefile fragment and extra_parts for crt stuff.
1095 # We also append c-isr library implementation.
1096 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1097 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1098 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1099 case "${with_nds32_lib}" in
1101 # Append library definition makefile fragment t-nds32-newlib.
1102 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1103 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1106 # Append library definition makefile fragment t-nds32-mculib.
1107 # The software floating point library is included in mculib.
1108 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1111 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1117 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-eh-dw2-dip t-slibgcc-libgcc"
1118 tm_file="$tm_file nios2/elf-lib.h"
1119 md_unwind_header=nios2/linux-unwind.h
1122 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1123 extra_parts="$extra_parts crti.o crtn.o"
1126 tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
1127 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1128 md_unwind_header=or1k/linux-unwind.h
1131 tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
1132 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1135 tmake_file="pdp11/t-pdp11 t-fdpbit"
1139 *-*-darwin9* | *-*-darwin[12][0-9]*)
1140 # libSystem contains unwind information for signal frames since
1144 md_unwind_header=rs6000/darwin-unwind.h
1147 #Â We build the darwin10 EH shim for Rosetta (running on x86 machines).
1148 tm_file="$tm_file i386/darwin-lib.h"
1149 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1150 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1152 powerpc64-*-darwin*)
1153 #Â We build the darwin10 EH shim for Rosetta (running on x86 machines).
1154 tm_file="$tm_file i386/darwin-lib.h"
1155 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1156 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1158 powerpc*-*-freebsd*)
1159 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1160 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1163 tmake_file="${tmake_file} rs6000/t-freebsd64"
1164 md_unwind_header=rs6000/freebsd-unwind.h
1169 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1172 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1173 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1175 powerpc-*-eabisimaltivec*)
1176 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1177 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1180 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1181 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1184 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1185 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1187 powerpc-*-eabialtivec*)
1188 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1189 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1191 powerpc-xilinx-eabi*)
1192 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1193 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1196 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1197 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1200 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1201 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1204 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"
1205 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1206 case $ppc_fp_type in
1210 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1213 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1216 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1219 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1222 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1227 if test $libgcc_cv_powerpc_float128 = yes; then
1228 tmake_file="${tmake_file} rs6000/t-float128"
1231 if test $libgcc_cv_powerpc_float128_hw = yes; then
1232 tmake_file="${tmake_file} rs6000/t-float128-hw"
1235 if test $libgcc_cv_powerpc_3_1_float128_hw = yes; then
1236 tmake_file="${tmake_file} rs6000/t-float128-p10-hw"
1239 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1240 md_unwind_header=rs6000/linux-unwind.h
1242 powerpc*-wrs-vxworks7*)
1243 tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-dfprules rs6000/t-ppc64-fp"
1244 tmake_file="rs6000/t-crtstuff ${tmake_file}"
1245 case $ppc_fp_type in
1249 tmake_file="${tmake_file} t-hardfp-sfdf"
1252 tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
1255 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1260 powerpc-wrs-vxworks*)
1261 tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-fdpbit"
1264 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1267 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1268 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1270 powerpcle-*-eabisim*)
1271 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1272 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1275 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1276 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1279 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1280 tm_file="$tm_file pru/pru-abi.h"
1283 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1284 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1285 md_unwind_header=riscv/linux-unwind.h
1288 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1289 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1292 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1293 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1295 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1296 md_unwind_header=rs6000/aix-unwind.h
1297 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1299 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1300 md_unwind_header=rs6000/aix-unwind.h
1301 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1303 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1304 md_unwind_header=rs6000/aix-unwind.h
1305 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1306 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o crtcxa_64.o crtcxa_64_s.o crtdbase_64.o"
1309 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1312 tmake_file="rx/t-rx t-fdpbit"
1313 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1316 tmake_file="rx/t-rx t-fdpbit"
1317 tm_file="$tm_file rx/rx-lib.h"
1320 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1321 md_unwind_header=s390/linux-unwind.h
1324 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1325 if test "${host_address}" = 32; then
1326 tmake_file="${tmake_file} s390/32/t-floattodi"
1328 md_unwind_header=s390/linux-unwind.h
1331 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip s390/t-tpf"
1332 extra_parts="crtbeginS.o crtendS.o"
1333 md_unwind_header=s390/tpf-unwind.h
1335 sh-*-elf* | sh[12346l]*-*-elf*)
1336 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1337 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1338 libic_invalidate_array_4-100.a \
1339 libic_invalidate_array_4-200.a \
1340 libic_invalidate_array_4a.a \
1341 libgcc-Os-4-200.a libgcc-4-300.a"
1344 tmake_file="$tmake_file sh/t-superh"
1345 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1349 sh-*-linux* | sh[2346lbe]*-*-linux*)
1350 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1351 md_unwind_header=sh/linux-unwind.h
1353 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1354 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1356 # NetBSD's C library includes a fast software FP library that
1357 # has support for setting/setting the rounding mode, exception
1358 # mask, etc. Therefore, we don't want to include software FP
1362 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1363 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1364 libic_invalidate_array_4-100.a \
1365 libic_invalidate_array_4-200.a \
1366 libic_invalidate_array_4a.a \
1367 libgcc-Os-4-200.a libgcc-4-300.a"
1370 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1381 tmake_file="sparc/t-softmul"
1384 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1385 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1387 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1388 tmake_file="${tmake_file} t-crtfm"
1389 if test "${host_address}" = 64; then
1390 tmake_file="$tmake_file sparc/t-linux64"
1394 tmake_file="${tmake_file} t-fdpbit"
1397 tmake_file="${tmake_file} sparc/t-linux"
1404 if test "${host_address}" = 32; then
1405 tmake_file="$tmake_file sparc/t-softmul"
1409 extra_parts="$extra_parts crtfastmath.o"
1410 md_unwind_header=sparc/linux-unwind.h
1413 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1414 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1417 tmake_file="$tmake_file t-crtfm"
1418 extra_parts="$extra_parts crtfastmath.o"
1419 md_unwind_header=sparc/sol2-unwind.h
1422 tmake_file="${tmake_file} t-crtfm"
1423 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1426 tmake_file="$tmake_file t-crtfm"
1427 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1431 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1432 tmake_file="$tmake_file t-crtfm"
1433 extra_parts="$extra_parts crtfastmath.o"
1435 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1436 extra_parts="$extra_parts crtfastmath.o"
1437 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1438 if test "${host_address}" = 64; then
1439 tmake_file="${tmake_file} sparc/t-linux64"
1441 if test "${host_address}" = 32; then
1442 tmake_file="${tmake_file} sparc/t-softmul"
1444 md_unwind_header=sparc/linux-unwind.h
1449 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1450 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1451 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1452 tm_file="$tm_file c6x/c6x-abi.h"
1453 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1454 unwind_header=config/c6x/unwind-c6x.h
1457 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1458 tm_file="$tm_file c6x/c6x-abi.h"
1459 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1460 unwind_header=config/c6x/unwind-c6x.h
1463 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1466 tmake_file="$tmake_file vax/t-linux"
1473 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1474 tmake_file="visium/t-visium t-fdpbit"
1477 tmake_file="stormy16/t-stormy16 t-fdpbit"
1480 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1481 extra_parts="$extra_parts crti.o crtn.o"
1484 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1485 md_unwind_header=xtensa/linux-unwind.h
1488 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1489 md_unwind_header=xtensa/linux-unwind.h
1490 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1493 # Don't need crtbeginT.o from *-*-linux* default.
1494 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1495 tmake_file="$tmake_file t-fdpbit"
1498 tmake_file="$tmake_file m32c/t-m32c"
1501 tmake_file="$tmake_file nvptx/t-nvptx"
1502 extra_parts="crt0.o"
1505 echo "*** Configuration ${host} not supported" 1>&2
1511 i[34567]86-*-* | x86_64-*-*)
1514 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1517 tmake_file="${tmake_file} i386/t-cpuinfo"
1524 i[34567]86-*-linux* | x86_64-*-linux* | \
1525 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1527 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1528 if test "$libgcc_cv_cfi" = "yes"; then
1529 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1535 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1536 # These use soft-fp for SFmode and DFmode, not just TFmode.
1538 i[34567]86-*-* | x86_64-*-*)
1539 tmake_file="${tmake_file} t-softfp-tf"
1540 tmake_file="${tmake_file} i386/${host_address}/t-softfp i386/t-softfp t-softfp"
1545 i[34567]86-*-linux* | x86_64-*-linux*)
1546 # Provide backward binary compatibility for 64bit Linux/x86.
1547 if test "${host_address}" = 64; then
1548 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1550 tm_file="${tm_file} i386/value-unwind.h"
1553 # ILP32 needs an extra header for unwinding
1554 tm_file="${tm_file} aarch64/value-unwind.h"
1558 # Setup to build a shared libgcc for VxWorks when that was requested,
1559 # for library variants that support it (rtp only, code model not large).
1564 case ${with_multisubdir}-${enable_shared} in
1568 tmake_file="${tmake_file} t-libgcc-pic"
1570 # Arrange to set a soname on libgcc_s so DT_NEEDED entries
1571 # for it refer to that alone. This ensures absence of path
1572 # components which would be incorrect as the runtime loader
1573 # on target has no visibility over the host filesystem.
1574 tmake_file="${tmake_file} t-slibgcc-gld-nover"
1575 tmake_file="${tmake_file} t-slibgcc"
1577 # t-slibgcc-libgcc is needed on at least aarch64 (for
1578 # lse) and at most harmless on other targets.
1579 tmake_file="${tmake_file} t-slibgcc-libgcc"
1581 tmake_file="${tmake_file} t-crtstuff-pic t-vxcrtstuffS"
1587 # The vxworks threads implementation relies on a few extra sources,
1588 # which we arrange to add after everything else:
1590 case ${target_thread_file} in
1594 tmake_file="${tmake_file} t-gthr-vxworksae"
1597 tmake_file="${tmake_file} t-gthr-vxworks"
1604 # The gthr weak references are unsafe with static linking
1605 tmake_file="$tmake_file t-gthr-noweak"