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