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