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