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