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