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