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