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