OSDN Git Service

Restore FreeBSD/SPARC bootstrap (PR bootstrap/49804)
[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-eh-dw2-dip"
183   ;;
184 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
185   tmake_file="$tmake_file t-eh-dw2-dip"
186   extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
187   ;;
188 *-*-netbsd*)
189   ;;
190 *-*-openbsd*)
191   ;;
192 *-*-rtems*)
193   ;;
194 *-*-solaris2*)
195   # Unless linker support and dl_iterate_phdr are present,
196   # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
197   tmake_file="$tmake_file t-sol2 t-eh-dw2-dip t-slibgcc t-slibgcc-elf-ver"
198   if test $with_gnu_ld = yes; then
199     tmake_file="$tmake_file t-slibgcc-gld"
200   else
201     tmake_file="$tmake_file t-slibgcc-sld"
202   fi
203   # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
204   tmake_file="$tmake_file $cpu_type/t-sol2"
205   extra_parts="gmon.o crtbegin.o crtend.o"
206   case ${host} in
207     i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
208       # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
209       # part of the base system.
210       ;;
211     sparc*-*-solaris2.1[0-9]*)
212       # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
213       extra_parts="$extra_parts crt1.o gcrt1.o"
214       ;;
215     *)
216       tmake_file="$tmake_file t-crtin"
217       extra_parts="$extra_parts crt1.o crti.o crtn.o gcrt1.o"
218       ;;
219   esac
220   ;;
221 *-*-vxworks*)
222   ;;
223 *-*-elf)
224   ;;
225 esac
226
227 case ${host} in
228 *-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2* | \
229   alpha*-dec-osf5.1*)
230   enable_execute_stack=enable-execute-stack-mprotect.c
231   ;;
232 i[34567]86-*-mingw* | x86_64-*-mingw*)
233   enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
234   ;;
235 *)
236   enable_execute_stack=enable-execute-stack-empty.c;
237   ;;
238 esac
239
240 case ${host} in
241 alpha*-*-linux*)
242         tmake_file="${tmake_file} t-crtfm"
243         extra_parts="$extra_parts crtfastmath.o"
244         md_unwind_header=alpha/linux-unwind.h
245         ;;
246 alpha*-*-freebsd*)
247         tmake_file="${tmake_file} t-crtfm"
248         extra_parts="$extra_parts crtfastmath.o"
249         ;;
250 alpha*-*-netbsd*)
251         ;;
252 alpha*-*-openbsd*)
253         ;;
254 alpha*-dec-osf5.1*)
255         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm t-slibgcc alpha/t-slibgcc-osf"
256         case ${target_thread_file} in
257           posix)
258             tmake_file="${tmake_file} alpha/t-osf-pthread"
259             ;;
260         esac
261         extra_parts="${extra_parts} qrnnd.o crtfastmath.o gthr-posix.o"
262         md_unwind_header=alpha/osf5-unwind.h
263         ;;
264 alpha64-dec-*vms*)
265         tmake_file="vms/t-vms vms/t-vms64 alpha/t-vms"
266         md_unwind_header=alpha/vms-unwind.h
267         ;;
268 alpha*-dec-*vms*)
269         tmake_file="vms/t-vms alpha/t-vms"
270         md_unwind_header=alpha/vms-unwind.h
271         ;;
272 arm-wrs-vxworks)
273         tmake_file=t-fdpbit
274         ;;
275 arm*-*-freebsd*)
276         tmake_file=t-fdpbit
277         ;;
278 arm*-*-netbsdelf*)
279         ;;
280 arm*-*-linux*)                  # ARM GNU/Linux with ELF
281         tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
282         case ${host} in
283         arm*-*-linux-*eabi)
284           tmake_file="${tmake_file} arm/t-bpabi"
285           unwind_header=config/arm/unwind-arm.h
286           ;;
287         esac
288         tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
289         ;;
290 arm*-*-uclinux*)                # ARM ucLinux
291         tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
292         case ${host} in
293         arm*-*-uclinux*eabi)
294           tmake_file="${tmake_file} arm/t-bpabi"
295           unwind_header=config/arm/unwind-arm.h
296           ;;
297         esac
298         tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
299         ;;
300 arm*-*-ecos-elf)
301         tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
302         ;;
303 arm*-*-eabi* | arm*-*-symbianelf* )
304         tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
305         case ${host} in
306         arm*-*-eabi*)
307           tmake_file="${tmake_file} arm/t-bpabi"
308           ;;
309         arm*-*-symbianelf*)
310           tmake_file="${tmake_file} arm/t-symbian"
311           ;;
312         esac
313         tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
314         unwind_header=config/arm/unwind-arm.h
315         ;;
316 arm*-*-rtems*)
317         tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
318         ;;
319 arm*-*-elf)
320         tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
321         ;;
322 arm*-wince-pe*)
323         ;;
324 avr-*-rtems*)
325         tmake_file=t-fpbit
326         ;;
327 avr-*-*)
328         # Make HImode functions for AVR
329         tmake_file="${cpu_type}/t-avr t-fpbit"
330         ;;
331 bfin*-elf*)
332         tmke_file=t-fdpbit
333         ;;
334 bfin*-uclinux*)
335         tmake_file=t-fdpbit
336         md_unwind_header=bfin/linux-unwind.h
337         ;;
338 bfin*-linux-uclibc*)
339         tmake_file=t-fdpbit
340         # No need to build crtbeginT.o on uClibc systems.  Should probably
341         # be moved to the OS specific section above.
342         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
343         md_unwind_header=bfin/linux-unwind.h
344         ;;
345 bfin*-rtems*)
346         tmake_file=t-fdpbit
347         ;;
348 bfin*-*)
349         tmake_file=t-fdpbit
350         ;;
351 crisv32-*-elf | crisv32-*-none | cris-*-elf | cris-*-none)
352         tmake_file=t-fdpbit
353         extra_parts="crtbegin.o crtend.o"
354         ;;
355 cris-*-linux* | crisv32-*-linux*)
356         tmake_file=t-fdpbit
357         ;;
358 fido-*-elf)
359         ;;
360 fr30-*-elf)
361         tmake_file=t-fdpbit
362         ;;
363 frv-*-elf)
364         tmake_file=t-fdpbit
365         ;;
366 frv-*-*linux*)
367         tmake_file=t-fdpbit
368         ;;
369 h8300-*-rtems*)
370         tmake_file=t-fpbit
371         ;;
372 h8300-*-elf*)
373         tmake_file=t-fpbit
374         ;;
375 hppa*64*-*-linux*)
376         ;;
377 hppa*-*-linux*)
378         md_unwind_header=pa/linux-unwind.h
379         ;;
380 hppa[12]*-*-hpux10*)
381         md_unwind_header=pa/hpux-unwind.h
382         ;;
383 hppa*64*-*-hpux11*)
384         md_unwind_header=pa/hpux-unwind.h
385         ;;
386 hppa[12]*-*-hpux11*)
387         md_unwind_header=pa/hpux-unwind.h
388         ;;
389 i[34567]86-*-darwin*)
390         tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
391         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
392         ;;
393 x86_64-*-darwin*)
394         tmake_file="t-darwin ${cpu_type}/t-darwin64 i386/t-crtpc i386/t-crtfm t-slibgcc-darwin"
395         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
396         ;;
397 i[34567]86-*-elf*)
398         ;;
399 x86_64-*-elf*)
400         ;;
401 i[34567]86-*-freebsd*)
402         tmake_file="${tmake_file} i386/t-freebsd"
403         ;;
404 x86_64-*-freebsd*)
405         tmake_file="${tmake_file} i386/t-freebsd"
406         ;;
407 i[34567]86-*-netbsdelf*)
408         ;;
409 x86_64-*-netbsd*)
410         ;;
411 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
412         ;;
413 i[34567]86-*-openbsd*)
414         ;;
415 i[34567]86-*-linux*)
416         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
417         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm t-dfprules"
418         md_unwind_header=i386/linux-unwind.h
419         ;;
420 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
421         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
422         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm t-dfprules"
423         ;;
424 x86_64-*-linux*)
425         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
426         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm t-dfprules"
427         md_unwind_header=i386/linux-unwind.h
428         ;;
429 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
430         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
431         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm t-dfprules"
432         ;;
433 i[34567]86-pc-msdosdjgpp*)
434         ;;
435 i[34567]86-*-lynxos*)
436         ;;
437 i[34567]86-*-nto-qnx*)
438         ;;
439 i[34567]86-*-rtems*)
440         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
441         tmake_file="${tmake_file} t-crtin i386/t-softfp i386/t-crtstuff t-rtems"
442         ;;
443 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
444         tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
445         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
446         md_unwind_header=i386/sol2-unwind.h
447         ;;
448 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
449         ;;
450 i[34567]86-*-cygwin*)
451         extra_parts="crtbegin.o crtend.o crtfastmath.o"
452         tmake_file="i386/t-cygming i386/t-crtfm t-dfprules"
453         ;;
454 i[34567]86-*-mingw*)
455         extra_parts="crtbegin.o crtend.o crtfastmath.o"
456         tmake_file="i386/t-cygming i386/t-crtfm t-dfprules"
457         md_unwind_header=i386/w32-unwind.h
458         ;;
459 x86_64-*-mingw*)
460         tmake_file="t-dfprules i386/t-crtfm"
461         extra_parts="$extra_parts crtfastmath.o"
462         ;;
463 i[34567]86-*-interix3*)
464         ;;
465 ia64*-*-elf*)
466         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
467         tmake_file="ia64/t-ia64 ia64/t-eh-ia64 t-crtfm"
468         ;;
469 ia64*-*-freebsd*)
470         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
471         tmake_file="ia64/t-ia64 ia64/t-eh-ia64 t-crtfm"
472         ;;
473 ia64*-*-linux*)
474         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
475         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-glibc"
476         if test x$with_system_libunwind != xyes ; then
477                 tmake_file="${tmake_file} t-libunwind-elf ia64/t-glibc-libunwind"
478         fi
479         md_unwind_header=ia64/linux-unwind.h
480         ;;
481 ia64*-*-hpux*)
482         tmake_file="ia64/t-hpux"
483         ;;
484 ia64-hp-*vms*)
485         tmake_file="vms/t-vms vms/t-vms64 ia64/t-eh-ia64 ia64/t-vms"
486         md_unwind_header=ia64/vms-unwind.h
487         ;;
488 iq2000*-*-elf*)
489         tmake_file=t-fdpbit
490         ;;
491 lm32-*-elf*|lm32-*-rtems*)
492         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
493         tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
494         ;;
495 lm32-*-uclinux*)
496         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
497         tmake_file="lm32/t-lm32 lm32/t-uclinux t-softfp-sfdf t-softfp"
498         ;;      
499 m32r-*-elf*|m32r-*-rtems*)
500         tmake_file=t-fdpbit
501         ;;
502 m32rle-*-elf*)
503         tmake_file=t-fdpbit
504         ;;
505 m32r-*-linux*)
506         tmake_file=t-fdpbit
507         ;;
508 m32rle-*-linux*)
509         tmake_file=t-fdpbit
510         ;;
511 m68k-*-elf*)
512         ;;
513 m68k*-*-netbsdelf*)
514         ;;
515 m68k*-*-openbsd*)
516         ;;
517 m68k-*-uclinux*)                # Motorola m68k/ColdFire running uClinux with uClibc
518         md_unwind_header=m68k/linux-unwind.h
519         ;;
520 m68k-*-linux*)                  # Motorola m68k's running GNU/Linux
521                                 # with ELF format using glibc 2
522                                 # aka the GNU/Linux C library 6.
523         md_unwind_header=m68k/linux-unwind.h
524         ;;
525 m68k-*-rtems*)
526         ;;
527 mcore-*-elf)
528         tmake_file=t-fdpbit
529         ;;
530 microblaze*-*-*)
531         tmake_file="microblaze/t-microblaze t-fdpbit"
532         ;;
533 mips-sgi-irix6.5*)
534         tmake_file="$tmake_file mips/t-irix6 t-crtfm mips/t-tpbit t-slibgcc mips/t-slibgcc-irix"
535         extra_parts="crtbegin.o crtend.o crtfastmath.o irix-crti.o irix-crtn.o"
536         md_unwind_header=mips/irix6-unwind.h
537         ;;
538 mips*-*-netbsd*)                        # NetBSD/mips, either endian.
539         ;;
540 mips64*-*-linux* | mipsisa64*-*-linux*)
541         extra_parts="$extra_parts crtfastmath.o"
542         tmake_file="${tmake_file} t-crtfm mips/t-mips16 mips/t-tpbit"
543         md_unwind_header=mips/linux-unwind.h
544         ;;
545 mips*-*-linux*)                         # Linux MIPS, either endian.
546         extra_parts="$extra_parts crtfastmath.o"
547         tmake_file="${tmake_file} t-crtfm mips/t-mips16"
548         md_unwind_header=mips/linux-unwind.h
549         ;;
550 mips*-*-openbsd*)
551         ;;
552 mips*-sde-elf*)
553         case "${with_newlib}" in
554           yes)
555             # newlib / libgloss.
556             ;;
557           *)
558             # MIPS toolkit libraries.
559             tmake_file=mips/t-sdemtk
560             ;;
561         esac
562         tmake_file="$tmake_file mips/t-mips16"
563         ;;
564 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
565 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
566 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
567 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
568         tmake_file="$tmake_file mips/t-mips16"
569         ;;
570 mipsisa64sr71k-*-elf*)
571         tmake_file=t-fdpbit
572         ;;
573 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
574         tmake_file="$tmake_file mips/t-mips16"
575         ;;
576 mips-*-elf* | mipsel-*-elf*)
577         tmake_file="$tmake_file mips/t-mips16"
578         ;;
579 mips64-*-elf* | mips64el-*-elf*)
580         tmake_file="$tmake_file mips/t-mips16"
581         ;;
582 mips64vr-*-elf* | mips64vrel-*-elf*)
583         ;;
584 mips64orion-*-elf* | mips64orionel-*-elf*)
585         tmake_file="$tmake_file mips/t-mips16"
586         ;;
587 mips*-*-rtems*)
588         tmake_file="$tmake_file mips/t-mips16"
589         ;;
590 mips-wrs-vxworks)
591         ;;
592 mipstx39-*-elf* | mipstx39el-*-elf*)
593         tmake_file="$tmake_file mips/t-mips16"
594         ;;
595 mmix-knuth-mmixware)
596         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
597         tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
598         ;;
599 mn10300-*-*)
600         tmake_file=t-fdpbit
601         ;;
602 moxie-*-*)
603         tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
604         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
605         ;;
606 pdp11-*-*)
607         tmake_file=t-fdpbit
608         ;;
609 picochip-*-*)
610         tmake_file="picochip/t-picochip t-fpbit"
611         ;;
612 powerpc-*-darwin*)
613         case ${host} in
614         *-*-darwin9* | *-*-darwin[12][0-9]*)
615           # libSystem contains unwind information for signal frames since
616           # Darwin 9.
617           ;;
618         *)
619           md_unwind_header=rs6000/darwin-unwind.h
620           ;;
621         esac
622         tmake_file="$tmake_file rs6000/t-ibm-ldouble"
623         extra_parts="$extra_parts crt2.o"
624         ;;
625 powerpc64-*-darwin*)
626         tmake_file="$tmake_file rs6000/t-ibm-ldouble"
627         extra_parts="$extra_parts crt2.o"
628         ;;
629 powerpc-*-freebsd*)
630         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
631         ;;
632 powerpc-*-netbsd*)
633         ;;
634 powerpc-*-eabispe*)
635         tmake_file="${tmake_file} rs6000/t-ppccomm"
636         ;;
637 powerpc-*-eabisimaltivec*)
638         tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
639         ;;
640 powerpc-*-eabisim*)
641         tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
642         ;;
643 powerpc-*-elf*)
644         tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
645         ;;
646 powerpc-*-eabialtivec*)
647         tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
648         ;;
649 powerpc-xilinx-eabi*)
650         tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
651         ;;
652 powerpc-*-eabi*)
653         tmake_file="${tmake_file} rs6000/t-ppccomm t-fdpbit"
654         ;;
655 powerpc-*-rtems*)
656         tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
657         ;;
658 powerpc-*-linux* | powerpc64-*-linux*)
659         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128 t-softfp-sfdf t-softfp-excl t-dfprules rs6000/t-ppc64-fp t-softfp"
660         md_unwind_header=rs6000/linux-unwind.h
661         ;;
662 powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
663         tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
664         ;;
665 powerpc-*-lynxos*)
666         tmake_file=t-fdpbit
667         ;;
668 powerpcle-*-elf*)
669         tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
670         ;;
671 powerpcle-*-eabisim*)
672         tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
673         ;;
674 powerpcle-*-eabi*)
675         tmake_file="rs6000/t-ppccomm-ldbl t-fdpbit"
676         ;;
677 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
678         md_unwind_header=rs6000/aix-unwind.h
679         tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
680         ;;
681 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
682         md_unwind_header=rs6000/aix-unwind.h
683         tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
684         ;;
685 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
686         md_unwind_header=rs6000/aix-unwind.h
687         tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
688         ;;
689 rx-*-elf)
690         extra_parts="crtbegin.o crtend.o"
691         tmake_file="rx/t-rx t-fdpbit"
692         ;;
693 s390-*-linux*)
694         tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
695         md_unwind_header=s390/linux-unwind.h
696         ;;
697 s390x-*-linux*)
698         tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
699         md_unwind_header=s390/linux-unwind.h
700         ;;
701 s390x-ibm-tpf*)
702         tmake_file="${tmake_file} s390/t-crtstuff s390/t-tpf t-eh-dw2-dip"
703         md_unwind_header=s390/tpf-unwind.h
704         ;;
705 score-*-elf)
706         tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp"
707         ;;
708 sh-*-elf* | sh[12346l]*-*-elf* | \
709   sh-*-linux* | sh[2346lbe]*-*-linux* | \
710   sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
711    sh64-*-netbsd* | sh64l*-*-netbsd*)
712         case ${host} in
713         sh*-*-linux*)
714                 tmake_file="${tmake_file} sh/t-linux t-fdpbit"
715                 md_unwind_header=sh/linux-unwind.h
716                 ;;
717         sh*-*-netbsd*)
718                 # NetBSD's C library includes a fast software FP library that
719                 # has support for setting/setting the rounding mode, exception
720                 # mask, etc.  Therefore, we don't want to include software FP
721                 # in libgcc.
722                 ;;
723         sh*-*-*)
724                 tmake_file=t-fdpbit
725                 ;;
726         esac
727         ;;
728 sh-*-rtems*)
729         tmake_file=t-fdpbit
730         ;;
731 sh-wrs-vxworks)
732         tmake_file=t-fdpbit
733         ;;
734 sparc-*-netbsdelf*)
735         ;;
736 sparc64-*-openbsd*)
737         ;;
738 sparc-*-elf*)
739         case ${host} in
740         *-leon[3-9]*)
741                 ;;
742         *)
743                 tmake_file="sparc/t-softmul"
744                 ;;
745         esac
746         tmake_file="${tmake_file} t-fdpbit t-crtin t-crtfm"
747         extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o"
748         ;;
749 sparc-*-linux*)         # SPARC's running GNU/Linux, libc6
750         case ${host} in
751         *-leon*)
752                 tmake_file=t-fdpbit
753                 ;;
754         esac
755         extra_parts="$extra_parts crtfastmath.o"
756         tmake_file="${tmake_file} t-crtfm"
757         md_unwind_header=sparc/linux-unwind.h
758         ;;
759 sparc-*-rtems*)
760         tmake_file="sparc/t-elf t-crtin t-crtfm t-rtems t-fdpbit"
761         extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o"
762         ;;
763 sparc*-*-solaris2*)
764         tmake_file="$tmake_file t-crtfm"
765         extra_parts="$extra_parts crtfastmath.o"
766         md_unwind_header=sparc/sol2-unwind.h
767         ;;
768 sparc64-*-elf*)
769         tmake_file="${tmake_file} t-crtin t-crtfm"
770         extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o"
771         ;;
772 sparc64-*-rtems*)
773         tmake_file="sparc/t-elf t-crtin t-crtfm t-rtems"
774         extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o"
775         ;;
776 sparc-wrs-vxworks)
777         ;;
778 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
779         tmake_file="$tmake_file t-crtfm"
780         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o crtfastmath.o"
781         ;;
782 sparc64-*-linux*)               # 64-bit SPARC's running GNU/Linux
783         extra_parts="$extra_parts crtfastmath.o"
784         tmake_file="${tmake_file} t-crtfm"
785         md_unwind_header=sparc/linux-unwind.h
786         ;;
787 sparc64-*-netbsd*)
788         ;;
789 spu-*-elf*)
790         tmake_file="t-fdpbit spu/t-elf"
791         ;;
792 tic6x-*-*)
793         tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-c6x-elf"
794         unwind_header=config/c6x/unwind-c6x.h
795         ;;
796 v850*-*-*)
797         tmake_file=t-fdpbit
798         ;;
799 vax-*-linux*)
800         ;;
801 vax-*-netbsdelf*)
802         ;;
803 vax-*-openbsd*)
804         ;;
805 xstormy16-*-elf)
806         tmake_file=t-fdpbit
807         ;;
808 xtensa*-*-elf*)
809         tmake_file=xtensa/t-xtensa
810         ;;
811 xtensa*-*-linux*)
812         tmake_file=xtensa/t-xtensa
813         md_unwind_header=xtensa/linux-unwind.h
814         ;;
815 am33_2.0-*-linux*)
816         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
817         tmake_file=t-fdpbit
818         ;;
819 m32c-*-elf*|m32c-*-rtems*)
820         ;;
821 mep*-*-*)
822         tmake_file=t-fdpbit
823         ;;
824 *)
825         echo "*** Configuration ${host} not supported" 1>&2
826         exit 1
827         ;;
828 esac
829
830 case ${host} in
831 i[34567]86-*-linux* | x86_64-*-linux* | \
832   i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | \
833   i[34567]86-*-gnu*)
834         tmake_file="${tmake_file} t-tls"
835         if test "$libgcc_cv_cfi" = "yes"; then
836                 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
837         fi
838         ;;
839 esac
840
841 case ${host} in
842 i[34567]86-*-darwin* | x86_64-*-darwin* | \
843   i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
844   i[34567]86-*-linux* | x86_64-*-linux* | \
845   i[34567]86-*-gnu* | \
846   i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
847   i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \
848   i[34567]86-*-freebsd* | x86_64-*-freebsd*)
849         tmake_file="${tmake_file} t-softfp-tf"
850         if test "${host_address}" = 32; then
851                 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
852         fi
853         tmake_file="${tmake_file} t-softfp"
854         ;;
855 esac
856
857 case ${host} in
858 i[34567]86-*-linux* | x86_64-*-linux*)
859         # Provide backward binary compatibility for 64bit Linux/x86.
860         if test "${host_address}" = 64; then
861                 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
862         fi
863         ;;
864 esac