]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config.host
re PR target/58595 (internal compiler error: in gen_movsi when compiling on arm some...
[thirdparty/gcc.git] / libgcc / config.host
CommitLineData
fa958513 1# libgcc host-specific configuration file.
ac1dca3c 2# Copyright (C) 1997-2014 Free Software Foundation, Inc.
fa958513
DJ
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
748086b7 8#Software Foundation; either version 3, or (at your option) any later
fa958513
DJ
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
748086b7
JJ
17#along with GCC; see the file COPYING3. If not see
18#<http://www.gnu.org/licenses/>.
fa958513
DJ
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.
10e48e39
RO
46# enable_execute_stack The name of a source file implementing
47# __enable_execute_stack.
fa958513
DJ
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.
58cd1d70
RO
54# md_unwind_header The name of a header file defining
55# MD_FALLBACK_FRAME_STATE_FOR.
aca0b0b3
RO
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.
fa958513 59# tmake_file A list of machine-description-specific
200feb07 60# makefile fragments.
852b75ed
RO
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.
201cdb74
RO
66# unwind_header The name of the header file declaring the unwind
67# runtime interface routines.
fa958513
DJ
68
69asm_hidden_op=.hidden
10e48e39 70enable_execute_stack=
fa958513
DJ
71extra_parts=
72tmake_file=
852b75ed
RO
73tm_file=
74tm_define=
58cd1d70 75md_unwind_header=no-unwind.h
201cdb74 76unwind_header=unwind-generic.h
fa958513
DJ
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
569dc494 83 tmake_file=t-fdpbit
fa958513 84 ;;
1e3d5096
IB
85aarch64*-*-*)
86 cpu_type=aarch64
87 ;;
fa958513
DJ
88alpha*-*-*)
89 cpu_type=alpha
90 ;;
91am33_2.0-*-linux*)
92 cpu_type=mn10300
93 ;;
d38a64b4
JR
94arc*-*-*)
95 cpu_type=arc
96 ;;
fa958513
DJ
97arm*-*-*)
98 cpu_type=arm
99 ;;
47583040
AH
100avr-*-*)
101 cpu_type=avr
102 ;;
fa958513
DJ
103bfin*-*)
104 cpu_type=bfin
105 ;;
b25364a0
S
106cr16-*-*)
107 ;;
0e499e75
HPN
108crisv32-*-*)
109 cpu_type=cris
110 ;;
7d33c31d
KH
111fido-*-*)
112 cpu_type=m68k
113 ;;
fa958513
DJ
114frv*) cpu_type=frv
115 ;;
cceb575c
AG
116moxie*) cpu_type=moxie
117 ;;
fa958513
DJ
118i[34567]86-*-*)
119 cpu_type=i386
120 ;;
121x86_64-*-*)
122 cpu_type=i386
123 ;;
124ia64-*-*)
125 ;;
cd985f66 126hppa*-*-*)
fa958513
DJ
127 cpu_type=pa
128 ;;
aa4945c1
JB
129lm32*-*-*)
130 cpu_type=lm32
131 ;;
fa958513
DJ
132m32r*-*-*)
133 cpu_type=m32r
134 ;;
fa958513
DJ
135m68k-*-*)
136 ;;
7acf4da6
DD
137mep*-*-*)
138 ;;
80920132
ME
139microblaze*-*-*)
140 cpu_type=microblaze
141 ;;
fa958513 142mips*-*-*)
1ea0a651 143 # All MIPS targets provide a full set of FP routines.
fa958513 144 cpu_type=mips
1c51d688
RS
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
1ea0a651
RS
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"
fa958513 158 ;;
9304f876
CJW
159nds32*-*)
160 cpu_type=nds32
161 ;;
e430824f
CLT
162nios2*-*-*)
163 cpu_type=nios2
164 ;;
fa958513
DJ
165powerpc*-*-*)
166 cpu_type=rs6000
167 ;;
168rs6000*-*-*)
169 ;;
170score*-*-*)
171 cpu_type=score
172 ;;
173sparc64*-*-*)
174 cpu_type=sparc
175 ;;
176sparc*-*-*)
177 cpu_type=sparc
178 ;;
179spu*-*-*)
180 cpu_type=spu
181 ;;
182s390*-*-*)
183 cpu_type=s390
184 ;;
185# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
186sh[123456789lbe]*-*-*)
187 cpu_type=sh
188 ;;
341c653c
WL
189tilegx*-*-*)
190 cpu_type=tilegx
191 ;;
192tilepro*-*-*)
193 cpu_type=tilepro
194 ;;
4be46d19
NC
195v850*-*-*)
196 cpu_type=v850
197 ;;
bcead286
BS
198tic6x-*-*)
199 cpu_type=c6x
200 ;;
fa958513
DJ
201esac
202
203# Common parts for widely ported systems.
204case ${host} in
205*-*-darwin*)
206 asm_hidden_op=.private_extern
f9989b51 207 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin"
e2362f5d 208 extra_parts="crt3.o crttms.o crttme.o"
fa958513 209 ;;
fa958513
DJ
210*-*-freebsd*)
211 # This is the generic ELF configuration of FreeBSD. Later
212 # machine-specific sections may refine and add to this
213 # configuration.
f9989b51 214 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"
5f73c6cc 215 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
b040f2be
RO
216 case ${target_thread_file} in
217 posix)
f9989b51 218 tmake_file="${tmake_file} t-freebsd-thread"
b040f2be
RO
219 # Before 5.0, FreeBSD can't bind shared libraries to -lc
220 # when "optionally" threaded via weak pthread_* checks.
221 case ${host} in
222 *-*-freebsd[34] | *-*-freebsd[34].*)
223 tmake_file="${tmake_file} t-slibgcc-nolc-override"
224 ;;
225 esac
226 ;;
227 esac
fa958513 228 ;;
201cdb74 229*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
f9989b51 230 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"
2077db1b 231 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
fa958513 232 ;;
5f73c6cc 233*-*-lynxos*)
f9989b51 234 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
5f73c6cc
RO
235 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
236 ;;
fa958513 237*-*-netbsd*)
f9989b51 238 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
5f73c6cc
RO
239 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
240 # ELF configurations. We will clear extra_parts in the
241 # a.out configurations.
242 case ${host} in
243 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
244 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
245 ;;
246 esac
fa958513
DJ
247 ;;
248*-*-openbsd*)
8eaee0f0 249 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
f9989b51
RO
250 case ${target_thread_file} in
251 posix)
252 tmake_file="$tmake_file t-openbsd-thread"
253 ;;
254 esac
fa958513
DJ
255 ;;
256*-*-rtems*)
c9cd1a07 257 tmake_file="$tmake_file t-rtems"
5f73c6cc 258 extra_parts="crtbegin.o crtend.o"
fa958513 259 ;;
ca24c5ad 260*-*-solaris2*)
201cdb74
RO
261 # Unless linker support and dl_iterate_phdr are present,
262 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
f9989b51 263 tmake_file="$tmake_file t-sol2 t-eh-dw2-dip t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
ca24c5ad
RO
264 if test $with_gnu_ld = yes; then
265 tmake_file="$tmake_file t-slibgcc-gld"
266 else
267 tmake_file="$tmake_file t-slibgcc-sld"
268 fi
269 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
270 tmake_file="$tmake_file $cpu_type/t-sol2"
271 extra_parts="gmon.o crtbegin.o crtend.o"
272 case ${host} in
fbdd5d87 273 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
ca24c5ad
RO
274 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
275 # part of the base system.
276 ;;
277 sparc*-*-solaris2.1[0-9]*)
278 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
279 extra_parts="$extra_parts crt1.o gcrt1.o"
280 ;;
281 *)
ca24c5ad
RO
282 extra_parts="$extra_parts crt1.o crti.o crtn.o gcrt1.o"
283 ;;
284 esac
285 ;;
5f73c6cc
RO
286*-*-uclinux*)
287 extra_parts="crtbegin.o crtend.o"
288 ;;
289*-*-*vms*)
290 tmake_file="vms/t-vms"
4b12e93d 291 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
5f73c6cc 292 ;;
fa958513 293*-*-vxworks*)
f9989b51 294 tmake_file=t-vxworks
fa958513
DJ
295 ;;
296*-*-elf)
5f73c6cc 297 extra_parts="crtbegin.o crtend.o"
fa958513
DJ
298 ;;
299esac
300
10e48e39 301case ${host} in
5c30094f 302*-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2*)
10e48e39
RO
303 enable_execute_stack=enable-execute-stack-mprotect.c
304 ;;
305i[34567]86-*-mingw* | x86_64-*-mingw*)
306 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
307 ;;
308*)
309 enable_execute_stack=enable-execute-stack-empty.c;
310 ;;
311esac
312
fa958513 313case ${host} in
1e3d5096
IB
314aarch64*-*-elf)
315 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
316 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
317 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
318 ;;
319aarch64*-*-linux*)
320 md_unwind_header=aarch64/linux-unwind.h
321 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
322 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
323 ;;
ebb9f8b0 324alpha*-*-linux*)
f9989b51 325 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
5ea41e3a 326 extra_parts="$extra_parts crtfastmath.o"
58cd1d70 327 md_unwind_header=alpha/linux-unwind.h
fa958513 328 ;;
fa958513 329alpha*-*-freebsd*)
f9989b51 330 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
5f73c6cc 331 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
fa958513
DJ
332 ;;
333alpha*-*-netbsd*)
f9989b51 334 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
fa958513
DJ
335 ;;
336alpha*-*-openbsd*)
f9989b51 337 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
fa958513 338 ;;
fa958513 339alpha64-dec-*vms*)
f9989b51 340 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
5f73c6cc 341 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
58cd1d70 342 md_unwind_header=alpha/vms-unwind.h
fa958513
DJ
343 ;;
344alpha*-dec-*vms*)
f9989b51 345 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
5f73c6cc 346 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
58cd1d70 347 md_unwind_header=alpha/vms-unwind.h
fa958513 348 ;;
d38a64b4
JR
349arc*-*-elf*)
350 tmake_file="arc/t-arc-newlib arc/t-arc"
351 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o libgmon.a crtg.o crtgend.o"
352 ;;
353arc*-*-linux-uclibc*)
354 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc700-uClibc arc/t-arc"
355 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o libgmon.a crtg.o crtgend.o"
356 ;;
fa958513 357arm-wrs-vxworks)
1a80085d 358 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
5f73c6cc 359 extra_parts="$extra_parts crti.o crtn.o"
fa958513 360 ;;
fa958513 361arm*-*-netbsdelf*)
f9989b51 362 tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover"
fa958513 363 ;;
fa958513 364arm*-*-linux*) # ARM GNU/Linux with ELF
45b86625 365 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix"
5005fe22
RE
366 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
367 tm_file="$tm_file arm/bpabi-lib.h"
368 unwind_header=config/arm/unwind-arm.h
aca0b0b3 369 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
fa958513
DJ
370 ;;
371arm*-*-uclinux*) # ARM ucLinux
655b30bf 372 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
064c4ff2 373 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
5005fe22
RE
374 tmake_file="${tmake_file} arm/t-bpabi"
375 tm_file="$tm_file arm/bpabi-lib.h"
376 unwind_header=config/arm/unwind-arm.h
5f73c6cc 377 extra_parts="$extra_parts crti.o crtn.o"
fa958513 378 ;;
153c8397 379arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
45b86625 380 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
852b75ed 381 tm_file="$tm_file arm/bpabi-lib.h"
201cdb74 382 case ${host} in
153c8397 383 arm*-*-eabi* | arm*-*-rtems*)
201cdb74 384 tmake_file="${tmake_file} arm/t-bpabi"
5f73c6cc 385 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
201cdb74
RO
386 ;;
387 arm*-*-symbianelf*)
b040f2be 388 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
852b75ed 389 tm_file="$tm_file arm/symbian-lib.h"
5f73c6cc 390 # Symbian OS provides its own startup code.
201cdb74
RO
391 ;;
392 esac
aca0b0b3 393 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
201cdb74 394 unwind_header=config/arm/unwind-arm.h
fa958513 395 ;;
fa958513 396avr-*-rtems*)
d618bb2c 397 tmake_file="$tmake_file avr/t-avr avr/t-rtems t-fpbit"
852b75ed 398 tm_file="$tm_file avr/avr-lib.h"
5f73c6cc
RO
399 # Don't use default.
400 extra_parts=
fa958513
DJ
401 ;;
402avr-*-*)
569dc494
RO
403 # Make HImode functions for AVR
404 tmake_file="${cpu_type}/t-avr t-fpbit"
b588ae30
GJL
405 if test x${with_avrlibc} != xno; then
406 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
407 fi
852b75ed 408 tm_file="$tm_file avr/avr-lib.h"
fa958513
DJ
409 ;;
410bfin*-elf*)
200feb07 411 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
5f73c6cc 412 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
fa958513
DJ
413 ;;
414bfin*-uclinux*)
200feb07 415 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
5f73c6cc 416 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
58cd1d70 417 md_unwind_header=bfin/linux-unwind.h
fa958513 418 ;;
344189f9 419bfin*-linux-uclibc*)
200feb07 420 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
344189f9
BS
421 # No need to build crtbeginT.o on uClibc systems. Should probably
422 # be moved to the OS specific section above.
423 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
58cd1d70 424 md_unwind_header=bfin/linux-unwind.h
344189f9 425 ;;
569dc494 426bfin*-rtems*)
45b86625 427 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
5f73c6cc 428 extra_parts="$extra_parts crti.o crtn.o"
569dc494 429 ;;
fa958513 430bfin*-*)
45b86625 431 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
5f73c6cc 432 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
fa958513 433 ;;
b25364a0
S
434cr16-*-elf)
435 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
436 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
437 ;;
5f73c6cc 438crisv32-*-elf)
0e499e75 439 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
5f73c6cc 440 ;;
5f73c6cc 441cris-*-elf)
0e499e75 442 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
5f73c6cc 443 ;;
4081d704 444cris-*-linux* | crisv32-*-linux*)
0e499e75 445 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
fa958513 446 ;;
feeeff5c
JR
447epiphany-*-elf*)
448 tmake_file="epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
449 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
450 ;;
fa958513 451fr30-*-elf)
45b86625 452 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
5f73c6cc 453 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
454 ;;
455frv-*-elf)
5f73c6cc 456 tmake_file="$tmake_file frv/t-frv t-fdpbit"
852b75ed 457 tm_file="$tm_file frv/frv-abi.h"
5f73c6cc
RO
458 # Don't use crtbegin.o, crtend.o.
459 extra_parts="frvbegin.o frvend.o"
fa958513
DJ
460 ;;
461frv-*-*linux*)
45b86625 462 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
852b75ed 463 tm_file="$tm_file frv/frv-abi.h"
fa958513 464 ;;
fa958513 465h8300-*-rtems*)
45b86625 466 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
852b75ed 467 tm_file="$tm_file h8300/h8300-lib.h"
5f73c6cc 468 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
469 ;;
470h8300-*-elf*)
45b86625 471 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
852b75ed 472 tm_file="$tm_file h8300/h8300-lib.h"
5f73c6cc 473 extra_parts="$extra_parts crti.o crtn.o"
fa958513 474 ;;
cd985f66 475hppa*64*-*-linux*)
45b86625 476 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
69778659 477 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
fa958513 478 ;;
cd985f66 479hppa*-*-linux*)
45b86625 480 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
b040f2be
RO
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
69778659 487 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
0defd786 488 md_unwind_header=pa/linux-unwind.h
fa958513
DJ
489 ;;
490hppa[12]*-*-hpux10*)
f9989b51 491 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
b040f2be
RO
492 # Set the libgcc version number
493 if test x$enable_sjlj_exceptions = xyes; then
494 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
495 else
496 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
497 fi
498 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
58cd1d70 499 md_unwind_header=pa/hpux-unwind.h
fa958513
DJ
500 ;;
501hppa*64*-*-hpux11*)
9dfd5832 502 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
b040f2be
RO
503 # Set the libgcc version number
504 if test x$enable_sjlj_exceptions = xyes; then
505 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
506 else
507 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
508 fi
509 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
5f73c6cc
RO
510 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
511 libgcc_stub.a"
58cd1d70 512 md_unwind_header=pa/hpux-unwind.h
fa958513
DJ
513 ;;
514hppa[12]*-*-hpux11*)
f9989b51 515 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
b040f2be
RO
516 # Set the libgcc version number
517 if test x$enable_sjlj_exceptions = xyes; then
518 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
519 else
520 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
521 fi
522 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
5f73c6cc 523 extra_parts="libgcc_stub.a"
58cd1d70 524 md_unwind_header=pa/hpux-unwind.h
fa958513 525 ;;
17f293b0
MK
526hppa*-*-openbsd*)
527 tmake_file="$tmake_file pa/t-openbsd"
528 ;;
fa958513 529i[34567]86-*-darwin*)
b3fe1584 530 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
852b75ed 531 tm_file="$tm_file i386/darwin-lib.h"
b3fe1584 532 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
fa958513
DJ
533 ;;
534x86_64-*-darwin*)
b040f2be 535 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
852b75ed 536 tm_file="$tm_file i386/darwin-lib.h"
b3fe1584 537 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
fa958513
DJ
538 ;;
539i[34567]86-*-elf*)
f9989b51 540 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
fa958513 541 ;;
3ae3dbd6 542x86_64-*-elf*)
f9989b51 543 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
3ae3dbd6 544 ;;
fa958513 545i[34567]86-*-freebsd*)
5f73c6cc 546 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
fa958513
DJ
547 ;;
548x86_64-*-freebsd*)
5f73c6cc 549 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
fa958513
DJ
550 ;;
551i[34567]86-*-netbsdelf*)
552 ;;
fa958513 553x86_64-*-netbsd*)
5f73c6cc 554 tmake_file="${tmake_file} i386/t-crtstuff"
fa958513
DJ
555 ;;
556i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
557 ;;
558i[34567]86-*-openbsd*)
559 ;;
613061fd
MK
560x86_64-*-openbsd*)
561 ;;
9e7714f4 562i[34567]86-*-linux*)
577565f9 563 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
5f73c6cc 564 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
58cd1d70 565 md_unwind_header=i386/linux-unwind.h
fa958513 566 ;;
9e7714f4
TS
567i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
568 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
5f73c6cc 569 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
9e7714f4
TS
570 ;;
571x86_64-*-linux*)
577565f9 572 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
5f73c6cc 573 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
58cd1d70 574 md_unwind_header=i386/linux-unwind.h
fa958513 575 ;;
9e7714f4
TS
576x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
577 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
5f73c6cc 578 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
9e7714f4 579 ;;
fa958513
DJ
580i[34567]86-pc-msdosdjgpp*)
581 ;;
582i[34567]86-*-lynxos*)
583 ;;
fa958513 584i[34567]86-*-nto-qnx*)
f9989b51 585 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
5f73c6cc 586 extra_parts=crtbegin.o
fa958513
DJ
587 ;;
588i[34567]86-*-rtems*)
02ac9503 589 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdf t-softfp"
5f73c6cc 590 extra_parts="$extra_parts crti.o crtn.o"
fa958513 591 ;;
fbdd5d87 592i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
b3fe1584
RO
593 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
594 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
58cd1d70 595 md_unwind_header=i386/sol2-unwind.h
fa958513 596 ;;
fa958513
DJ
597i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
598 ;;
58cd1d70 599i[34567]86-*-cygwin*)
76f5e200 600 extra_parts="crtbegin.o crtend.o crtfastmath.o"
b040f2be
RO
601 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
602 if test x$enable_sjlj_exceptions = xyes; then
603 tmake_eh_file="i386/t-sjlj-eh"
604 else
605 tmake_eh_file="i386/t-dw2-eh"
606 fi
607 # Shared libgcc DLL install dir depends on cross/native build.
608 if test x${build} = x${host} ; then
609 tmake_dlldir_file="i386/t-dlldir"
610 else
611 tmake_dlldir_file="i386/t-dlldir-x"
612 fi
45b86625 613 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"
9bd196f0 614 ;;
e9fd8c19
KT
615x86_64-*-cygwin*)
616 extra_parts="crtbegin.o crtend.o crtfastmath.o"
617 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
618 if test x$enable_sjlj_exceptions = xyes; then
619 tmake_eh_file="i386/t-sjlj-eh"
620 else
621 tmake_eh_file="i386/t-seh-eh"
622 fi
623 # Shared libgcc DLL install dir depends on cross/native build.
624 if test x${build} = x${host} ; then
625 tmake_dlldir_file="i386/t-dlldir"
626 else
627 tmake_dlldir_file="i386/t-dlldir-x"
628 fi
629 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
630 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin i386/t-crtfm t-dfprules i386/t-chkstk"
631 ;;
58cd1d70
RO
632i[34567]86-*-mingw*)
633 extra_parts="crtbegin.o crtend.o crtfastmath.o"
f9989b51
RO
634 case ${target_thread_file} in
635 win32)
636 tmake_file="$tmake_file i386/t-gthr-win32"
637 ;;
e3d871e4
RO
638 posix)
639 tmake_file="i386/t-mingw-pthread $tmake_file"
640 ;;
f9989b51 641 esac
b040f2be
RO
642 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
643 if test x$enable_sjlj_exceptions = xyes; then
644 tmake_eh_file="i386/t-sjlj-eh"
645 else
646 tmake_eh_file="i386/t-dw2-eh"
0c0c6398 647 md_unwind_header=i386/w32-unwind.h
b040f2be
RO
648 fi
649 # Shared libgcc DLL install dir depends on cross/native build.
650 if test x${build} = x${host} ; then
651 tmake_dlldir_file="i386/t-dlldir"
652 else
653 tmake_dlldir_file="i386/t-dlldir-x"
654 fi
45b86625 655 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"
58cd1d70 656 ;;
9bd196f0 657x86_64-*-mingw*)
f9989b51
RO
658 case ${target_thread_file} in
659 win32)
660 tmake_file="$tmake_file i386/t-gthr-win32"
661 ;;
e3d871e4
RO
662 posix)
663 tmake_file="i386/t-mingw-pthread $tmake_file"
664 ;;
f9989b51 665 esac
b040f2be
RO
666 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
667 if test x$enable_sjlj_exceptions = xyes; then
668 tmake_eh_file="i386/t-sjlj-eh"
669 else
bf1431e3 670 tmake_eh_file="i386/t-seh-eh"
b040f2be
RO
671 fi
672 # Shared libgcc DLL install dir depends on cross/native build.
673 if test x${build} = x${host} ; then
674 tmake_dlldir_file="i386/t-dlldir"
675 else
676 tmake_dlldir_file="i386/t-dlldir-x"
677 fi
45b86625 678 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"
35d8090d 679 extra_parts="$extra_parts crtfastmath.o"
fa958513 680 ;;
daecebc8 681i[34567]86-*-interix[3-9]*)
f9989b51 682 tmake_file="$tmake_file i386/t-interix i386/t-chkstk"
fa958513 683 ;;
fa958513 684ia64*-*-elf*)
5f73c6cc 685 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
1ab3568b 686 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
fa958513
DJ
687 ;;
688ia64*-*-freebsd*)
5f73c6cc 689 extra_parts="$extra_parts crtfastmath.o"
1ab3568b 690 tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
fa958513
DJ
691 ;;
692ia64*-*-linux*)
5f73c6cc 693 # Don't use crtbeginT.o from *-*-linux* default.
fa958513 694 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1ab3568b 695 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"
201cdb74 696 if test x$with_system_libunwind != xyes ; then
b040f2be 697 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
201cdb74 698 fi
58cd1d70 699 md_unwind_header=ia64/linux-unwind.h
fa958513
DJ
700 ;;
701ia64*-*-hpux*)
1ab3568b 702 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
fa958513 703 ;;
a9a25daa 704ia64-hp-*vms*)
45b86625 705 tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms"
5f73c6cc 706 extra_parts="$extra_parts crtinitS.o"
58cd1d70 707 md_unwind_header=ia64/vms-unwind.h
a9a25daa 708 ;;
fa958513 709iq2000*-*-elf*)
d4b4b542 710 tmake_file="iq2000/t-iq2000 t-fdpbit"
5f73c6cc
RO
711 # Don't use default.
712 extra_parts=
fa958513 713 ;;
c9cd1a07 714lm32-*-elf*)
5f73c6cc 715 extra_parts="$extra_parts crti.o crtn.o"
aca0b0b3 716 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
aa4945c1 717 ;;
c9cd1a07
RO
718lm32-*-rtems*)
719 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
720 extra_parts="$extra_parts crti.o crtn.o"
721 ;;
aa4945c1 722lm32-*-uclinux*)
5f73c6cc 723 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
f9989b51 724 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
aa4945c1 725 ;;
5f73c6cc 726m32r-*-elf*)
569dc494 727 tmake_file=t-fdpbit
fa958513 728 ;;
5f73c6cc 729m32r-*-rtems*)
c9cd1a07 730 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
c1d4fa04 731 extra_parts="$extra_parts crtinit.o crtfini.o"
5f73c6cc 732 ;;
fa958513 733m32rle-*-elf*)
569dc494 734 tmake_file=t-fdpbit
fa958513
DJ
735 ;;
736m32r-*-linux*)
5f73c6cc 737 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
fa958513
DJ
738 ;;
739m32rle-*-linux*)
5f73c6cc 740 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
fa958513 741 ;;
45b86625
RO
742m68k-*-elf* | fido-*-elf)
743 tmake_file="$tmake_file m68k/t-floatlib"
fa958513 744 ;;
cd985f66 745m68k*-*-netbsdelf*)
fa958513
DJ
746 ;;
747m68k*-*-openbsd*)
748 ;;
8b281334
RH
749m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
750 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
58cd1d70 751 md_unwind_header=m68k/linux-unwind.h
fa958513 752 ;;
58cd1d70 753m68k-*-linux*) # Motorola m68k's running GNU/Linux
fa958513
DJ
754 # with ELF format using glibc 2
755 # aka the GNU/Linux C library 6.
8b281334 756 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
b040f2be
RO
757 # If not configured with --enable-sjlj-exceptions, bump the
758 # libgcc version number.
759 if test x$enable_sjlj_exceptions != xyes; then
760 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
761 fi
58cd1d70 762 md_unwind_header=m68k/linux-unwind.h
fa958513
DJ
763 ;;
764m68k-*-rtems*)
45b86625 765 tmake_file="$tmake_file m68k/t-floatlib"
5f73c6cc 766 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
767 ;;
768mcore-*-elf)
45b86625 769 tmake_file="mcore/t-mcore t-fdpbit"
5f73c6cc 770 extra_parts="$extra_parts crti.o crtn.o"
fa958513 771 ;;
b040f2be 772microblaze*-linux*)
fbf0cf90 773 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
b040f2be 774 ;;
6f14eef2
EI
775microblaze*-*-elf)
776 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
777 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
80920132 778 ;;
3fa2ccb4
RC
779microblaze*-*-rtems*)
780 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
781 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
782 ;;
fa958513
DJ
783mips*-*-netbsd*) # NetBSD/mips, either endian.
784 ;;
fa958513 785mips*-*-linux*) # Linux MIPS, either endian.
48b09a92 786 extra_parts="$extra_parts crtfastmath.o"
107eea2c 787 tmake_file="${tmake_file} t-crtfm"
107eea2c 788 case ${host} in
0f9bde1f
MR
789 mips64r5900* | mipsr5900*)
790 # The MIPS16 support code uses floating point
791 # instructions that are not supported on r5900.
792 ;;
793 *)
794 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
795 ;;
107eea2c 796 esac
58cd1d70 797 md_unwind_header=mips/linux-unwind.h
fa958513 798 ;;
569dc494 799mips*-sde-elf*)
eb028768 800 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
569dc494
RO
801 case "${with_newlib}" in
802 yes)
803 # newlib / libgloss.
804 ;;
805 *)
806 # MIPS toolkit libraries.
5f73c6cc 807 tmake_file="$tmake_file mips/t-sdemtk"
569dc494
RO
808 ;;
809 esac
5f73c6cc 810 extra_parts="$extra_parts crti.o crtn.o"
569dc494 811 ;;
c6412d86
RO
812mipsisa32-*-elf* | mipsisa32el-*-elf* | \
813mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
814mipsisa64-*-elf* | mipsisa64el-*-elf* | \
0a4a51c7 815mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
f9989b51 816 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 817 extra_parts="$extra_parts crti.o crtn.o"
0a4a51c7 818 ;;
fa958513 819mipsisa64sr71k-*-elf*)
eb028768 820 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
5f73c6cc 821 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
822 ;;
823mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
f9989b51 824 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 825 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
826 ;;
827mips-*-elf* | mipsel-*-elf*)
f9989b51 828 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 829 extra_parts="$extra_parts crti.o crtn.o"
fa958513 830 ;;
107eea2c
JU
831mipsr5900-*-elf* | mipsr5900el-*-elf*)
832 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
833 extra_parts="$extra_parts crti.o crtn.o"
834 ;;
fa958513 835mips64-*-elf* | mips64el-*-elf*)
f9989b51 836 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 837 extra_parts="$extra_parts crti.o crtn.o"
fa958513 838 ;;
107eea2c
JU
839mips64r5900-*-elf* | mips64r5900el-*-elf*)
840 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
841 extra_parts="$extra_parts crti.o crtn.o"
842 ;;
fa958513 843mips64vr-*-elf* | mips64vrel-*-elf*)
f9989b51 844 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
5f73c6cc 845 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
846 ;;
847mips64orion-*-elf* | mips64orionel-*-elf*)
f9989b51 848 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 849 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
850 ;;
851mips*-*-rtems*)
f9989b51 852 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 853 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
854 ;;
855mips-wrs-vxworks)
856 ;;
fa958513 857mipstx39-*-elf* | mipstx39el-*-elf*)
5f73c6cc 858 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
fa958513
DJ
859 ;;
860mmix-knuth-mmixware)
e7c914db
HPN
861 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
862 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
fa958513
DJ
863 ;;
864mn10300-*-*)
569dc494 865 tmake_file=t-fdpbit
fa958513 866 ;;
5f73c6cc 867moxie-*-elf | moxie-*-uclinux*)
aca0b0b3 868 tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
5f73c6cc
RO
869 extra_parts="$extra_parts crti.o crtn.o"
870 ;;
871moxie-*-rtems*)
c9cd1a07 872 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
5f73c6cc
RO
873 # Don't use default.
874 extra_parts=
cceb575c 875 ;;
f6a83b4a
DD
876msp430*-*-elf)
877 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
878 ;;
9304f876
CJW
879nds32*-elf*)
880 # Basic makefile fragment and extra_parts for crt stuff.
881 # We also append c-isr library implementation.
882 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
883 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
884 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
885 case "${with_nds32_lib}" in
886 "" | newlib)
887 # Append library definition makefile fragment t-nds32-newlib.
888 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
889 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
890 ;;
891 mculib)
892 # Append library definition makefile fragment t-nds32-mculib.
893 # The software floating point library is included in mculib.
894 tmake_file="${tmake_file} nds32/t-nds32-mculib"
895 ;;
896 *)
897 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
898 exit 1
899 ;;
900 esac
901 ;;
e430824f
CLT
902nios2-*-linux*)
903 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
904 extra_parts="$extra_parts crti.o crtn.o"
905 md_unwind_header=nios2/linux-unwind.h
906 ;;
907nios2-*-*)
908 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
909 extra_parts="$extra_parts crti.o crtn.o"
910 ;;
fa958513 911pdp11-*-*)
f9989b51 912 tmake_file="pdp11/t-pdp11 t-fdpbit"
fa958513 913 ;;
358da97e 914picochip-*-*)
569dc494 915 tmake_file="picochip/t-picochip t-fpbit"
358da97e 916 ;;
fa958513 917powerpc-*-darwin*)
58cd1d70
RO
918 case ${host} in
919 *-*-darwin9* | *-*-darwin[12][0-9]*)
920 # libSystem contains unwind information for signal frames since
921 # Darwin 9.
922 ;;
923 *)
924 md_unwind_header=rs6000/darwin-unwind.h
925 ;;
926 esac
aca0b0b3 927 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
e141542e 928 extra_parts="$extra_parts crt2.o"
fa958513
DJ
929 ;;
930powerpc64-*-darwin*)
f9989b51 931 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
e141542e 932 extra_parts="$extra_parts crt2.o"
fa958513 933 ;;
d82ad50d
AT
934powerpc*-*-freebsd*)
935 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
5f73c6cc 936 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
d82ad50d
AT
937 case ${host} in
938 powerpc64*)
939 tmake_file="${tmake_file} rs6000/t-freebsd64"
940 md_unwind_header=rs6000/freebsd-unwind.h
941 ;;
942 esac
fa958513
DJ
943 ;;
944powerpc-*-netbsd*)
d4b4b542 945 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
fa958513 946 ;;
fa958513 947powerpc-*-eabispe*)
7da38058 948 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 949 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
950 ;;
951powerpc-*-eabisimaltivec*)
f9c55897 952 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 953 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
954 ;;
955powerpc-*-eabisim*)
f9c55897 956 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 957 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
958 ;;
959powerpc-*-elf*)
49dcafd4 960 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 961 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
962 ;;
963powerpc-*-eabialtivec*)
f9c55897 964 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 965 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
569dc494
RO
966 ;;
967powerpc-xilinx-eabi*)
f9c55897 968 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 969 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
970 ;;
971powerpc-*-eabi*)
f9c55897 972 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 973 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
974 ;;
975powerpc-*-rtems*)
6f288860 976 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 977 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513 978 ;;
b9a7eb5d 979powerpc*-*-linux*)
f9c55897 980 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"
5f73c6cc 981 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
58cd1d70 982 md_unwind_header=rs6000/linux-unwind.h
fa958513 983 ;;
fa958513 984powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
49dcafd4 985 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
fa958513 986 ;;
fa958513 987powerpc-*-lynxos*)
d4b4b542 988 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
fa958513 989 ;;
fa958513 990powerpcle-*-elf*)
f9c55897 991 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 992 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
993 ;;
994powerpcle-*-eabisim*)
f9c55897 995 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 996 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
997 ;;
998powerpcle-*-eabi*)
f9c55897 999 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 1000 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513 1001 ;;
fa958513 1002rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
201cdb74 1003 md_unwind_header=rs6000/aix-unwind.h
138f5acd 1004 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
fa958513
DJ
1005 ;;
1006rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
201cdb74 1007 md_unwind_header=rs6000/aix-unwind.h
138f5acd 1008 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
fa958513
DJ
1009 ;;
1010rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
201cdb74 1011 md_unwind_header=rs6000/aix-unwind.h
99113dff
DE
1012 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1013 extra_parts="crtcxa.o crtcxa_s.o"
fa958513 1014 ;;
85b8555e
DD
1015rl78-*-elf)
1016 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1017 ;;
65a324b4 1018rx-*-elf)
569dc494 1019 tmake_file="rx/t-rx t-fdpbit"
852b75ed 1020 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
65a324b4 1021 ;;
fa958513 1022s390-*-linux*)
81dd9fd7 1023 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
58cd1d70 1024 md_unwind_header=s390/linux-unwind.h
fa958513
DJ
1025 ;;
1026s390x-*-linux*)
bbf391db 1027 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
58cd1d70 1028 md_unwind_header=s390/linux-unwind.h
fa958513
DJ
1029 ;;
1030s390x-ibm-tpf*)
f9989b51 1031 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
5f73c6cc 1032 extra_parts="crtbeginS.o crtendS.o"
10c4cabc 1033 md_unwind_header=s390/tpf-unwind.h
fa958513
DJ
1034 ;;
1035score-*-elf)
aca0b0b3 1036 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp"
5f73c6cc 1037 extra_parts="$extra_parts crti.o crtn.o"
fa958513 1038 ;;
5f73c6cc
RO
1039sh-*-elf* | sh[12346l]*-*-elf*)
1040 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1041 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1042 libic_invalidate_array_4-100.a \
1043 libic_invalidate_array_4-200.a \
1044 libic_invalidate_array_4a.a \
1045 libgcc-Os-4-200.a libgcc-4-300.a"
45b86625
RO
1046 case ${host} in sh64*-*-*)
1047 tmake_file="$tmake_file sh/t-sh64"
1048 ;;
1049 esac
26900826 1050 case ${host} in
5f73c6cc
RO
1051 sh*-superh-elf)
1052 tmake_file="$tmake_file sh/t-superh"
1053 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1054 ;;
1055 esac
1056 ;;
1057sh-*-linux* | sh[2346lbe]*-*-linux*)
45b86625
RO
1058 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1059 case ${host} in sh64*-*-linux*)
1060 tmake_file="$tmake_file sh/t-sh64"
1061 ;;
1062 esac
5f73c6cc
RO
1063 md_unwind_header=sh/linux-unwind.h
1064 ;;
1065sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1066 sh64-*-netbsd* | sh64l*-*-netbsd*)
45b86625
RO
1067 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1068 case ${host} in
1069 sh5*-*-netbsd* | sh64*-netbsd*)
1070 tmake_file="$tmake_file sh/t-sh64"
1071 ;;
1072 esac
5f73c6cc
RO
1073 # NetBSD's C library includes a fast software FP library that
1074 # has support for setting/setting the rounding mode, exception
1075 # mask, etc. Therefore, we don't want to include software FP
1076 # in libgcc.
fa958513 1077 ;;
fa958513 1078sh-*-rtems*)
45b86625 1079 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
5f73c6cc 1080 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
76c78361
RC
1081 libic_invalidate_array_4-100.a \
1082 libic_invalidate_array_4-200.a \
1083 libic_invalidate_array_4a.a \
1084 libgcc-Os-4-200.a libgcc-4-300.a"
fa958513
DJ
1085 ;;
1086sh-wrs-vxworks)
45b86625 1087 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
fa958513 1088 ;;
fa958513
DJ
1089sparc-*-netbsdelf*)
1090 ;;
1091sparc64-*-openbsd*)
1092 ;;
1093sparc-*-elf*)
ca24c5ad
RO
1094 case ${host} in
1095 *-leon[3-9]*)
1096 ;;
1097 *)
1098 tmake_file="sparc/t-softmul"
1099 ;;
1100 esac
5f73c6cc
RO
1101 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1102 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
fa958513
DJ
1103 ;;
1104sparc-*-linux*) # SPARC's running GNU/Linux, libc6
d2a7d041
DM
1105 tmake_file="${tmake_file} t-crtfm"
1106 if test "${host_address}" = 64; then
1107 tmake_file="$tmake_file sparc/t-linux64"
1108 fi
569dc494
RO
1109 case ${host} in
1110 *-leon*)
b040f2be
RO
1111 tmake_file="${tmake_file} t-fdpbit"
1112 ;;
1113 *)
1114 tmake_file="${tmake_file} sparc/t-linux"
569dc494
RO
1115 ;;
1116 esac
45b86625
RO
1117 case ${host} in
1118 *-leon[3-9]*)
1119 ;;
1120 *)
d2a7d041
DM
1121 if test "${host_address}" = 32; then
1122 tmake_file="$tmake_file sparc/t-softmul"
1123 fi
45b86625
RO
1124 ;;
1125 esac
fa958513 1126 extra_parts="$extra_parts crtfastmath.o"
10c4cabc 1127 md_unwind_header=sparc/linux-unwind.h
fa958513 1128 ;;
569dc494 1129sparc-*-rtems*)
c9cd1a07 1130 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
5f73c6cc 1131 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
fa958513 1132 ;;
ca24c5ad
RO
1133sparc*-*-solaris2*)
1134 tmake_file="$tmake_file t-crtfm"
1135 extra_parts="$extra_parts crtfastmath.o"
58cd1d70 1136 md_unwind_header=sparc/sol2-unwind.h
fa958513 1137 ;;
fa958513 1138sparc64-*-elf*)
5f73c6cc
RO
1139 tmake_file="${tmake_file} t-crtfm"
1140 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
fa958513 1141 ;;
569dc494 1142sparc64-*-rtems*)
43a8f1a1 1143 tmake_file="$tmake_file t-crtfm"
5f73c6cc 1144 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
569dc494 1145 ;;
1910440e
RS
1146sparc-wrs-vxworks)
1147 ;;
fa958513 1148sparc64-*-freebsd*|ultrasparc-*-freebsd*)
35d8090d 1149 tmake_file="$tmake_file t-crtfm"
5f73c6cc 1150 extra_parts="$extra_parts crtfastmath.o"
fa958513
DJ
1151 ;;
1152sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1153 extra_parts="$extra_parts crtfastmath.o"
d2a7d041
DM
1154 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1155 if test "${host_address}" = 64; then
1156 tmake_file="${tmake_file} sparc/t-linux64"
1157 fi
1158 if test "${host_address}" = 32; then
1159 tmake_file="${tmake_file} sparc/t-softmul"
1160 fi
58cd1d70 1161 md_unwind_header=sparc/linux-unwind.h
fa958513
DJ
1162 ;;
1163sparc64-*-netbsd*)
1164 ;;
1165spu-*-elf*)
f9989b51 1166 tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
5f73c6cc
RO
1167 extra_parts="$extra_parts \
1168 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1169 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1170 libgcc_cache64k.a libgcc_cache128k.a"
fa958513 1171 ;;
b040f2be 1172tic6x-*-uclinux)
4d5ae4ea
BS
1173 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1174 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1175 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
852b75ed 1176 tm_file="$tm_file c6x/c6x-abi.h"
4d5ae4ea 1177 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
b040f2be
RO
1178 unwind_header=config/c6x/unwind-c6x.h
1179 ;;
5f73c6cc
RO
1180tic6x-*-elf)
1181 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
852b75ed 1182 tm_file="$tm_file c6x/c6x-abi.h"
5f73c6cc 1183 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1e874273 1184 unwind_header=config/c6x/unwind-c6x.h
bcead286 1185 ;;
341c653c 1186tilegx*-*-linux*)
dd552284
WL
1187 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf tilegx/t-softfp t-softfp tilegx/t-tilegx"
1188 md_unwind_header=tilepro/linux-unwind.h
1189 ;;
341c653c 1190tilepro*-*-linux*)
dd552284
WL
1191 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro"
1192 md_unwind_header=tilepro/linux-unwind.h
1193 ;;
4be46d19 1194v850*-*-*)
45b86625 1195 tmake_file="v850/t-v850 t-fdpbit"
fa958513 1196 ;;
fea96e25 1197vax-*-linux*)
45b86625 1198 tmake_file="$tmake_file vax/t-linux"
fea96e25 1199 ;;
fa958513
DJ
1200vax-*-netbsdelf*)
1201 ;;
fa958513
DJ
1202vax-*-openbsd*)
1203 ;;
fa958513 1204xstormy16-*-elf)
200feb07 1205 tmake_file="stormy16/t-stormy16 t-fdpbit"
fa958513 1206 ;;
c660f132 1207xtensa*-*-elf*)
5f73c6cc
RO
1208 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1209 extra_parts="$extra_parts crti.o crtn.o"
fa958513 1210 ;;
c660f132 1211xtensa*-*-linux*)
800d8bd5 1212 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
58cd1d70 1213 md_unwind_header=xtensa/linux-unwind.h
fa958513
DJ
1214 ;;
1215am33_2.0-*-linux*)
5f73c6cc 1216 # Don't need crtbeginT.o from *-*-linux* default.
fa958513 1217 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
b040f2be 1218 tmake_file="$tmake_file t-fdpbit"
fa958513 1219 ;;
541ed00e 1220m32c-*-elf*|m32c-*-rtems*)
45b86625 1221 tmake_file="$tmake_file m32c/t-m32c"
fa958513 1222 ;;
7acf4da6 1223mep*-*-*)
5f73c6cc
RO
1224 tmake_file="mep/t-mep t-fdpbit"
1225 extra_parts="crtbegin.o crtend.o"
7acf4da6 1226 ;;
fa958513
DJ
1227*)
1228 echo "*** Configuration ${host} not supported" 1>&2
1229 exit 1
1230 ;;
1231esac
6f461e76 1232
aca06c90
RO
1233case ${host} in
1234i[34567]86-*-* | x86_64-*-*)
1235 tmake_file="${tmake_file} i386/t-cpuinfo"
1236 ;;
1237esac
1238
6f461e76 1239case ${host} in
2a761e46 1240i[34567]86-*-linux* | x86_64-*-linux* | \
b040f2be
RO
1241 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1242 i[34567]86-*-knetbsd*-gnu | \
2a761e46 1243 i[34567]86-*-gnu*)
aca06c90 1244 tmake_file="${tmake_file} t-tls i386/t-linux"
b6110d6d 1245 if test "$libgcc_cv_cfi" = "yes"; then
ca007d11 1246 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
b6110d6d 1247 fi
6f461e76
L
1248 ;;
1249esac
ff473280
L
1250
1251case ${host} in
1252i[34567]86-*-darwin* | x86_64-*-darwin* | \
532bfb0a 1253 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
e997fb9c 1254 i[34567]86-*-linux* | x86_64-*-linux* | \
3f56ef8b 1255 i[34567]86-*-gnu* | \
fbdd5d87 1256 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
e9fd8c19
KT
1257 i[34567]86-*-cygwin* | x86_64-*-cygwin* | \
1258 i[34567]86-*-mingw* | x86_64-*-mingw* | \
25c210f9
MK
1259 i[34567]86-*-freebsd* | x86_64-*-freebsd* | \
1260 i[34567]86-*-openbsd* | x86_64-*-openbsd*)
aca0b0b3 1261 tmake_file="${tmake_file} t-softfp-tf"
c174f11c 1262 if test "${host_address}" = 32; then
aca0b0b3 1263 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
c174f11c 1264 fi
492fbea1 1265 tmake_file="${tmake_file} i386/t-softfp t-softfp"
c174f11c
L
1266 ;;
1267esac
1268
1269case ${host} in
1270i[34567]86-*-linux* | x86_64-*-linux*)
1271 # Provide backward binary compatibility for 64bit Linux/x86.
1272 if test "${host_address}" = 64; then
1273 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1274 fi
852b75ed 1275 tm_file="${tm_file} i386/value-unwind.h"
ff473280
L
1276 ;;
1277esac