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