]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config.host
2018-04-06 Thomas Koenig <tkoenig@gcc.gnu.org>
[thirdparty/gcc.git] / libgcc / config.host
CommitLineData
894a47b4 1# libgcc host-specific configuration file.
8e8f6434 2# Copyright (C) 1997-2018 Free Software Foundation, Inc.
894a47b4 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
6bc9506f 8#Software Foundation; either version 3, or (at your option) any later
894a47b4 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
6bc9506f 17#along with GCC; see the file COPYING3. If not see
18#<http://www.gnu.org/licenses/>.
894a47b4 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.
a6f06169 46# enable_execute_stack The name of a source file implementing
47# __enable_execute_stack.
894a47b4 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.
1e53920f 54# md_unwind_header The name of a header file defining
55# MD_FALLBACK_FRAME_STATE_FOR.
84600db5 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.
894a47b4 59# tmake_file A list of machine-description-specific
2219274c 60# makefile fragments.
022a2799 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.
e59be7e3 66# unwind_header The name of the header file declaring the unwind
67# runtime interface routines.
894a47b4 68
69asm_hidden_op=.hidden
a6f06169 70enable_execute_stack=
894a47b4 71extra_parts=
72tmake_file=
022a2799 73tm_file=
74tm_define=
1e53920f 75md_unwind_header=no-unwind.h
e59be7e3 76unwind_header=unwind-generic.h
894a47b4 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
a23b9c51 83 tmake_file=t-fdpbit
894a47b4 84 ;;
1b3d2097 85aarch64*-*-*)
86 cpu_type=aarch64
87 ;;
894a47b4 88alpha*-*-*)
89 cpu_type=alpha
90 ;;
91am33_2.0-*-linux*)
92 cpu_type=mn10300
93 ;;
8eaaaea3 94arc*-*-*)
95 cpu_type=arc
96 ;;
894a47b4 97arm*-*-*)
98 cpu_type=arm
99 ;;
38dd5584 100avr-*-*)
101 cpu_type=avr
102 ;;
894a47b4 103bfin*-*)
104 cpu_type=bfin
105 ;;
b9fdd12b 106cr16-*-*)
107 ;;
b4294f67 108crisv32-*-*)
109 cpu_type=cris
110 ;;
278e2fd1 111fido-*-*)
112 cpu_type=m68k
113 ;;
894a47b4 114frv*) cpu_type=frv
115 ;;
b6616c9c 116ft32*) cpu_type=ft32
117 ;;
be52b6d8 118moxie*) cpu_type=moxie
119 ;;
894a47b4 120i[34567]86-*-*)
121 cpu_type=i386
122 ;;
123x86_64-*-*)
124 cpu_type=i386
125 ;;
126ia64-*-*)
127 ;;
6af9f7ea 128hppa*-*-*)
894a47b4 129 cpu_type=pa
130 ;;
f6fe91e8 131lm32*-*-*)
132 cpu_type=lm32
133 ;;
894a47b4 134m32r*-*-*)
135 cpu_type=m32r
136 ;;
894a47b4 137m68k-*-*)
138 ;;
d34b0d1e 139microblaze*-*-*)
140 cpu_type=microblaze
141 ;;
894a47b4 142mips*-*-*)
9bcbf352 143 # All MIPS targets provide a full set of FP routines.
894a47b4 144 cpu_type=mips
4b366ca9 145 tmake_file="mips/t-mips"
146 if test "${libgcc_cv_mips_hard_float}" = yes; then
147 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
148 else
149 tmake_file="${tmake_file} t-softfp-sfdf"
150 fi
9bcbf352 151 if test "${ac_cv_sizeof_long_double}" = 16; then
152 tmake_file="${tmake_file} mips/t-softfp-tf"
153 fi
154 if test "${host_address}" = 64; then
155 tmake_file="${tmake_file} mips/t-mips64"
156 fi
157 tmake_file="${tmake_file} t-softfp"
894a47b4 158 ;;
eae21ed1 159nds32*-*)
160 cpu_type=nds32
161 ;;
de65406d 162nios2*-*-*)
163 cpu_type=nios2
164 ;;
894a47b4 165powerpc*-*-*)
166 cpu_type=rs6000
167 ;;
168rs6000*-*-*)
169 ;;
36387fad 170riscv*-*-*)
171 cpu_type=riscv
172 ;;
894a47b4 173sparc64*-*-*)
174 cpu_type=sparc
175 ;;
176sparc*-*-*)
177 cpu_type=sparc
178 ;;
179spu*-*-*)
180 cpu_type=spu
181 ;;
182s390*-*-*)
183 cpu_type=s390
184 ;;
185# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
186sh[123456789lbe]*-*-*)
187 cpu_type=sh
188 ;;
2da35515 189tilegx*-*-*)
190 cpu_type=tilegx
191 ;;
192tilepro*-*-*)
193 cpu_type=tilepro
194 ;;
707238af 195v850*-*-*)
196 cpu_type=v850
197 ;;
5aa04b01 198tic6x-*-*)
199 cpu_type=c6x
200 ;;
894a47b4 201esac
202
203# Common parts for widely ported systems.
204case ${host} in
205*-*-darwin*)
206 asm_hidden_op=.private_extern
4dc4ff49 207 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin"
8f8ba4fc 208 extra_parts="crt3.o crttms.o crttme.o"
894a47b4 209 ;;
463553db 210*-*-dragonfly*)
211 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
212 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
213 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
214 ;;
894a47b4 215*-*-freebsd*)
216 # This is the generic ELF configuration of FreeBSD. Later
217 # machine-specific sections may refine and add to this
218 # configuration.
4dc4ff49 219 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"
237490bf 220 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
a997b0d8 221 case ${target_thread_file} in
222 posix)
4dc4ff49 223 tmake_file="${tmake_file} t-freebsd-thread"
a997b0d8 224 # Before 5.0, FreeBSD can't bind shared libraries to -lc
225 # when "optionally" threaded via weak pthread_* checks.
226 case ${host} in
227 *-*-freebsd[34] | *-*-freebsd[34].*)
228 tmake_file="${tmake_file} t-slibgcc-nolc-override"
229 ;;
230 esac
231 ;;
232 esac
894a47b4 233 ;;
9b859c0a 234*-*-fuchsia*)
235 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
236 extra_parts="crtbegin.o crtend.o"
237 ;;
79573034 238*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
4dc4ff49 239 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"
ec5f5503 240 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
241 if test x$enable_vtable_verify = xyes; then
242 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
243 fi
894a47b4 244 ;;
237490bf 245*-*-lynxos*)
4dc4ff49 246 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
237490bf 247 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
248 ;;
894a47b4 249*-*-netbsd*)
9834d450 250 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
251 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
7303090d 252 tmake_file="$tmake_file t-slibgcc-libgcc"
63d551af 253 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
894a47b4 254 ;;
255*-*-openbsd*)
81ae3d37 256 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
4dc4ff49 257 case ${target_thread_file} in
258 posix)
259 tmake_file="$tmake_file t-openbsd-thread"
260 ;;
261 esac
894a47b4 262 ;;
263*-*-rtems*)
fbb6f195 264 tmake_file="$tmake_file t-rtems"
237490bf 265 extra_parts="crtbegin.o crtend.o"
894a47b4 266 ;;
63abf89e 267*-*-solaris2*)
e59be7e3 268 # Unless linker support and dl_iterate_phdr are present,
269 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
80fc7cb7 270 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
63abf89e 271 if test $with_gnu_ld = yes; then
272 tmake_file="$tmake_file t-slibgcc-gld"
273 else
274 tmake_file="$tmake_file t-slibgcc-sld"
275 fi
276 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
277 tmake_file="$tmake_file $cpu_type/t-sol2"
278 extra_parts="gmon.o crtbegin.o crtend.o"
ba24ad38 279 if test "${libgcc_cv_solaris_crts}" = yes; then
9273bda7 280 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
ba24ad38 281 # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
282 extra_parts="$extra_parts crtp.o crtpg.o"
80fc7cb7 283 # If the Solaris CRTs are present, both ld and gld will have PIE support.
284 extra_parts="$extra_parts crtbeginS.o crtendS.o"
ba24ad38 285 else
286 case ${host} in
287 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
288 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
289 # part of the base system.
290 ;;
291 sparc*-*-solaris2.1[0-9]*)
292 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
293 extra_parts="$extra_parts crt1.o gcrt1.o"
294 ;;
295 esac
296 fi
08de21a4 297 if test x$enable_vtable_verify = xyes; then
298 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
299 fi
63abf89e 300 ;;
237490bf 301*-*-uclinux*)
302 extra_parts="crtbegin.o crtend.o"
303 ;;
304*-*-*vms*)
305 tmake_file="vms/t-vms"
784576c7 306 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
237490bf 307 ;;
0c11960e 308*-*-vxworks7*)
899cdd88 309 tmake_file=t-vxworks7
310 ;;
894a47b4 311*-*-vxworks*)
4dc4ff49 312 tmake_file=t-vxworks
894a47b4 313 ;;
314*-*-elf)
237490bf 315 extra_parts="crtbegin.o crtend.o"
894a47b4 316 ;;
317esac
318
a6f06169 319case ${host} in
463553db 320*-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
321 *-*-solaris2*)
a6f06169 322 enable_execute_stack=enable-execute-stack-mprotect.c
323 ;;
324i[34567]86-*-mingw* | x86_64-*-mingw*)
325 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
326 ;;
6a000628 327i[34567]86-*-cygwin* | x86_64-*-cygwin*)
328 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
329 ;;
a6f06169 330*)
331 enable_execute_stack=enable-execute-stack-empty.c;
332 ;;
333esac
334
894a47b4 335case ${host} in
05ea12a2 336aarch64*-*-elf | aarch64*-*-rtems*)
1b3d2097 337 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
8f908dc5 338 extra_parts="$extra_parts crtfastmath.o"
1b3d2097 339 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
8f908dc5 340 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
d10c58fd 341 md_unwind_header=aarch64/aarch64-unwind.h
1b3d2097 342 ;;
88afddbc 343aarch64*-*-freebsd*)
344 extra_parts="$extra_parts crtfastmath.o"
345 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
346 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
319901d0 347 md_unwind_header=aarch64/freebsd-unwind.h
88afddbc 348 ;;
9b859c0a 349aarch64*-*-fuchsia*)
350 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
351 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
352 ;;
1b3d2097 353aarch64*-*-linux*)
8f908dc5 354 extra_parts="$extra_parts crtfastmath.o"
1b3d2097 355 md_unwind_header=aarch64/linux-unwind.h
356 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
8f908dc5 357 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
1b3d2097 358 ;;
17b3d2a8 359alpha*-*-linux*)
4dc4ff49 360 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
cdca0ab7 361 extra_parts="$extra_parts crtfastmath.o"
1e53920f 362 md_unwind_header=alpha/linux-unwind.h
894a47b4 363 ;;
894a47b4 364alpha*-*-freebsd*)
4dc4ff49 365 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
237490bf 366 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
894a47b4 367 ;;
368alpha*-*-netbsd*)
4dc4ff49 369 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
894a47b4 370 ;;
371alpha*-*-openbsd*)
4dc4ff49 372 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
894a47b4 373 ;;
894a47b4 374alpha64-dec-*vms*)
4dc4ff49 375 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
237490bf 376 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
1e53920f 377 md_unwind_header=alpha/vms-unwind.h
894a47b4 378 ;;
379alpha*-dec-*vms*)
4dc4ff49 380 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
237490bf 381 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
1e53920f 382 md_unwind_header=alpha/vms-unwind.h
894a47b4 383 ;;
8eaaaea3 384arc*-*-elf*)
8df543e1 385 tmake_file="arc/t-arc"
386 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
387 extra_parts="$extra_parts crttls.o"
8eaaaea3 388 ;;
927c0132 389arc*-*-linux*)
8df543e1 390 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
391 extra_parts="$extra_parts crti.o crtn.o"
74d8fa14 392 extra_parts="$extra_parts crttls.o"
e892f4fa 393 md_unwind_header=arc/linux-unwind.h
8eaaaea3 394 ;;
17a98fea 395arm-wrs-vxworks|arm-wrs-vxworks7)
f4f176bd 396 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
237490bf 397 extra_parts="$extra_parts crti.o crtn.o"
17a98fea 398 case ${host} in
399 *-*-vxworks7)
400 # Note that arm/t-bpabi will reset the LIB2ADDEH macro.
401 # This is intentional.
402 tmake_file="$tmake_file arm/t-bpabi arm/t-vxworks7"
403 tm_file="$tm_file arm/bpabi-lib.h"
404 unwind_header=config/arm/unwind-arm.h
405 ;;
406 esac
894a47b4 407 ;;
275d0a7c 408arm*-*-freebsd*) # ARM FreeBSD EABI
409 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
8b9c62ca 410 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
275d0a7c 411 tm_file="${tm_file} arm/bpabi-lib.h"
412 unwind_header=config/arm/unwind-arm.h
413 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
414 ;;
9b859c0a 415arm*-*-fuchsia*)
416 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
417 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
418 tm_file="${tm_file} arm/bpabi-lib.h"
419 unwind_header=config/arm/unwind-arm.h
420 ;;
894a47b4 421arm*-*-netbsdelf*)
4dc4ff49 422 tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover"
894a47b4 423 ;;
894a47b4 424arm*-*-linux*) # ARM GNU/Linux with ELF
1ddaa252 425 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
6a11e52b 426 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
427 tm_file="$tm_file arm/bpabi-lib.h"
428 unwind_header=config/arm/unwind-arm.h
84600db5 429 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
1ddaa252 430 extra_parts="$extra_parts crtfastmath.o"
894a47b4 431 ;;
432arm*-*-uclinux*) # ARM ucLinux
1ddaa252 433 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
4ef5912a 434 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
6a11e52b 435 tmake_file="${tmake_file} arm/t-bpabi"
436 tm_file="$tm_file arm/bpabi-lib.h"
437 unwind_header=config/arm/unwind-arm.h
237490bf 438 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 439 ;;
21ecea39 440arm*-*-phoenix*)
441 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
442 tmake_file="${tmake_file} arm/t-bpabi"
443 tm_file="$tm_file arm/bpabi-lib.h"
444 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
445 unwind_header=config/arm/unwind-arm.h
446 ;;
598ebe3d 447arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
9213d2eb 448 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
022a2799 449 tm_file="$tm_file arm/bpabi-lib.h"
e59be7e3 450 case ${host} in
598ebe3d 451 arm*-*-eabi* | arm*-*-rtems*)
1ddaa252 452 tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
237490bf 453 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
e59be7e3 454 ;;
455 arm*-*-symbianelf*)
a997b0d8 456 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
022a2799 457 tm_file="$tm_file arm/symbian-lib.h"
237490bf 458 # Symbian OS provides its own startup code.
e59be7e3 459 ;;
460 esac
84600db5 461 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
18e98669 462 extra_parts="$extra_parts crtfastmath.o"
e59be7e3 463 unwind_header=config/arm/unwind-arm.h
894a47b4 464 ;;
894a47b4 465avr-*-*)
a23b9c51 466 # Make HImode functions for AVR
467 tmake_file="${cpu_type}/t-avr t-fpbit"
fd28e216 468 if test x${with_avrlibc} != xno; then
469 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
470 fi
022a2799 471 tm_file="$tm_file avr/avr-lib.h"
894a47b4 472 ;;
473bfin*-elf*)
2219274c 474 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
237490bf 475 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
894a47b4 476 ;;
477bfin*-uclinux*)
2219274c 478 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
237490bf 479 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
1e53920f 480 md_unwind_header=bfin/linux-unwind.h
894a47b4 481 ;;
bce94ab5 482bfin*-linux-uclibc*)
2219274c 483 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
bce94ab5 484 # No need to build crtbeginT.o on uClibc systems. Should probably
485 # be moved to the OS specific section above.
486 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1e53920f 487 md_unwind_header=bfin/linux-unwind.h
bce94ab5 488 ;;
a23b9c51 489bfin*-rtems*)
9213d2eb 490 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
237490bf 491 extra_parts="$extra_parts crti.o crtn.o"
a23b9c51 492 ;;
894a47b4 493bfin*-*)
9213d2eb 494 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
237490bf 495 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
894a47b4 496 ;;
b9fdd12b 497cr16-*-elf)
498 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
499 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
500 ;;
237490bf 501crisv32-*-elf)
b4294f67 502 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
237490bf 503 ;;
237490bf 504cris-*-elf)
b4294f67 505 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
237490bf 506 ;;
877d7f12 507cris-*-linux* | crisv32-*-linux*)
b4294f67 508 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
894a47b4 509 ;;
1c579c0e 510epiphany-*-elf* | epiphany-*-rtems*)
511 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
d19f5793 512 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
513 ;;
894a47b4 514fr30-*-elf)
9213d2eb 515 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
237490bf 516 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 517 ;;
518frv-*-elf)
237490bf 519 tmake_file="$tmake_file frv/t-frv t-fdpbit"
005a5ef5 520 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
237490bf 521 # Don't use crtbegin.o, crtend.o.
522 extra_parts="frvbegin.o frvend.o"
894a47b4 523 ;;
524frv-*-*linux*)
9213d2eb 525 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
005a5ef5 526 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
894a47b4 527 ;;
b6616c9c 528ft32-*-elf)
529 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
530 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
531 ;;
894a47b4 532h8300-*-elf*)
9213d2eb 533 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
022a2799 534 tm_file="$tm_file h8300/h8300-lib.h"
237490bf 535 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 536 ;;
acff2768 537h8300-*-linux*)
538 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
539 tm_file="$tm_file h8300/h8300-lib.h"
540 ;;
6af9f7ea 541hppa*64*-*-linux*)
9213d2eb 542 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
a99f9d91 543 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
894a47b4 544 ;;
6af9f7ea 545hppa*-*-linux*)
9213d2eb 546 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
a997b0d8 547 # Set the libgcc version number
177cc56c 548 if test x$ac_cv_sjlj_exceptions = xyes; then
a997b0d8 549 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
550 else
551 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
552 fi
a99f9d91 553 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
01cb8ad1 554 md_unwind_header=pa/linux-unwind.h
894a47b4 555 ;;
556hppa[12]*-*-hpux10*)
4dc4ff49 557 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
a997b0d8 558 # Set the libgcc version number
177cc56c 559 if test x$ac_cv_sjlj_exceptions = xyes; then
a997b0d8 560 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
561 else
562 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
563 fi
564 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
1e53920f 565 md_unwind_header=pa/hpux-unwind.h
894a47b4 566 ;;
567hppa*64*-*-hpux11*)
ab4fdb3d 568 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
a997b0d8 569 # Set the libgcc version number
177cc56c 570 if test x$ac_cv_sjlj_exceptions = xyes; then
a997b0d8 571 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
572 else
573 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
574 fi
575 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
677e8b73 576 tm_file="$tm_file pa/pa64-hpux-lib.h"
237490bf 577 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
578 libgcc_stub.a"
1e53920f 579 md_unwind_header=pa/hpux-unwind.h
894a47b4 580 ;;
581hppa[12]*-*-hpux11*)
4dc4ff49 582 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
a997b0d8 583 # Set the libgcc version number
177cc56c 584 if test x$ac_cv_sjlj_exceptions = xyes; then
a997b0d8 585 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
586 else
587 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
588 fi
589 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
237490bf 590 extra_parts="libgcc_stub.a"
1e53920f 591 md_unwind_header=pa/hpux-unwind.h
894a47b4 592 ;;
07cf7615 593hppa*-*-openbsd*)
594 tmake_file="$tmake_file pa/t-openbsd"
595 ;;
894a47b4 596i[34567]86-*-darwin*)
65e1ae67 597 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
022a2799 598 tm_file="$tm_file i386/darwin-lib.h"
ba079bc9 599 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
894a47b4 600 ;;
601x86_64-*-darwin*)
65e1ae67 602 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
022a2799 603 tm_file="$tm_file i386/darwin-lib.h"
ba079bc9 604 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
894a47b4 605 ;;
146896ec 606i[34567]86-*-elfiamcu)
607 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"
608 ;;
894a47b4 609i[34567]86-*-elf*)
4dc4ff49 610 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
894a47b4 611 ;;
1e085786 612x86_64-*-elf* | x86_64-*-rtems*)
4dc4ff49 613 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
cc8ebe39 614 ;;
9b859c0a 615x86_64-*-fuchsia*)
616 tmake_file="$tmake_file t-libgcc-pic"
617 ;;
463553db 618i[34567]86-*-dragonfly*)
619 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
620 md_unwind_header=i386/dragonfly-unwind.h
621 ;;
622x86_64-*-dragonfly*)
623 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
624 md_unwind_header=i386/dragonfly-unwind.h
625 ;;
894a47b4 626i[34567]86-*-freebsd*)
237490bf 627 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
328976ed 628 md_unwind_header=i386/freebsd-unwind.h
894a47b4 629 ;;
630x86_64-*-freebsd*)
237490bf 631 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
328976ed 632 md_unwind_header=i386/freebsd-unwind.h
894a47b4 633 ;;
634i[34567]86-*-netbsdelf*)
a1928e5c 635 tmake_file="${tmake_file} i386/t-crtstuff"
894a47b4 636 ;;
894a47b4 637x86_64-*-netbsd*)
237490bf 638 tmake_file="${tmake_file} i386/t-crtstuff"
894a47b4 639 ;;
894a47b4 640i[34567]86-*-openbsd*)
641 ;;
51796b3a 642x86_64-*-openbsd*)
643 ;;
fe27820f 644i[34567]86-*-linux*)
6d057ce8 645 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
2a8549e0 646 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
58ca7445 647 tm_file="${tm_file} i386/elf-lib.h"
1e53920f 648 md_unwind_header=i386/linux-unwind.h
894a47b4 649 ;;
79573034 650i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
fe27820f 651 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
2a8549e0 652 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
58ca7445 653 tm_file="${tm_file} i386/elf-lib.h"
fe27820f 654 ;;
655x86_64-*-linux*)
6d057ce8 656 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
2a8549e0 657 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
58ca7445 658 tm_file="${tm_file} i386/elf-lib.h"
1e53920f 659 md_unwind_header=i386/linux-unwind.h
894a47b4 660 ;;
79573034 661x86_64-*-kfreebsd*-gnu)
fe27820f 662 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
2a8549e0 663 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
58ca7445 664 tm_file="${tm_file} i386/elf-lib.h"
fe27820f 665 ;;
894a47b4 666i[34567]86-pc-msdosdjgpp*)
667 ;;
668i[34567]86-*-lynxos*)
669 ;;
894a47b4 670i[34567]86-*-nto-qnx*)
4dc4ff49 671 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
237490bf 672 extra_parts=crtbegin.o
894a47b4 673 ;;
674i[34567]86-*-rtems*)
ac34f4bd 675 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
237490bf 676 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 677 ;;
14f27bc6 678i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
65e1ae67 679 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
ba079bc9 680 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
43cbcd84 681 tm_file="${tm_file} i386/elf-lib.h"
1e53920f 682 md_unwind_header=i386/sol2-unwind.h
894a47b4 683 ;;
0e50554f 684i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
894a47b4 685 ;;
1e53920f 686i[34567]86-*-cygwin*)
1db4f54b 687 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
5be42fa9 688 if test x$enable_vtable_verify = xyes; then
689 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
690 fi
a997b0d8 691 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
177cc56c 692 if test x$ac_cv_sjlj_exceptions = xyes; then
a997b0d8 693 tmake_eh_file="i386/t-sjlj-eh"
694 else
695 tmake_eh_file="i386/t-dw2-eh"
696 fi
697 # Shared libgcc DLL install dir depends on cross/native build.
698 if test x${build} = x${host} ; then
699 tmake_dlldir_file="i386/t-dlldir"
700 else
701 tmake_dlldir_file="i386/t-dlldir-x"
702 fi
2a8549e0 703 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"
8f433c51 704 ;;
45d13ef4 705x86_64-*-cygwin*)
1db4f54b 706 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
5be42fa9 707 if test x$enable_vtable_verify = xyes; then
708 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
709 fi
45d13ef4 710 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
177cc56c 711 if test x$ac_cv_sjlj_exceptions = xyes; then
45d13ef4 712 tmake_eh_file="i386/t-sjlj-eh"
51d42eb1 713 elif test "${host_address}" = 32; then
714 # biarch -m32 with --disable-sjlj-exceptions
715 tmake_eh_file="i386/t-dw2-eh"
45d13ef4 716 else
717 tmake_eh_file="i386/t-seh-eh"
718 fi
719 # Shared libgcc DLL install dir depends on cross/native build.
720 if test x${build} = x${host} ; then
721 tmake_dlldir_file="i386/t-dlldir"
722 else
723 tmake_dlldir_file="i386/t-dlldir-x"
724 fi
725 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
2a8549e0 726 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"
45d13ef4 727 ;;
1e53920f 728i[34567]86-*-mingw*)
729 extra_parts="crtbegin.o crtend.o crtfastmath.o"
5be42fa9 730 if test x$enable_vtable_verify = xyes; then
731 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
732 fi
4dc4ff49 733 case ${target_thread_file} in
734 win32)
735 tmake_file="$tmake_file i386/t-gthr-win32"
736 ;;
2d00fffd 737 posix)
738 tmake_file="i386/t-mingw-pthread $tmake_file"
739 ;;
4dc4ff49 740 esac
a997b0d8 741 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
177cc56c 742 if test x$ac_cv_sjlj_exceptions = xyes; then
a997b0d8 743 tmake_eh_file="i386/t-sjlj-eh"
744 else
745 tmake_eh_file="i386/t-dw2-eh"
7ed6dbef 746 md_unwind_header=i386/w32-unwind.h
a997b0d8 747 fi
748 # Shared libgcc DLL install dir depends on cross/native build.
749 if test x${build} = x${host} ; then
750 tmake_dlldir_file="i386/t-dlldir"
751 else
752 tmake_dlldir_file="i386/t-dlldir-x"
753 fi
2a8549e0 754 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"
1e53920f 755 ;;
8f433c51 756x86_64-*-mingw*)
4dc4ff49 757 case ${target_thread_file} in
758 win32)
759 tmake_file="$tmake_file i386/t-gthr-win32"
760 ;;
2d00fffd 761 posix)
762 tmake_file="i386/t-mingw-pthread $tmake_file"
763 ;;
4dc4ff49 764 esac
a997b0d8 765 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
177cc56c 766 if test x$ac_cv_sjlj_exceptions = xyes; then
a997b0d8 767 tmake_eh_file="i386/t-sjlj-eh"
51d42eb1 768 elif test "${host_address}" = 32; then
769 # biarch -m32 with --disable-sjlj-exceptions
770 tmake_eh_file="i386/t-dw2-eh"
771 md_unwind_header=i386/w32-unwind.h
a997b0d8 772 else
8ad0b530 773 tmake_eh_file="i386/t-seh-eh"
a997b0d8 774 fi
775 # Shared libgcc DLL install dir depends on cross/native build.
776 if test x${build} = x${host} ; then
777 tmake_dlldir_file="i386/t-dlldir"
778 else
779 tmake_dlldir_file="i386/t-dlldir-x"
780 fi
2a8549e0 781 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"
0624d0c7 782 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
5be42fa9 783 if test x$enable_vtable_verify = xyes; then
784 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
785 fi
894a47b4 786 ;;
894a47b4 787ia64*-*-elf*)
237490bf 788 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
dff001ee 789 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"
894a47b4 790 ;;
791ia64*-*-freebsd*)
237490bf 792 extra_parts="$extra_parts crtfastmath.o"
dff001ee 793 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"
894a47b4 794 ;;
795ia64*-*-linux*)
237490bf 796 # Don't use crtbeginT.o from *-*-linux* default.
894a47b4 797 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
2ff958e6 798 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"
e59be7e3 799 if test x$with_system_libunwind != xyes ; then
a997b0d8 800 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
e59be7e3 801 fi
1e53920f 802 md_unwind_header=ia64/linux-unwind.h
894a47b4 803 ;;
804ia64*-*-hpux*)
2ff958e6 805 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
894a47b4 806 ;;
9b9a2528 807ia64-hp-*vms*)
dff001ee 808 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"
237490bf 809 extra_parts="$extra_parts crtinitS.o"
1e53920f 810 md_unwind_header=ia64/vms-unwind.h
9b9a2528 811 ;;
894a47b4 812iq2000*-*-elf*)
08417926 813 tmake_file="iq2000/t-iq2000 t-fdpbit"
237490bf 814 # Don't use default.
815 extra_parts=
894a47b4 816 ;;
fbb6f195 817lm32-*-elf*)
237490bf 818 extra_parts="$extra_parts crti.o crtn.o"
84600db5 819 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
f6fe91e8 820 ;;
fbb6f195 821lm32-*-rtems*)
822 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
823 extra_parts="$extra_parts crti.o crtn.o"
824 ;;
f6fe91e8 825lm32-*-uclinux*)
237490bf 826 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
4dc4ff49 827 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
f6fe91e8 828 ;;
237490bf 829m32r-*-elf*)
78c81e30 830 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
831 extra_parts="$extra_parts crtinit.o crtfini.o"
894a47b4 832 ;;
833m32rle-*-elf*)
a23b9c51 834 tmake_file=t-fdpbit
894a47b4 835 ;;
836m32r-*-linux*)
237490bf 837 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
894a47b4 838 ;;
839m32rle-*-linux*)
237490bf 840 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
894a47b4 841 ;;
9213d2eb 842m68k-*-elf* | fido-*-elf)
843 tmake_file="$tmake_file m68k/t-floatlib"
894a47b4 844 ;;
6af9f7ea 845m68k*-*-netbsdelf*)
894a47b4 846 ;;
847m68k*-*-openbsd*)
848 ;;
5bb27b7c 849m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
850 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
1e53920f 851 md_unwind_header=m68k/linux-unwind.h
894a47b4 852 ;;
1e53920f 853m68k-*-linux*) # Motorola m68k's running GNU/Linux
894a47b4 854 # with ELF format using glibc 2
855 # aka the GNU/Linux C library 6.
5bb27b7c 856 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
177cc56c 857 # If not configured with setjmp/longjmp exceptions, bump the
a997b0d8 858 # libgcc version number.
177cc56c 859 if test x$ac_cv_sjlj_exceptions != xyes; then
a997b0d8 860 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
861 fi
1e53920f 862 md_unwind_header=m68k/linux-unwind.h
894a47b4 863 ;;
864m68k-*-rtems*)
9213d2eb 865 tmake_file="$tmake_file m68k/t-floatlib"
237490bf 866 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 867 ;;
868mcore-*-elf)
9213d2eb 869 tmake_file="mcore/t-mcore t-fdpbit"
237490bf 870 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 871 ;;
a997b0d8 872microblaze*-linux*)
c48df545 873 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
a997b0d8 874 ;;
98f2ac05 875microblaze*-*-elf)
876 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
877 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
d34b0d1e 878 ;;
d742e92d 879microblaze*-*-rtems*)
880 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
881 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
882 ;;
894a47b4 883mips*-*-netbsd*) # NetBSD/mips, either endian.
884 ;;
894a47b4 885mips*-*-linux*) # Linux MIPS, either endian.
283681bb 886 extra_parts="$extra_parts crtfastmath.o"
60b34f30 887 tmake_file="${tmake_file} t-crtfm"
60b34f30 888 case ${host} in
272552a3 889 mips64r5900* | mipsr5900*)
890 # The MIPS16 support code uses floating point
891 # instructions that are not supported on r5900.
892 ;;
893 *)
894 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
895 ;;
60b34f30 896 esac
1e53920f 897 md_unwind_header=mips/linux-unwind.h
894a47b4 898 ;;
a23b9c51 899mips*-sde-elf*)
20dbbfaf 900 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
a23b9c51 901 case "${with_newlib}" in
902 yes)
903 # newlib / libgloss.
904 ;;
905 *)
906 # MIPS toolkit libraries.
237490bf 907 tmake_file="$tmake_file mips/t-sdemtk"
a23b9c51 908 ;;
909 esac
237490bf 910 extra_parts="$extra_parts crti.o crtn.o"
a23b9c51 911 ;;
21889c08 912mipsisa32-*-elf* | mipsisa32el-*-elf* | \
913mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
78645e70 914mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
21889c08 915mipsisa64-*-elf* | mipsisa64el-*-elf* | \
78645e70 916mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
917mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
4dc4ff49 918 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 919 extra_parts="$extra_parts crti.o crtn.o"
77a32a8e 920 ;;
894a47b4 921mipsisa64sr71k-*-elf*)
20dbbfaf 922 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
237490bf 923 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 924 ;;
925mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
4dc4ff49 926 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 927 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 928 ;;
929mips-*-elf* | mipsel-*-elf*)
4dc4ff49 930 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 931 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 932 ;;
60b34f30 933mipsr5900-*-elf* | mipsr5900el-*-elf*)
934 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
935 extra_parts="$extra_parts crti.o crtn.o"
936 ;;
894a47b4 937mips64-*-elf* | mips64el-*-elf*)
4dc4ff49 938 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 939 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 940 ;;
60b34f30 941mips64r5900-*-elf* | mips64r5900el-*-elf*)
942 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
943 extra_parts="$extra_parts crti.o crtn.o"
944 ;;
894a47b4 945mips64vr-*-elf* | mips64vrel-*-elf*)
4dc4ff49 946 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
237490bf 947 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 948 ;;
949mips64orion-*-elf* | mips64orionel-*-elf*)
4dc4ff49 950 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 951 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 952 ;;
953mips*-*-rtems*)
4dc4ff49 954 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 955 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 956 ;;
957mips-wrs-vxworks)
958 ;;
894a47b4 959mipstx39-*-elf* | mipstx39el-*-elf*)
237490bf 960 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
894a47b4 961 ;;
962mmix-knuth-mmixware)
8525326e 963 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
964 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
894a47b4 965 ;;
966mn10300-*-*)
a23b9c51 967 tmake_file=t-fdpbit
894a47b4 968 ;;
ffdf58db 969moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
fbb6f195 970 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
ffdf58db 971 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
be52b6d8 972 ;;
e4a25868 973msp430*-*-elf)
974 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
7ed86ba5 975 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
e4a25868 976 ;;
eae21ed1 977nds32*-elf*)
978 # Basic makefile fragment and extra_parts for crt stuff.
979 # We also append c-isr library implementation.
980 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
981 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
982 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
983 case "${with_nds32_lib}" in
984 "" | newlib)
985 # Append library definition makefile fragment t-nds32-newlib.
986 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
987 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
988 ;;
989 mculib)
990 # Append library definition makefile fragment t-nds32-mculib.
991 # The software floating point library is included in mculib.
992 tmake_file="${tmake_file} nds32/t-nds32-mculib"
993 ;;
994 *)
995 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
996 exit 1
997 ;;
998 esac
999 ;;
de65406d 1000nios2-*-linux*)
1001 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
de65406d 1002 md_unwind_header=nios2/linux-unwind.h
1003 ;;
1004nios2-*-*)
1005 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1006 extra_parts="$extra_parts crti.o crtn.o"
1007 ;;
894a47b4 1008pdp11-*-*)
4dc4ff49 1009 tmake_file="pdp11/t-pdp11 t-fdpbit"
894a47b4 1010 ;;
894a47b4 1011powerpc-*-darwin*)
1e53920f 1012 case ${host} in
1013 *-*-darwin9* | *-*-darwin[12][0-9]*)
1014 # libSystem contains unwind information for signal frames since
1015 # Darwin 9.
1016 ;;
1017 *)
1018 md_unwind_header=rs6000/darwin-unwind.h
1019 ;;
1020 esac
84600db5 1021 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
1a4a11f3 1022 extra_parts="$extra_parts crt2.o"
894a47b4 1023 ;;
1024powerpc64-*-darwin*)
4dc4ff49 1025 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1a4a11f3 1026 extra_parts="$extra_parts crt2.o"
894a47b4 1027 ;;
bdd1ee48 1028powerpc*-*-freebsd*)
1029 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
237490bf 1030 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
bdd1ee48 1031 case ${host} in
1032 powerpc64*)
1033 tmake_file="${tmake_file} rs6000/t-freebsd64"
1034 md_unwind_header=rs6000/freebsd-unwind.h
1035 ;;
1036 esac
894a47b4 1037 ;;
1038powerpc-*-netbsd*)
08417926 1039 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
894a47b4 1040 ;;
894a47b4 1041powerpc-*-eabispe*)
16348e18 1042 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1043 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1044 ;;
1045powerpc-*-eabisimaltivec*)
738c50b8 1046 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1047 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1048 ;;
1049powerpc-*-eabisim*)
738c50b8 1050 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1051 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1052 ;;
1053powerpc-*-elf*)
47ab8c10 1054 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1055 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1056 ;;
1057powerpc-*-eabialtivec*)
738c50b8 1058 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1059 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
a23b9c51 1060 ;;
1061powerpc-xilinx-eabi*)
738c50b8 1062 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1063 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1064 ;;
1065powerpc-*-eabi*)
738c50b8 1066 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1067 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1068 ;;
1069powerpc-*-rtems*)
a2397d15 1070 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1071 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1072 ;;
d80dc920 1073powerpc*-*-linux*)
e707b8cc 1074 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"
ec3f28c9 1075 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
fd1eaa27 1076 case $ppc_fp_type in
1077 64)
1078 ;;
1079 hard)
1080 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1081 ;;
1082 soft)
0e36a0d7 1083 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
fd1eaa27 1084 ;;
d9b5cf5c 1085 e500v1)
0e36a0d7 1086 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
d9b5cf5c 1087 ;;
1088 e500v2)
0e36a0d7 1089 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
fd1eaa27 1090 ;;
1091 *)
1092 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1093 exit 1
1094 ;;
1095 esac
d99eec2c 1096
1097 if test $libgcc_cv_powerpc_float128 = yes; then
1098 tmake_file="${tmake_file} rs6000/t-float128"
1099 fi
1100
1101 if test $libgcc_cv_powerpc_float128_hw = yes; then
1102 tmake_file="${tmake_file} rs6000/t-float128-hw"
1103 fi
1104
237490bf 1105 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1e53920f 1106 md_unwind_header=rs6000/linux-unwind.h
894a47b4 1107 ;;
061339f2 1108powerpc-wrs-vxworks*)
47ab8c10 1109 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
894a47b4 1110 ;;
894a47b4 1111powerpc-*-lynxos*)
08417926 1112 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
894a47b4 1113 ;;
894a47b4 1114powerpcle-*-elf*)
738c50b8 1115 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1116 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1117 ;;
1118powerpcle-*-eabisim*)
738c50b8 1119 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1120 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1121 ;;
1122powerpcle-*-eabi*)
738c50b8 1123 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1124 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1125 ;;
36387fad 1126riscv*-*-linux*)
1127 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1128 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1129 md_unwind_header=riscv/linux-unwind.h
1130 ;;
1131riscv*-*-*)
1132 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1133 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1134 ;;
894a47b4 1135rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
e59be7e3 1136 md_unwind_header=rs6000/aix-unwind.h
c1420b84 1137 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
894a47b4 1138 ;;
1139rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
e59be7e3 1140 md_unwind_header=rs6000/aix-unwind.h
c1420b84 1141 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
894a47b4 1142 ;;
1143rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
e59be7e3 1144 md_unwind_header=rs6000/aix-unwind.h
a8af2dd5 1145 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
552a60d3 1146 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
894a47b4 1147 ;;
78e515f7 1148rl78-*-elf)
1149 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1150 ;;
24833e1a 1151rx-*-elf)
a23b9c51 1152 tmake_file="rx/t-rx t-fdpbit"
022a2799 1153 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
24833e1a 1154 ;;
894a47b4 1155s390-*-linux*)
c6d481f7 1156 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1e53920f 1157 md_unwind_header=s390/linux-unwind.h
894a47b4 1158 ;;
1159s390x-*-linux*)
c6d481f7 1160 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
368b5b2c 1161 if test "${host_address}" = 32; then
1162 tmake_file="${tmake_file} s390/32/t-floattodi"
1163 fi
1e53920f 1164 md_unwind_header=s390/linux-unwind.h
894a47b4 1165 ;;
1166s390x-ibm-tpf*)
4dc4ff49 1167 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
237490bf 1168 extra_parts="crtbeginS.o crtendS.o"
f9cccfac 1169 md_unwind_header=s390/tpf-unwind.h
894a47b4 1170 ;;
237490bf 1171sh-*-elf* | sh[12346l]*-*-elf*)
1172 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1173 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1174 libic_invalidate_array_4-100.a \
1175 libic_invalidate_array_4-200.a \
1176 libic_invalidate_array_4a.a \
1177 libgcc-Os-4-200.a libgcc-4-300.a"
97f1a704 1178 case ${host} in
237490bf 1179 sh*-superh-elf)
1180 tmake_file="$tmake_file sh/t-superh"
1181 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1182 ;;
1183 esac
1184 ;;
1185sh-*-linux* | sh[2346lbe]*-*-linux*)
9213d2eb 1186 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
237490bf 1187 md_unwind_header=sh/linux-unwind.h
1188 ;;
9a9b5abf 1189sh-*-netbsdelf* | shl*-*-netbsdelf*)
9213d2eb 1190 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
9a9b5abf 1191
237490bf 1192 # NetBSD's C library includes a fast software FP library that
1193 # has support for setting/setting the rounding mode, exception
1194 # mask, etc. Therefore, we don't want to include software FP
1195 # in libgcc.
894a47b4 1196 ;;
894a47b4 1197sh-*-rtems*)
9213d2eb 1198 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
237490bf 1199 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
57380e33 1200 libic_invalidate_array_4-100.a \
1201 libic_invalidate_array_4-200.a \
1202 libic_invalidate_array_4a.a \
1203 libgcc-Os-4-200.a libgcc-4-300.a"
894a47b4 1204 ;;
1205sh-wrs-vxworks)
9213d2eb 1206 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
894a47b4 1207 ;;
894a47b4 1208sparc-*-netbsdelf*)
1209 ;;
1210sparc64-*-openbsd*)
1211 ;;
1212sparc-*-elf*)
63abf89e 1213 case ${host} in
1214 *-leon[3-9]*)
1215 ;;
1216 *)
1217 tmake_file="sparc/t-softmul"
1218 ;;
1219 esac
237490bf 1220 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1221 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
894a47b4 1222 ;;
1223sparc-*-linux*) # SPARC's running GNU/Linux, libc6
95de80bc 1224 tmake_file="${tmake_file} t-crtfm"
1225 if test "${host_address}" = 64; then
1226 tmake_file="$tmake_file sparc/t-linux64"
1227 fi
a23b9c51 1228 case ${host} in
1229 *-leon*)
a997b0d8 1230 tmake_file="${tmake_file} t-fdpbit"
1231 ;;
1232 *)
1233 tmake_file="${tmake_file} sparc/t-linux"
a23b9c51 1234 ;;
1235 esac
9213d2eb 1236 case ${host} in
1237 *-leon[3-9]*)
1238 ;;
1239 *)
95de80bc 1240 if test "${host_address}" = 32; then
1241 tmake_file="$tmake_file sparc/t-softmul"
1242 fi
9213d2eb 1243 ;;
1244 esac
894a47b4 1245 extra_parts="$extra_parts crtfastmath.o"
f9cccfac 1246 md_unwind_header=sparc/linux-unwind.h
894a47b4 1247 ;;
a23b9c51 1248sparc-*-rtems*)
fbb6f195 1249 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
237490bf 1250 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
894a47b4 1251 ;;
63abf89e 1252sparc*-*-solaris2*)
1253 tmake_file="$tmake_file t-crtfm"
1254 extra_parts="$extra_parts crtfastmath.o"
1e53920f 1255 md_unwind_header=sparc/sol2-unwind.h
894a47b4 1256 ;;
894a47b4 1257sparc64-*-elf*)
237490bf 1258 tmake_file="${tmake_file} t-crtfm"
1259 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
894a47b4 1260 ;;
a23b9c51 1261sparc64-*-rtems*)
00b706f9 1262 tmake_file="$tmake_file t-crtfm"
237490bf 1263 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
a23b9c51 1264 ;;
723e1902 1265sparc-wrs-vxworks)
1266 ;;
894a47b4 1267sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1125ba83 1268 tmake_file="$tmake_file t-crtfm"
237490bf 1269 extra_parts="$extra_parts crtfastmath.o"
894a47b4 1270 ;;
1271sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1272 extra_parts="$extra_parts crtfastmath.o"
95de80bc 1273 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1274 if test "${host_address}" = 64; then
1275 tmake_file="${tmake_file} sparc/t-linux64"
1276 fi
1277 if test "${host_address}" = 32; then
1278 tmake_file="${tmake_file} sparc/t-softmul"
1279 fi
1e53920f 1280 md_unwind_header=sparc/linux-unwind.h
894a47b4 1281 ;;
1282sparc64-*-netbsd*)
1283 ;;
1284spu-*-elf*)
4dc4ff49 1285 tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
237490bf 1286 extra_parts="$extra_parts \
1287 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1288 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1289 libgcc_cache64k.a libgcc_cache128k.a"
894a47b4 1290 ;;
a997b0d8 1291tic6x-*-uclinux)
adce431d 1292 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1293 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1294 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
022a2799 1295 tm_file="$tm_file c6x/c6x-abi.h"
adce431d 1296 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
a997b0d8 1297 unwind_header=config/c6x/unwind-c6x.h
1298 ;;
237490bf 1299tic6x-*-elf)
1300 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
022a2799 1301 tm_file="$tm_file c6x/c6x-abi.h"
237490bf 1302 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
7e5fc0c4 1303 unwind_header=config/c6x/unwind-c6x.h
5aa04b01 1304 ;;
2da35515 1305tilegx*-*-linux*)
d58f7073 1306 if test "${host_address}" = 64; then
1307 tmake_file="${tmake_file} tilegx/t-softfp"
1308 fi
1309 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
7ce78e23 1310 md_unwind_header=tilepro/linux-unwind.h
1311 ;;
2da35515 1312tilepro*-*-linux*)
6bf644d1 1313 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
7ce78e23 1314 md_unwind_header=tilepro/linux-unwind.h
1315 ;;
707238af 1316v850*-*-*)
0cdefccf 1317 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
894a47b4 1318 ;;
63bfd172 1319vax-*-linux*)
9213d2eb 1320 tmake_file="$tmake_file vax/t-linux"
63bfd172 1321 ;;
894a47b4 1322vax-*-netbsdelf*)
1323 ;;
894a47b4 1324vax-*-openbsd*)
1325 ;;
8992df51 1326visium-*-elf*)
1327 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1328 tmake_file="visium/t-visium t-fdpbit"
1329 ;;
894a47b4 1330xstormy16-*-elf)
2219274c 1331 tmake_file="stormy16/t-stormy16 t-fdpbit"
894a47b4 1332 ;;
75c7ffbc 1333xtensa*-*-elf*)
237490bf 1334 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1335 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 1336 ;;
75c7ffbc 1337xtensa*-*-linux*)
382e1a72 1338 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1e53920f 1339 md_unwind_header=xtensa/linux-unwind.h
894a47b4 1340 ;;
e3c15dbe 1341xtensa*-*-uclinux*)
1342 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1343 md_unwind_header=xtensa/linux-unwind.h
1344 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1345 ;;
894a47b4 1346am33_2.0-*-linux*)
237490bf 1347 # Don't need crtbeginT.o from *-*-linux* default.
894a47b4 1348 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
a997b0d8 1349 tmake_file="$tmake_file t-fdpbit"
894a47b4 1350 ;;
7eac0a4e 1351m32c-*-elf*|m32c-*-rtems*)
9213d2eb 1352 tmake_file="$tmake_file m32c/t-m32c"
894a47b4 1353 ;;
8ce80784 1354nvptx-*)
1355 tmake_file="$tmake_file nvptx/t-nvptx"
1356 extra_parts="crt0.o"
1357 ;;
894a47b4 1358*)
1359 echo "*** Configuration ${host} not supported" 1>&2
1360 exit 1
1361 ;;
1362esac
e4cbe54f 1363
98c9b52b 1364case ${host} in
1365i[34567]86-*-* | x86_64-*-*)
6e6c7fc1 1366 case ${host} in
1367 *-musl*)
1368 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1369 ;;
1370 *)
1371 tmake_file="${tmake_file} i386/t-cpuinfo"
1372 ;;
1373 esac
98c9b52b 1374 ;;
1375esac
1376
e4cbe54f 1377case ${host} in
1eab96a6 1378i[34567]86-*-linux* | x86_64-*-linux* | \
a997b0d8 1379 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1eab96a6 1380 i[34567]86-*-gnu*)
e67d3d38 1381 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
c9b3ebc5 1382 if test "$libgcc_cv_cfi" = "yes"; then
f2d9def0 1383 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
c9b3ebc5 1384 fi
e4cbe54f 1385 ;;
1386esac
b3fd46a0 1387
1388case ${host} in
ac34f4bd 1389i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1390 # These use soft-fp for SFmode and DFmode, not just TFmode.
1391 ;;
1392i[34567]86-*-* | x86_64-*-*)
84600db5 1393 tmake_file="${tmake_file} t-softfp-tf"
48cdc7d7 1394 if test "${host_address}" = 32; then
1395 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1396 fi
2c223cf2 1397 tmake_file="${tmake_file} i386/t-softfp t-softfp"
144633f4 1398 ;;
1399esac
1400
1401case ${host} in
1402i[34567]86-*-linux* | x86_64-*-linux*)
1403 # Provide backward binary compatibility for 64bit Linux/x86.
1404 if test "${host_address}" = 64; then
1405 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1406 fi
022a2799 1407 tm_file="${tm_file} i386/value-unwind.h"
b3fd46a0 1408 ;;
9c0ca8b6 1409aarch64*-*-*)
1410 # ILP32 needs an extra header for unwinding
1411 tm_file="${tm_file} aarch64/value-unwind.h"
1412 ;;
b3fd46a0 1413esac