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