OSDN Git Service

0a05ea184b067b3569caf48aacfb5b68f1b673cc
[pf3gnuchains/gcc-fork.git] / libgcc / config.host
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.
4
5 #This file is part of GCC.
6
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
10 #version.
11
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
15 #for more details.
16
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/>.
20
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.
26
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}.
32
33 # This file switches on the shell variable ${host}, and also uses the
34 # following shell variables:
35 #
36 #  with_*               Various variables as set by configure.
37
38 # This file sets the following shell variables for use by the
39 # autoconf-generated configure script:
40 #
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.
65
66 asm_hidden_op=.hidden
67 enable_execute_stack=
68 extra_parts=
69 tmake_file=
70 md_unwind_header=no-unwind.h
71 unwind_header=unwind-generic.h
72
73 # Set default cpu_type so it can be updated in each machine entry.
74 cpu_type=`echo ${host} | sed 's/-.*$//'`
75 case ${host} in
76 m32c*-*-*)
77         cpu_type=m32c
78         tmake_file=t-fdpbit
79         ;;
80 alpha*-*-*)
81         cpu_type=alpha
82         ;;
83 am33_2.0-*-linux*)
84         cpu_type=mn10300
85         ;;
86 arm*-*-*)
87         cpu_type=arm
88         ;;
89 avr-*-*)
90         cpu_type=avr
91         ;;    
92 bfin*-*)
93         cpu_type=bfin
94         ;;
95 fido-*-*)
96         cpu_type=m68k
97         ;;
98 frv*)   cpu_type=frv
99         ;;
100 moxie*) cpu_type=moxie
101         ;;
102 i[34567]86-*-*)
103         cpu_type=i386
104         ;;
105 x86_64-*-*)
106         cpu_type=i386
107         ;;
108 ia64-*-*)
109         ;;
110 hppa*-*-*)
111         cpu_type=pa
112         ;;
113 lm32*-*-*)
114         cpu_type=lm32
115         ;;
116 m32r*-*-*)
117         cpu_type=m32r
118         ;;
119 m68k-*-*)
120         ;;
121 mep*-*-*)
122         ;;
123 microblaze*-*-*)
124         cpu_type=microblaze
125         ;;
126 mips*-*-*)
127         cpu_type=mips
128         tmake_file=mips/t-mips
129         ;;
130 powerpc*-*-*)
131         cpu_type=rs6000
132         ;;
133 rs6000*-*-*)
134         ;;
135 score*-*-*)
136         cpu_type=score
137         ;;
138 sparc64*-*-*)
139         cpu_type=sparc
140         ;;
141 sparc*-*-*)
142         cpu_type=sparc
143         ;;
144 spu*-*-*)
145         cpu_type=spu
146         ;;
147 s390*-*-*)
148         cpu_type=s390
149         ;;
150 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
151 sh[123456789lbe]*-*-*)
152         cpu_type=sh
153         ;;
154 v850*-*-*)
155         cpu_type=v850
156         ;;
157 tic6x-*-*)
158         cpu_type=c6x
159         ;;
160 esac
161
162 # Common parts for widely ported systems.
163 case ${host} in
164 *-*-darwin*)
165   asm_hidden_op=.private_extern
166   tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin"
167   extra_parts=crt3.o
168   ;;
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).
177   ;;
178 *-*-freebsd*)
179   # This is the generic ELF configuration of FreeBSD.  Later
180   # machine-specific sections may refine and add to this
181   # configuration.
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
185     posix)
186       # Before 5.0, FreeBSD can't bind shared libraries to -lc
187       # when "optionally" threaded via weak pthread_* checks.
188       case ${host} in
189         *-*-freebsd[34] | *-*-freebsd[34].*)
190           tmake_file="${tmake_file} t-slibgcc-nolc-override"
191           ;;
192       esac
193       ;;
194   esac
195   ;;
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"
199   ;;
200 *-*-lynxos*)
201   tmake_file="$tmake_file $cpu_type/t-crtstuff t-crtstuff-pic"
202   extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
203   ;;
204 *-*-netbsd*)
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.
209   case ${host} in
210     *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
211       extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
212       ;;
213   esac
214   ;;
215 *-*-openbsd*)
216   tmake_file="$tmake_file t-crtstuff-pic"
217   ;;
218 *-*-rtems*)
219   extra_parts="crtbegin.o crtend.o"
220   ;;
221 *-*-solaris2*)
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"
227   else
228     tmake_file="$tmake_file t-slibgcc-sld"
229   fi
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"
233   case ${host} in
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.
237       ;;
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"
241       ;;
242     *)
243       extra_parts="$extra_parts crt1.o crti.o crtn.o gcrt1.o"
244       ;;
245   esac
246   ;;
247 *-*-uclinux*)
248   extra_parts="crtbegin.o crtend.o"
249   ;;
250 *-*-*vms*)
251   tmake_file="vms/t-vms"
252   extra_parts="vcrt0.o pcrt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
253   ;;
254 *-*-vxworks*)
255   ;;
256 *-*-elf)
257   extra_parts="crtbegin.o crtend.o"
258   ;;
259 esac
260
261 case ${host} in
262 *-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2* | \
263   alpha*-dec-osf5.1*)
264   enable_execute_stack=enable-execute-stack-mprotect.c
265   ;;
266 i[34567]86-*-mingw* | x86_64-*-mingw*)
267   enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
268   ;;
269 *)
270   enable_execute_stack=enable-execute-stack-empty.c;
271   ;;
272 esac
273
274 case ${host} in
275 alpha*-*-linux*)
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
279         ;;
280 alpha*-*-freebsd*)
281         tmake_file="${tmake_file} t-crtfm"
282         extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
283         ;;
284 alpha*-*-netbsd*)
285         ;;
286 alpha*-*-openbsd*)
287         ;;
288 alpha*-dec-osf5.1*)
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
291           posix)
292             tmake_file="${tmake_file} alpha/t-osf-pthread"
293             ;;
294         esac
295         extra_parts="${extra_parts} qrnnd.o crtfastmath.o gthr-posix.o"
296         md_unwind_header=alpha/osf5-unwind.h
297         ;;
298 alpha64-dec-*vms*)
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
302         ;;
303 alpha*-dec-*vms*)
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
307         ;;
308 arm-wrs-vxworks)
309         tmake_file="$tmake_file arm/t-arm arm/t-vxworks t-fdpbit"
310         extra_parts="$extra_parts crti.o crtn.o"
311         ;;
312 arm*-*-freebsd*)
313         tmake_file="$tmake_file arm/t-arm arm/t-strongarm-elf t-fdpbit"
314         ;;
315 arm*-*-netbsdelf*)
316         tmake_file="$tmake_file arm/t-arm t-slibgcc-gld-nover"
317         ;;
318 arm*-*-linux*)                  # ARM GNU/Linux with ELF
319         tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix"
320         case ${host} in
321         arm*-*-linux-*eabi)
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
324           ;;
325         *)
326           tmake_file="$tmake_file arm/t-linux"
327           ;;
328         esac
329         tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
330         ;;
331 arm*-*-uclinux*)                # ARM ucLinux
332         tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
333         case ${host} in
334         arm*-*-uclinux*eabi)
335           tmake_file="${tmake_file} arm/t-bpabi"
336           unwind_header=config/arm/unwind-arm.h
337           ;;
338         esac
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"
341         ;;
342 arm*-*-ecos-elf)
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"
345         ;;
346 arm*-*-eabi* | arm*-*-symbianelf* )
347         tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
348         case ${host} in
349         arm*-*-eabi*)
350           tmake_file="${tmake_file} arm/t-bpabi"
351           extra_parts="crtbegin.o crtend.o crti.o crtn.o"
352           ;;
353         arm*-*-symbianelf*)
354           tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
355           # Symbian OS provides its own startup code.
356           ;;
357         esac
358         tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
359         unwind_header=config/arm/unwind-arm.h
360         ;;
361 arm*-*-rtems*)
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"
364         ;;
365 arm*-*-elf)
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"
368         ;;
369 arm*-wince-pe*)
370         tmake_file="$tmake_file arm/t-arm arm/t-wince-pe"
371         ;;
372 avr-*-rtems*)
373         tmake_file="$tmake_file avr/t-avr t-fpbit"
374         # Don't use default.
375         extra_parts=
376         ;;
377 avr-*-*)
378         # Make HImode functions for AVR
379         tmake_file="${cpu_type}/t-avr t-fpbit"
380         ;;
381 bfin*-elf*)
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"
384         ;;
385 bfin*-uclinux*)
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
389         ;;
390 bfin*-linux-uclibc*)
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
396         ;;
397 bfin*-rtems*)
398         tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
399         extra_parts="$extra_parts crti.o crtn.o"
400         ;;
401 bfin*-*)
402         tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
403         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
404         ;;
405 crisv32-*-elf)
406         tmake_file=t-fdpbit
407         ;;
408 crisv32-*-none)
409         tmake_file=t-fdpbit
410         extra_parts="crtbegin.o crtend.o"
411         ;;
412 cris-*-elf)
413         tmake_file="$tmake_file cris/t-elfmulti"
414         ;;
415 cris-*-none)
416         tmake_file="$tmake_file cris/t-elfmulti"
417         extra_parts="crtbegin.o crtend.o"
418         ;;
419 cris-*-linux* | crisv32-*-linux*)
420         tmake_file="$tmake_file t-fdpbit cris/t-linux"
421         ;;
422 fr30-*-elf)
423         tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
424         extra_parts="$extra_parts crti.o crtn.o"
425         ;;
426 frv-*-elf)
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"
430         ;;
431 frv-*-*linux*)
432         tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
433         ;;
434 h8300-*-rtems*)
435         tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
436         extra_parts="$extra_parts crti.o crtn.o"
437         ;;
438 h8300-*-elf*)
439         tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
440         extra_parts="$extra_parts crti.o crtn.o"
441         ;;
442 hppa*64*-*-linux*)
443         tmake_file="$tmake_file pa/t-linux pa/t-linux64"
444         ;;
445 hppa*-*-linux*)
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"
450         else
451             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
452         fi
453         md_unwind_header=pa/linux-unwind.h
454         ;;
455 hppa[12]*-*-hpux10*)
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"
460         else
461             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
462         fi
463         tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
464         md_unwind_header=pa/hpux-unwind.h
465         ;;
466 hppa*64*-*-hpux11*)
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"
471         else
472             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
473         fi
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 \
476                      libgcc_stub.a"
477         md_unwind_header=pa/hpux-unwind.h
478         ;;
479 hppa[12]*-*-hpux11*)
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"
484         else
485             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
486         fi
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
490         ;;
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"
494         ;;
495 x86_64-*-darwin*)
496         tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
497         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
498         ;;
499 i[34567]86-*-elf*)
500         tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic"
501         ;;
502 x86_64-*-elf*)
503         tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic"
504         ;;
505 i[34567]86-*-freebsd*)
506         tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
507         ;;
508 x86_64-*-freebsd*)
509         tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
510         ;;
511 i[34567]86-*-netbsdelf*)
512         ;;
513 x86_64-*-netbsd*)
514         tmake_file="${tmake_file} i386/t-crtstuff"
515         ;;
516 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
517         ;;
518 i[34567]86-*-openbsd*)
519         ;;
520 i[34567]86-*-linux*)
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
524         ;;
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"
528         ;;
529 x86_64-*-linux*)
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
533         ;;
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"
537         ;;
538 i[34567]86-pc-msdosdjgpp*)
539         ;;
540 i[34567]86-*-lynxos*)
541         ;;
542 i[34567]86-*-nto-qnx*)
543         tmake_file="$tmake_file i386/t-nto"
544         extra_parts=crtbegin.o
545         ;;
546 i[34567]86-*-rtems*)
547         extra_parts="$extra_parts crti.o crtn.o"
548         tmake_file="${tmake_file} i386/t-softfp i386/t-crtstuff t-rtems"
549         ;;
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
554         ;;
555 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
556         ;;
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"
562         else
563                 tmake_eh_file="i386/t-dw2-eh"
564         fi
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"
568         else
569                 tmake_dlldir_file="i386/t-dlldir-x"
570         fi
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
573           posix)
574             tmake_file="i386/t-mingw-pthread $tmake_file"
575             ;;
576         esac
577         ;;
578 i[34567]86-*-mingw*)
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"
583         else
584                 tmake_eh_file="i386/t-dw2-eh"
585         fi
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"
589         else
590                 tmake_dlldir_file="i386/t-dlldir-x"
591         fi
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
594         ;;
595 x86_64-*-mingw*)
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"
599         else
600                 tmake_eh_file="i386/t-dw2-eh"
601         fi
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"
605         else
606                 tmake_dlldir_file="i386/t-dlldir-x"
607         fi
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"
610         ;;
611 i[34567]86-*-interix3*)
612         tmake_file="$tmake_file i386/t-chkstk"
613         ;;
614 ia64*-*-elf*)
615         extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
616         tmake_file="ia64/t-ia64 ia64/t-eh-ia64 t-crtfm"
617         ;;
618 ia64*-*-freebsd*)
619         extra_parts="$extra_parts crtfastmath.o"
620         tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 t-crtfm"
621         ;;
622 ia64*-*-linux*)
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"
628         fi
629         md_unwind_header=ia64/linux-unwind.h
630         ;;
631 ia64*-*-hpux*)
632         tmake_file="ia64/t-ia64 ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
633         ;;
634 ia64-hp-*vms*)
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
638         ;;
639 iq2000*-*-elf*)
640         tmake_file=t-fdpbit
641         # Don't use default.
642         extra_parts=
643         ;;
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"
647         ;;
648 lm32-*-uclinux*)
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"
651         ;;      
652 m32r-*-elf*)
653         tmake_file=t-fdpbit
654         ;;
655 m32r-*-rtems*)
656         tmake_file="m32r/t-m32r t-fdpbit"
657         ;;
658 m32rle-*-elf*)
659         tmake_file=t-fdpbit
660         ;;
661 m32r-*-linux*)
662         tmake_file="$tmake_file m32r/t-linux t-fdpbit"
663         ;;
664 m32rle-*-linux*)
665         tmake_file="$tmake_file m32r/t-linux t-fdpbit"
666         ;;
667 m68k-*-elf* | fido-*-elf)
668         tmake_file="$tmake_file m68k/t-floatlib"
669         ;;
670 m68k*-*-netbsdelf*)
671         ;;
672 m68k*-*-openbsd*)
673         ;;
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
677         ;;
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"
686         fi
687         md_unwind_header=m68k/linux-unwind.h
688         ;;
689 m68k-*-rtems*)
690         tmake_file="$tmake_file m68k/t-floatlib"
691         extra_parts="$extra_parts crti.o crtn.o"
692         ;;
693 mcore-*-elf)
694         tmake_file="mcore/t-mcore t-fdpbit"
695         extra_parts="$extra_parts crti.o crtn.o"
696         ;;
697 microblaze*-linux*)
698         tmake_file="$tmake_file t-slibgcc-nolc-override microblaze/t-microblaze t-fdpbit"
699         ;;
700 microblaze*-*-*)
701         tmake_file="microblaze/t-microblaze t-fdpbit"
702         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
703         ;;
704 mips-sgi-irix6.5*)
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
708         ;;
709 mips*-*-netbsd*)                        # NetBSD/mips, either endian.
710         ;;
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
715         ;;
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
720         ;;
721 mips*-*-openbsd*)
722         ;;
723 mips*-sde-elf*)
724         tmake_file="mips/t-crtstuff mips/t-mips16"
725         case "${with_newlib}" in
726           yes)
727             # newlib / libgloss.
728             ;;
729           *)
730             # MIPS toolkit libraries.
731             tmake_file="$tmake_file mips/t-sdemtk"
732             ;;
733         esac
734         extra_parts="$extra_parts crti.o crtn.o"
735         ;;
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"
742         ;;
743 mipsisa64sr71k-*-elf*)
744         tmake_file="mips/t-crtstuff t-fdpbit"
745         extra_parts="$extra_parts crti.o crtn.o"
746         ;;
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"
750         ;;
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"
754         ;;
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"
758         ;;
759 mips64vr-*-elf* | mips64vrel-*-elf*)
760         tmake_file="$tmake_file mips/t-crtstuff"
761         extra_parts="$extra_parts crti.o crtn.o"
762         ;;
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"
766         ;;
767 mips*-*-rtems*)
768         tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
769         extra_parts="$extra_parts crti.o crtn.o"
770         ;;
771 mips-wrs-vxworks)
772         ;;
773 mipstx39-*-elf* | mipstx39el-*-elf*)
774         tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
775         ;;
776 mmix-knuth-mmixware)
777         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
778         tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
779         ;;
780 mn10300-*-*)
781         tmake_file=t-fdpbit
782         ;;
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"
786         ;;
787 moxie-*-rtems*)
788         tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
789         # Don't use default.
790         extra_parts=
791         ;;
792 pdp11-*-*)
793         tmake_file=t-fdpbit
794         ;;
795 picochip-*-*)
796         tmake_file="picochip/t-picochip t-fpbit"
797         ;;
798 powerpc-*-darwin*)
799         case ${host} in
800         *-*-darwin9* | *-*-darwin[12][0-9]*)
801           # libSystem contains unwind information for signal frames since
802           # Darwin 9.
803           ;;
804         *)
805           md_unwind_header=rs6000/darwin-unwind.h
806           ;;
807         esac
808         tmake_file="$tmake_file rs6000/t-ibm-ldouble"
809         extra_parts="$extra_parts crt2.o"
810         ;;
811 powerpc64-*-darwin*)
812         tmake_file="$tmake_file rs6000/t-ibm-ldouble"
813         extra_parts="$extra_parts crt2.o"
814         ;;
815 powerpc-*-freebsd*)
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"
818         ;;
819 powerpc-*-netbsd*)
820         tmake_file="$tmake_file rs6000/t-crtstuff"
821         ;;
822 powerpc-*-eabispe*)
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"
825         ;;
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"
829         ;;
830 powerpc-*-eabisim*)
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"
833         ;;
834 powerpc-*-elf*)
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"
837         ;;
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"
841         ;;
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"
845         ;;
846 powerpc-*-eabi*)
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"
849         ;;
850 powerpc-*-rtems*)
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"
853         ;;
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
858         ;;
859 powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
860         tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
861         ;;
862 powerpc-*-lynxos*)
863         tmake_file="$tmake_file t-fdpbit"
864         ;;
865 powerpcle-*-elf*)
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"
868         ;;
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"
872         ;;
873 powerpcle-*-eabi*)
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"
876         ;;
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"
880         ;;
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"
884         ;;
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"
888         ;;
889 rx-*-elf)
890         tmake_file="rx/t-rx t-fdpbit"
891         ;;
892 s390-*-linux*)
893         tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
894         md_unwind_header=s390/linux-unwind.h
895         ;;
896 s390x-*-linux*)
897         tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
898         md_unwind_header=s390/linux-unwind.h
899         ;;
900 s390x-ibm-tpf*)
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
904         ;;
905 score-*-elf)
906         tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp"
907         extra_parts="$extra_parts crti.o crtn.o"
908         ;;
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"
918                 ;;
919         esac
920         case ${host} in
921         sh*-superh-elf)
922                 tmake_file="$tmake_file sh/t-superh"
923                 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
924                 ;;
925         esac
926         ;;
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"
931                 ;;
932         esac
933         md_unwind_header=sh/linux-unwind.h
934         ;;
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"
938         case ${host} in
939         sh5*-*-netbsd* | sh64*-netbsd*)
940                 tmake_file="$tmake_file sh/t-sh64"
941                 ;;
942         esac
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
946         # in libgcc.
947         ;;
948 sh-*-rtems*)
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"
952         ;;
953 sh-wrs-vxworks)
954         tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
955         ;;
956 sparc-*-netbsdelf*)
957         ;;
958 sparc64-*-openbsd*)
959         ;;
960 sparc-*-elf*)
961         case ${host} in
962         *-leon[3-9]*)
963                 ;;
964         *)
965                 tmake_file="sparc/t-softmul"
966                 ;;
967         esac
968         tmake_file="${tmake_file} t-fdpbit t-crtfm"
969         extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
970         ;;
971 sparc-*-linux*)         # SPARC's running GNU/Linux, libc6
972         tmake_file="${tmake_file} t-crtfm sparc/t-linux64"
973         case ${host} in
974         *-leon*)
975                 tmake_file="${tmake_file} t-fdpbit"
976                 ;;
977         *)
978                 tmake_file="${tmake_file} sparc/t-linux"
979                 ;;
980         esac
981         case ${host} in
982         *-leon[3-9]*)
983                 ;;
984         *)
985                 tmake_file="$tmake_file sparc/t-softmul"
986                 ;;
987         esac
988         extra_parts="$extra_parts crtfastmath.o"
989         md_unwind_header=sparc/linux-unwind.h
990         ;;
991 sparc-*-rtems*)
992         tmake_file="sparc/t-elf t-crtfm t-rtems t-fdpbit"
993         extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
994         ;;
995 sparc*-*-solaris2*)
996         tmake_file="$tmake_file t-crtfm"
997         extra_parts="$extra_parts crtfastmath.o"
998         md_unwind_header=sparc/sol2-unwind.h
999         ;;
1000 sparc64-*-elf*)
1001         tmake_file="${tmake_file} t-crtfm"
1002         extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1003         ;;
1004 sparc64-*-rtems*)
1005         tmake_file="sparc/t-elf t-crtfm t-rtems"
1006         extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1007         ;;
1008 sparc-wrs-vxworks)
1009         ;;
1010 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1011         tmake_file="$tmake_file t-crtfm"
1012         extra_parts="$extra_parts crtfastmath.o"
1013         ;;
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
1018         ;;
1019 sparc64-*-netbsd*)
1020         ;;
1021 spu-*-elf*)
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"
1027         ;;
1028 tic6x-*-uclinux)
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
1032         ;;
1033 tic6x-*-elf)
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
1037         ;;
1038 v850*-*-*)
1039         tmake_file="v850/t-v850 t-fdpbit"
1040         ;;
1041 vax-*-linux*)
1042         tmake_file="$tmake_file vax/t-linux"
1043         ;;
1044 vax-*-netbsdelf*)
1045         ;;
1046 vax-*-openbsd*)
1047         ;;
1048 xstormy16-*-elf)
1049         tmake_file=t-fdpbit
1050         ;;
1051 xtensa*-*-elf*)
1052         tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1053         extra_parts="$extra_parts crti.o crtn.o"
1054         ;;
1055 xtensa*-*-linux*)
1056         tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux"
1057         md_unwind_header=xtensa/linux-unwind.h
1058         ;;
1059 am33_2.0-*-linux*)
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"
1063         ;;
1064 m32c-*-elf*|m32c-*-rtems*)
1065         tmake_file="$tmake_file m32c/t-m32c"
1066         ;;
1067 mep*-*-*)
1068         tmake_file="mep/t-mep t-fdpbit"
1069         extra_parts="crtbegin.o crtend.o"
1070         ;;
1071 *)
1072         echo "*** Configuration ${host} not supported" 1>&2
1073         exit 1
1074         ;;
1075 esac
1076
1077 case ${host} in
1078 i[34567]86-*-linux* | x86_64-*-linux* | \
1079   i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1080   i[34567]86-*-knetbsd*-gnu | \
1081   i[34567]86-*-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"
1085         fi
1086         ;;
1087 esac
1088
1089 case ${host} in
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"
1100         fi
1101         tmake_file="${tmake_file} t-softfp"
1102         ;;
1103 esac
1104
1105 case ${host} in
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"
1110         fi
1111         ;;
1112 esac