OSDN Git Service

gcc:
[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 #  tmake_file           A list of machine-description-specific
58 #                       makefile-fragments, if different from
59 #                       "$cpu_type/t-$cpu_type".
60
61 asm_hidden_op=.hidden
62 enable_execute_stack=
63 extra_parts=
64 tmake_file=
65 md_unwind_header=no-unwind.h
66
67 # Set default cpu_type so it can be updated in each machine entry.
68 cpu_type=`echo ${host} | sed 's/-.*$//'`
69 case ${host} in
70 m32c*-*-*)
71         cpu_type=m32c
72         ;;
73 alpha*-*-*)
74         cpu_type=alpha
75         ;;
76 am33_2.0-*-linux*)
77         cpu_type=mn10300
78         ;;
79 arm*-*-*)
80         cpu_type=arm
81         ;;
82 avr-*-*)
83         cpu_type=avr
84         ;;    
85 bfin*-*)
86         cpu_type=bfin
87         ;;
88 fido-*-*)
89         cpu_type=m68k
90         ;;
91 frv*)   cpu_type=frv
92         ;;
93 moxie*) cpu_type=moxie
94         ;;
95 i[34567]86-*-*)
96         cpu_type=i386
97         ;;
98 x86_64-*-*)
99         cpu_type=i386
100         ;;
101 ia64-*-*)
102         ;;
103 hppa*-*-*)
104         cpu_type=pa
105         ;;
106 lm32*-*-*)
107         cpu_type=lm32
108         ;;
109 m32r*-*-*)
110         cpu_type=m32r
111         ;;
112 m68k-*-*)
113         ;;
114 mep*-*-*)
115         ;;
116 microblaze*-*-*)
117         cpu_type=microblaze
118         ;;
119 mips*-*-*)
120         cpu_type=mips
121         ;;
122 powerpc*-*-*)
123         cpu_type=rs6000
124         ;;
125 rs6000*-*-*)
126         ;;
127 score*-*-*)
128         cpu_type=score
129         ;;
130 sparc64*-*-*)
131         cpu_type=sparc
132         ;;
133 sparc*-*-*)
134         cpu_type=sparc
135         ;;
136 spu*-*-*)
137         cpu_type=spu
138         ;;
139 s390*-*-*)
140         cpu_type=s390
141         ;;
142 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
143 sh[123456789lbe]*-*-*)
144         cpu_type=sh
145         ;;
146 v850*-*-*)
147         cpu_type=v850
148         ;;
149 esac
150
151 # Common parts for widely ported systems.
152 case ${host} in
153 *-*-darwin*)
154   asm_hidden_op=.private_extern
155   tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin"
156   ;;
157 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
158   # This is the place-holder for the generic a.out configuration
159   # of FreeBSD.  No actual configuration resides here since
160   # there was only ever a bare-bones ix86 configuration for
161   # a.out and it exists solely in the machine-specific section.
162   # This place-holder must exist to avoid dropping into
163   # the generic ELF configuration of FreeBSD (i.e. it must be
164   # ordered before that section).
165   ;;
166 *-*-freebsd*)
167   # This is the generic ELF configuration of FreeBSD.  Later
168   # machine-specific sections may refine and add to this
169   # configuration.
170   ;;
171 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu*)
172   extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
173   ;;
174 *-*-netbsd*)
175   ;;
176 *-*-openbsd*)
177   ;;
178 *-*-rtems*)
179   ;;
180 *-*-solaris2*)
181   tmake_file="$tmake_file t-sol2 t-slibgcc t-slibgcc-elf-ver"
182   if test $with_gnu_ld = yes; then
183     tmake_file="$tmake_file t-slibgcc-gld"
184   else
185     tmake_file="$tmake_file t-slibgcc-sld"
186   fi
187   # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
188   tmake_file="$tmake_file $cpu_type/t-sol2"
189   extra_parts="gmon.o crtbegin.o crtend.o"
190   case ${host} in
191     i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
192       # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
193       # part of the base system.
194       ;;
195     sparc*-*-solaris2.1[0-9]*)
196       # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
197       extra_parts="$extra_parts crt1.o gcrt1.o"
198       ;;
199     *)
200       tmake_file="$tmake_file t-crtin"
201       extra_parts="$extra_parts crt1.o crti.o crtn.o gcrt1.o"
202       ;;
203   esac
204   ;;
205 *-*-vxworks*)
206   ;;
207 *-*-elf)
208   ;;
209 esac
210
211 case ${host} in
212 *-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2* | \
213   alpha*-dec-osf5.1*)
214   enable_execute_stack=enable-execute-stack-mprotect.c
215   ;;
216 i[34567]86-*-mingw* | x86_64-*-mingw*)
217   enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
218   ;;
219 *)
220   enable_execute_stack=enable-execute-stack-empty.c;
221   ;;
222 esac
223
224 case ${host} in
225 alpha*-*-linux*)
226         tmake_file="${tmake_file} alpha/t-crtfm"
227         extra_parts="$extra_parts crtfastmath.o"
228         md_unwind_header=alpha/linux-unwind.h
229         ;;
230 alpha*-*-freebsd*)
231         ;;
232 alpha*-*-netbsd*)
233         ;;
234 alpha*-*-openbsd*)
235         ;;
236 alpha*-dec-osf5.1*)
237         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee alpha/t-crtfm t-slibgcc alpha/t-slibgcc-osf"
238         case ${target_thread_file} in
239           posix)
240             tmake_file="${tmake_file} alpha/t-osf-pthread"
241             ;;
242         esac
243         extra_parts="${extra_parts} qrnnd.o crtfastmath.o gthr-posix.o"
244         md_unwind_header=alpha/osf5-unwind.h
245         ;;
246 alpha64-dec-*vms*)
247         tmake_file="vms/t-vms vms/t-vms64 alpha/t-vms"
248         md_unwind_header=alpha/vms-unwind.h
249         ;;
250 alpha*-dec-*vms*)
251         tmake_file="vms/t-vms alpha/t-vms"
252         md_unwind_header=alpha/vms-unwind.h
253         ;;
254 arm-wrs-vxworks)
255         ;;
256 arm*-*-freebsd*)
257         ;;
258 arm*-*-netbsdelf*)
259         ;;
260 arm*-*-linux*)                  # ARM GNU/Linux with ELF
261         ;;
262 arm*-*-uclinux*)                # ARM ucLinux
263         ;;
264 arm*-*-ecos-elf)
265         ;;
266 arm*-*-eabi* | arm*-*-symbianelf* )
267         ;;
268 arm*-*-rtems*)
269         ;;
270 arm*-*-elf)
271         ;;
272 arm*-wince-pe*)
273         ;;
274 avr-*-rtems*)
275         ;;
276 avr-*-*)
277     # Make HImode functions for AVR
278     tmake_file=${cpu_type}/t-avr
279         ;;
280 bfin*-elf*)
281         ;;
282 bfin*-uclinux*)
283         md_unwind_header=bfin/linux-unwind.h
284         ;;
285 bfin*-linux-uclibc*)
286         # No need to build crtbeginT.o on uClibc systems.  Should probably
287         # be moved to the OS specific section above.
288         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
289         md_unwind_header=bfin/linux-unwind.h
290         ;;
291 bfin*-*)
292         ;;
293 crisv32-*-elf | crisv32-*-none | cris-*-elf | cris-*-none)
294         extra_parts="crtbegin.o crtend.o"
295         ;;
296 cris-*-linux* | crisv32-*-linux*)
297         ;;
298 fido-*-elf)
299         ;;
300 fr30-*-elf)
301         ;;
302 frv-*-elf)
303         ;;
304 frv-*-*linux*)
305         ;;
306 h8300-*-rtems*)
307         ;;
308 h8300-*-elf*)
309         ;;
310 hppa*64*-*-linux*)
311         ;;
312 hppa*-*-linux*)
313         md_unwind_header=pa/linux-unwind.h
314         ;;
315 hppa[12]*-*-hpux10*)
316         md_unwind_header=pa/hpux-unwind.h
317         ;;
318 hppa*64*-*-hpux11*)
319         md_unwind_header=pa/hpux-unwind.h
320         ;;
321 hppa[12]*-*-hpux11*)
322         md_unwind_header=pa/hpux-unwind.h
323         ;;
324 i[34567]86-*-darwin*)
325         ;;
326 x86_64-*-darwin*)
327         tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin"
328         ;;
329 i[34567]86-*-elf*)
330         ;;
331 x86_64-*-elf*)
332         ;;
333 i[34567]86-*-freebsd*)
334         tmake_file="${tmake_file} i386/t-freebsd"
335         ;;
336 x86_64-*-freebsd*)
337         tmake_file="${tmake_file} i386/t-freebsd"
338         ;;
339 i[34567]86-*-netbsdelf*)
340         ;;
341 x86_64-*-netbsd*)
342         ;;
343 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
344         ;;
345 i[34567]86-*-openbsd*)
346         ;;
347 i[34567]86-*-linux*)
348         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
349         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm t-dfprules"
350         md_unwind_header=i386/linux-unwind.h
351         ;;
352 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
353         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
354         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm t-dfprules"
355         ;;
356 x86_64-*-linux*)
357         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
358         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm t-dfprules"
359         md_unwind_header=i386/linux-unwind.h
360         ;;
361 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
362         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
363         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm t-dfprules"
364         ;;
365 i[34567]86-pc-msdosdjgpp*)
366         ;;
367 i[34567]86-*-lynxos*)
368         ;;
369 i[3456x]86-*-netware*)
370         case /${with_ld} in
371         */nwld)
372                 tmake_file="${tmake_file} i386/t-nwld"
373                 ;;
374         esac
375         ;;
376 i[34567]86-*-nto-qnx*)
377         ;;
378 i[34567]86-*-rtems*)
379         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
380         tmake_file="${tmake_file} t-crtin i386/t-softfp i386/t-crtstuff t-rtems"
381         ;;
382 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
383         tmake_file="$tmake_file i386/t-crtfm"
384         extra_parts="$extra_parts crtfastmath.o"
385         md_unwind_header=i386/sol2-unwind.h
386         ;;
387 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
388         ;;
389 i[34567]86-*-cygwin*)
390         extra_parts="crtbegin.o crtend.o crtfastmath.o"
391         tmake_file="i386/t-cygming i386/t-crtfm t-dfprules"
392         ;;
393 i[34567]86-*-mingw*)
394         extra_parts="crtbegin.o crtend.o crtfastmath.o"
395         tmake_file="i386/t-cygming i386/t-crtfm t-dfprules"
396         md_unwind_header=i386/w32-unwind.h
397         ;;
398 x86_64-*-mingw*)
399         tmake_file=t-dfprules
400         ;;
401 i[34567]86-*-interix3*)
402         ;;
403 ia64*-*-elf*)
404         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
405         tmake_file="ia64/t-ia64"
406         ;;
407 ia64*-*-freebsd*)
408         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
409         tmake_file="ia64/t-ia64"
410         ;;
411 ia64*-*-linux*)
412         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
413         tmake_file="ia64/t-ia64 t-softfp ia64/t-fprules-softfp ia64/t-softfp-compat"
414         md_unwind_header=ia64/linux-unwind.h
415         ;;
416 ia64*-*-hpux*)
417         ;;
418 ia64-hp-*vms*)
419         tmake_file="vms/t-vms vms/t-vms64 ia64/t-vms"
420         md_unwind_header=ia64/vms-unwind.h
421         ;;
422 iq2000*-*-elf*)
423         ;;
424 lm32-*-elf*|lm32-*-rtems*)
425         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
426         tmake_file="lm32/t-lm32 lm32/t-elf t-softfp"
427         ;;
428 lm32-*-uclinux*)
429         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
430         tmake_file="lm32/t-lm32 lm32/t-uclinux t-softfp"
431         ;;      
432 m32r-*-elf*|m32r-*-rtems*)
433         ;;
434 m32rle-*-elf*)
435         ;;
436 m32r-*-linux*)
437         ;;
438 m32rle-*-linux*)
439         ;;
440 m68k-*-elf*)
441         ;;
442 m68k*-*-netbsdelf*)
443         ;;
444 m68k*-*-openbsd*)
445         ;;
446 m68k-*-uclinux*)                # Motorola m68k/ColdFire running uClinux with uClibc
447         md_unwind_header=m68k/linux-unwind.h
448         ;;
449 m68k-*-linux*)                  # Motorola m68k's running GNU/Linux
450                                 # with ELF format using glibc 2
451                                 # aka the GNU/Linux C library 6.
452         md_unwind_header=m68k/linux-unwind.h
453         ;;
454 m68k-*-rtems*)
455         ;;
456 mcore-*-elf)
457         ;;
458 microblaze*-*-*)
459         tmake_file="microblaze/t-microblaze"
460         ;;
461 mips-sgi-irix6.5*)
462         tmake_file="mips/t-irix6 t-crtfm t-slibgcc mips/t-slibgcc-irix"
463         extra_parts="crtbegin.o crtend.o crtfastmath.o irix-crti.o irix-crtn.o"
464         md_unwind_header=mips/irix6-unwind.h
465         ;;
466 mips*-*-netbsd*)                        # NetBSD/mips, either endian.
467         ;;
468 mips64*-*-linux*)
469         extra_parts="$extra_parts crtfastmath.o"
470         tmake_file="{$tmake_file} t-crtfm"
471         md_unwind_header=mips/linux-unwind.h
472         ;;
473 mips*-*-linux*)                         # Linux MIPS, either endian.
474         extra_parts="$extra_parts crtfastmath.o"
475         tmake_file="{$tmake_file} t-crtfm"
476         md_unwind_header=mips/linux-unwind.h
477         ;;
478 mips*-*-openbsd*)
479         ;;
480 mipsisa32-*-elf* | mipsisa32el-*-elf*)
481         ;;
482 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
483         ;;
484 mipsisa64-*-elf* | mipsisa64el-*-elf*)
485         ;;
486 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
487         ;;
488 mipsisa64sr71k-*-elf*)
489         ;;
490 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
491         ;;
492 mips-*-elf* | mipsel-*-elf*)
493         ;;
494 mips64-*-elf* | mips64el-*-elf*)
495         ;;
496 mips64vr-*-elf* | mips64vrel-*-elf*)
497         ;;
498 mips64orion-*-elf* | mips64orionel-*-elf*)
499         ;;
500 mips*-*-rtems*)
501         ;;
502 mips-wrs-vxworks)
503         ;;
504 mipstx39-*-elf* | mipstx39el-*-elf*)
505         ;;
506 mmix-knuth-mmixware)
507         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
508         tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
509         ;;
510 mn10300-*-*)
511         ;;
512 moxie-*-*)
513         tmake_file="moxie/t-moxie moxie/t-moxie-softfp"
514         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
515         ;;
516 pdp11-*-*)
517         ;;
518 picochip-*-*)
519         ;;
520 powerpc-*-darwin*)
521         case ${host} in
522         *-*-darwin9* | *-*-darwin[12][0-9]*)
523           # libSystem contains unwind information for signal frames since
524           # Darwin 9.
525           ;;
526         *)
527           md_unwind_header=rs6000/darwin-unwind.h
528           ;;
529         esac
530         ;;
531 powerpc64-*-darwin*)
532         ;;
533 powerpc-*-freebsd*)
534         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-freebsd t-softfp"
535         ;;
536 powerpc-*-netbsd*)
537         ;;
538 powerpc-*-eabispe*)
539         tmake_file="${tmake_file} rs6000/t-ppccomm"
540         ;;
541 powerpc-*-eabisimaltivec*)
542         ;;
543 powerpc-*-eabisim*)
544         ;;
545 powerpc-*-elf*)
546         ;;
547 powerpc-*-eabialtivec*)
548         ;;
549 powerpc-*-eabi*)
550         tmake_file="${tmake_file} rs6000/t-ppccomm"
551         ;;
552 powerpc-*-rtems*)
553         ;;
554 powerpc-*-linux* | powerpc64-*-linux*)
555         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128 t-softfp t-dfprules"
556         md_unwind_header=rs6000/linux-unwind.h
557         ;;
558 powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
559         ;;
560 powerpc-*-lynxos*)
561         ;;
562 powerpcle-*-elf*)
563         ;;
564 powerpcle-*-eabisim*)
565         ;;
566 powerpcle-*-eabi*)
567         ;;
568 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
569         ;;
570 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
571         ;;
572 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
573         ;;
574 rx-*-elf)
575         extra_parts="crtbegin.o crtend.o"
576         tmake_file="rx/t-rx"
577         ;;
578 s390-*-linux*)
579         tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
580         md_unwind_header=s390/linux-unwind.h
581         ;;
582 s390x-*-linux*)
583         tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
584         md_unwind_header=s390/linux-unwind.h
585         ;;
586 s390x-ibm-tpf*)
587         tmake_file="${tmake_file} s390/t-crtstuff s390/t-tpf"
588         md_unwind_header=s390/tpf-unwind.h
589         ;;
590 score-*-elf)
591         ;;
592 sh-*-elf* | sh[12346l]*-*-elf* | \
593   sh-*-linux* | sh[2346lbe]*-*-linux* | \
594   sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
595    sh64-*-netbsd* | sh64l*-*-netbsd*)
596         case ${host} in
597         sh*-*-linux*)
598                 tmake_file="${tmake_file} sh/t-linux"
599                 md_unwind_header=sh/linux-unwind.h
600                 ;;
601         esac
602         ;;
603 sh-*-rtems*)
604         ;;
605 sh-wrs-vxworks)
606         ;;
607 sparc-*-netbsdelf*)
608         ;;
609 sparc64-*-openbsd*)
610         ;;
611 sparc-*-elf*)
612         case ${host} in
613         *-leon[3-9]*)
614                 ;;
615         *)
616                 tmake_file="sparc/t-softmul"
617                 ;;
618         esac
619         tmake_file="${tmake_file} sparc/t-softfp t-crtin t-crtfm"
620         extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o"
621         ;;
622 sparc-*-linux*)         # SPARC's running GNU/Linux, libc6
623         extra_parts="$extra_parts crtfastmath.o"
624         tmake_file="${tmake_file} t-crtfm"
625         md_unwind_header=sparc/linux-unwind.h
626         ;;
627 sparc-*-rtems* | sparc64-*-rtems* )
628         tmake_file="sparc/t-elf t-crtin t-crtfm t-rtems"
629         extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o"
630         ;;
631 sparc*-*-solaris2*)
632         tmake_file="$tmake_file t-crtfm"
633         extra_parts="$extra_parts crtfastmath.o"
634         md_unwind_header=sparc/sol2-unwind.h
635         ;;
636 sparc64-*-elf*)
637         tmake_file="${tmake_file} t-crtin t-crtfm"
638         extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o"
639         ;;
640 sparc-wrs-vxworks)
641         ;;
642 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
643         ;;
644 sparc64-*-linux*)               # 64-bit SPARC's running GNU/Linux
645         extra_parts="$extra_parts crtfastmath.o"
646         tmake_file="${tmake_file} t-crtfm"
647         md_unwind_header=sparc/linux-unwind.h
648         ;;
649 sparc64-*-netbsd*)
650         ;;
651 spu-*-elf*)
652         ;;
653 v850*-*-*)
654         ;;
655 vax-*-linux*)
656         ;;
657 vax-*-netbsdelf*)
658         ;;
659 vax-*-openbsd*)
660         ;;
661 xstormy16-*-elf)
662         ;;
663 xtensa*-*-elf*)
664         ;;
665 xtensa*-*-linux*)
666         md_unwind_header=xtensa/linux-unwind.h
667         ;;
668 am33_2.0-*-linux*)
669         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
670         ;;
671 m32c-*-elf*|m32c-*-rtems*)
672         ;;
673 mep*-*-*)
674         ;;
675 *)
676         echo "*** Configuration ${host} not supported" 1>&2
677         exit 1
678         ;;
679 esac
680
681 case ${host} in
682 i[34567]86-*-linux* | x86_64-*-linux* | \
683   i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | \
684   i[34567]86-*-gnu*)
685         tmake_file="${tmake_file} t-tls"
686         if test "$libgcc_cv_cfi" = "yes"; then
687                 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
688         fi
689         ;;
690 esac
691
692 case ${host} in
693 i[34567]86-*-darwin* | x86_64-*-darwin* | \
694   i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
695   i[34567]86-*-linux* | x86_64-*-linux* | \
696   i[34567]86-*-gnu* | \
697   i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
698   i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \
699   i[34567]86-*-freebsd* | x86_64-*-freebsd*)
700         if test "${host_address}" = 32; then
701                 tmake_file="${tmake_file} t-softfp i386/${host_address}/t-fprules-softfp"
702         fi
703         ;;
704 esac
705
706 case ${host} in
707 i[34567]86-*-linux* | x86_64-*-linux*)
708         # Provide backward binary compatibility for 64bit Linux/x86.
709         if test "${host_address}" = 64; then
710                 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
711         fi
712         ;;
713 esac