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