re PR c++/84661 (internal compiler error: Segmentation fault (strip_array_types()))
[official-gcc.git] / libgcc / config.host
blob91abc84da036accb75a6761162702688f3ca9d49
1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2019 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 amdgcn*-*-*)
95         cpu_type=gcn
96         tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
97         ;;
98 arc*-*-*)
99         cpu_type=arc
100         ;;
101 arm*-*-*)
102         cpu_type=arm
103         ;;
104 avr-*-*)
105         cpu_type=avr
106         ;;    
107 bfin*-*)
108         cpu_type=bfin
109         ;;
110 cr16-*-*)
111         ;;
112 crisv32-*-*)
113         cpu_type=cris
114         ;;
115 csky*-*-*)
116         cpu_type=csky
117         ;;
118 fido-*-*)
119         cpu_type=m68k
120         ;;
121 frv*)   cpu_type=frv
122         ;;
123 ft32*)  cpu_type=ft32
124         ;;
125 moxie*) cpu_type=moxie
126         ;;
127 i[34567]86-*-*)
128         cpu_type=i386
129         ;;
130 x86_64-*-*)
131         cpu_type=i386
132         ;;
133 ia64-*-*)
134         ;;
135 hppa*-*-*)
136         cpu_type=pa
137         ;;
138 lm32*-*-*)
139         cpu_type=lm32
140         ;;
141 m32r*-*-*)
142         cpu_type=m32r
143         ;;
144 m68k-*-*)
145         ;;
146 microblaze*-*-*)
147         cpu_type=microblaze
148         ;;
149 mips*-*-*)
150         # All MIPS targets provide a full set of FP routines.
151         cpu_type=mips
152         tmake_file="mips/t-mips"
153         if test "${libgcc_cv_mips_hard_float}" = yes; then
154                 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
155         else
156                 tmake_file="${tmake_file} t-softfp-sfdf"
157         fi
158         if test "${ac_cv_sizeof_long_double}" = 16; then
159                 tmake_file="${tmake_file} mips/t-softfp-tf"
160         fi
161         if test "${host_address}" = 64; then
162                 tmake_file="${tmake_file} mips/t-mips64"
163         fi
164         tmake_file="${tmake_file} t-softfp"
165         ;;
166 nds32*-*)
167         cpu_type=nds32
168         ;;
169 nios2*-*-*)
170         cpu_type=nios2
171         ;;
172 or1k*-*-*)
173         cpu_type=or1k
174         ;;
175 powerpc*-*-*)
176         cpu_type=rs6000
177         ;;
178 rs6000*-*-*)
179         ;;
180 riscv*-*-*)
181         cpu_type=riscv
182         ;;
183 sparc64*-*-*)
184         cpu_type=sparc
185         ;;
186 sparc*-*-*)
187         cpu_type=sparc
188         ;;
189 spu*-*-*)
190         cpu_type=spu
191         ;;
192 s390*-*-*)
193         cpu_type=s390
194         ;;
195 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
196 sh[123456789lbe]*-*-*)
197         cpu_type=sh
198         ;;
199 tilegx*-*-*)
200         cpu_type=tilegx
201         ;;
202 tilepro*-*-*)
203         cpu_type=tilepro
204         ;;
205 v850*-*-*)
206         cpu_type=v850
207         ;;
208 tic6x-*-*)
209         cpu_type=c6x
210         ;;
211 esac
213 # Common parts for widely ported systems.
214 case ${host} in
215 *-*-darwin*)
216   asm_hidden_op=.private_extern
217   tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin"
218   extra_parts="crt3.o d10-uwfef.o crttms.o crttme.o"
219   ;;
220 *-*-dragonfly*)
221   tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
222   tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
223   extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
224   ;;
225 *-*-freebsd*)
226   # This is the generic ELF configuration of FreeBSD.  Later
227   # machine-specific sections may refine and add to this
228   # configuration.
229   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"
230   extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
231   case ${target_thread_file} in
232     posix)
233       tmake_file="${tmake_file} t-freebsd-thread"
234       # Before 5.0, FreeBSD can't bind shared libraries to -lc
235       # when "optionally" threaded via weak pthread_* checks.
236       case ${host} in
237         *-*-freebsd[34] | *-*-freebsd[34].*)
238           tmake_file="${tmake_file} t-slibgcc-nolc-override"
239           ;;
240       esac
241       ;;
242   esac
243   ;;
244 *-*-fuchsia*)
245   tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
246   extra_parts="crtbegin.o crtend.o"
247   ;;
248 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
249   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"
250   extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
251   if test x$enable_vtable_verify = xyes; then
252     extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
253   fi
254   ;;
255 *-*-lynxos*)
256   tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
257   extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
258   ;;
259 *-*-netbsd*)
260   tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
261   tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
262   tmake_file="$tmake_file t-slibgcc-libgcc"
263   extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
264   ;;
265 *-*-openbsd*)
266   tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
267   case ${target_thread_file} in
268     posix)
269       tmake_file="$tmake_file t-openbsd-thread"
270       ;;
271   esac
272   ;;
273 *-*-rtems*)
274   tmake_file="$tmake_file t-rtems"
275   extra_parts="crtbegin.o crtend.o"
276   ;;
277 *-*-solaris2*)
278   # Unless linker support and dl_iterate_phdr are present,
279   # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
280   tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
281   if test $with_gnu_ld = yes; then
282     tmake_file="$tmake_file t-slibgcc-gld"
283   else
284     tmake_file="$tmake_file t-slibgcc-sld"
285   fi
286   # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
287   tmake_file="$tmake_file $cpu_type/t-sol2"
288   extra_parts="gmon.o crtbegin.o crtend.o"
289   if test "${libgcc_cv_solaris_crts}" = yes; then
290     # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
291     # base system.  crtp.o and crtpg.o implement the compiler-dependent parts.
292     extra_parts="$extra_parts crtp.o crtpg.o"
293     # If the Solaris CRTs are present, both ld and gld will have PIE support.
294     extra_parts="$extra_parts crtbeginS.o crtendS.o"
295   else
296     case ${host} in
297       i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
298         # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
299         # part of the base system.
300         ;;
301       sparc*-*-solaris2.1[0-9]*)
302         # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
303         extra_parts="$extra_parts crt1.o gcrt1.o"
304         ;;
305     esac
306   fi
307   if test x$enable_vtable_verify = xyes; then
308     extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
309   fi
310   ;;
311 *-*-uclinux*)
312   extra_parts="crtbegin.o crtend.o"
313   ;;
314 *-*-*vms*)
315   tmake_file="vms/t-vms"
316   extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
317   ;;
318 *-*-vxworks7*)
319   tmake_file=t-vxworks7
320   ;;
321 *-*-vxworks*)
322   tmake_file=t-vxworks
323   ;;
324 *-*-elf)
325   extra_parts="crtbegin.o crtend.o"
326   ;;
327 esac
329 case ${host} in
330 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
331   *-*-solaris2*)
332   enable_execute_stack=enable-execute-stack-mprotect.c
333   ;;
334 i[34567]86-*-mingw* | x86_64-*-mingw*)
335   enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
336   ;;
337 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
338   enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
339   ;;
341   enable_execute_stack=enable-execute-stack-empty.c;
342   ;;
343 esac
345 case ${host} in
346 aarch64*-*-elf | aarch64*-*-rtems*)
347         extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
348         extra_parts="$extra_parts crtfastmath.o"
349         tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
350         tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
351         md_unwind_header=aarch64/aarch64-unwind.h
352         ;;
353 aarch64*-*-freebsd*)
354         extra_parts="$extra_parts crtfastmath.o"
355         tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
356         tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
357         md_unwind_header=aarch64/freebsd-unwind.h
358         ;;
359 aarch64*-*-fuchsia*)
360         tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
361         tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
362         ;;
363 aarch64*-*-linux*)
364         extra_parts="$extra_parts crtfastmath.o"
365         md_unwind_header=aarch64/linux-unwind.h
366         tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
367         tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
368         ;;
369 alpha*-*-linux*)
370         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
371         extra_parts="$extra_parts crtfastmath.o"
372         md_unwind_header=alpha/linux-unwind.h
373         ;;
374 alpha*-*-freebsd*)
375         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
376         extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
377         ;;
378 alpha*-*-netbsd*)
379         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
380         ;;
381 alpha*-*-openbsd*)
382         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
383         ;;
384 alpha64-dec-*vms*)
385         tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
386         extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
387         md_unwind_header=alpha/vms-unwind.h
388         ;;
389 alpha*-dec-*vms*)
390         tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
391         extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
392         md_unwind_header=alpha/vms-unwind.h
393         ;;
394 amdgcn*-*-amdhsa)
395         tmake_file="$tmake_file gcn/t-amdgcn"
396         extra_parts="crt0.o"
397         ;;
398 arc*-*-elf*)
399         tmake_file="arc/t-arc"
400         extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
401         extra_parts="$extra_parts crttls.o"
402         ;;
403 arc*-*-linux*)
404         tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
405         extra_parts="$extra_parts crti.o crtn.o"
406         extra_parts="$extra_parts crttls.o"
407         md_unwind_header=arc/linux-unwind.h
408         ;;
409 arm-wrs-vxworks|arm-wrs-vxworks7)
410         tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
411         extra_parts="$extra_parts crti.o crtn.o"
412         case ${host} in
413         *-*-vxworks7)
414           # Note that arm/t-bpabi will reset the LIB2ADDEH macro.
415           # This is intentional.
416           tmake_file="$tmake_file arm/t-bpabi arm/t-vxworks7"
417           tm_file="$tm_file arm/bpabi-lib.h"
418           unwind_header=config/arm/unwind-arm.h
419           ;;
420         esac
421         ;;
422 arm*-*-freebsd*)                # ARM FreeBSD EABI
423         tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
424         tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
425         tm_file="${tm_file} arm/bpabi-lib.h"
426         unwind_header=config/arm/unwind-arm.h
427         tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
428         ;;
429 arm*-*-fuchsia*)
430         tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
431         tmake_file="${tmake_file} arm/tsoftfp t-softfp"
432         tm_file="${tm_file} arm/bpabi-lib.h"
433         unwind_header=config/arm/unwind-arm.h
434         ;;
435 arm*-*-netbsdelf*)
436         tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover"
437         ;;
438 arm*-*-linux*)                  # ARM GNU/Linux with ELF
439         tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
440         tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
441         tm_file="$tm_file arm/bpabi-lib.h"
442         unwind_header=config/arm/unwind-arm.h
443         tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
444         extra_parts="$extra_parts crtfastmath.o"
445         ;;
446 arm*-*-uclinux*)                # ARM ucLinux
447         tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
448         tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
449         tmake_file="${tmake_file} arm/t-bpabi"
450         tm_file="$tm_file arm/bpabi-lib.h"
451         unwind_header=config/arm/unwind-arm.h
452         extra_parts="$extra_parts crti.o crtn.o"
453         ;;
454 arm*-*-phoenix*)
455         tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
456         tmake_file="${tmake_file} arm/t-bpabi"
457         tm_file="$tm_file arm/bpabi-lib.h"
458         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
459         unwind_header=config/arm/unwind-arm.h
460         ;;
461 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
462         tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
463         tm_file="$tm_file arm/bpabi-lib.h"
464         case ${host} in
465         arm*-*-eabi* | arm*-*-rtems*)
466           tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
467           extra_parts="crtbegin.o crtend.o crti.o crtn.o"
468           ;;
469         arm*-*-symbianelf*)
470           tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
471           tm_file="$tm_file arm/symbian-lib.h"
472           # Symbian OS provides its own startup code.
473           ;;
474         esac
475         tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
476         extra_parts="$extra_parts crtfastmath.o"
477         unwind_header=config/arm/unwind-arm.h
478         ;;
479 avr-*-*)
480         # Make HImode functions for AVR
481         tmake_file="${cpu_type}/t-avr t-fpbit"
482         if test x${with_avrlibc} != xno; then
483             tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
484         fi
485         tm_file="$tm_file avr/avr-lib.h"
486         ;;
487 bfin*-elf*)
488         tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
489         extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
490         ;;
491 bfin*-uclinux*)
492         tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
493         extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
494         md_unwind_header=bfin/linux-unwind.h
495         ;;
496 bfin*-linux-uclibc*)
497         tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
498         # No need to build crtbeginT.o on uClibc systems.  Should probably
499         # be moved to the OS specific section above.
500         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
501         md_unwind_header=bfin/linux-unwind.h
502         ;;
503 bfin*-rtems*)
504         tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
505         extra_parts="$extra_parts crti.o crtn.o"
506         ;;
507 bfin*-*)
508         tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
509         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
510         ;;
511 cr16-*-elf)
512         tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
513         extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
514         ;;
515 crisv32-*-elf)
516         tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
517         ;;
518 cris-*-elf)
519         tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
520         ;;
521 cris-*-linux* | crisv32-*-linux*)
522         tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
523         ;;
524 csky-*-elf*)
525         tmake_file="csky/t-csky t-fdpbit"
526         extra_parts="$extra_parts crti.o crtn.o"
527         ;;
528 csky-*-linux*)
529         tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
530         extra_parts="$extra_parts crti.o crtn.o"
531         md_unwind_header=csky/linux-unwind.h
532         ;;
533 epiphany-*-elf* | epiphany-*-rtems*)
534         tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
535         extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
536         ;;
537 fr30-*-elf)
538         tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
539         extra_parts="$extra_parts crti.o crtn.o"
540         ;;
541 frv-*-elf)
542         tmake_file="$tmake_file frv/t-frv t-fdpbit"
543         tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
544         # Don't use crtbegin.o, crtend.o.
545         extra_parts="frvbegin.o frvend.o"
546         ;;
547 frv-*-*linux*)
548         tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
549         tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
550         ;;
551 ft32-*-elf)
552         tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
553         extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
554         ;;
555 h8300-*-elf*)
556         tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
557         tm_file="$tm_file h8300/h8300-lib.h"
558         extra_parts="$extra_parts crti.o crtn.o"
559         ;;
560 h8300-*-linux*)
561         tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
562         tm_file="$tm_file h8300/h8300-lib.h"
563         ;;
564 hppa*64*-*-linux*)
565         tmake_file="$tmake_file pa/t-linux pa/t-linux64"
566         extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
567         ;;
568 hppa*-*-linux*)
569         tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
570         # Set the libgcc version number
571         if test x$ac_cv_sjlj_exceptions = xyes; then
572             tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
573         else
574             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
575         fi
576         extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
577         md_unwind_header=pa/linux-unwind.h
578         ;;
579 hppa[12]*-*-hpux10*)
580         tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
581         # Set the libgcc version number
582         if test x$ac_cv_sjlj_exceptions = xyes; then
583             tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
584         else
585             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
586         fi
587         tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
588         md_unwind_header=pa/hpux-unwind.h
589         ;;
590 hppa*64*-*-hpux11*)
591         tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
592         # Set the libgcc version number
593         if test x$ac_cv_sjlj_exceptions = xyes; then
594             tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
595         else
596             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
597         fi
598         tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
599         tm_file="$tm_file pa/pa64-hpux-lib.h"
600         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
601                      libgcc_stub.a"
602         md_unwind_header=pa/hpux-unwind.h
603         ;;
604 hppa[12]*-*-hpux11*)
605         tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
606         # Set the libgcc version number
607         if test x$ac_cv_sjlj_exceptions = xyes; then
608             tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
609         else
610             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
611         fi
612         tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
613         extra_parts="libgcc_stub.a"
614         md_unwind_header=pa/hpux-unwind.h
615         ;;
616 hppa*-*-openbsd*)
617         tmake_file="$tmake_file pa/t-openbsd"
618         ;;
619 i[34567]86-*-darwin*)
620         tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
621         tm_file="$tm_file i386/darwin-lib.h"
622         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
623         ;;
624 x86_64-*-darwin*)
625         tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
626         tm_file="$tm_file i386/darwin-lib.h"
627         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
628         ;;
629 i[34567]86-*-elfiamcu)
630         tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/32/t-iamcu i386/t-softfp t-softfp t-dfprules"
631         ;;
632 i[34567]86-*-elf*)
633         tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
634         ;;
635 x86_64-*-elf* | x86_64-*-rtems*)
636         tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
637         case ${host} in
638           x86_64-*-rtems*)
639             extra_parts="$extra_parts crti.o crtn.o"
640             ;;
641         esac
642         ;;
643 x86_64-*-fuchsia*)
644         tmake_file="$tmake_file t-libgcc-pic"
645         ;;
646 i[34567]86-*-dragonfly*)
647         tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
648         md_unwind_header=i386/dragonfly-unwind.h
649         ;;
650 x86_64-*-dragonfly*)
651         tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
652         md_unwind_header=i386/dragonfly-unwind.h
653         ;;
654 i[34567]86-*-freebsd*)
655         tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
656         md_unwind_header=i386/freebsd-unwind.h
657         ;;
658 x86_64-*-freebsd*)
659         tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
660         md_unwind_header=i386/freebsd-unwind.h
661         ;;
662 i[34567]86-*-netbsdelf*)
663         tmake_file="${tmake_file} i386/t-crtstuff"
664         ;;
665 x86_64-*-netbsd*)
666         tmake_file="${tmake_file} i386/t-crtstuff"
667         ;;
668 i[34567]86-*-openbsd*)
669         ;;
670 x86_64-*-openbsd*)
671         ;;
672 i[34567]86-*-linux*)
673         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
674         tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
675         tm_file="${tm_file} i386/elf-lib.h"
676         md_unwind_header=i386/linux-unwind.h
677         ;;
678 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
679         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
680         tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
681         tm_file="${tm_file} i386/elf-lib.h"
682         ;;
683 x86_64-*-linux*)
684         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
685         tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
686         tm_file="${tm_file} i386/elf-lib.h"
687         md_unwind_header=i386/linux-unwind.h
688         ;;
689 x86_64-*-kfreebsd*-gnu)
690         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
691         tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
692         tm_file="${tm_file} i386/elf-lib.h"
693         ;;
694 i[34567]86-pc-msdosdjgpp*)
695         ;;
696 i[34567]86-*-lynxos*)
697         ;;
698 i[34567]86-*-nto-qnx*)
699         tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
700         extra_parts=crtbegin.o
701         ;;
702 i[34567]86-*-rtems*)
703         tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
704         extra_parts="$extra_parts crti.o crtn.o"
705         ;;
706 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
707         tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
708         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
709         tm_file="${tm_file} i386/elf-lib.h"
710         md_unwind_header=i386/sol2-unwind.h
711         ;;
712 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
713         ;;
714 i[34567]86-*-cygwin*)
715         extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
716         if test x$enable_vtable_verify = xyes; then
717                 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
718         fi
719         # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
720         if test x$ac_cv_sjlj_exceptions = xyes; then
721                 tmake_eh_file="i386/t-sjlj-eh"
722         else
723                 tmake_eh_file="i386/t-dw2-eh"
724         fi
725         # Shared libgcc DLL install dir depends on cross/native build.
726         if test x${build} = x${host} ; then
727                 tmake_dlldir_file="i386/t-dlldir"
728         else
729                 tmake_dlldir_file="i386/t-dlldir-x"
730         fi
731         tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin t-crtfm i386/t-chkstk t-dfprules"
732         ;;
733 x86_64-*-cygwin*)
734         extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
735         if test x$enable_vtable_verify = xyes; then
736                 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
737         fi
738         # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
739         if test x$ac_cv_sjlj_exceptions = xyes; then
740                 tmake_eh_file="i386/t-sjlj-eh"
741         elif test "${host_address}" = 32; then
742                 # biarch -m32 with --disable-sjlj-exceptions
743                 tmake_eh_file="i386/t-dw2-eh"
744         else
745                 tmake_eh_file="i386/t-seh-eh"
746         fi
747         # Shared libgcc DLL install dir depends on cross/native build.
748         if test x${build} = x${host} ; then
749                 tmake_dlldir_file="i386/t-dlldir"
750         else
751                 tmake_dlldir_file="i386/t-dlldir-x"
752         fi
753         # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
754         tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin t-crtfm t-dfprules i386/t-chkstk"
755         ;;
756 i[34567]86-*-mingw*)
757         extra_parts="crtbegin.o crtend.o crtfastmath.o"
758         if test x$enable_vtable_verify = xyes; then
759                 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
760         fi
761         case ${target_thread_file} in
762           win32)
763             tmake_file="$tmake_file i386/t-gthr-win32"
764             ;;
765           posix)
766             tmake_file="i386/t-mingw-pthread $tmake_file"
767             ;;
768         esac
769         # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
770         if test x$ac_cv_sjlj_exceptions = xyes; then
771                 tmake_eh_file="i386/t-sjlj-eh"
772         else
773                 tmake_eh_file="i386/t-dw2-eh"
774                 md_unwind_header=i386/w32-unwind.h
775         fi
776         # Shared libgcc DLL install dir depends on cross/native build.
777         if test x${build} = x${host} ; then
778                 tmake_dlldir_file="i386/t-dlldir"
779         else
780                 tmake_dlldir_file="i386/t-dlldir-x"
781         fi
782         tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 t-crtfm i386/t-chkstk t-dfprules"
783         ;;
784 x86_64-*-mingw*)
785         case ${target_thread_file} in
786           win32)
787             tmake_file="$tmake_file i386/t-gthr-win32"
788             ;;
789           posix)
790             tmake_file="i386/t-mingw-pthread $tmake_file"
791             ;;
792         esac
793         # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
794         if test x$ac_cv_sjlj_exceptions = xyes; then
795                 tmake_eh_file="i386/t-sjlj-eh"
796         elif test "${host_address}" = 32; then
797                 # biarch -m32 with --disable-sjlj-exceptions
798                 tmake_eh_file="i386/t-dw2-eh"
799                 md_unwind_header=i386/w32-unwind.h
800         else
801                 tmake_eh_file="i386/t-seh-eh"
802         fi
803         # Shared libgcc DLL install dir depends on cross/native build.
804         if test x${build} = x${host} ; then
805                 tmake_dlldir_file="i386/t-dlldir"
806         else
807                 tmake_dlldir_file="i386/t-dlldir-x"
808         fi
809         tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 t-dfprules t-crtfm i386/t-chkstk"
810         extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
811         if test x$enable_vtable_verify = xyes; then
812                 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
813         fi
814         ;;
815 ia64*-*-elf*)
816         extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
817         tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat"
818         ;;
819 ia64*-*-freebsd*)
820         extra_parts="$extra_parts crtfastmath.o"
821         tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat"
822         ;;
823 ia64*-*-linux*)
824         # Don't use crtbeginT.o from *-*-linux* default.
825         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
826         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"
827         if test x$with_system_libunwind != xyes ; then
828                 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
829         fi
830         md_unwind_header=ia64/linux-unwind.h
831         ;;
832 ia64*-*-hpux*)
833         tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
834         ;;
835 ia64-hp-*vms*)
836         tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms t-softfp-tf ia64/t-softfp t-softfp"
837         extra_parts="$extra_parts crtinitS.o"
838         md_unwind_header=ia64/vms-unwind.h
839         ;;
840 iq2000*-*-elf*)
841         tmake_file="iq2000/t-iq2000 t-fdpbit"
842         # Don't use default.
843         extra_parts=
844         ;;
845 lm32-*-elf*)
846         extra_parts="$extra_parts crti.o crtn.o"
847         tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
848         ;;
849 lm32-*-rtems*)
850         tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
851         extra_parts="$extra_parts crti.o crtn.o"
852         ;;
853 lm32-*-uclinux*)
854         extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
855         tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
856         ;;      
857 m32r-*-elf*)
858         tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
859         extra_parts="$extra_parts crtinit.o crtfini.o"
860         ;;
861 m32rle-*-elf*)
862         tmake_file=t-fdpbit
863         ;;
864 m32r-*-linux*)
865         tmake_file="$tmake_file m32r/t-linux t-fdpbit"
866         ;;
867 m32rle-*-linux*)
868         tmake_file="$tmake_file m32r/t-linux t-fdpbit"
869         ;;
870 m68k-*-elf* | fido-*-elf)
871         tmake_file="$tmake_file m68k/t-floatlib"
872         ;;
873 m68k*-*-netbsdelf*)
874         ;;
875 m68k*-*-openbsd*)
876         ;;
877 m68k-*-uclinux*)        # Motorola m68k/ColdFire running uClinux with uClibc
878         tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
879         md_unwind_header=m68k/linux-unwind.h
880         ;;
881 m68k-*-linux*)                  # Motorola m68k's running GNU/Linux
882                                 # with ELF format using glibc 2
883                                 # aka the GNU/Linux C library 6.
884         tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
885         # If not configured with setjmp/longjmp exceptions, bump the
886         # libgcc version number.
887         if test x$ac_cv_sjlj_exceptions != xyes; then
888             tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
889         fi
890         md_unwind_header=m68k/linux-unwind.h
891         ;;
892 m68k-*-rtems*)
893         tmake_file="$tmake_file m68k/t-floatlib"
894         extra_parts="$extra_parts crti.o crtn.o"
895         ;;
896 mcore-*-elf)
897         tmake_file="mcore/t-mcore t-fdpbit"
898         extra_parts="$extra_parts crti.o crtn.o"
899         ;;
900 microblaze*-linux*)
901         tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
902         ;;
903 microblaze*-*-elf)
904         tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
905         extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
906         ;;
907 microblaze*-*-rtems*)
908         tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
909         extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
910         ;;
911 mips*-*-netbsd*)                        # NetBSD/mips, either endian.
912         ;;
913 mips*-*-linux*)                         # Linux MIPS, either endian.
914         extra_parts="$extra_parts crtfastmath.o"
915         tmake_file="${tmake_file} t-crtfm"
916         case ${host} in
917           mips64r5900* | mipsr5900*)
918             # The MIPS16 support code uses floating point
919             # instructions that are not supported on r5900.
920             ;;
921           *)
922             tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
923             ;;
924         esac
925         md_unwind_header=mips/linux-unwind.h
926         ;;
927 mips*-sde-elf*)
928         tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
929         case "${with_newlib}" in
930           yes)
931             # newlib / libgloss.
932             ;;
933           *)
934             # MIPS toolkit libraries.
935             tmake_file="$tmake_file mips/t-sdemtk"
936             ;;
937         esac
938         extra_parts="$extra_parts crti.o crtn.o"
939         ;;
940 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
941 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
942 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
943 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
944 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
945 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
946         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
947         extra_parts="$extra_parts crti.o crtn.o"
948         ;;
949 mipsisa64sr71k-*-elf*)
950         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
951         extra_parts="$extra_parts crti.o crtn.o"
952         ;;
953 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
954         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
955         extra_parts="$extra_parts crti.o crtn.o"
956         ;;
957 mips-*-elf* | mipsel-*-elf*)
958         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
959         extra_parts="$extra_parts crti.o crtn.o"
960         ;;
961 mipsr5900-*-elf* | mipsr5900el-*-elf*)
962         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
963         extra_parts="$extra_parts crti.o crtn.o"
964         ;;
965 mips64-*-elf* | mips64el-*-elf*)
966         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
967         extra_parts="$extra_parts crti.o crtn.o"
968         ;;
969 mips64r5900-*-elf* | mips64r5900el-*-elf*)
970         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
971         extra_parts="$extra_parts crti.o crtn.o"
972         ;;
973 mips64vr-*-elf* | mips64vrel-*-elf*)
974         tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
975         extra_parts="$extra_parts crti.o crtn.o"
976         ;;
977 mips64orion-*-elf* | mips64orionel-*-elf*)
978         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
979         extra_parts="$extra_parts crti.o crtn.o"
980         ;;
981 mips*-*-rtems*)
982         tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
983         extra_parts="$extra_parts crti.o crtn.o"
984         ;;
985 mips-wrs-vxworks)
986         ;;
987 mipstx39-*-elf* | mipstx39el-*-elf*)
988         tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
989         ;;
990 mmix-knuth-mmixware)
991         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
992         tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
993         ;;
994 mn10300-*-*)
995         tmake_file=t-fdpbit
996         ;;
997 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
998         tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
999         extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1000         ;;
1001 msp430*-*-elf)
1002         tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1003         extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1004         ;;
1005 nds32*-linux*)
1006         # Basic makefile fragment and extra_parts for crt stuff.
1007         # We also append c-isr library implementation.
1008         tmake_file="${tmake_file} t-slibgcc-libgcc"
1009         tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1010         # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1011         md_unwind_header=nds32/linux-unwind.h
1012         # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1013         case "${with_nds32_lib}" in
1014         "" | glibc | uclibc )
1015                 ;;
1016         *)
1017                 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1018                 exit 1
1019                 ;;
1020         esac
1021         ;;
1022 nds32*-elf*)
1023         # Basic makefile fragment and extra_parts for crt stuff.
1024         # We also append c-isr library implementation.
1025         tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1026         extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1027         # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1028         case "${with_nds32_lib}" in
1029         "" | newlib)
1030                 # Append library definition makefile fragment t-nds32-newlib.
1031                 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1032                 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1033                 ;;
1034         mculib)
1035                 # Append library definition makefile fragment t-nds32-mculib.
1036                 # The software floating point library is included in mculib.
1037                 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1038                 ;;
1039         *)
1040                 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1041                 exit 1
1042                 ;;
1043         esac
1044         ;;
1045 nios2-*-linux*)
1046         tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
1047         md_unwind_header=nios2/linux-unwind.h
1048         ;;
1049 nios2-*-*)
1050         tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1051         extra_parts="$extra_parts crti.o crtn.o"
1052         ;;
1053 or1k-*-linux*)
1054         tmake_file="$tmake_file or1k/t-or1k"
1055         tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1056         md_unwind_header=or1k/linux-unwind.h
1057         ;;
1058 or1k-*-*)
1059         tmake_file="$tmake_file or1k/t-or1k"
1060         tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1061         ;;
1062 pdp11-*-*)
1063         tmake_file="pdp11/t-pdp11 t-fdpbit"
1064         ;;
1065 powerpc-*-darwin*)
1066         case ${host} in
1067         *-*-darwin9* | *-*-darwin[12][0-9]*)
1068           # libSystem contains unwind information for signal frames since
1069           # Darwin 9.
1070           ;;
1071         *)
1072           md_unwind_header=rs6000/darwin-unwind.h
1073           ;;
1074         esac
1075         tmake_file="$tmake_file rs6000/t-ibm-ldouble"
1076         extra_parts="$extra_parts crt2.o"
1077         ;;
1078 powerpc64-*-darwin*)
1079         tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1080         extra_parts="$extra_parts crt2.o"
1081         ;;
1082 powerpc*-*-freebsd*)
1083         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1084         extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1085         case ${host} in
1086         powerpc64*)
1087           tmake_file="${tmake_file} rs6000/t-freebsd64"
1088           md_unwind_header=rs6000/freebsd-unwind.h
1089           ;;
1090         esac
1091         ;;
1092 powerpc-*-netbsd*)
1093         tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1094         ;;
1095 powerpc-*-eabispe*)
1096         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1097         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1098         ;;
1099 powerpc-*-eabisimaltivec*)
1100         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1101         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1102         ;;
1103 powerpc-*-eabisim*)
1104         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1105         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1106         ;;
1107 powerpc-*-elf*)
1108         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1109         extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1110         ;;
1111 powerpc-*-eabialtivec*)
1112         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1113         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1114         ;;
1115 powerpc-xilinx-eabi*)
1116         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1117         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1118         ;;
1119 powerpc-*-eabi*)
1120         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1121         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1122         ;;
1123 powerpc-*-rtems*)
1124         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1125         extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1126         ;;
1127 powerpc*-*-linux*)
1128         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-linux t-dfprules rs6000/t-ppc64-fp t-slibgcc-libgcc"
1129         tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1130         case $ppc_fp_type in
1131         64)
1132                 ;;
1133         hard)
1134                 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1135                 ;;
1136         soft)
1137                 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1138                 ;;
1139         e500v1)
1140                 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1141                 ;;
1142         e500v2)
1143                 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1144                 ;;
1145         *)
1146                 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1147                 exit 1
1148                 ;;
1149         esac
1151         if test $libgcc_cv_powerpc_float128 = yes; then
1152                 tmake_file="${tmake_file} rs6000/t-float128"
1153         fi
1155         if test $libgcc_cv_powerpc_float128_hw = yes; then
1156                 tmake_file="${tmake_file} rs6000/t-float128-hw"
1157         fi
1159         extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1160         md_unwind_header=rs6000/linux-unwind.h
1161         ;;
1162 powerpc-wrs-vxworks*)
1163         tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
1164         extra_parts="$extra_parts crtbegin.o crtend.o"
1165         ;;
1166 powerpc-*-lynxos*)
1167         tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1168         ;;
1169 powerpcle-*-elf*)
1170         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1171         extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1172         ;;
1173 powerpcle-*-eabisim*)
1174         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1175         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1176         ;;
1177 powerpcle-*-eabi*)
1178         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1179         extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1180         ;;
1181 riscv*-*-linux*)
1182         tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1183         extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1184         md_unwind_header=riscv/linux-unwind.h
1185         ;;
1186 riscv*-*-freebsd*)
1187         tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1188         extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1189         ;;
1190 riscv*-*-*)
1191         tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1192         extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1193         ;;
1194 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1195         md_unwind_header=rs6000/aix-unwind.h
1196         tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1197         ;;
1198 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1199         md_unwind_header=rs6000/aix-unwind.h
1200         tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1201         ;;
1202 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1203         md_unwind_header=rs6000/aix-unwind.h
1204         tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1205         extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
1206         ;;
1207 rl78-*-elf)
1208         tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1209         ;;
1210 rx-*-elf)
1211         tmake_file="rx/t-rx t-fdpbit"
1212         tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1213         ;;
1214 s390-*-linux*)
1215         tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1216         md_unwind_header=s390/linux-unwind.h
1217         ;;
1218 s390x-*-linux*)
1219         tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1220         if test "${host_address}" = 32; then
1221            tmake_file="${tmake_file} s390/32/t-floattodi"
1222         fi
1223         md_unwind_header=s390/linux-unwind.h
1224         ;;
1225 s390x-ibm-tpf*)
1226         tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
1227         extra_parts="crtbeginS.o crtendS.o"
1228         md_unwind_header=s390/tpf-unwind.h
1229         ;;
1230 sh-*-elf* | sh[12346l]*-*-elf*)
1231         tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1232         extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1233                 libic_invalidate_array_4-100.a \
1234                 libic_invalidate_array_4-200.a \
1235                 libic_invalidate_array_4a.a \
1236                 libgcc-Os-4-200.a libgcc-4-300.a"
1237         case ${host} in
1238         sh*-superh-elf)
1239                 tmake_file="$tmake_file sh/t-superh"
1240                 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1241                 ;;
1242         esac
1243         ;;
1244 sh-*-linux* | sh[2346lbe]*-*-linux*)
1245         tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1246         md_unwind_header=sh/linux-unwind.h
1247         ;;
1248 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1249         tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1251         # NetBSD's C library includes a fast software FP library that
1252         # has support for setting/setting the rounding mode, exception
1253         # mask, etc.  Therefore, we don't want to include software FP
1254         # in libgcc.
1255         ;;
1256 sh-*-rtems*)
1257         tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1258         extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1259                 libic_invalidate_array_4-100.a \
1260                 libic_invalidate_array_4-200.a \
1261                 libic_invalidate_array_4a.a \
1262                 libgcc-Os-4-200.a libgcc-4-300.a"
1263         ;;
1264 sh-wrs-vxworks)
1265         tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1266         ;;
1267 sparc-*-netbsdelf*)
1268         ;;
1269 sparc64-*-openbsd*)
1270         ;;
1271 sparc-*-elf*)
1272         case ${host} in
1273         *-leon[3-9]*)
1274                 ;;
1275         *)
1276                 tmake_file="sparc/t-softmul"
1277                 ;;
1278         esac
1279         tmake_file="${tmake_file} t-fdpbit t-crtfm"
1280         extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1281         ;;
1282 sparc-*-linux*)         # SPARC's running GNU/Linux, libc6
1283         tmake_file="${tmake_file} t-crtfm"
1284         if test "${host_address}" = 64; then
1285                 tmake_file="$tmake_file sparc/t-linux64"
1286         fi
1287         case ${host} in
1288         *-leon*)
1289                 tmake_file="${tmake_file} t-fdpbit"
1290                 ;;
1291         *)
1292                 tmake_file="${tmake_file} sparc/t-linux"
1293                 ;;
1294         esac
1295         case ${host} in
1296         *-leon[3-9]*)
1297                 ;;
1298         *)
1299                 if test "${host_address}" = 32; then
1300                         tmake_file="$tmake_file sparc/t-softmul"
1301                 fi
1302                 ;;
1303         esac
1304         extra_parts="$extra_parts crtfastmath.o"
1305         md_unwind_header=sparc/linux-unwind.h
1306         ;;
1307 sparc-*-rtems*)
1308         tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1309         extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1310         ;;
1311 sparc*-*-solaris2*)
1312         tmake_file="$tmake_file t-crtfm"
1313         extra_parts="$extra_parts crtfastmath.o"
1314         md_unwind_header=sparc/sol2-unwind.h
1315         ;;
1316 sparc64-*-elf*)
1317         tmake_file="${tmake_file} t-crtfm"
1318         extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1319         ;;
1320 sparc64-*-rtems*)
1321         tmake_file="$tmake_file t-crtfm"
1322         extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1323         ;;
1324 sparc-wrs-vxworks)
1325         ;;
1326 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1327         tmake_file="$tmake_file t-crtfm"
1328         extra_parts="$extra_parts crtfastmath.o"
1329         ;;
1330 sparc64-*-linux*)               # 64-bit SPARC's running GNU/Linux
1331         extra_parts="$extra_parts crtfastmath.o"
1332         tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1333         if test "${host_address}" = 64; then
1334                 tmake_file="${tmake_file} sparc/t-linux64"
1335         fi
1336         if test "${host_address}" = 32; then
1337                 tmake_file="${tmake_file} sparc/t-softmul"
1338         fi
1339         md_unwind_header=sparc/linux-unwind.h
1340         ;;
1341 sparc64-*-netbsd*)
1342         ;;
1343 spu-*-elf*)
1344         tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
1345         extra_parts="$extra_parts \
1346                 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1347                 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1348                 libgcc_cache64k.a libgcc_cache128k.a"
1349         ;;
1350 tic6x-*-uclinux)
1351         tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1352                 c6x/t-elf  c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1353                 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1354         tm_file="$tm_file c6x/c6x-abi.h"
1355         extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1356         unwind_header=config/c6x/unwind-c6x.h
1357         ;;
1358 tic6x-*-elf)
1359         tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1360         tm_file="$tm_file c6x/c6x-abi.h"
1361         extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1362         unwind_header=config/c6x/unwind-c6x.h
1363         ;;
1364 tilegx*-*-linux*)
1365         if test "${host_address}" = 64; then
1366                 tmake_file="${tmake_file} tilegx/t-softfp"
1367         fi
1368         tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1369         md_unwind_header=tilepro/linux-unwind.h
1370         ;;
1371 tilepro*-*-linux*)
1372         tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1373         md_unwind_header=tilepro/linux-unwind.h
1374         ;;
1375 v850*-*-*)
1376         tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1377         ;;
1378 vax-*-linux*)
1379         tmake_file="$tmake_file vax/t-linux"
1380         ;;
1381 vax-*-netbsdelf*)
1382         ;;
1383 vax-*-openbsd*)
1384         ;;
1385 visium-*-elf*)
1386         extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1387         tmake_file="visium/t-visium t-fdpbit"
1388         ;;
1389 xstormy16-*-elf)
1390         tmake_file="stormy16/t-stormy16 t-fdpbit"
1391         ;;
1392 xtensa*-*-elf*)
1393         tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1394         extra_parts="$extra_parts crti.o crtn.o"
1395         ;;
1396 xtensa*-*-linux*)
1397         tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1398         md_unwind_header=xtensa/linux-unwind.h
1399         ;;
1400 xtensa*-*-uclinux*)
1401         tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1402         md_unwind_header=xtensa/linux-unwind.h
1403         extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1404         ;;
1405 am33_2.0-*-linux*)
1406         # Don't need crtbeginT.o from *-*-linux* default.
1407         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1408         tmake_file="$tmake_file t-fdpbit"
1409         ;;
1410 m32c-*-elf*|m32c-*-rtems*)
1411         tmake_file="$tmake_file m32c/t-m32c"
1412         ;;
1413 nvptx-*)
1414         tmake_file="$tmake_file nvptx/t-nvptx"
1415         extra_parts="crt0.o"
1416         ;;
1418         echo "*** Configuration ${host} not supported" 1>&2
1419         exit 1
1420         ;;
1421 esac
1423 case ${host} in
1424 i[34567]86-*-* | x86_64-*-*)
1425         case ${host} in
1426         *-musl*)
1427                 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1428                 ;;
1429         *)
1430                 tmake_file="${tmake_file} i386/t-cpuinfo"
1431                 ;;
1432         esac
1433         ;;
1434 esac
1436 case ${host} in
1437 i[34567]86-*-linux* | x86_64-*-linux* | \
1438   i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1439   i[34567]86-*-gnu*)
1440         tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1441         if test "$libgcc_cv_cfi" = "yes"; then
1442                 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1443         fi
1444         ;;
1445 esac
1447 case ${host} in
1448 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1449         # These use soft-fp for SFmode and DFmode, not just TFmode.
1450         ;;
1451 i[34567]86-*-* | x86_64-*-*)
1452         tmake_file="${tmake_file} t-softfp-tf"
1453         if test "${host_address}" = 32; then
1454                 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1455         fi
1456         tmake_file="${tmake_file} i386/t-softfp t-softfp"
1457         ;;
1458 esac
1460 case ${host} in
1461 i[34567]86-*-linux* | x86_64-*-linux*)
1462         # Provide backward binary compatibility for 64bit Linux/x86.
1463         if test "${host_address}" = 64; then
1464                 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1465         fi
1466         tm_file="${tm_file} i386/value-unwind.h"
1467         ;;
1468 aarch64*-*-*)
1469         # ILP32 needs an extra header for unwinding
1470         tm_file="${tm_file} aarch64/value-unwind.h"
1471         ;;
1472 esac