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