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