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