1 # libgcc host-specific configuration file.
2 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3 # 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
5 #This file is part of GCC.
7 #GCC is free software; you can redistribute it and/or modify it under
8 #the terms of the GNU General Public License as published by the Free
9 #Software Foundation; either version 3, or (at your option) any later
12 #GCC is distributed in the hope that it will be useful, but WITHOUT
13 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 #You should have received a copy of the GNU General Public License
18 #along with GCC; see the file COPYING3. If not see
19 #<http://www.gnu.org/licenses/>.
21 # This is the libgcc host-specific configuration file
22 # where a configuration type is mapped to different system-specific
23 # definitions and files. This is invoked by the autoconf-generated
24 # configure script. Putting it in a separate shell file lets us skip
25 # running autoconf when modifying host-specific information.
27 # This file bears an obvious resemblance to gcc/config.gcc. The cases
28 # should be kept similar, to ease moving library-specific settings
29 # from config.gcc to this file. That is also why tmake_file is
30 # left as tmake_file, rather than hmake_file, even though this library
31 # switches on ${host}.
33 # This file switches on the shell variable ${host}, and also uses the
34 # following shell variables:
36 # with_* Various variables as set by configure.
38 # This file sets the following shell variables for use by the
39 # autoconf-generated configure script:
41 # asm_hidden_op The assembler pseudo-op to use for hide
42 # lists for object files implemented in
43 # assembly (with -fvisibility=hidden for C).
44 # The default is ".hidden".
45 # cpu_type The name of the cpu, if different from the first
46 # chunk of the canonical host name.
47 # enable_execute_stack The name of a source file implementing
48 # __enable_execute_stack.
49 # extra_parts List of extra object files that should be compiled
50 # for this target machine. This may be overridden
51 # by setting EXTRA_PARTS in a tmake_file fragment.
52 # If either is set, EXTRA_PARTS and
53 # EXTRA_MULTILIB_PARTS inherited from the GCC
54 # subdirectory will be ignored.
55 # md_unwind_header The name of a header file defining
56 # MD_FALLBACK_FRAME_STATE_FOR.
57 # sfp_machine_header The name of a sfp-machine.h header file for soft-fp.
58 # Defaults to "$cpu_type/sfp-machine.h" if it exists,
59 # no-sfp-machine.h otherwise.
60 # tmake_file A list of machine-description-specific
61 # makefile-fragments, if different from
62 # "$cpu_type/t-$cpu_type".
63 # unwind_header The name of the header file declaring the unwind
64 # runtime interface routines.
70 md_unwind_header=no-unwind.h
71 unwind_header=unwind-generic.h
73 # Set default cpu_type so it can be updated in each machine entry.
74 cpu_type=`echo ${host} | sed 's/-.*$//'`
100 moxie*) cpu_type=moxie
128 tmake_file=mips/t-mips
150 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
151 sh[123456789lbe]*-*-*)
162 # Common parts for widely ported systems.
165 asm_hidden_op=.private_extern
166 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin"
169 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
170 # This is the place-holder for the generic a.out configuration
171 # of FreeBSD. No actual configuration resides here since
172 # there was only ever a bare-bones ix86 configuration for
173 # a.out and it exists solely in the machine-specific section.
174 # This place-holder must exist to avoid dropping into
175 # the generic ELF configuration of FreeBSD (i.e. it must be
176 # ordered before that section).
179 # This is the generic ELF configuration of FreeBSD. Later
180 # machine-specific sections may refine and add to this
182 tmake_file="$tmake_file t-crtstuff-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
183 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
184 case ${target_thread_file} in
186 # Before 5.0, FreeBSD can't bind shared libraries to -lc
187 # when "optionally" threaded via weak pthread_* checks.
189 *-*-freebsd[34] | *-*-freebsd[34].*)
190 tmake_file="${tmake_file} t-slibgcc-nolc-override"
196 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
197 tmake_file="$tmake_file t-crtstuff-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-linux"
198 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
201 tmake_file="$tmake_file $cpu_type/t-crtstuff t-crtstuff-pic"
202 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
205 tmake_file="$tmake_file t-crtstuff-pic t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
206 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
207 # ELF configurations. We will clear extra_parts in the
208 # a.out configurations.
210 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
211 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
216 tmake_file="$tmake_file t-crtstuff-pic"
219 extra_parts="crtbegin.o crtend.o"
222 # Unless linker support and dl_iterate_phdr are present,
223 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
224 tmake_file="$tmake_file t-sol2 t-eh-dw2-dip t-slibgcc t-slibgcc-elf-ver"
225 if test $with_gnu_ld = yes; then
226 tmake_file="$tmake_file t-slibgcc-gld"
228 tmake_file="$tmake_file t-slibgcc-sld"
230 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
231 tmake_file="$tmake_file $cpu_type/t-sol2"
232 extra_parts="gmon.o crtbegin.o crtend.o"
234 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
235 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
236 # part of the base system.
238 sparc*-*-solaris2.1[0-9]*)
239 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
240 extra_parts="$extra_parts crt1.o gcrt1.o"
243 extra_parts="$extra_parts crt1.o crti.o crtn.o gcrt1.o"
248 extra_parts="crtbegin.o crtend.o"
251 tmake_file="vms/t-vms"
252 extra_parts="vcrt0.o pcrt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
257 extra_parts="crtbegin.o crtend.o"
262 *-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2* | \
264 enable_execute_stack=enable-execute-stack-mprotect.c
266 i[34567]86-*-mingw* | x86_64-*-mingw*)
267 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
270 enable_execute_stack=enable-execute-stack-empty.c;
276 tmake_file="${tmake_file} t-crtfm alpha/t-linux"
277 extra_parts="$extra_parts crtfastmath.o"
278 md_unwind_header=alpha/linux-unwind.h
281 tmake_file="${tmake_file} t-crtfm"
282 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
289 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm t-slibgcc alpha/t-slibgcc-osf"
290 case ${target_thread_file} in
292 tmake_file="${tmake_file} alpha/t-osf-pthread"
295 extra_parts="${extra_parts} qrnnd.o crtfastmath.o gthr-posix.o"
296 md_unwind_header=alpha/osf5-unwind.h
299 tmake_file="$tmake_file alpha/t-vms t-slibgcc-vms"
300 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
301 md_unwind_header=alpha/vms-unwind.h
304 tmake_file="$tmake_file alpha/t-vms t-slibgcc-vms"
305 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
306 md_unwind_header=alpha/vms-unwind.h
309 tmake_file="$tmake_file arm/t-arm arm/t-vxworks t-fdpbit"
310 extra_parts="$extra_parts crti.o crtn.o"
313 tmake_file="$tmake_file arm/t-arm arm/t-strongarm-elf t-fdpbit"
316 tmake_file="$tmake_file arm/t-arm t-slibgcc-gld-nover"
318 arm*-*-linux*) # ARM GNU/Linux with ELF
319 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix"
322 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
323 unwind_header=config/arm/unwind-arm.h
326 tmake_file="$tmake_file arm/t-linux"
329 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
331 arm*-*-uclinux*) # ARM ucLinux
332 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
335 tmake_file="${tmake_file} arm/t-bpabi"
336 unwind_header=config/arm/unwind-arm.h
339 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
340 extra_parts="$extra_parts crti.o crtn.o"
343 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
344 extra_parts="$extra_parts crti.o crtn.o"
346 arm*-*-eabi* | arm*-*-symbianelf* )
347 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
350 tmake_file="${tmake_file} arm/t-bpabi"
351 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
354 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
355 # Symbian OS provides its own startup code.
358 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
359 unwind_header=config/arm/unwind-arm.h
362 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
363 extra_parts="$extra_parts crti.o crtn.o"
366 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
367 extra_parts="$extra_parts crti.o crtn.o"
370 tmake_file="$tmake_file arm/t-arm arm/t-wince-pe"
373 tmake_file="$tmake_file avr/t-avr t-fpbit"
378 # Make HImode functions for AVR
379 tmake_file="${cpu_type}/t-avr t-fpbit"
382 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-fdpbit"
383 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
386 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-fdpbit"
387 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
388 md_unwind_header=bfin/linux-unwind.h
391 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-fdpbit bfin/t-linux"
392 # No need to build crtbeginT.o on uClibc systems. Should probably
393 # be moved to the OS specific section above.
394 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
395 md_unwind_header=bfin/linux-unwind.h
398 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
399 extra_parts="$extra_parts crti.o crtn.o"
402 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
403 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
410 extra_parts="crtbegin.o crtend.o"
413 tmake_file="$tmake_file cris/t-elfmulti"
416 tmake_file="$tmake_file cris/t-elfmulti"
417 extra_parts="crtbegin.o crtend.o"
419 cris-*-linux* | crisv32-*-linux*)
420 tmake_file="$tmake_file t-fdpbit cris/t-linux"
423 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
424 extra_parts="$extra_parts crti.o crtn.o"
427 tmake_file="$tmake_file frv/t-frv t-fdpbit"
428 # Don't use crtbegin.o, crtend.o.
429 extra_parts="frvbegin.o frvend.o"
432 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
435 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
436 extra_parts="$extra_parts crti.o crtn.o"
439 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
440 extra_parts="$extra_parts crti.o crtn.o"
443 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
446 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
447 # Set the libgcc version number
448 if test x$enable_sjlj_exceptions = xyes; then
449 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
451 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
453 md_unwind_header=pa/linux-unwind.h
456 tmake_file="$tmake_file t-slibgcc"
457 # Set the libgcc version number
458 if test x$enable_sjlj_exceptions = xyes; then
459 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
461 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
463 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
464 md_unwind_header=pa/hpux-unwind.h
467 tmake_file="$tmake_file pa/t-stublib pa/t-stublib64 t-slibgcc"
468 # Set the libgcc version number
469 if test x$enable_sjlj_exceptions = xyes; then
470 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
472 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
474 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
475 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
477 md_unwind_header=pa/hpux-unwind.h
480 tmake_file="$tmake_file pa/t-stublib t-slibgcc"
481 # Set the libgcc version number
482 if test x$enable_sjlj_exceptions = xyes; then
483 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
485 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
487 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
488 extra_parts="libgcc_stub.a"
489 md_unwind_header=pa/hpux-unwind.h
491 i[34567]86-*-darwin*)
492 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
493 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
496 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
497 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
500 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic"
503 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic"
505 i[34567]86-*-freebsd*)
506 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
509 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
511 i[34567]86-*-netbsdelf*)
514 tmake_file="${tmake_file} i386/t-crtstuff"
516 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
518 i[34567]86-*-openbsd*)
521 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
522 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
523 md_unwind_header=i386/linux-unwind.h
525 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
526 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
527 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
530 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
531 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
532 md_unwind_header=i386/linux-unwind.h
534 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
535 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
536 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
538 i[34567]86-pc-msdosdjgpp*)
540 i[34567]86-*-lynxos*)
542 i[34567]86-*-nto-qnx*)
543 tmake_file="$tmake_file i386/t-nto"
544 extra_parts=crtbegin.o
547 extra_parts="$extra_parts crti.o crtn.o"
548 tmake_file="${tmake_file} i386/t-softfp i386/t-crtstuff t-rtems"
550 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
551 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
552 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
553 md_unwind_header=i386/sol2-unwind.h
555 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
557 i[34567]86-*-cygwin*)
558 extra_parts="crtbegin.o crtend.o crtfastmath.o"
559 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
560 if test x$enable_sjlj_exceptions = xyes; then
561 tmake_eh_file="i386/t-sjlj-eh"
563 tmake_eh_file="i386/t-dw2-eh"
565 # Shared libgcc DLL install dir depends on cross/native build.
566 if test x${build} = x${host} ; then
567 tmake_dlldir_file="i386/t-dlldir"
569 tmake_dlldir_file="i386/t-dlldir-x"
571 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin i386/t-crtfm i386/t-chkstk t-dfprules"
572 case ${target_thread_file} in
574 tmake_file="i386/t-mingw-pthread $tmake_file"
579 extra_parts="crtbegin.o crtend.o crtfastmath.o"
580 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
581 if test x$enable_sjlj_exceptions = xyes; then
582 tmake_eh_file="i386/t-sjlj-eh"
584 tmake_eh_file="i386/t-dw2-eh"
586 # Shared libgcc DLL install dir depends on cross/native build.
587 if test x${build} = x${host} ; then
588 tmake_dlldir_file="i386/t-dlldir"
590 tmake_dlldir_file="i386/t-dlldir-x"
592 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 i386/t-crtfm i386/t-chkstk t-dfprules"
593 md_unwind_header=i386/w32-unwind.h
596 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
597 if test x$enable_sjlj_exceptions = xyes; then
598 tmake_eh_file="i386/t-sjlj-eh"
600 tmake_eh_file="i386/t-dw2-eh"
602 # Shared libgcc DLL install dir depends on cross/native build.
603 if test x${build} = x${host} ; then
604 tmake_dlldir_file="i386/t-dlldir"
606 tmake_dlldir_file="i386/t-dlldir-x"
608 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-mingw32 t-dfprules i386/t-crtfm i386/t-chkstk"
609 extra_parts="$extra_parts crtfastmath.o"
611 i[34567]86-*-interix3*)
612 tmake_file="$tmake_file i386/t-chkstk"
615 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
616 tmake_file="ia64/t-ia64 ia64/t-eh-ia64 t-crtfm"
619 extra_parts="$extra_parts crtfastmath.o"
620 tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 t-crtfm"
623 # Don't use crtbeginT.o from *-*-linux* default.
624 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
625 tmake_file="$tmake_file ia64/t-ia64 t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat ia64/t-eh-ia64 t-libunwind ia64/t-linux"
626 if test x$with_system_libunwind != xyes ; then
627 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
629 md_unwind_header=ia64/linux-unwind.h
632 tmake_file="ia64/t-ia64 ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
635 tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms"
636 extra_parts="$extra_parts crtinitS.o"
637 md_unwind_header=ia64/vms-unwind.h
644 lm32-*-elf*|lm32-*-rtems*)
645 extra_parts="$extra_parts crti.o crtn.o"
646 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
649 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
650 tmake_file="lm32/t-lm32 lm32/t-uclinux t-softfp-sfdf t-softfp"
656 tmake_file="m32r/t-m32r t-fdpbit"
662 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
665 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
667 m68k-*-elf* | fido-*-elf)
668 tmake_file="$tmake_file m68k/t-floatlib"
674 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
675 tmake_file="$tmake_file m68k/t-floatlib"
676 md_unwind_header=m68k/linux-unwind.h
678 m68k-*-linux*) # Motorola m68k's running GNU/Linux
679 # with ELF format using glibc 2
680 # aka the GNU/Linux C library 6.
681 tmake_file="$tmake_file m68k/t-floatlib"
682 # If not configured with --enable-sjlj-exceptions, bump the
683 # libgcc version number.
684 if test x$enable_sjlj_exceptions != xyes; then
685 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
687 md_unwind_header=m68k/linux-unwind.h
690 tmake_file="$tmake_file m68k/t-floatlib"
691 extra_parts="$extra_parts crti.o crtn.o"
694 tmake_file="mcore/t-mcore t-fdpbit"
695 extra_parts="$extra_parts crti.o crtn.o"
698 tmake_file="$tmake_file t-slibgcc-nolc-override microblaze/t-microblaze t-fdpbit"
701 tmake_file="microblaze/t-microblaze t-fdpbit"
702 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
705 tmake_file="$tmake_file mips/t-irix6 t-crtfm mips/t-tpbit t-slibgcc mips/t-slibgcc-irix"
706 extra_parts="crtbegin.o crtend.o crtfastmath.o irix-crti.o irix-crtn.o"
707 md_unwind_header=mips/irix6-unwind.h
709 mips*-*-netbsd*) # NetBSD/mips, either endian.
711 mips64*-*-linux* | mipsisa64*-*-linux*)
712 extra_parts="$extra_parts crtfastmath.o"
713 tmake_file="${tmake_file} t-crtfm mips/t-mips16 mips/t-tpbit"
714 md_unwind_header=mips/linux-unwind.h
716 mips*-*-linux*) # Linux MIPS, either endian.
717 extra_parts="$extra_parts crtfastmath.o"
718 tmake_file="${tmake_file} t-crtfm mips/t-mips16"
719 md_unwind_header=mips/linux-unwind.h
724 tmake_file="mips/t-crtstuff mips/t-mips16"
725 case "${with_newlib}" in
730 # MIPS toolkit libraries.
731 tmake_file="$tmake_file mips/t-sdemtk"
734 extra_parts="$extra_parts crti.o crtn.o"
736 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
737 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
738 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
739 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
740 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
741 extra_parts="$extra_parts crti.o crtn.o"
743 mipsisa64sr71k-*-elf*)
744 tmake_file="mips/t-crtstuff t-fdpbit"
745 extra_parts="$extra_parts crti.o crtn.o"
747 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
748 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
749 extra_parts="$extra_parts crti.o crtn.o"
751 mips-*-elf* | mipsel-*-elf*)
752 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
753 extra_parts="$extra_parts crti.o crtn.o"
755 mips64-*-elf* | mips64el-*-elf*)
756 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
757 extra_parts="$extra_parts crti.o crtn.o"
759 mips64vr-*-elf* | mips64vrel-*-elf*)
760 tmake_file="$tmake_file mips/t-crtstuff"
761 extra_parts="$extra_parts crti.o crtn.o"
763 mips64orion-*-elf* | mips64orionel-*-elf*)
764 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
765 extra_parts="$extra_parts crti.o crtn.o"
768 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
769 extra_parts="$extra_parts crti.o crtn.o"
773 mipstx39-*-elf* | mipstx39el-*-elf*)
774 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
777 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
778 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
783 moxie-*-elf | moxie-*-uclinux*)
784 tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
785 extra_parts="$extra_parts crti.o crtn.o"
788 tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
796 tmake_file="picochip/t-picochip t-fpbit"
800 *-*-darwin9* | *-*-darwin[12][0-9]*)
801 # libSystem contains unwind information for signal frames since
805 md_unwind_header=rs6000/darwin-unwind.h
808 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
809 extra_parts="$extra_parts crt2.o"
812 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
813 extra_parts="$extra_parts crt2.o"
816 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp t-slibgcc-libgcc"
817 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
820 tmake_file="$tmake_file rs6000/t-crtstuff"
823 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic"
824 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
826 powerpc-*-eabisimaltivec*)
827 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
828 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
831 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
832 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
835 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
836 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
838 powerpc-*-eabialtivec*)
839 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
840 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
842 powerpc-xilinx-eabi*)
843 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
844 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
847 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
848 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
851 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
852 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
854 powerpc-*-linux* | powerpc64-*-linux*)
855 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff rs6000/t-linux t-softfp-sfdf t-softfp-excl t-dfprules rs6000/t-ppc64-fp t-softfp t-slibgcc-libgcc"
856 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
857 md_unwind_header=rs6000/linux-unwind.h
859 powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
860 tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
863 tmake_file="$tmake_file t-fdpbit"
866 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
867 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
869 powerpcle-*-eabisim*)
870 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
871 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
874 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
875 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
877 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
878 md_unwind_header=rs6000/aix-unwind.h
879 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-ibm-ldouble rs6000/t-slibgcc-aix"
881 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
882 md_unwind_header=rs6000/aix-unwind.h
883 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-ibm-ldouble rs6000/t-slibgcc-aix"
885 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
886 md_unwind_header=rs6000/aix-unwind.h
887 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-ibm-ldouble rs6000/t-slibgcc-aix"
890 tmake_file="rx/t-rx t-fdpbit"
893 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
894 md_unwind_header=s390/linux-unwind.h
897 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
898 md_unwind_header=s390/linux-unwind.h
901 tmake_file="${tmake_file} s390/t-crtstuff s390/t-tpf t-eh-dw2-dip"
902 extra_parts="crtbeginS.o crtendS.o"
903 md_unwind_header=s390/tpf-unwind.h
906 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp"
907 extra_parts="$extra_parts crti.o crtn.o"
909 sh-*-elf* | sh[12346l]*-*-elf*)
910 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
911 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
912 libic_invalidate_array_4-100.a \
913 libic_invalidate_array_4-200.a \
914 libic_invalidate_array_4a.a \
915 libgcc-Os-4-200.a libgcc-4-300.a"
916 case ${host} in sh64*-*-*)
917 tmake_file="$tmake_file sh/t-sh64"
922 tmake_file="$tmake_file sh/t-superh"
923 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
927 sh-*-linux* | sh[2346lbe]*-*-linux*)
928 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
929 case ${host} in sh64*-*-linux*)
930 tmake_file="$tmake_file sh/t-sh64"
933 md_unwind_header=sh/linux-unwind.h
935 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
936 sh64-*-netbsd* | sh64l*-*-netbsd*)
937 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
939 sh5*-*-netbsd* | sh64*-netbsd*)
940 tmake_file="$tmake_file sh/t-sh64"
943 # NetBSD's C library includes a fast software FP library that
944 # has support for setting/setting the rounding mode, exception
945 # mask, etc. Therefore, we don't want to include software FP
949 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
950 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
951 $sh_ic_extra_parts $sh_opt_extra_parts"
954 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
965 tmake_file="sparc/t-softmul"
968 tmake_file="${tmake_file} t-fdpbit t-crtfm"
969 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
971 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
972 tmake_file="${tmake_file} t-crtfm sparc/t-linux64"
975 tmake_file="${tmake_file} t-fdpbit"
978 tmake_file="${tmake_file} sparc/t-linux"
985 tmake_file="$tmake_file sparc/t-softmul"
988 extra_parts="$extra_parts crtfastmath.o"
989 md_unwind_header=sparc/linux-unwind.h
992 tmake_file="sparc/t-elf t-crtfm t-rtems t-fdpbit"
993 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
996 tmake_file="$tmake_file t-crtfm"
997 extra_parts="$extra_parts crtfastmath.o"
998 md_unwind_header=sparc/sol2-unwind.h
1001 tmake_file="${tmake_file} t-crtfm"
1002 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1005 tmake_file="sparc/t-elf t-crtfm t-rtems"
1006 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1010 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1011 tmake_file="$tmake_file t-crtfm"
1012 extra_parts="$extra_parts crtfastmath.o"
1014 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1015 extra_parts="$extra_parts crtfastmath.o"
1016 tmake_file="${tmake_file} t-crtfm sparc/t-linux sparc/t-linux64"
1017 md_unwind_header=sparc/linux-unwind.h
1022 tmake_file="$tmake_file spu/t-elf t-fdpbit"
1023 extra_parts="$extra_parts \
1024 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1025 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1026 libgcc_cache64k.a libgcc_cache128k.a"
1029 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1030 extra_parts="crtbeginS.o crtendS.o crti.o crtn.o"
1031 unwind_header=config/c6x/unwind-c6x.h
1034 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1035 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1036 unwind_header=config/c6x/unwind-c6x.h
1039 tmake_file="v850/t-v850 t-fdpbit"
1042 tmake_file="$tmake_file vax/t-linux"
1052 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1053 extra_parts="$extra_parts crti.o crtn.o"
1056 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux"
1057 md_unwind_header=xtensa/linux-unwind.h
1060 # Don't need crtbeginT.o from *-*-linux* default.
1061 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1062 tmake_file="$tmake_file t-fdpbit"
1064 m32c-*-elf*|m32c-*-rtems*)
1065 tmake_file="$tmake_file m32c/t-m32c"
1068 tmake_file="mep/t-mep t-fdpbit"
1069 extra_parts="crtbegin.o crtend.o"
1072 echo "*** Configuration ${host} not supported" 1>&2
1078 i[34567]86-*-linux* | x86_64-*-linux* | \
1079 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1080 i[34567]86-*-knetbsd*-gnu | \
1082 tmake_file="${tmake_file} t-tls i386/t-linux"
1083 if test "$libgcc_cv_cfi" = "yes"; then
1084 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1090 i[34567]86-*-darwin* | x86_64-*-darwin* | \
1091 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1092 i[34567]86-*-linux* | x86_64-*-linux* | \
1093 i[34567]86-*-gnu* | \
1094 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
1095 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \
1096 i[34567]86-*-freebsd* | x86_64-*-freebsd*)
1097 tmake_file="${tmake_file} t-softfp-tf"
1098 if test "${host_address}" = 32; then
1099 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1101 tmake_file="${tmake_file} t-softfp"
1106 i[34567]86-*-linux* | x86_64-*-linux*)
1107 # Provide backward binary compatibility for 64bit Linux/x86.
1108 if test "${host_address}" = 64; then
1109 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"