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