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