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