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