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