1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2023 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 # newer toolsets produce warnings when building for unsupported versions.
238 *-*-darwin1[89]* | *-*-darwin2* )
239 tmake_file="t-darwin-min-8 $tmake_file"
241 *-*-darwin9* | *-*-darwin1[0-7]*)
242 tmake_file="t-darwin-min-5 $tmake_file"
245 tmake_file="t-darwin-min-1 $tmake_file"
248 # Fall back to configuring for the oldest system known to work with
249 # all archs and the current sources.
250 tmake_file="t-darwin-min-5 $tmake_file"
251 echo "Warning: libgcc configured to support macOS 10.5" 1>&2
254 extra_parts="crt3.o libd10-uwfef.a crttms.o crttme.o libemutls_w.a"
257 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
258 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
259 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
262 # This is the generic ELF configuration of FreeBSD. Later
263 # machine-specific sections may refine and add to this
265 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"
266 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
267 case ${target_thread_file} in
269 tmake_file="${tmake_file} t-freebsd-thread"
270 # Before 5.0, FreeBSD can't bind shared libraries to -lc
271 # when "optionally" threaded via weak pthread_* checks.
273 *-*-freebsd[34] | *-*-freebsd[34].*)
274 tmake_file="${tmake_file} t-slibgcc-nolc-override"
281 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
282 extra_parts="crtbegin.o crtend.o"
284 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
285 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"
286 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
287 if test x$enable_vtable_verify = xyes; then
288 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
292 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
293 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
296 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
297 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
298 tmake_file="$tmake_file t-slibgcc-libgcc"
299 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
302 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
303 case ${target_thread_file} in
305 tmake_file="$tmake_file t-openbsd-thread"
310 tmake_file="$tmake_file t-rtems"
311 extra_parts="crtbegin.o crtend.o"
314 # Unless linker support and dl_iterate_phdr are present,
315 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
316 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
317 if test $with_gnu_ld = yes; then
318 tmake_file="$tmake_file t-slibgcc-gld"
320 tmake_file="$tmake_file t-slibgcc-sld"
322 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
323 tmake_file="$tmake_file $cpu_type/t-sol2"
324 extra_parts="gmon.o crtbegin.o crtend.o"
325 if test "${libgcc_cv_solaris_crts}" = yes; then
326 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
327 # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
328 extra_parts="$extra_parts crtp.o crtpg.o"
329 # If the Solaris CRTs are present, both ld and gld will have PIE support.
330 extra_parts="$extra_parts crtbeginS.o crtendS.o"
333 i?86-*-solaris2* | x86_64-*-solaris2*)
334 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
335 # part of the base system.
338 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
339 extra_parts="$extra_parts crt1.o gcrt1.o"
343 if test x$enable_vtable_verify = xyes; then
344 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
348 extra_parts="crtbegin.o crtend.o"
351 tmake_file="vms/t-vms"
352 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
355 tmake_file=t-vxworksae
361 extra_parts="crtbegin.o crtend.o"
365 # VxWorks ports rely on specially crafted crtstuff files
368 tmake_file="${tmake_file} t-vxcrtstuff"
373 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
375 enable_execute_stack=enable-execute-stack-mprotect.c
377 i[34567]86-*-mingw* | x86_64-*-mingw*)
378 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
380 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
381 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
384 enable_execute_stack=enable-execute-stack-empty.c;
389 aarch64*-*-elf | aarch64*-*-rtems*)
390 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
391 extra_parts="$extra_parts crtfastmath.o"
392 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
393 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
394 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
395 tmake_file="${tmake_file} t-dfprules"
396 md_unwind_header=aarch64/aarch64-unwind.h
399 extra_parts="$extra_parts crtfastmath.o"
400 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
401 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
402 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
403 tmake_file="${tmake_file} t-dfprules"
404 md_unwind_header=aarch64/freebsd-unwind.h
407 extra_parts="$extra_parts crtfastmath.o"
408 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
409 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
410 tmake_file="${tmake_file} t-dfprules"
411 md_unwind_header=aarch64/aarch64-unwind.h
414 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
415 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
416 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
417 tmake_file="${tmake_file} t-dfprules"
420 extra_parts="$extra_parts crtfastmath.o"
421 md_unwind_header=aarch64/linux-unwind.h
422 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
423 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
424 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
425 tmake_file="${tmake_file} t-dfprules"
427 aarch64*-*-vxworks7*)
428 extra_parts="$extra_parts crtfastmath.o"
429 md_unwind_header=aarch64/aarch64-unwind.h
430 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
431 tmake_file="${tmake_file} ${cpu_type}/t-lse"
432 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
433 tmake_file="${tmake_file} t-dfprules"
436 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
437 extra_parts="$extra_parts crtfastmath.o"
438 md_unwind_header=alpha/linux-unwind.h
441 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
442 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
445 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
448 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
451 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
452 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
453 md_unwind_header=alpha/vms-unwind.h
456 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
457 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
458 md_unwind_header=alpha/vms-unwind.h
461 tmake_file="$tmake_file gcn/t-amdgcn"
465 tmake_file="arc/t-arc"
466 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
467 extra_parts="$extra_parts crttls.o"
470 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
471 extra_parts="$extra_parts crti.o crtn.o"
472 extra_parts="$extra_parts crttls.o"
473 md_unwind_header=arc/linux-unwind.h
476 tmake_file="$tmake_file arm/t-arm arm/t-elf arm/t-bpabi arm/t-vxworks7"
477 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
478 tm_file="$tm_file arm/bpabi-lib.h"
479 unwind_header=config/arm/unwind-arm.h
480 extra_parts="$extra_parts crti.o crtn.o"
482 arm*-*-freebsd*) # ARM FreeBSD EABI
483 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
484 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
485 tm_file="${tm_file} arm/bpabi-lib.h"
486 unwind_header=config/arm/unwind-arm.h
487 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
490 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
491 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
492 tm_file="${tm_file} arm/bpabi-lib.h"
493 unwind_header=config/arm/unwind-arm.h
496 tmake_file="$tmake_file arm/t-arm"
498 arm*-*-netbsdelf-*eabi*)
499 tmake_file="${tmake_file} arm/t-netbsd-eabi"
500 unwind_header=config/arm/unwind-arm.h
503 tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover"
507 arm*-*-linux* | arm*-*-uclinuxfdpiceabi)
508 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
509 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
510 tm_file="$tm_file arm/bpabi-lib.h"
511 unwind_header=config/arm/unwind-arm.h
512 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
513 extra_parts="$extra_parts crtfastmath.o"
515 arm*-*-uclinux*) # ARM ucLinux
516 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
517 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
518 tmake_file="${tmake_file} arm/t-bpabi"
519 tm_file="$tm_file arm/bpabi-lib.h"
520 unwind_header=config/arm/unwind-arm.h
521 extra_parts="$extra_parts crti.o crtn.o"
524 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
525 tmake_file="${tmake_file} arm/t-bpabi"
526 tm_file="$tm_file arm/bpabi-lib.h"
527 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
528 unwind_header=config/arm/unwind-arm.h
530 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
531 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
532 tm_file="$tm_file arm/bpabi-lib.h"
534 arm*-*-eabi* | arm*-*-rtems*)
535 tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
536 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
539 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
540 tm_file="$tm_file arm/symbian-lib.h"
541 # Symbian OS provides its own startup code.
544 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
545 extra_parts="$extra_parts crtfastmath.o"
546 unwind_header=config/arm/unwind-arm.h
549 # Make HImode functions for AVR
550 tmake_file="${cpu_type}/t-avr t-fpbit"
551 # Make some DFmode functions from libf7, part of avr-libgcc.
552 # This must be prior to adding t-avrlibc.
553 case "y${with_libf7}" in
558 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
561 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
562 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
564 ymath-symbols | yyes | y)
565 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math-symbols"
566 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
567 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
570 echo "Error: --with-libf7=${with_libf7} but can only be used with: 'libgcc', 'math', 'math-symbols', 'yes', 'no'" 1>&2
574 if test x${with_avrlibc} != xno; then
575 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
577 tm_file="$tm_file avr/avr-lib.h"
578 if test x${with_fixed_point} = xno; then
583 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
584 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
587 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
588 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
589 md_unwind_header=bfin/linux-unwind.h
592 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
593 # No need to build crtbeginT.o on uClibc systems. Should probably
594 # be moved to the OS specific section above.
595 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
596 md_unwind_header=bfin/linux-unwind.h
599 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
600 extra_parts="$extra_parts crti.o crtn.o"
603 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
604 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
607 tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
608 extra_parts="crti.o crtn.o"
611 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
614 tmake_file="csky/t-csky t-fdpbit"
615 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
618 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
619 extra_parts="$extra_parts crti.o crtn.o"
620 md_unwind_header=csky/linux-unwind.h
622 epiphany-*-elf* | epiphany-*-rtems*)
623 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
624 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
627 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
628 extra_parts="$extra_parts crti.o crtn.o"
631 tmake_file="$tmake_file frv/t-frv t-fdpbit"
632 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
633 # Don't use crtbegin.o, crtend.o.
634 extra_parts="frvbegin.o frvend.o"
637 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
638 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
641 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
642 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
645 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
646 tm_file="$tm_file h8300/h8300-lib.h"
647 extra_parts="$extra_parts crti.o crtn.o"
650 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
651 tm_file="$tm_file h8300/h8300-lib.h"
654 tmake_file="$tmake_file pa/t-pa64-linux pa/t-dimode"
655 tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
656 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
659 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
660 # Set the libgcc version number
661 if test x$ac_cv_sjlj_exceptions = xyes; then
662 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
664 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
666 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
667 md_unwind_header=pa/linux-unwind.h
670 tmake_file="$tmake_file pa/t-pa64-hpux pa/t-dimode"
671 tmake_file="$tmake_file pa/t-stublib t-libgcc-pic t-slibgcc"
672 # Set the libgcc version number
673 if test x$ac_cv_sjlj_exceptions = xyes; then
674 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
676 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
678 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
679 tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
680 tm_file="$tm_file pa/pa64-hpux-lib.h"
681 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
683 md_unwind_header=pa/hpux-unwind.h
686 tmake_file="$tmake_file pa/t-openbsd"
689 tmake_file="$tmake_file pa/t-netbsd"
691 i[34567]86-*-darwin*)
692 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
693 tm_file="$tm_file i386/darwin-lib.h"
694 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
697 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
698 tm_file="$tm_file i386/darwin-lib.h"
699 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
701 i[34567]86-*-elfiamcu)
702 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"
705 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
707 x86_64-*-elf* | x86_64-*-rtems*)
708 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
711 extra_parts="$extra_parts crti.o crtn.o"
716 tmake_file="$tmake_file t-libgcc-pic"
718 i[34567]86-*-dragonfly*)
719 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
720 md_unwind_header=i386/dragonfly-unwind.h
723 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
724 md_unwind_header=i386/dragonfly-unwind.h
726 i[34567]86-*-freebsd*)
727 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
728 md_unwind_header=i386/freebsd-unwind.h
731 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
732 md_unwind_header=i386/freebsd-unwind.h
734 i[34567]86-*-netbsdelf*)
735 tmake_file="${tmake_file} i386/t-crtstuff"
738 tmake_file="${tmake_file} i386/t-crtstuff"
740 i[34567]86-*-openbsd*)
745 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
746 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
747 tm_file="${tm_file} i386/elf-lib.h"
748 md_unwind_header=i386/linux-unwind.h
750 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-kopensolaris*-gnu)
751 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
752 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
753 tm_file="${tm_file} i386/elf-lib.h"
756 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
757 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
758 tm_file="${tm_file} i386/elf-lib.h"
759 md_unwind_header=i386/gnu-unwind.h
762 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
763 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
764 tm_file="${tm_file} i386/elf-lib.h"
765 md_unwind_header=i386/linux-unwind.h
767 x86_64-*-kfreebsd*-gnu)
768 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
769 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
770 tm_file="${tm_file} i386/elf-lib.h"
773 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
774 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
775 tm_file="${tm_file} i386/elf-lib.h"
776 md_unwind_header=i386/gnu-unwind.h
778 i[34567]86-pc-msdosdjgpp*)
780 i[34567]86-*-lynxos*)
782 i[34567]86-*-nto-qnx*)
783 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
784 extra_parts=crtbegin.o
787 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
788 extra_parts="$extra_parts crti.o crtn.o"
790 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
791 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
792 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
793 tm_file="${tm_file} i386/elf-lib.h"
794 md_unwind_header=i386/sol2-unwind.h
796 i[4567]86-wrs-vxworks*|x86_64-wrs-vxworks*)
798 i[34567]86-*-cygwin*)
799 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
800 if test x$enable_vtable_verify = xyes; then
801 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
803 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
804 if test x$ac_cv_sjlj_exceptions = xyes; then
805 tmake_eh_file="i386/t-sjlj-eh"
807 tmake_eh_file="i386/t-dw2-eh"
809 # Shared libgcc DLL install dir depends on cross/native build.
810 if test x${build} = x${host} ; then
811 tmake_dlldir_file="i386/t-dlldir"
813 tmake_dlldir_file="i386/t-dlldir-x"
815 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"
818 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
819 if test x$enable_vtable_verify = xyes; then
820 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
822 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
823 if test x$ac_cv_sjlj_exceptions = xyes; then
824 tmake_eh_file="i386/t-sjlj-eh"
825 elif test "${host_address}" = 32; then
826 # biarch -m32 with --disable-sjlj-exceptions
827 tmake_eh_file="i386/t-dw2-eh"
829 tmake_eh_file="i386/t-seh-eh"
831 # Shared libgcc DLL install dir depends on cross/native build.
832 if test x${build} = x${host} ; then
833 tmake_dlldir_file="i386/t-dlldir"
835 tmake_dlldir_file="i386/t-dlldir-x"
837 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
838 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"
841 extra_parts="crtbegin.o crtend.o crtfastmath.o"
842 if test x$enable_vtable_verify = xyes; then
843 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
845 case ${target_thread_file} in
847 tmake_thr_file="i386/t-gthr-win32"
850 tmake_thr_file="i386/t-mingw-pthread"
853 tmake_thr_file="i386/t-mingw-mcfgthread"
856 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
857 if test x$ac_cv_sjlj_exceptions = xyes; then
858 tmake_eh_file="i386/t-sjlj-eh"
860 tmake_eh_file="i386/t-dw2-eh"
861 md_unwind_header=i386/w32-unwind.h
863 # Shared libgcc DLL install dir depends on cross/native build.
864 if test x${build} = x${host} ; then
865 tmake_dlldir_file="i386/t-dlldir"
867 tmake_dlldir_file="i386/t-dlldir-x"
869 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_thr_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-slibgcc-mingw i386/t-cygming i386/t-mingw32 t-crtfm i386/t-chkstk t-dfprules"
872 case ${target_thread_file} in
874 tmake_thr_file="i386/t-gthr-win32"
877 tmake_thr_file="i386/t-mingw-pthread"
880 tmake_thr_file="i386/t-mingw-mcfgthread"
883 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
884 if test x$ac_cv_sjlj_exceptions = xyes; then
885 tmake_eh_file="i386/t-sjlj-eh"
886 elif test "${host_address}" = 32; then
887 # biarch -m32 with --disable-sjlj-exceptions
888 tmake_eh_file="i386/t-dw2-eh"
889 md_unwind_header=i386/w32-unwind.h
891 tmake_eh_file="i386/t-seh-eh"
893 # Shared libgcc DLL install dir depends on cross/native build.
894 if test x${build} = x${host} ; then
895 tmake_dlldir_file="i386/t-dlldir"
897 tmake_dlldir_file="i386/t-dlldir-x"
899 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_thr_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-slibgcc-mingw i386/t-cygming i386/t-mingw32 t-dfprules t-crtfm i386/t-chkstk"
900 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
901 if test x$enable_vtable_verify = xyes; then
902 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
906 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
907 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"
910 extra_parts="$extra_parts crtfastmath.o"
911 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"
914 # Don't use crtbeginT.o from *-*-linux* default.
915 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
916 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"
917 if test x$with_system_libunwind != xyes ; then
918 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
920 md_unwind_header=ia64/linux-unwind.h
923 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
926 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"
927 extra_parts="$extra_parts crtinitS.o"
928 md_unwind_header=ia64/vms-unwind.h
931 tmake_file="iq2000/t-iq2000 t-fdpbit"
936 extra_parts="$extra_parts crti.o crtn.o"
937 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
940 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
941 extra_parts="$extra_parts crti.o crtn.o"
944 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
945 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
948 extra_parts="$extra_parts crtfastmath.o"
949 tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
952 tmake_file="${tmake_file} t-slibgcc-libgcc"
955 md_unwind_header=loongarch/linux-unwind.h
958 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
959 extra_parts="$extra_parts crtinit.o crtfini.o"
964 m68k-*-elf* | fido-*-elf)
965 tmake_file="$tmake_file m68k/t-floatlib"
971 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
972 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
973 md_unwind_header=m68k/linux-unwind.h
975 m68k-*-linux*) # Motorola m68k's running GNU/Linux
976 # with ELF format using glibc 2
977 # aka the GNU/Linux C library 6.
978 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
979 # If not configured with setjmp/longjmp exceptions, bump the
980 # libgcc version number.
981 if test x$ac_cv_sjlj_exceptions != xyes; then
982 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
984 md_unwind_header=m68k/linux-unwind.h
987 tmake_file="$tmake_file m68k/t-floatlib"
988 extra_parts="$extra_parts crti.o crtn.o"
991 tmake_file="mcore/t-mcore t-fdpbit"
992 extra_parts="$extra_parts crti.o crtn.o"
995 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
998 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
999 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
1001 microblaze*-*-rtems*)
1002 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
1003 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
1005 mips*-*-netbsd*) # NetBSD/mips, either endian.
1007 mips*-*-linux*) # Linux MIPS, either endian.
1008 extra_parts="$extra_parts crtfastmath.o"
1009 tmake_file="${tmake_file} t-crtfm"
1011 mips64r5900* | mipsr5900*)
1012 # The MIPS16 support code uses floating point
1013 # instructions that are not supported on r5900.
1016 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
1019 md_unwind_header=mips/linux-unwind.h
1022 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1023 case "${with_newlib}" in
1025 # newlib / libgloss.
1028 # MIPS toolkit libraries.
1029 tmake_file="$tmake_file mips/t-sdemtk"
1032 extra_parts="$extra_parts crti.o crtn.o"
1034 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
1035 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
1036 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
1037 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
1038 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
1039 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
1040 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1041 extra_parts="$extra_parts crti.o crtn.o"
1043 mipsisa64sr71k-*-elf*)
1044 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
1045 extra_parts="$extra_parts crti.o crtn.o"
1047 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1048 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1049 extra_parts="$extra_parts crti.o crtn.o"
1051 mips-*-elf* | mipsel-*-elf*)
1052 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1053 extra_parts="$extra_parts crti.o crtn.o"
1055 mipsr5900-*-elf* | mipsr5900el-*-elf*)
1056 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1057 extra_parts="$extra_parts crti.o crtn.o"
1059 mips64-*-elf* | mips64el-*-elf*)
1060 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1061 extra_parts="$extra_parts crti.o crtn.o"
1063 mips64r5900-*-elf* | mips64r5900el-*-elf*)
1064 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1065 extra_parts="$extra_parts crti.o crtn.o"
1067 mips64vr-*-elf* | mips64vrel-*-elf*)
1068 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
1069 extra_parts="$extra_parts crti.o crtn.o"
1071 mips64orion-*-elf* | mips64orionel-*-elf*)
1072 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1073 extra_parts="$extra_parts crti.o crtn.o"
1076 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1077 extra_parts="$extra_parts crti.o crtn.o"
1081 mipstx39-*-elf* | mipstx39el-*-elf*)
1082 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1084 mmix-knuth-mmixware)
1085 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1086 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1091 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1092 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1093 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1096 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1097 extra_parts="crtbegin.o crtend.o crtbegin_no_eh.o crtend_no_eh.o"
1098 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1101 # Basic makefile fragment and extra_parts for crt stuff.
1102 # We also append c-isr library implementation.
1103 tmake_file="${tmake_file} t-slibgcc-libgcc"
1104 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1105 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1106 md_unwind_header=nds32/linux-unwind.h
1107 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1108 case "${with_nds32_lib}" in
1109 "" | glibc | uclibc )
1112 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1118 # Basic makefile fragment and extra_parts for crt stuff.
1119 # We also append c-isr library implementation.
1120 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1121 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1122 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1123 case "${with_nds32_lib}" in
1125 # Append library definition makefile fragment t-nds32-newlib.
1126 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1127 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1130 # Append library definition makefile fragment t-nds32-mculib.
1131 # The software floating point library is included in mculib.
1132 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1135 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1141 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-eh-dw2-dip t-slibgcc-libgcc"
1142 tm_file="$tm_file nios2/elf-lib.h"
1143 md_unwind_header=nios2/linux-unwind.h
1146 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1147 extra_parts="$extra_parts crti.o crtn.o"
1150 tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
1151 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1152 md_unwind_header=or1k/linux-unwind.h
1155 tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
1156 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1159 tmake_file="pdp11/t-pdp11 t-fdpbit"
1163 *-*-darwin9* | *-*-darwin[12][0-9]*)
1164 # libSystem contains unwind information for signal frames since
1168 md_unwind_header=rs6000/darwin-unwind.h
1171 #Â We build the darwin10 EH shim for Rosetta (running on x86 machines).
1172 tm_file="$tm_file i386/darwin-lib.h"
1173 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1174 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1176 powerpc64-*-darwin*)
1177 #Â We build the darwin10 EH shim for Rosetta (running on x86 machines).
1178 tm_file="$tm_file i386/darwin-lib.h"
1179 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1180 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1182 powerpc*-*-freebsd*)
1183 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1184 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1187 tmake_file="${tmake_file} rs6000/t-freebsd64"
1188 md_unwind_header=rs6000/freebsd-unwind.h
1193 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
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"
1199 powerpc-*-eabisimaltivec*)
1200 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1201 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1204 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1205 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1208 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1209 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1211 powerpc-*-eabialtivec*)
1212 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1213 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1215 powerpc-xilinx-eabi*)
1216 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1217 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1220 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1221 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1224 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1225 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1228 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"
1229 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1230 case $ppc_fp_type in
1234 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1237 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1240 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1243 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1246 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1251 if test $libgcc_cv_powerpc_float128 = yes; then
1252 tmake_file="${tmake_file} rs6000/t-float128"
1255 if test $libgcc_cv_powerpc_float128_hw = yes; then
1256 tmake_file="${tmake_file} rs6000/t-float128-hw"
1259 if test $libgcc_cv_powerpc_3_1_float128_hw = yes; then
1260 tmake_file="${tmake_file} rs6000/t-float128-p10-hw"
1263 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1264 md_unwind_header=rs6000/linux-unwind.h
1266 powerpc*-wrs-vxworks7*)
1267 tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-dfprules rs6000/t-ppc64-fp"
1268 tmake_file="rs6000/t-crtstuff ${tmake_file}"
1269 case $ppc_fp_type in
1273 tmake_file="${tmake_file} t-hardfp-sfdf"
1276 tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
1279 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1284 powerpc-wrs-vxworks*)
1285 tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-fdpbit"
1288 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1291 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1292 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1294 powerpcle-*-eabisim*)
1295 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1296 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1299 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1300 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1303 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1304 tm_file="$tm_file pru/pru-abi.h"
1307 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1308 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1309 md_unwind_header=riscv/linux-unwind.h
1312 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1313 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1316 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1317 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1319 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1320 md_unwind_header=rs6000/aix-unwind.h
1321 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1323 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1324 md_unwind_header=rs6000/aix-unwind.h
1325 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1327 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1328 md_unwind_header=rs6000/aix-unwind.h
1329 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1330 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o crtcxa_64.o crtcxa_64_s.o crtdbase_64.o"
1333 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1336 tmake_file="rx/t-rx t-fdpbit"
1337 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1340 tmake_file="rx/t-rx t-fdpbit"
1341 tm_file="$tm_file rx/rx-lib.h"
1344 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1345 md_unwind_header=s390/linux-unwind.h
1348 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1349 if test "${host_address}" = 32; then
1350 tmake_file="${tmake_file} s390/32/t-floattodi"
1352 md_unwind_header=s390/linux-unwind.h
1355 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip s390/t-tpf"
1356 extra_parts="crtbeginS.o crtendS.o"
1357 md_unwind_header=s390/tpf-unwind.h
1359 sh-*-elf* | sh[12346l]*-*-elf*)
1360 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1361 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1362 libic_invalidate_array_4-100.a \
1363 libic_invalidate_array_4-200.a \
1364 libic_invalidate_array_4a.a \
1365 libgcc-Os-4-200.a libgcc-4-300.a"
1368 tmake_file="$tmake_file sh/t-superh"
1369 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1373 sh-*-linux* | sh[2346lbe]*-*-linux*)
1374 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1375 md_unwind_header=sh/linux-unwind.h
1377 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1378 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1380 # NetBSD's C library includes a fast software FP library that
1381 # has support for setting/setting the rounding mode, exception
1382 # mask, etc. Therefore, we don't want to include software FP
1386 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1387 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1388 libic_invalidate_array_4-100.a \
1389 libic_invalidate_array_4-200.a \
1390 libic_invalidate_array_4a.a \
1391 libgcc-Os-4-200.a libgcc-4-300.a"
1394 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1405 tmake_file="sparc/t-softmul"
1408 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1409 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1411 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1412 tmake_file="${tmake_file} t-crtfm"
1413 if test "${host_address}" = 64; then
1414 tmake_file="$tmake_file sparc/t-linux64"
1418 tmake_file="${tmake_file} t-fdpbit"
1421 tmake_file="${tmake_file} sparc/t-linux"
1428 if test "${host_address}" = 32; then
1429 tmake_file="$tmake_file sparc/t-softmul"
1433 extra_parts="$extra_parts crtfastmath.o"
1434 md_unwind_header=sparc/linux-unwind.h
1437 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1438 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1441 tmake_file="$tmake_file t-crtfm"
1442 extra_parts="$extra_parts crtfastmath.o"
1443 md_unwind_header=sparc/sol2-unwind.h
1446 tmake_file="${tmake_file} t-crtfm"
1447 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1450 tmake_file="$tmake_file t-crtfm"
1451 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1455 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1456 tmake_file="$tmake_file t-crtfm"
1457 extra_parts="$extra_parts crtfastmath.o"
1459 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1460 extra_parts="$extra_parts crtfastmath.o"
1461 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1462 if test "${host_address}" = 64; then
1463 tmake_file="${tmake_file} sparc/t-linux64"
1465 if test "${host_address}" = 32; then
1466 tmake_file="${tmake_file} sparc/t-softmul"
1468 md_unwind_header=sparc/linux-unwind.h
1473 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1474 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1475 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1476 tm_file="$tm_file c6x/c6x-abi.h"
1477 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1478 unwind_header=config/c6x/unwind-c6x.h
1481 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1482 tm_file="$tm_file c6x/c6x-abi.h"
1483 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1484 unwind_header=config/c6x/unwind-c6x.h
1487 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1490 tmake_file="$tmake_file vax/t-linux"
1497 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1498 tmake_file="visium/t-visium t-fdpbit"
1501 tmake_file="stormy16/t-stormy16 t-fdpbit"
1504 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1505 extra_parts="$extra_parts crti.o crtn.o"
1508 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1509 md_unwind_header=xtensa/linux-unwind.h
1512 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1513 md_unwind_header=xtensa/linux-unwind.h
1514 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1517 # Don't need crtbeginT.o from *-*-linux* default.
1518 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1519 tmake_file="$tmake_file t-fdpbit"
1522 tmake_file="$tmake_file m32c/t-m32c"
1525 tmake_file="$tmake_file nvptx/t-nvptx"
1526 extra_parts="crt0.o"
1529 echo "*** Configuration ${host} not supported" 1>&2
1535 i[34567]86-*-* | x86_64-*-*)
1538 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1541 tmake_file="${tmake_file} i386/t-cpuinfo"
1548 i[34567]86-*-linux* | x86_64-*-linux* | \
1549 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1550 i[34567]86-*-gnu* | x86_64-*-gnu*)
1551 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1552 if test "$libgcc_cv_cfi" = "yes"; then
1553 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1559 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1560 # These use soft-fp for SFmode and DFmode, not just TFmode.
1562 i[34567]86-*-* | x86_64-*-*)
1563 tmake_file="${tmake_file} t-softfp-tf"
1564 tmake_file="${tmake_file} i386/${host_address}/t-softfp i386/t-softfp t-softfp"
1569 i[34567]86-*-linux* | x86_64-*-linux*)
1570 # Provide backward binary compatibility for 64bit Linux/x86.
1571 if test "${host_address}" = 64; then
1572 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1574 tm_file="${tm_file} i386/value-unwind.h"
1577 # ILP32 needs an extra header for unwinding
1578 tm_file="${tm_file} aarch64/value-unwind.h"
1581 tm_file="${tm_file} riscv/value-unwind.h"
1585 # Setup to build a shared libgcc for VxWorks when that was requested,
1586 # for library variants that support it (rtp only, code model not large).
1591 case ${with_multisubdir}-${enable_shared} in
1595 tmake_file="${tmake_file} t-libgcc-pic"
1597 # Arrange to set a soname on libgcc_s so DT_NEEDED entries
1598 # for it refer to that alone. This ensures absence of path
1599 # components which would be incorrect as the runtime loader
1600 # on target has no visibility over the host filesystem.
1601 tmake_file="${tmake_file} t-slibgcc-gld-nover"
1602 tmake_file="${tmake_file} t-slibgcc"
1604 # t-slibgcc-libgcc is needed on at least aarch64 (for
1605 # lse) and at most harmless on other targets.
1606 tmake_file="${tmake_file} t-slibgcc-libgcc"
1608 tmake_file="${tmake_file} t-crtstuff-pic t-vxcrtstuffS"
1614 # The vxworks threads implementation relies on a few extra sources,
1615 # which we arrange to add after everything else:
1617 case ${target_thread_file} in
1621 tmake_file="${tmake_file} t-gthr-vxworksae"
1624 tmake_file="${tmake_file} t-gthr-vxworks"
1631 # The gthr weak references are unsafe with static linking
1632 tmake_file="$tmake_file t-gthr-noweak"