2014-01-20 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libgcc / config.host
blobbbe06555255502dd28fe96bbdd558e7249c6a638
1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify it under
7 #the terms of the GNU General Public License as published by the Free
8 #Software Foundation; either version 3, or (at your option) any later
9 #version.
11 #GCC is distributed in the hope that it will be useful, but WITHOUT
12 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 #for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING3.  If not see
18 #<http://www.gnu.org/licenses/>.
20 # This is the libgcc host-specific configuration file
21 # where a configuration type is mapped to different system-specific
22 # definitions and files.  This is invoked by the autoconf-generated
23 # configure script.  Putting it in a separate shell file lets us skip
24 # running autoconf when modifying host-specific information.
26 # This file bears an obvious resemblance to gcc/config.gcc.  The cases
27 # should be kept similar, to ease moving library-specific settings
28 # from config.gcc to this file.  That is also why tmake_file is
29 # left as tmake_file, rather than hmake_file, even though this library
30 # switches on ${host}.
32 # This file switches on the shell variable ${host}, and also uses the
33 # following shell variables:
35 #  with_*               Various variables as set by configure.
37 # This file sets the following shell variables for use by the
38 # autoconf-generated configure script:
40 #  asm_hidden_op        The assembler pseudo-op to use for hide
41 #                       lists for object files implemented in
42 #                       assembly (with -fvisibility=hidden for C).
43 #                       The default is ".hidden".
44 #  cpu_type             The name of the cpu, if different from the first
45 #                       chunk of the canonical host name.
46 #  enable_execute_stack The name of a source file implementing
47 #                       __enable_execute_stack.
48 #  extra_parts          List of extra object files that should be compiled
49 #                       for this target machine.  This may be overridden
50 #                       by setting EXTRA_PARTS in a tmake_file fragment.
51 #                       If either is set, EXTRA_PARTS and
52 #                       EXTRA_MULTILIB_PARTS inherited from the GCC
53 #                       subdirectory will be ignored.
54 #  md_unwind_header     The name of a header file defining
55 #                       MD_FALLBACK_FRAME_STATE_FOR.
56 #  sfp_machine_header   The name of a sfp-machine.h header file for soft-fp.
57 #                       Defaults to "$cpu_type/sfp-machine.h" if it exists,
58 #                       no-sfp-machine.h otherwise.
59 #  tmake_file           A list of machine-description-specific
60 #                       makefile fragments.
61 #  tm_defines           List of target macros to define for all compilations.
62 #  tm_file              A list of target macro files used only for code
63 #                       built for the target, not the host.  These files
64 #                       are relative to $srcdir/config and must not have
65 #                       the same names as files in $srcdir/../gcc/config.
66 #  unwind_header        The name of the header file declaring the unwind
67 #                       runtime interface routines.
69 asm_hidden_op=.hidden
70 enable_execute_stack=
71 extra_parts=
72 tmake_file=
73 tm_file=
74 tm_define=
75 md_unwind_header=no-unwind.h
76 unwind_header=unwind-generic.h
78 # Set default cpu_type so it can be updated in each machine entry.
79 cpu_type=`echo ${host} | sed 's/-.*$//'`
80 case ${host} in
81 m32c*-*-*)
82         cpu_type=m32c
83         tmake_file=t-fdpbit
84         ;;
85 aarch64*-*-*)
86         cpu_type=aarch64
87         ;;
88 alpha*-*-*)
89         cpu_type=alpha
90         ;;
91 am33_2.0-*-linux*)
92         cpu_type=mn10300
93         ;;
94 arc*-*-*)
95         cpu_type=arc
96         ;;
97 arm*-*-*)
98         cpu_type=arm
99         ;;
100 avr-*-*)
101         cpu_type=avr
102         ;;    
103 bfin*-*)
104         cpu_type=bfin
105         ;;
106 cr16-*-*)
107         ;;
108 crisv32-*-*)
109         cpu_type=cris
110         ;;
111 fido-*-*)
112         cpu_type=m68k
113         ;;
114 frv*)   cpu_type=frv
115         ;;
116 moxie*) cpu_type=moxie
117         ;;
118 i[34567]86-*-*)
119         cpu_type=i386
120         ;;
121 x86_64-*-*)
122         cpu_type=i386
123         ;;
124 ia64-*-*)
125         ;;
126 hppa*-*-*)
127         cpu_type=pa
128         ;;
129 lm32*-*-*)
130         cpu_type=lm32
131         ;;
132 m32r*-*-*)
133         cpu_type=m32r
134         ;;
135 m68k-*-*)
136         ;;
137 mep*-*-*)
138         ;;
139 microblaze*-*-*)
140         cpu_type=microblaze
141         ;;
142 mips*-*-*)
143         cpu_type=mips
144         tmake_file=mips/t-mips
145         ;;
146 nds32*-*)
147         cpu_type=nds32
148         ;;
149 nios2*-*-*)
150         cpu_type=nios2
151         ;;
152 powerpc*-*-*)
153         cpu_type=rs6000
154         ;;
155 rs6000*-*-*)
156         ;;
157 score*-*-*)
158         cpu_type=score
159         ;;
160 sparc64*-*-*)
161         cpu_type=sparc
162         ;;
163 sparc*-*-*)
164         cpu_type=sparc
165         ;;
166 spu*-*-*)
167         cpu_type=spu
168         ;;
169 s390*-*-*)
170         cpu_type=s390
171         ;;
172 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
173 sh[123456789lbe]*-*-*)
174         cpu_type=sh
175         ;;
176 v850*-*-*)
177         cpu_type=v850
178         ;;
179 tic6x-*-*)
180         cpu_type=c6x
181         ;;
182 esac
184 # Common parts for widely ported systems.
185 case ${host} in
186 *-*-darwin*)
187   asm_hidden_op=.private_extern
188   tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin"
189   extra_parts="crt3.o crttms.o crttme.o"
190   ;;
191 *-*-freebsd*)
192   # This is the generic ELF configuration of FreeBSD.  Later
193   # machine-specific sections may refine and add to this
194   # configuration.
195   tmake_file="$tmake_file t-freebsd t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
196   extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
197   case ${target_thread_file} in
198     posix)
199       tmake_file="${tmake_file} t-freebsd-thread"
200       # Before 5.0, FreeBSD can't bind shared libraries to -lc
201       # when "optionally" threaded via weak pthread_* checks.
202       case ${host} in
203         *-*-freebsd[34] | *-*-freebsd[34].*)
204           tmake_file="${tmake_file} t-slibgcc-nolc-override"
205           ;;
206       esac
207       ;;
208   esac
209   ;;
210 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
211   tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-linux"
212   extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
213   ;;
214 *-*-lynxos*)
215   tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
216   extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
217   ;;
218 *-*-netbsd*)
219   tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
220   # NetBSD 1.7 and later are set up to use GCC's crtstuff for
221   # ELF configurations.  We will clear extra_parts in the
222   # a.out configurations.
223   case ${host} in
224     *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
225       extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
226       ;;
227   esac
228   ;;
229 *-*-openbsd*)
230   tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
231   case ${target_thread_file} in
232     posix)
233       tmake_file="$tmake_file t-openbsd-thread"
234       ;;
235   esac
236   ;;
237 *-*-rtems*)
238   tmake_file="$tmake_file t-rtems"
239   extra_parts="crtbegin.o crtend.o"
240   ;;
241 *-*-solaris2*)
242   # Unless linker support and dl_iterate_phdr are present,
243   # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
244   tmake_file="$tmake_file t-sol2 t-eh-dw2-dip t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
245   if test $with_gnu_ld = yes; then
246     tmake_file="$tmake_file t-slibgcc-gld"
247   else
248     tmake_file="$tmake_file t-slibgcc-sld"
249   fi
250   # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
251   tmake_file="$tmake_file $cpu_type/t-sol2"
252   extra_parts="gmon.o crtbegin.o crtend.o"
253   case ${host} in
254     i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
255       # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
256       # part of the base system.
257       ;;
258     sparc*-*-solaris2.1[0-9]*)
259       # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
260       extra_parts="$extra_parts crt1.o gcrt1.o"
261       ;;
262     *)
263       extra_parts="$extra_parts crt1.o crti.o crtn.o gcrt1.o"
264       ;;
265   esac
266   ;;
267 *-*-uclinux*)
268   extra_parts="crtbegin.o crtend.o"
269   ;;
270 *-*-*vms*)
271   tmake_file="vms/t-vms"
272   extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
273   ;;
274 *-*-vxworks*)
275   tmake_file=t-vxworks
276   ;;
277 *-*-elf)
278   extra_parts="crtbegin.o crtend.o"
279   ;;
280 esac
282 case ${host} in
283 *-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2*)
284   enable_execute_stack=enable-execute-stack-mprotect.c
285   ;;
286 i[34567]86-*-mingw* | x86_64-*-mingw*)
287   enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
288   ;;
290   enable_execute_stack=enable-execute-stack-empty.c;
291   ;;
292 esac
294 case ${host} in
295 aarch64*-*-elf)
296         extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
297         tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
298         tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
299         ;;
300 aarch64*-*-linux*)
301         md_unwind_header=aarch64/linux-unwind.h
302         tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
303         tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
304         ;;
305 alpha*-*-linux*)
306         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
307         extra_parts="$extra_parts crtfastmath.o"
308         md_unwind_header=alpha/linux-unwind.h
309         ;;
310 alpha*-*-freebsd*)
311         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
312         extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
313         ;;
314 alpha*-*-netbsd*)
315         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
316         ;;
317 alpha*-*-openbsd*)
318         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
319         ;;
320 alpha64-dec-*vms*)
321         tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
322         extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
323         md_unwind_header=alpha/vms-unwind.h
324         ;;
325 alpha*-dec-*vms*)
326         tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
327         extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
328         md_unwind_header=alpha/vms-unwind.h
329         ;;
330 arc*-*-elf*)
331         tmake_file="arc/t-arc-newlib arc/t-arc"
332         extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o libgmon.a crtg.o crtgend.o"
333         ;;
334 arc*-*-linux-uclibc*)
335         tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc700-uClibc arc/t-arc"
336         extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o libgmon.a crtg.o crtgend.o"
337         ;;
338 arm-wrs-vxworks)
339         tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
340         extra_parts="$extra_parts crti.o crtn.o"
341         ;;
342 arm*-*-netbsdelf*)
343         tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover"
344         ;;
345 arm*-*-linux*)                  # ARM GNU/Linux with ELF
346         tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix"
347         tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
348         tm_file="$tm_file arm/bpabi-lib.h"
349         unwind_header=config/arm/unwind-arm.h
350         tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
351         ;;
352 arm*-*-uclinux*)                # ARM ucLinux
353         tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
354         tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
355         tmake_file="${tmake_file} arm/t-bpabi"
356         tm_file="$tm_file arm/bpabi-lib.h"
357         unwind_header=config/arm/unwind-arm.h
358         extra_parts="$extra_parts crti.o crtn.o"
359         ;;
360 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
361         tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
362         tm_file="$tm_file arm/bpabi-lib.h"
363         case ${host} in
364         arm*-*-eabi* | arm*-*-rtems*)
365           tmake_file="${tmake_file} arm/t-bpabi"
366           extra_parts="crtbegin.o crtend.o crti.o crtn.o"
367           ;;
368         arm*-*-symbianelf*)
369           tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
370           tm_file="$tm_file arm/symbian-lib.h"
371           # Symbian OS provides its own startup code.
372           ;;
373         esac
374         tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
375         unwind_header=config/arm/unwind-arm.h
376         ;;
377 avr-*-rtems*)
378         tmake_file="$tmake_file avr/t-avr avr/t-rtems t-fpbit"
379         tm_file="$tm_file avr/avr-lib.h"
380         # Don't use default.
381         extra_parts=
382         ;;
383 avr-*-*)
384         # Make HImode functions for AVR
385         tmake_file="${cpu_type}/t-avr t-fpbit"
386         if test x${with_avrlibc} != xno; then
387             tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
388         fi
389         tm_file="$tm_file avr/avr-lib.h"
390         ;;
391 bfin*-elf*)
392         tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
393         extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
394         ;;
395 bfin*-uclinux*)
396         tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
397         extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
398         md_unwind_header=bfin/linux-unwind.h
399         ;;
400 bfin*-linux-uclibc*)
401         tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
402         # No need to build crtbeginT.o on uClibc systems.  Should probably
403         # be moved to the OS specific section above.
404         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
405         md_unwind_header=bfin/linux-unwind.h
406         ;;
407 bfin*-rtems*)
408         tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
409         extra_parts="$extra_parts crti.o crtn.o"
410         ;;
411 bfin*-*)
412         tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
413         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
414         ;;
415 cr16-*-elf)
416         tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
417         extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
418         ;;
419 crisv32-*-elf)
420         tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
421         ;;
422 cris-*-elf)
423         tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
424         ;;
425 cris-*-linux* | crisv32-*-linux*)
426         tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
427         ;;
428 epiphany-*-elf*)
429         tmake_file="epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
430         extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
431         ;;
432 fr30-*-elf)
433         tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
434         extra_parts="$extra_parts crti.o crtn.o"
435         ;;
436 frv-*-elf)
437         tmake_file="$tmake_file frv/t-frv t-fdpbit"
438         tm_file="$tm_file frv/frv-abi.h"
439         # Don't use crtbegin.o, crtend.o.
440         extra_parts="frvbegin.o frvend.o"
441         ;;
442 frv-*-*linux*)
443         tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
444         tm_file="$tm_file frv/frv-abi.h"
445         ;;
446 h8300-*-rtems*)
447         tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
448         tm_file="$tm_file h8300/h8300-lib.h"
449         extra_parts="$extra_parts crti.o crtn.o"
450         ;;
451 h8300-*-elf*)
452         tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
453         tm_file="$tm_file h8300/h8300-lib.h"
454         extra_parts="$extra_parts crti.o crtn.o"
455         ;;
456 hppa*64*-*-linux*)
457         tmake_file="$tmake_file pa/t-linux pa/t-linux64"
458         extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
459         ;;
460 hppa*-*-linux*)
461         tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
462         # Set the libgcc version number
463         if test x$enable_sjlj_exceptions = xyes; then
464             tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
465         else
466             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
467         fi
468         extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
469         md_unwind_header=pa/linux-unwind.h
470         ;;
471 hppa[12]*-*-hpux10*)
472         tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
473         # Set the libgcc version number
474         if test x$enable_sjlj_exceptions = xyes; then
475             tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
476         else
477             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
478         fi
479         tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
480         md_unwind_header=pa/hpux-unwind.h
481         ;;
482 hppa*64*-*-hpux11*)
483         tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
484         # Set the libgcc version number
485         if test x$enable_sjlj_exceptions = xyes; then
486             tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
487         else
488             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
489         fi
490         tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
491         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
492                      libgcc_stub.a"
493         md_unwind_header=pa/hpux-unwind.h
494         ;;
495 hppa[12]*-*-hpux11*)
496         tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
497         # Set the libgcc version number
498         if test x$enable_sjlj_exceptions = xyes; then
499             tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
500         else
501             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
502         fi
503         tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
504         extra_parts="libgcc_stub.a"
505         md_unwind_header=pa/hpux-unwind.h
506         ;;
507 hppa*-*-openbsd*)
508         tmake_file="$tmake_file pa/t-openbsd"
509         ;;
510 i[34567]86-*-darwin*)
511         tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
512         tm_file="$tm_file i386/darwin-lib.h"
513         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
514         ;;
515 x86_64-*-darwin*)
516         tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
517         tm_file="$tm_file i386/darwin-lib.h"
518         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
519         ;;
520 i[34567]86-*-elf*)
521         tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
522         ;;
523 x86_64-*-elf*)
524         tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
525         ;;
526 i[34567]86-*-freebsd*)
527         tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
528         ;;
529 x86_64-*-freebsd*)
530         tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
531         ;;
532 i[34567]86-*-netbsdelf*)
533         ;;
534 x86_64-*-netbsd*)
535         tmake_file="${tmake_file} i386/t-crtstuff"
536         ;;
537 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
538         ;;
539 i[34567]86-*-openbsd*)
540         ;;
541 x86_64-*-openbsd*)
542         ;;
543 i[34567]86-*-linux*)
544         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
545         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
546         md_unwind_header=i386/linux-unwind.h
547         ;;
548 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
549         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
550         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
551         ;;
552 x86_64-*-linux*)
553         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
554         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
555         md_unwind_header=i386/linux-unwind.h
556         ;;
557 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
558         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
559         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
560         ;;
561 i[34567]86-pc-msdosdjgpp*)
562         ;;
563 i[34567]86-*-lynxos*)
564         ;;
565 i[34567]86-*-nto-qnx*)
566         tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
567         extra_parts=crtbegin.o
568         ;;
569 i[34567]86-*-rtems*)
570         tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdf t-softfp"
571         extra_parts="$extra_parts crti.o crtn.o"
572         ;;
573 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
574         tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
575         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
576         md_unwind_header=i386/sol2-unwind.h
577         ;;
578 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
579         ;;
580 i[34567]86-*-cygwin*)
581         extra_parts="crtbegin.o crtend.o crtfastmath.o"
582         # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
583         if test x$enable_sjlj_exceptions = xyes; then
584                 tmake_eh_file="i386/t-sjlj-eh"
585         else
586                 tmake_eh_file="i386/t-dw2-eh"
587         fi
588         # Shared libgcc DLL install dir depends on cross/native build.
589         if test x${build} = x${host} ; then
590                 tmake_dlldir_file="i386/t-dlldir"
591         else
592                 tmake_dlldir_file="i386/t-dlldir-x"
593         fi
594         tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin i386/t-crtfm i386/t-chkstk t-dfprules"
595         ;;
596 x86_64-*-cygwin*)
597         extra_parts="crtbegin.o crtend.o crtfastmath.o"
598         # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
599         if test x$enable_sjlj_exceptions = xyes; then
600                 tmake_eh_file="i386/t-sjlj-eh"
601         else
602                 tmake_eh_file="i386/t-seh-eh"
603         fi
604         # Shared libgcc DLL install dir depends on cross/native build.
605         if test x${build} = x${host} ; then
606                 tmake_dlldir_file="i386/t-dlldir"
607         else
608                 tmake_dlldir_file="i386/t-dlldir-x"
609         fi
610         # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
611         tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin i386/t-crtfm t-dfprules i386/t-chkstk"
612         ;;
613 i[34567]86-*-mingw*)
614         extra_parts="crtbegin.o crtend.o crtfastmath.o"
615         case ${target_thread_file} in
616           win32)
617             tmake_file="$tmake_file i386/t-gthr-win32"
618             ;;
619           posix)
620             tmake_file="i386/t-mingw-pthread $tmake_file"
621             ;;
622         esac
623         # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
624         if test x$enable_sjlj_exceptions = xyes; then
625                 tmake_eh_file="i386/t-sjlj-eh"
626         else
627                 tmake_eh_file="i386/t-dw2-eh"
628                 md_unwind_header=i386/w32-unwind.h
629         fi
630         # Shared libgcc DLL install dir depends on cross/native build.
631         if test x${build} = x${host} ; then
632                 tmake_dlldir_file="i386/t-dlldir"
633         else
634                 tmake_dlldir_file="i386/t-dlldir-x"
635         fi
636         tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 i386/t-crtfm i386/t-chkstk t-dfprules"
637         ;;
638 x86_64-*-mingw*)
639         case ${target_thread_file} in
640           win32)
641             tmake_file="$tmake_file i386/t-gthr-win32"
642             ;;
643           posix)
644             tmake_file="i386/t-mingw-pthread $tmake_file"
645             ;;
646         esac
647         # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
648         if test x$enable_sjlj_exceptions = xyes; then
649                 tmake_eh_file="i386/t-sjlj-eh"
650         else
651                 tmake_eh_file="i386/t-seh-eh"
652         fi
653         # Shared libgcc DLL install dir depends on cross/native build.
654         if test x${build} = x${host} ; then
655                 tmake_dlldir_file="i386/t-dlldir"
656         else
657                 tmake_dlldir_file="i386/t-dlldir-x"
658         fi
659         tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-mingw32 t-dfprules i386/t-crtfm i386/t-chkstk"
660         extra_parts="$extra_parts crtfastmath.o"
661         ;;
662 i[34567]86-*-interix[3-9]*)
663         tmake_file="$tmake_file i386/t-interix i386/t-chkstk"
664         ;;
665 ia64*-*-elf*)
666         extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
667         tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
668         ;;
669 ia64*-*-freebsd*)
670         extra_parts="$extra_parts crtfastmath.o"
671         tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
672         ;;
673 ia64*-*-linux*)
674         # Don't use crtbeginT.o from *-*-linux* default.
675         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
676         tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat ia64/t-eh-ia64 t-libunwind ia64/t-linux"
677         if test x$with_system_libunwind != xyes ; then
678                 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
679         fi
680         md_unwind_header=ia64/linux-unwind.h
681         ;;
682 ia64*-*-hpux*)
683         tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
684         ;;
685 ia64-hp-*vms*)
686         tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms"
687         extra_parts="$extra_parts crtinitS.o"
688         md_unwind_header=ia64/vms-unwind.h
689         ;;
690 iq2000*-*-elf*)
691         tmake_file="iq2000/t-iq2000 t-fdpbit"
692         # Don't use default.
693         extra_parts=
694         ;;
695 lm32-*-elf*)
696         extra_parts="$extra_parts crti.o crtn.o"
697         tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
698         ;;
699 lm32-*-rtems*)
700         tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
701         extra_parts="$extra_parts crti.o crtn.o"
702         ;;
703 lm32-*-uclinux*)
704         extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
705         tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
706         ;;      
707 m32r-*-elf*)
708         tmake_file=t-fdpbit
709         ;;
710 m32r-*-rtems*)
711         tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
712         extra_parts="$extra_parts crtinit.o crtfini.o"
713         ;;
714 m32rle-*-elf*)
715         tmake_file=t-fdpbit
716         ;;
717 m32r-*-linux*)
718         tmake_file="$tmake_file m32r/t-linux t-fdpbit"
719         ;;
720 m32rle-*-linux*)
721         tmake_file="$tmake_file m32r/t-linux t-fdpbit"
722         ;;
723 m68k-*-elf* | fido-*-elf)
724         tmake_file="$tmake_file m68k/t-floatlib"
725         ;;
726 m68k*-*-netbsdelf*)
727         ;;
728 m68k*-*-openbsd*)
729         ;;
730 m68k-*-uclinux*)        # Motorola m68k/ColdFire running uClinux with uClibc
731         tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
732         md_unwind_header=m68k/linux-unwind.h
733         ;;
734 m68k-*-linux*)                  # Motorola m68k's running GNU/Linux
735                                 # with ELF format using glibc 2
736                                 # aka the GNU/Linux C library 6.
737         tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
738         # If not configured with --enable-sjlj-exceptions, bump the
739         # libgcc version number.
740         if test x$enable_sjlj_exceptions != xyes; then
741             tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
742         fi
743         md_unwind_header=m68k/linux-unwind.h
744         ;;
745 m68k-*-rtems*)
746         tmake_file="$tmake_file m68k/t-floatlib"
747         extra_parts="$extra_parts crti.o crtn.o"
748         ;;
749 mcore-*-elf)
750         tmake_file="mcore/t-mcore t-fdpbit"
751         extra_parts="$extra_parts crti.o crtn.o"
752         ;;
753 microblaze*-linux*)
754         tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
755         ;;
756 microblaze*-*-elf)
757         tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
758         extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
759         ;;
760 microblaze*-*-rtems*)
761         tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
762         extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
763         ;;
764 mips*-*-netbsd*)                        # NetBSD/mips, either endian.
765         ;;
766 mips*-*-linux*)                         # Linux MIPS, either endian.
767         extra_parts="$extra_parts crtfastmath.o"
768         tmake_file="${tmake_file} t-crtfm"
769         case ${host} in
770           mips64r5900* | mipsr5900*)
771             # The MIPS16 support code uses floating point
772             # instructions that are not supported on r5900.
773             ;;
774           *)
775             tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
776             ;;
777         esac
778         md_unwind_header=mips/linux-unwind.h
779         if test "${ac_cv_sizeof_long_double}" = 16; then
780                 tmake_file="${tmake_file} mips/t-tpbit"
781         fi
782         ;;
783 mips*-sde-elf*)
784         tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
785         case "${with_newlib}" in
786           yes)
787             # newlib / libgloss.
788             ;;
789           *)
790             # MIPS toolkit libraries.
791             tmake_file="$tmake_file mips/t-sdemtk"
792             ;;
793         esac
794         extra_parts="$extra_parts crti.o crtn.o"
795         ;;
796 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
797 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
798 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
799 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
800         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
801         extra_parts="$extra_parts crti.o crtn.o"
802         ;;
803 mipsisa64sr71k-*-elf*)
804         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
805         extra_parts="$extra_parts crti.o crtn.o"
806         ;;
807 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
808         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
809         extra_parts="$extra_parts crti.o crtn.o"
810         ;;
811 mips-*-elf* | mipsel-*-elf*)
812         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
813         extra_parts="$extra_parts crti.o crtn.o"
814         ;;
815 mipsr5900-*-elf* | mipsr5900el-*-elf*)
816         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
817         extra_parts="$extra_parts crti.o crtn.o"
818         ;;
819 mips64-*-elf* | mips64el-*-elf*)
820         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
821         extra_parts="$extra_parts crti.o crtn.o"
822         ;;
823 mips64r5900-*-elf* | mips64r5900el-*-elf*)
824         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
825         extra_parts="$extra_parts crti.o crtn.o"
826         ;;
827 mips64vr-*-elf* | mips64vrel-*-elf*)
828         tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
829         extra_parts="$extra_parts crti.o crtn.o"
830         ;;
831 mips64orion-*-elf* | mips64orionel-*-elf*)
832         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
833         extra_parts="$extra_parts crti.o crtn.o"
834         ;;
835 mips*-*-rtems*)
836         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
837         extra_parts="$extra_parts crti.o crtn.o"
838         ;;
839 mips-wrs-vxworks)
840         ;;
841 mipstx39-*-elf* | mipstx39el-*-elf*)
842         tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
843         ;;
844 mmix-knuth-mmixware)
845         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
846         tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
847         ;;
848 mn10300-*-*)
849         tmake_file=t-fdpbit
850         ;;
851 moxie-*-elf | moxie-*-uclinux*)
852         tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
853         extra_parts="$extra_parts crti.o crtn.o"
854         ;;
855 moxie-*-rtems*)
856         tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
857         # Don't use default.
858         extra_parts=
859         ;;
860 msp430*-*-elf)
861         tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
862         ;;
863 nds32*-elf*)
864         # Basic makefile fragment and extra_parts for crt stuff.
865         # We also append c-isr library implementation.
866         tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
867         extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
868         # Append library definition makefile fragment according to --with-nds32-lib=X setting.
869         case "${with_nds32_lib}" in
870         "" | newlib)
871                 # Append library definition makefile fragment t-nds32-newlib.
872                 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
873                 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
874                 ;;
875         mculib)
876                 # Append library definition makefile fragment t-nds32-mculib.
877                 # The software floating point library is included in mculib.
878                 tmake_file="${tmake_file} nds32/t-nds32-mculib"
879                 ;;
880         *)
881                 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
882                 exit 1
883                 ;;
884         esac
885         ;;
886 nios2-*-linux*)
887         tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
888         extra_parts="$extra_parts crti.o crtn.o"
889         md_unwind_header=nios2/linux-unwind.h
890         ;;
891 nios2-*-*)
892         tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
893         extra_parts="$extra_parts crti.o crtn.o"
894         ;;
895 pdp11-*-*)
896         tmake_file="pdp11/t-pdp11 t-fdpbit"
897         ;;
898 picochip-*-*)
899         tmake_file="picochip/t-picochip t-fpbit"
900         ;;
901 powerpc-*-darwin*)
902         case ${host} in
903         *-*-darwin9* | *-*-darwin[12][0-9]*)
904           # libSystem contains unwind information for signal frames since
905           # Darwin 9.
906           ;;
907         *)
908           md_unwind_header=rs6000/darwin-unwind.h
909           ;;
910         esac
911         tmake_file="$tmake_file rs6000/t-ibm-ldouble"
912         extra_parts="$extra_parts crt2.o"
913         ;;
914 powerpc64-*-darwin*)
915         tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
916         extra_parts="$extra_parts crt2.o"
917         ;;
918 powerpc*-*-freebsd*)
919         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
920         extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
921         case ${host} in
922         powerpc64*)
923           tmake_file="${tmake_file} rs6000/t-freebsd64"
924           md_unwind_header=rs6000/freebsd-unwind.h
925           ;;
926         esac
927         ;;
928 powerpc-*-netbsd*)
929         tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
930         ;;
931 powerpc-*-eabispe*)
932         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
933         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
934         ;;
935 powerpc-*-eabisimaltivec*)
936         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
937         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
938         ;;
939 powerpc-*-eabisim*)
940         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
941         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
942         ;;
943 powerpc-*-elf*)
944         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
945         extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
946         ;;
947 powerpc-*-eabialtivec*)
948         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
949         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
950         ;;
951 powerpc-xilinx-eabi*)
952         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
953         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
954         ;;
955 powerpc-*-eabi*)
956         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
957         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
958         ;;
959 powerpc-*-rtems*)
960         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
961         extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
962         ;;
963 powerpc*-*-linux*)
964         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-linux t-softfp-sfdf t-softfp-excl t-dfprules rs6000/t-ppc64-fp t-softfp t-slibgcc-libgcc"
965         extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
966         md_unwind_header=rs6000/linux-unwind.h
967         ;;
968 powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
969         tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
970         ;;
971 powerpc-*-lynxos*)
972         tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
973         ;;
974 powerpcle-*-elf*)
975         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
976         extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
977         ;;
978 powerpcle-*-eabisim*)
979         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
980         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
981         ;;
982 powerpcle-*-eabi*)
983         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
984         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
985         ;;
986 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
987         md_unwind_header=rs6000/aix-unwind.h
988         tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
989         ;;
990 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
991         md_unwind_header=rs6000/aix-unwind.h
992         tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
993         ;;
994 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
995         md_unwind_header=rs6000/aix-unwind.h
996         tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
997         extra_parts="crtcxa.o crtcxa_s.o"
998         ;;
999 rl78-*-elf)
1000         tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1001         ;;
1002 rx-*-elf)
1003         tmake_file="rx/t-rx t-fdpbit"
1004         tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1005         ;;
1006 s390-*-linux*)
1007         tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
1008         md_unwind_header=s390/linux-unwind.h
1009         ;;
1010 s390x-*-linux*)
1011         tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
1012         md_unwind_header=s390/linux-unwind.h
1013         ;;
1014 s390x-ibm-tpf*)
1015         tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
1016         extra_parts="crtbeginS.o crtendS.o"
1017         md_unwind_header=s390/tpf-unwind.h
1018         ;;
1019 score-*-elf)
1020         tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp"
1021         extra_parts="$extra_parts crti.o crtn.o"
1022         ;;
1023 sh-*-elf* | sh[12346l]*-*-elf*)
1024         tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1025         extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1026                 libic_invalidate_array_4-100.a \
1027                 libic_invalidate_array_4-200.a \
1028                 libic_invalidate_array_4a.a \
1029                 libgcc-Os-4-200.a libgcc-4-300.a"
1030         case ${host} in sh64*-*-*)
1031                 tmake_file="$tmake_file sh/t-sh64"
1032                 ;;
1033         esac
1034         case ${host} in
1035         sh*-superh-elf)
1036                 tmake_file="$tmake_file sh/t-superh"
1037                 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1038                 ;;
1039         esac
1040         ;;
1041 sh-*-linux* | sh[2346lbe]*-*-linux*)
1042         tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1043         case ${host} in sh64*-*-linux*)
1044                 tmake_file="$tmake_file sh/t-sh64"
1045                 ;;
1046         esac
1047         md_unwind_header=sh/linux-unwind.h
1048         ;;
1049 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1050   sh64-*-netbsd* | sh64l*-*-netbsd*)
1051         tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1052         case ${host} in
1053         sh5*-*-netbsd* | sh64*-netbsd*)
1054                 tmake_file="$tmake_file sh/t-sh64"
1055                 ;;
1056         esac
1057         # NetBSD's C library includes a fast software FP library that
1058         # has support for setting/setting the rounding mode, exception
1059         # mask, etc.  Therefore, we don't want to include software FP
1060         # in libgcc.
1061         ;;
1062 sh-*-rtems*)
1063         tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1064         extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1065                 libic_invalidate_array_4-100.a \
1066                 libic_invalidate_array_4-200.a \
1067                 libic_invalidate_array_4a.a \
1068                 libgcc-Os-4-200.a libgcc-4-300.a"
1069         ;;
1070 sh-wrs-vxworks)
1071         tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1072         ;;
1073 sparc-*-netbsdelf*)
1074         ;;
1075 sparc64-*-openbsd*)
1076         ;;
1077 sparc-*-elf*)
1078         case ${host} in
1079         *-leon[3-9]*)
1080                 ;;
1081         *)
1082                 tmake_file="sparc/t-softmul"
1083                 ;;
1084         esac
1085         tmake_file="${tmake_file} t-fdpbit t-crtfm"
1086         extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1087         ;;
1088 sparc-*-linux*)         # SPARC's running GNU/Linux, libc6
1089         tmake_file="${tmake_file} t-crtfm"
1090         if test "${host_address}" = 64; then
1091                 tmake_file="$tmake_file sparc/t-linux64"
1092         fi
1093         case ${host} in
1094         *-leon*)
1095                 tmake_file="${tmake_file} t-fdpbit"
1096                 ;;
1097         *)
1098                 tmake_file="${tmake_file} sparc/t-linux"
1099                 ;;
1100         esac
1101         case ${host} in
1102         *-leon[3-9]*)
1103                 ;;
1104         *)
1105                 if test "${host_address}" = 32; then
1106                         tmake_file="$tmake_file sparc/t-softmul"
1107                 fi
1108                 ;;
1109         esac
1110         extra_parts="$extra_parts crtfastmath.o"
1111         md_unwind_header=sparc/linux-unwind.h
1112         ;;
1113 sparc-*-rtems*)
1114         tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1115         extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1116         ;;
1117 sparc*-*-solaris2*)
1118         tmake_file="$tmake_file t-crtfm"
1119         extra_parts="$extra_parts crtfastmath.o"
1120         md_unwind_header=sparc/sol2-unwind.h
1121         ;;
1122 sparc64-*-elf*)
1123         tmake_file="${tmake_file} t-crtfm"
1124         extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1125         ;;
1126 sparc64-*-rtems*)
1127         tmake_file="$tmake_file t-crtfm"
1128         extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1129         ;;
1130 sparc-wrs-vxworks)
1131         ;;
1132 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1133         tmake_file="$tmake_file t-crtfm"
1134         extra_parts="$extra_parts crtfastmath.o"
1135         ;;
1136 sparc64-*-linux*)               # 64-bit SPARC's running GNU/Linux
1137         extra_parts="$extra_parts crtfastmath.o"
1138         tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1139         if test "${host_address}" = 64; then
1140                 tmake_file="${tmake_file} sparc/t-linux64"
1141         fi
1142         if test "${host_address}" = 32; then
1143                 tmake_file="${tmake_file} sparc/t-softmul"
1144         fi
1145         md_unwind_header=sparc/linux-unwind.h
1146         ;;
1147 sparc64-*-netbsd*)
1148         ;;
1149 spu-*-elf*)
1150         tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
1151         extra_parts="$extra_parts \
1152                 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1153                 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1154                 libgcc_cache64k.a libgcc_cache128k.a"
1155         ;;
1156 tic6x-*-uclinux)
1157         tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1158                 c6x/t-elf  c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1159                 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1160         tm_file="$tm_file c6x/c6x-abi.h"
1161         extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1162         unwind_header=config/c6x/unwind-c6x.h
1163         ;;
1164 tic6x-*-elf)
1165         tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1166         tm_file="$tm_file c6x/c6x-abi.h"
1167         extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1168         unwind_header=config/c6x/unwind-c6x.h
1169         ;;
1170 tilegx-*-linux*)
1171         tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf tilegx/t-softfp t-softfp tilegx/t-tilegx"
1172         md_unwind_header=tilepro/linux-unwind.h
1173         ;;
1174 tilepro-*-linux*)
1175         tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro"
1176         md_unwind_header=tilepro/linux-unwind.h
1177         ;;
1178 v850*-*-*)
1179         tmake_file="v850/t-v850 t-fdpbit"
1180         ;;
1181 vax-*-linux*)
1182         tmake_file="$tmake_file vax/t-linux"
1183         ;;
1184 vax-*-netbsdelf*)
1185         ;;
1186 vax-*-openbsd*)
1187         ;;
1188 xstormy16-*-elf)
1189         tmake_file="stormy16/t-stormy16 t-fdpbit"
1190         ;;
1191 xtensa*-*-elf*)
1192         tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1193         extra_parts="$extra_parts crti.o crtn.o"
1194         ;;
1195 xtensa*-*-linux*)
1196         tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux"
1197         md_unwind_header=xtensa/linux-unwind.h
1198         ;;
1199 am33_2.0-*-linux*)
1200         # Don't need crtbeginT.o from *-*-linux* default.
1201         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1202         tmake_file="$tmake_file t-fdpbit"
1203         ;;
1204 m32c-*-elf*|m32c-*-rtems*)
1205         tmake_file="$tmake_file m32c/t-m32c"
1206         ;;
1207 mep*-*-*)
1208         tmake_file="mep/t-mep t-fdpbit"
1209         extra_parts="crtbegin.o crtend.o"
1210         ;;
1212         echo "*** Configuration ${host} not supported" 1>&2
1213         exit 1
1214         ;;
1215 esac
1217 case ${host} in
1218 i[34567]86-*-* | x86_64-*-*)
1219         tmake_file="${tmake_file} i386/t-cpuinfo"
1220         ;;
1221 esac
1223 case ${host} in
1224 i[34567]86-*-linux* | x86_64-*-linux* | \
1225   i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1226   i[34567]86-*-knetbsd*-gnu | \
1227   i[34567]86-*-gnu*)
1228         tmake_file="${tmake_file} t-tls i386/t-linux"
1229         if test "$libgcc_cv_cfi" = "yes"; then
1230                 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1231         fi
1232         ;;
1233 esac
1235 case ${host} in
1236 i[34567]86-*-darwin* | x86_64-*-darwin* | \
1237   i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1238   i[34567]86-*-linux* | x86_64-*-linux* | \
1239   i[34567]86-*-gnu* | \
1240   i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
1241   i[34567]86-*-cygwin* | x86_64-*-cygwin* | \
1242   i[34567]86-*-mingw* | x86_64-*-mingw* | \
1243   i[34567]86-*-freebsd* | x86_64-*-freebsd* | \
1244   i[34567]86-*-openbsd* | x86_64-*-openbsd*)
1245         tmake_file="${tmake_file} t-softfp-tf"
1246         if test "${host_address}" = 32; then
1247                 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1248         fi
1249         tmake_file="${tmake_file} i386/t-softfp t-softfp"
1250         ;;
1251 esac
1253 case ${host} in
1254 i[34567]86-*-linux* | x86_64-*-linux*)
1255         # Provide backward binary compatibility for 64bit Linux/x86.
1256         if test "${host_address}" = 64; then
1257                 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1258         fi
1259         tm_file="${tm_file} i386/value-unwind.h"
1260         ;;
1261 esac