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 t-fdpbit"
310 extra_parts="$extra_parts crti.o crtn.o"
313 tmake_file="$tmake_file t-fdpbit"
316 tmake_file="$tmake_file t-slibgcc-gld-nover"
318 arm*-*-linux*) # ARM GNU/Linux with ELF
319 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
322 tmake_file="${tmake_file} arm/t-bpabi t-slibgcc-libgcc"
323 unwind_header=config/arm/unwind-arm.h
326 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
328 arm*-*-uclinux*) # ARM ucLinux
329 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
332 tmake_file="${tmake_file} arm/t-bpabi"
333 unwind_header=config/arm/unwind-arm.h
336 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
337 extra_parts="$extra_parts crti.o crtn.o"
340 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
341 extra_parts="$extra_parts crti.o crtn.o"
343 arm*-*-eabi* | arm*-*-symbianelf* )
344 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
347 tmake_file="${tmake_file} arm/t-bpabi"
348 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
351 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
352 # Symbian OS provides its own startup code.
355 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
356 unwind_header=config/arm/unwind-arm.h
359 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
360 extra_parts="$extra_parts crti.o crtn.o"
363 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
364 extra_parts="$extra_parts crti.o crtn.o"
374 # Make HImode functions for AVR
375 tmake_file="${cpu_type}/t-avr t-fpbit"
378 tmake_file="bfin/t-crtlibid bfin/t-crtstuff t-fdpbit"
379 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
382 tmake_file="bfin/t-crtlibid bfin/t-crtstuff t-fdpbit"
383 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
384 md_unwind_header=bfin/linux-unwind.h
387 tmake_file="$tmake_file bfin/t-crtstuff t-fdpbit bfin/t-linux"
388 # No need to build crtbeginT.o on uClibc systems. Should probably
389 # be moved to the OS specific section above.
390 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
391 md_unwind_header=bfin/linux-unwind.h
394 tmake_file="$tmake_file t-fdpbit"
395 extra_parts="$extra_parts crti.o crtn.o"
398 tmake_file="$tmake_file t-fdpbit"
399 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
406 extra_parts="crtbegin.o crtend.o"
409 tmake_file="$tmake_file cris/t-elfmulti"
412 tmake_file="$tmake_file cris/t-elfmulti"
413 extra_parts="crtbegin.o crtend.o"
415 cris-*-linux* | crisv32-*-linux*)
416 tmake_file="$tmake_file t-fdpbit cris/t-linux"
421 tmake_file="$tmake_file t-fdpbit"
422 extra_parts="$extra_parts crti.o crtn.o"
425 tmake_file="$tmake_file frv/t-frv t-fdpbit"
426 # Don't use crtbegin.o, crtend.o.
427 extra_parts="frvbegin.o frvend.o"
430 tmake_file="$tmake_file t-fdpbit frv/t-linux"
433 tmake_file="$tmake_file t-fpbit"
434 extra_parts="$extra_parts crti.o crtn.o"
437 tmake_file="$tmake_file t-fpbit"
438 extra_parts="$extra_parts crti.o crtn.o"
443 tmake_file="$tmake_file t-slibgcc-libgcc"
444 # Set the libgcc version number
445 if test x$enable_sjlj_exceptions = xyes; then
446 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
448 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
450 md_unwind_header=pa/linux-unwind.h
453 tmake_file="$tmake_file t-slibgcc"
454 # Set the libgcc version number
455 if test x$enable_sjlj_exceptions = xyes; then
456 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
458 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
460 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
461 md_unwind_header=pa/hpux-unwind.h
464 tmake_file="$tmake_file pa/t-stublib pa/t-stublib64 t-slibgcc"
465 # Set the libgcc version number
466 if test x$enable_sjlj_exceptions = xyes; then
467 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
469 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
471 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
472 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
474 md_unwind_header=pa/hpux-unwind.h
477 tmake_file="$tmake_file pa/t-stublib t-slibgcc"
478 # Set the libgcc version number
479 if test x$enable_sjlj_exceptions = xyes; then
480 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
482 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
484 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
485 extra_parts="libgcc_stub.a"
486 md_unwind_header=pa/hpux-unwind.h
488 i[34567]86-*-darwin*)
489 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
490 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
493 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
494 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
497 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic"
500 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic"
502 i[34567]86-*-freebsd*)
503 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
506 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
508 i[34567]86-*-netbsdelf*)
511 tmake_file="${tmake_file} i386/t-crtstuff"
513 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
515 i[34567]86-*-openbsd*)
518 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
519 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
520 md_unwind_header=i386/linux-unwind.h
522 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
523 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
524 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
527 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
528 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
529 md_unwind_header=i386/linux-unwind.h
531 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
532 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
533 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
535 i[34567]86-pc-msdosdjgpp*)
537 i[34567]86-*-lynxos*)
539 i[34567]86-*-nto-qnx*)
540 tmake_file="$tmake_file i386/t-nto"
541 extra_parts=crtbegin.o
544 extra_parts="$extra_parts crti.o crtn.o"
545 tmake_file="${tmake_file} i386/t-softfp i386/t-crtstuff t-rtems"
547 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
548 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
549 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
550 md_unwind_header=i386/sol2-unwind.h
552 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
554 i[34567]86-*-cygwin*)
555 extra_parts="crtbegin.o crtend.o crtfastmath.o"
556 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
557 if test x$enable_sjlj_exceptions = xyes; then
558 tmake_eh_file="i386/t-sjlj-eh"
560 tmake_eh_file="i386/t-dw2-eh"
562 # Shared libgcc DLL install dir depends on cross/native build.
563 if test x${build} = x${host} ; then
564 tmake_dlldir_file="i386/t-dlldir"
566 tmake_dlldir_file="i386/t-dlldir-x"
568 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin i386/t-crtfm t-dfprules"
569 case ${target_thread_file} in
571 tmake_file="i386/t-mingw-pthread $tmake_file"
576 extra_parts="crtbegin.o crtend.o crtfastmath.o"
577 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
578 if test x$enable_sjlj_exceptions = xyes; then
579 tmake_eh_file="i386/t-sjlj-eh"
581 tmake_eh_file="i386/t-dw2-eh"
583 # Shared libgcc DLL install dir depends on cross/native build.
584 if test x${build} = x${host} ; then
585 tmake_dlldir_file="i386/t-dlldir"
587 tmake_dlldir_file="i386/t-dlldir-x"
589 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 i386/t-crtfm t-dfprules"
590 md_unwind_header=i386/w32-unwind.h
593 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
594 if test x$enable_sjlj_exceptions = xyes; then
595 tmake_eh_file="i386/t-sjlj-eh"
597 tmake_eh_file="i386/t-dw2-eh"
599 # Shared libgcc DLL install dir depends on cross/native build.
600 if test x${build} = x${host} ; then
601 tmake_dlldir_file="i386/t-dlldir"
603 tmake_dlldir_file="i386/t-dlldir-x"
605 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-mingw32 t-dfprules i386/t-crtfm"
606 extra_parts="$extra_parts crtfastmath.o"
608 i[34567]86-*-interix3*)
611 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
612 tmake_file="ia64/t-ia64 ia64/t-eh-ia64 t-crtfm"
615 extra_parts="$extra_parts crtfastmath.o"
616 tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 t-crtfm"
619 # Don't use crtbeginT.o from *-*-linux* default.
620 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
621 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"
622 if test x$with_system_libunwind != xyes ; then
623 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
625 md_unwind_header=ia64/linux-unwind.h
628 tmake_file="ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
631 tmake_file="$tmake_file ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms"
632 extra_parts="$extra_parts crtinitS.o"
633 md_unwind_header=ia64/vms-unwind.h
640 lm32-*-elf*|lm32-*-rtems*)
641 extra_parts="$extra_parts crti.o crtn.o"
642 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
645 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
646 tmake_file="lm32/t-lm32 lm32/t-uclinux t-softfp-sfdf t-softfp"
652 tmake_file="m32r/t-m32r t-fdpbit"
658 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
661 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
669 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
670 md_unwind_header=m68k/linux-unwind.h
672 m68k-*-linux*) # Motorola m68k's running GNU/Linux
673 # with ELF format using glibc 2
674 # aka the GNU/Linux C library 6.
675 # If not configured with --enable-sjlj-exceptions, bump the
676 # libgcc version number.
677 if test x$enable_sjlj_exceptions != xyes; then
678 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
680 md_unwind_header=m68k/linux-unwind.h
683 extra_parts="$extra_parts crti.o crtn.o"
687 extra_parts="$extra_parts crti.o crtn.o"
690 tmake_file="$tmake_file t-slibgcc-nolc-override microblaze/t-microblaze t-fdpbit"
693 tmake_file="microblaze/t-microblaze t-fdpbit"
694 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
697 tmake_file="$tmake_file mips/t-irix6 t-crtfm mips/t-tpbit t-slibgcc mips/t-slibgcc-irix"
698 extra_parts="crtbegin.o crtend.o crtfastmath.o irix-crti.o irix-crtn.o"
699 md_unwind_header=mips/irix6-unwind.h
701 mips*-*-netbsd*) # NetBSD/mips, either endian.
703 mips64*-*-linux* | mipsisa64*-*-linux*)
704 extra_parts="$extra_parts crtfastmath.o"
705 tmake_file="${tmake_file} t-crtfm mips/t-mips16 mips/t-tpbit"
706 md_unwind_header=mips/linux-unwind.h
708 mips*-*-linux*) # Linux MIPS, either endian.
709 extra_parts="$extra_parts crtfastmath.o"
710 tmake_file="${tmake_file} t-crtfm mips/t-mips16"
711 md_unwind_header=mips/linux-unwind.h
716 tmake_file="mips/t-crtstuff mips/t-mips16"
717 case "${with_newlib}" in
722 # MIPS toolkit libraries.
723 tmake_file="$tmake_file mips/t-sdemtk"
726 extra_parts="$extra_parts crti.o crtn.o"
728 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
729 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
730 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
731 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
732 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
733 extra_parts="$extra_parts crti.o crtn.o"
735 mipsisa64sr71k-*-elf*)
736 tmake_file="mips/t-crtstuff t-fdpbit"
737 extra_parts="$extra_parts crti.o crtn.o"
739 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
740 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
741 extra_parts="$extra_parts crti.o crtn.o"
743 mips-*-elf* | mipsel-*-elf*)
744 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
745 extra_parts="$extra_parts crti.o crtn.o"
747 mips64-*-elf* | mips64el-*-elf*)
748 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
749 extra_parts="$extra_parts crti.o crtn.o"
751 mips64vr-*-elf* | mips64vrel-*-elf*)
752 tmake_file="$tmake_file mips/t-crtstuff"
753 extra_parts="$extra_parts crti.o crtn.o"
755 mips64orion-*-elf* | mips64orionel-*-elf*)
756 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
757 extra_parts="$extra_parts crti.o crtn.o"
760 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
761 extra_parts="$extra_parts crti.o crtn.o"
765 mipstx39-*-elf* | mipstx39el-*-elf*)
766 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
769 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
770 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
775 moxie-*-elf | moxie-*-uclinux*)
776 tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
777 extra_parts="$extra_parts crti.o crtn.o"
780 tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
788 tmake_file="picochip/t-picochip t-fpbit"
792 *-*-darwin9* | *-*-darwin[12][0-9]*)
793 # libSystem contains unwind information for signal frames since
797 md_unwind_header=rs6000/darwin-unwind.h
800 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
801 extra_parts="$extra_parts crt2.o"
804 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
805 extra_parts="$extra_parts crt2.o"
808 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp t-slibgcc-libgcc"
809 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
812 tmake_file="$tmake_file rs6000/t-crtstuff"
815 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic"
816 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
818 powerpc-*-eabisimaltivec*)
819 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
820 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
823 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
824 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
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 crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
830 powerpc-*-eabialtivec*)
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"
834 powerpc-xilinx-eabi*)
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 crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
839 tmake_file="${tmake_file} rs6000/t-ppccomm 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"
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 crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
846 powerpc-*-linux* | powerpc64-*-linux*)
847 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"
848 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
849 md_unwind_header=rs6000/linux-unwind.h
851 powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
852 tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
855 tmake_file="$tmake_file t-fdpbit"
858 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
859 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
861 powerpcle-*-eabisim*)
862 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
863 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
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 crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
869 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
870 md_unwind_header=rs6000/aix-unwind.h
871 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-ibm-ldouble rs6000/t-slibgcc-aix"
873 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
874 md_unwind_header=rs6000/aix-unwind.h
875 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-ibm-ldouble rs6000/t-slibgcc-aix"
877 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
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"
882 tmake_file="rx/t-rx t-fdpbit"
885 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
886 md_unwind_header=s390/linux-unwind.h
889 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
890 md_unwind_header=s390/linux-unwind.h
893 tmake_file="${tmake_file} s390/t-crtstuff s390/t-tpf t-eh-dw2-dip"
894 extra_parts="crtbeginS.o crtendS.o"
895 md_unwind_header=s390/tpf-unwind.h
898 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp"
899 extra_parts="$extra_parts crti.o crtn.o"
901 sh-*-elf* | sh[12346l]*-*-elf*)
902 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
903 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
904 libic_invalidate_array_4-100.a \
905 libic_invalidate_array_4-200.a \
906 libic_invalidate_array_4a.a \
907 libgcc-Os-4-200.a libgcc-4-300.a"
910 tmake_file="$tmake_file sh/t-superh"
911 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
915 sh-*-linux* | sh[2346lbe]*-*-linux*)
916 tmake_file="${tmake_file} t-slibgcc-libgcc sh/t-linux t-fdpbit"
917 md_unwind_header=sh/linux-unwind.h
919 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
920 sh64-*-netbsd* | sh64l*-*-netbsd*)
921 # NetBSD's C library includes a fast software FP library that
922 # has support for setting/setting the rounding mode, exception
923 # mask, etc. Therefore, we don't want to include software FP
927 tmake_file="$tmake_file t-crtstuff-pic t-fdpbit"
928 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
929 $sh_ic_extra_parts $sh_opt_extra_parts"
932 tmake_file="$tmake_file t-crtstuff-pic t-fdpbit"
943 tmake_file="sparc/t-softmul"
946 tmake_file="${tmake_file} t-fdpbit t-crtfm"
947 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
949 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
950 tmake_file="${tmake_file} t-crtfm sparc/t-linux64"
953 tmake_file="${tmake_file} t-fdpbit"
956 tmake_file="${tmake_file} sparc/t-linux"
959 extra_parts="$extra_parts crtfastmath.o"
960 md_unwind_header=sparc/linux-unwind.h
963 tmake_file="sparc/t-elf t-crtfm t-rtems t-fdpbit"
964 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
967 tmake_file="$tmake_file t-crtfm"
968 extra_parts="$extra_parts crtfastmath.o"
969 md_unwind_header=sparc/sol2-unwind.h
972 tmake_file="${tmake_file} t-crtfm"
973 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
976 tmake_file="sparc/t-elf t-crtfm t-rtems"
977 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
981 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
982 tmake_file="$tmake_file t-crtfm"
983 extra_parts="$extra_parts crtfastmath.o"
985 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
986 extra_parts="$extra_parts crtfastmath.o"
987 tmake_file="${tmake_file} t-crtfm sparc/t-linux sparc/t-linux64"
988 md_unwind_header=sparc/linux-unwind.h
993 tmake_file="$tmake_file spu/t-elf t-fdpbit"
994 extra_parts="$extra_parts \
995 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
996 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
997 libgcc_cache64k.a libgcc_cache128k.a"
1000 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"
1001 extra_parts="crtbeginS.o crtendS.o crti.o crtn.o"
1002 unwind_header=config/c6x/unwind-c6x.h
1005 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1006 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1007 unwind_header=config/c6x/unwind-c6x.h
1022 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1023 extra_parts="$extra_parts crti.o crtn.o"
1026 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux"
1027 md_unwind_header=xtensa/linux-unwind.h
1030 # Don't need crtbeginT.o from *-*-linux* default.
1031 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1032 tmake_file="$tmake_file t-fdpbit"
1034 m32c-*-elf*|m32c-*-rtems*)
1037 tmake_file="mep/t-mep t-fdpbit"
1038 extra_parts="crtbegin.o crtend.o"
1041 echo "*** Configuration ${host} not supported" 1>&2
1047 i[34567]86-*-linux* | x86_64-*-linux* | \
1048 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1049 i[34567]86-*-knetbsd*-gnu | \
1051 tmake_file="${tmake_file} t-tls i386/t-linux"
1052 if test "$libgcc_cv_cfi" = "yes"; then
1053 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1059 i[34567]86-*-darwin* | x86_64-*-darwin* | \
1060 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1061 i[34567]86-*-linux* | x86_64-*-linux* | \
1062 i[34567]86-*-gnu* | \
1063 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
1064 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \
1065 i[34567]86-*-freebsd* | x86_64-*-freebsd*)
1066 tmake_file="${tmake_file} t-softfp-tf"
1067 if test "${host_address}" = 32; then
1068 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1070 tmake_file="${tmake_file} t-softfp"
1075 i[34567]86-*-linux* | x86_64-*-linux*)
1076 # Provide backward binary compatibility for 64bit Linux/x86.
1077 if test "${host_address}" = 64; then
1078 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"