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