]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config.host
2015-01-27 Jakub Jelinek <jakub@redhat.com>
[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"
1e53920f 622 md_unwind_header=i386/sol2-unwind.h
894a47b4 623 ;;
894a47b4 624i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
625 ;;
1e53920f 626i[34567]86-*-cygwin*)
1db4f54b 627 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
a997b0d8 628 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
629 if test x$enable_sjlj_exceptions = xyes; then
630 tmake_eh_file="i386/t-sjlj-eh"
631 else
632 tmake_eh_file="i386/t-dw2-eh"
633 fi
634 # Shared libgcc DLL install dir depends on cross/native build.
635 if test x${build} = x${host} ; then
636 tmake_dlldir_file="i386/t-dlldir"
637 else
638 tmake_dlldir_file="i386/t-dlldir-x"
639 fi
9213d2eb 640 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 641 ;;
45d13ef4 642x86_64-*-cygwin*)
1db4f54b 643 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
45d13ef4 644 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
645 if test x$enable_sjlj_exceptions = xyes; then
646 tmake_eh_file="i386/t-sjlj-eh"
647 else
648 tmake_eh_file="i386/t-seh-eh"
649 fi
650 # Shared libgcc DLL install dir depends on cross/native build.
651 if test x${build} = x${host} ; then
652 tmake_dlldir_file="i386/t-dlldir"
653 else
654 tmake_dlldir_file="i386/t-dlldir-x"
655 fi
656 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
657 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"
658 ;;
1e53920f 659i[34567]86-*-mingw*)
660 extra_parts="crtbegin.o crtend.o crtfastmath.o"
4dc4ff49 661 case ${target_thread_file} in
662 win32)
663 tmake_file="$tmake_file i386/t-gthr-win32"
664 ;;
2d00fffd 665 posix)
666 tmake_file="i386/t-mingw-pthread $tmake_file"
667 ;;
4dc4ff49 668 esac
a997b0d8 669 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
670 if test x$enable_sjlj_exceptions = xyes; then
671 tmake_eh_file="i386/t-sjlj-eh"
672 else
673 tmake_eh_file="i386/t-dw2-eh"
7ed6dbef 674 md_unwind_header=i386/w32-unwind.h
a997b0d8 675 fi
676 # Shared libgcc DLL install dir depends on cross/native build.
677 if test x${build} = x${host} ; then
678 tmake_dlldir_file="i386/t-dlldir"
679 else
680 tmake_dlldir_file="i386/t-dlldir-x"
681 fi
9213d2eb 682 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 683 ;;
8f433c51 684x86_64-*-mingw*)
4dc4ff49 685 case ${target_thread_file} in
686 win32)
687 tmake_file="$tmake_file i386/t-gthr-win32"
688 ;;
2d00fffd 689 posix)
690 tmake_file="i386/t-mingw-pthread $tmake_file"
691 ;;
4dc4ff49 692 esac
a997b0d8 693 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
694 if test x$enable_sjlj_exceptions = xyes; then
695 tmake_eh_file="i386/t-sjlj-eh"
696 else
8ad0b530 697 tmake_eh_file="i386/t-seh-eh"
a997b0d8 698 fi
699 # Shared libgcc DLL install dir depends on cross/native build.
700 if test x${build} = x${host} ; then
701 tmake_dlldir_file="i386/t-dlldir"
702 else
703 tmake_dlldir_file="i386/t-dlldir-x"
704 fi
0624d0c7 705 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"
706 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
894a47b4 707 ;;
af8e12d0 708i[34567]86-*-interix[3-9]*)
4dc4ff49 709 tmake_file="$tmake_file i386/t-interix i386/t-chkstk"
894a47b4 710 ;;
894a47b4 711ia64*-*-elf*)
237490bf 712 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
2ff958e6 713 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
894a47b4 714 ;;
715ia64*-*-freebsd*)
237490bf 716 extra_parts="$extra_parts crtfastmath.o"
2ff958e6 717 tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
894a47b4 718 ;;
719ia64*-*-linux*)
237490bf 720 # Don't use crtbeginT.o from *-*-linux* default.
894a47b4 721 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
2ff958e6 722 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 723 if test x$with_system_libunwind != xyes ; then
a997b0d8 724 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
e59be7e3 725 fi
1e53920f 726 md_unwind_header=ia64/linux-unwind.h
894a47b4 727 ;;
728ia64*-*-hpux*)
2ff958e6 729 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
894a47b4 730 ;;
9b9a2528 731ia64-hp-*vms*)
9213d2eb 732 tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms"
237490bf 733 extra_parts="$extra_parts crtinitS.o"
1e53920f 734 md_unwind_header=ia64/vms-unwind.h
9b9a2528 735 ;;
894a47b4 736iq2000*-*-elf*)
08417926 737 tmake_file="iq2000/t-iq2000 t-fdpbit"
237490bf 738 # Don't use default.
739 extra_parts=
894a47b4 740 ;;
fbb6f195 741lm32-*-elf*)
237490bf 742 extra_parts="$extra_parts crti.o crtn.o"
84600db5 743 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
f6fe91e8 744 ;;
fbb6f195 745lm32-*-rtems*)
746 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
747 extra_parts="$extra_parts crti.o crtn.o"
748 ;;
f6fe91e8 749lm32-*-uclinux*)
237490bf 750 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
4dc4ff49 751 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
f6fe91e8 752 ;;
237490bf 753m32r-*-elf*)
a23b9c51 754 tmake_file=t-fdpbit
894a47b4 755 ;;
237490bf 756m32r-*-rtems*)
fbb6f195 757 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
0cd8c088 758 extra_parts="$extra_parts crtinit.o crtfini.o"
237490bf 759 ;;
894a47b4 760m32rle-*-elf*)
a23b9c51 761 tmake_file=t-fdpbit
894a47b4 762 ;;
763m32r-*-linux*)
237490bf 764 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
894a47b4 765 ;;
766m32rle-*-linux*)
237490bf 767 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
894a47b4 768 ;;
9213d2eb 769m68k-*-elf* | fido-*-elf)
770 tmake_file="$tmake_file m68k/t-floatlib"
894a47b4 771 ;;
6af9f7ea 772m68k*-*-netbsdelf*)
894a47b4 773 ;;
774m68k*-*-openbsd*)
775 ;;
5bb27b7c 776m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
777 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
1e53920f 778 md_unwind_header=m68k/linux-unwind.h
894a47b4 779 ;;
1e53920f 780m68k-*-linux*) # Motorola m68k's running GNU/Linux
894a47b4 781 # with ELF format using glibc 2
782 # aka the GNU/Linux C library 6.
5bb27b7c 783 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
a997b0d8 784 # If not configured with --enable-sjlj-exceptions, bump the
785 # libgcc version number.
786 if test x$enable_sjlj_exceptions != xyes; then
787 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
788 fi
1e53920f 789 md_unwind_header=m68k/linux-unwind.h
894a47b4 790 ;;
791m68k-*-rtems*)
9213d2eb 792 tmake_file="$tmake_file m68k/t-floatlib"
237490bf 793 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 794 ;;
795mcore-*-elf)
9213d2eb 796 tmake_file="mcore/t-mcore t-fdpbit"
237490bf 797 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 798 ;;
a997b0d8 799microblaze*-linux*)
c48df545 800 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
a997b0d8 801 ;;
98f2ac05 802microblaze*-*-elf)
803 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
804 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
d34b0d1e 805 ;;
d742e92d 806microblaze*-*-rtems*)
807 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
808 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
809 ;;
894a47b4 810mips*-*-netbsd*) # NetBSD/mips, either endian.
811 ;;
894a47b4 812mips*-*-linux*) # Linux MIPS, either endian.
283681bb 813 extra_parts="$extra_parts crtfastmath.o"
60b34f30 814 tmake_file="${tmake_file} t-crtfm"
60b34f30 815 case ${host} in
272552a3 816 mips64r5900* | mipsr5900*)
817 # The MIPS16 support code uses floating point
818 # instructions that are not supported on r5900.
819 ;;
820 *)
821 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
822 ;;
60b34f30 823 esac
1e53920f 824 md_unwind_header=mips/linux-unwind.h
894a47b4 825 ;;
a23b9c51 826mips*-sde-elf*)
20dbbfaf 827 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
a23b9c51 828 case "${with_newlib}" in
829 yes)
830 # newlib / libgloss.
831 ;;
832 *)
833 # MIPS toolkit libraries.
237490bf 834 tmake_file="$tmake_file mips/t-sdemtk"
a23b9c51 835 ;;
836 esac
237490bf 837 extra_parts="$extra_parts crti.o crtn.o"
a23b9c51 838 ;;
21889c08 839mipsisa32-*-elf* | mipsisa32el-*-elf* | \
840mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
78645e70 841mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
21889c08 842mipsisa64-*-elf* | mipsisa64el-*-elf* | \
78645e70 843mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
844mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
4dc4ff49 845 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 846 extra_parts="$extra_parts crti.o crtn.o"
77a32a8e 847 ;;
894a47b4 848mipsisa64sr71k-*-elf*)
20dbbfaf 849 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
237490bf 850 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 851 ;;
852mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
4dc4ff49 853 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 854 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 855 ;;
856mips-*-elf* | mipsel-*-elf*)
4dc4ff49 857 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 858 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 859 ;;
60b34f30 860mipsr5900-*-elf* | mipsr5900el-*-elf*)
861 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
862 extra_parts="$extra_parts crti.o crtn.o"
863 ;;
894a47b4 864mips64-*-elf* | mips64el-*-elf*)
4dc4ff49 865 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 866 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 867 ;;
60b34f30 868mips64r5900-*-elf* | mips64r5900el-*-elf*)
869 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
870 extra_parts="$extra_parts crti.o crtn.o"
871 ;;
894a47b4 872mips64vr-*-elf* | mips64vrel-*-elf*)
4dc4ff49 873 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
237490bf 874 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 875 ;;
876mips64orion-*-elf* | mips64orionel-*-elf*)
4dc4ff49 877 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 878 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 879 ;;
880mips*-*-rtems*)
4dc4ff49 881 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 882 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 883 ;;
884mips-wrs-vxworks)
885 ;;
894a47b4 886mipstx39-*-elf* | mipstx39el-*-elf*)
237490bf 887 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
894a47b4 888 ;;
889mmix-knuth-mmixware)
8525326e 890 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
891 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
894a47b4 892 ;;
893mn10300-*-*)
a23b9c51 894 tmake_file=t-fdpbit
894a47b4 895 ;;
e83cd474 896moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux*)
84600db5 897 tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
e83cd474 898 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
237490bf 899 ;;
900moxie-*-rtems*)
fbb6f195 901 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
237490bf 902 # Don't use default.
903 extra_parts=
be52b6d8 904 ;;
e4a25868 905msp430*-*-elf)
906 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
907 ;;
eae21ed1 908nds32*-elf*)
909 # Basic makefile fragment and extra_parts for crt stuff.
910 # We also append c-isr library implementation.
911 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
912 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
913 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
914 case "${with_nds32_lib}" in
915 "" | newlib)
916 # Append library definition makefile fragment t-nds32-newlib.
917 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
918 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
919 ;;
920 mculib)
921 # Append library definition makefile fragment t-nds32-mculib.
922 # The software floating point library is included in mculib.
923 tmake_file="${tmake_file} nds32/t-nds32-mculib"
924 ;;
925 *)
926 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
927 exit 1
928 ;;
929 esac
930 ;;
de65406d 931nios2-*-linux*)
932 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
933 extra_parts="$extra_parts crti.o crtn.o"
934 md_unwind_header=nios2/linux-unwind.h
935 ;;
936nios2-*-*)
937 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
938 extra_parts="$extra_parts crti.o crtn.o"
939 ;;
894a47b4 940pdp11-*-*)
4dc4ff49 941 tmake_file="pdp11/t-pdp11 t-fdpbit"
894a47b4 942 ;;
894a47b4 943powerpc-*-darwin*)
1e53920f 944 case ${host} in
945 *-*-darwin9* | *-*-darwin[12][0-9]*)
946 # libSystem contains unwind information for signal frames since
947 # Darwin 9.
948 ;;
949 *)
950 md_unwind_header=rs6000/darwin-unwind.h
951 ;;
952 esac
84600db5 953 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
1a4a11f3 954 extra_parts="$extra_parts crt2.o"
894a47b4 955 ;;
956powerpc64-*-darwin*)
4dc4ff49 957 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1a4a11f3 958 extra_parts="$extra_parts crt2.o"
894a47b4 959 ;;
bdd1ee48 960powerpc*-*-freebsd*)
961 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 962 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
bdd1ee48 963 case ${host} in
964 powerpc64*)
965 tmake_file="${tmake_file} rs6000/t-freebsd64"
966 md_unwind_header=rs6000/freebsd-unwind.h
967 ;;
968 esac
894a47b4 969 ;;
970powerpc-*-netbsd*)
08417926 971 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
894a47b4 972 ;;
894a47b4 973powerpc-*-eabispe*)
16348e18 974 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 975 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 976 ;;
977powerpc-*-eabisimaltivec*)
738c50b8 978 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 979 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 980 ;;
981powerpc-*-eabisim*)
738c50b8 982 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 983 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 984 ;;
985powerpc-*-elf*)
47ab8c10 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 crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 988 ;;
989powerpc-*-eabialtivec*)
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"
a23b9c51 992 ;;
993powerpc-xilinx-eabi*)
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-*-eabi*)
738c50b8 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 crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1000 ;;
1001powerpc-*-rtems*)
a2397d15 1002 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1003 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1004 ;;
d80dc920 1005powerpc*-*-linux*)
e707b8cc 1006 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 1007 case $ppc_fp_type in
1008 64)
1009 ;;
1010 hard)
1011 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1012 ;;
1013 soft)
0e36a0d7 1014 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
fd1eaa27 1015 ;;
d9b5cf5c 1016 e500v1)
0e36a0d7 1017 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
d9b5cf5c 1018 ;;
1019 e500v2)
0e36a0d7 1020 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
fd1eaa27 1021 ;;
1022 *)
1023 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1024 exit 1
1025 ;;
1026 esac
237490bf 1027 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1e53920f 1028 md_unwind_header=rs6000/linux-unwind.h
894a47b4 1029 ;;
6c352a95 1030powerpc-wrs-vxworks|powerpc-wrs-vxworksae|powerpc-wrs-vxworksmils)
47ab8c10 1031 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
894a47b4 1032 ;;
894a47b4 1033powerpc-*-lynxos*)
08417926 1034 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
894a47b4 1035 ;;
894a47b4 1036powerpcle-*-elf*)
738c50b8 1037 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1038 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1039 ;;
1040powerpcle-*-eabisim*)
738c50b8 1041 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1042 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1043 ;;
1044powerpcle-*-eabi*)
738c50b8 1045 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1046 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1047 ;;
894a47b4 1048rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
e59be7e3 1049 md_unwind_header=rs6000/aix-unwind.h
c1420b84 1050 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
894a47b4 1051 ;;
1052rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
e59be7e3 1053 md_unwind_header=rs6000/aix-unwind.h
c1420b84 1054 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
894a47b4 1055 ;;
1056rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
e59be7e3 1057 md_unwind_header=rs6000/aix-unwind.h
a8af2dd5 1058 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1059 extra_parts="crtcxa.o crtcxa_s.o"
894a47b4 1060 ;;
78e515f7 1061rl78-*-elf)
1062 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1063 ;;
24833e1a 1064rx-*-elf)
a23b9c51 1065 tmake_file="rx/t-rx t-fdpbit"
022a2799 1066 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
24833e1a 1067 ;;
894a47b4 1068s390-*-linux*)
e38fe738 1069 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
1e53920f 1070 md_unwind_header=s390/linux-unwind.h
894a47b4 1071 ;;
1072s390x-*-linux*)
368b5b2c 1073 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
1074 if test "${host_address}" = 32; then
1075 tmake_file="${tmake_file} s390/32/t-floattodi"
1076 fi
1e53920f 1077 md_unwind_header=s390/linux-unwind.h
894a47b4 1078 ;;
1079s390x-ibm-tpf*)
4dc4ff49 1080 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
237490bf 1081 extra_parts="crtbeginS.o crtendS.o"
f9cccfac 1082 md_unwind_header=s390/tpf-unwind.h
894a47b4 1083 ;;
237490bf 1084sh-*-elf* | sh[12346l]*-*-elf*)
1085 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1086 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1087 libic_invalidate_array_4-100.a \
1088 libic_invalidate_array_4-200.a \
1089 libic_invalidate_array_4a.a \
1090 libgcc-Os-4-200.a libgcc-4-300.a"
9213d2eb 1091 case ${host} in sh64*-*-*)
1092 tmake_file="$tmake_file sh/t-sh64"
1093 ;;
1094 esac
97f1a704 1095 case ${host} in
237490bf 1096 sh*-superh-elf)
1097 tmake_file="$tmake_file sh/t-superh"
1098 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1099 ;;
1100 esac
1101 ;;
1102sh-*-linux* | sh[2346lbe]*-*-linux*)
9213d2eb 1103 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1104 case ${host} in sh64*-*-linux*)
1105 tmake_file="$tmake_file sh/t-sh64"
1106 ;;
1107 esac
237490bf 1108 md_unwind_header=sh/linux-unwind.h
1109 ;;
1110sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1111 sh64-*-netbsd* | sh64l*-*-netbsd*)
9213d2eb 1112 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1113 case ${host} in
1114 sh5*-*-netbsd* | sh64*-netbsd*)
1115 tmake_file="$tmake_file sh/t-sh64"
1116 ;;
1117 esac
237490bf 1118 # NetBSD's C library includes a fast software FP library that
1119 # has support for setting/setting the rounding mode, exception
1120 # mask, etc. Therefore, we don't want to include software FP
1121 # in libgcc.
894a47b4 1122 ;;
894a47b4 1123sh-*-rtems*)
9213d2eb 1124 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
237490bf 1125 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
57380e33 1126 libic_invalidate_array_4-100.a \
1127 libic_invalidate_array_4-200.a \
1128 libic_invalidate_array_4a.a \
1129 libgcc-Os-4-200.a libgcc-4-300.a"
894a47b4 1130 ;;
1131sh-wrs-vxworks)
9213d2eb 1132 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
894a47b4 1133 ;;
894a47b4 1134sparc-*-netbsdelf*)
1135 ;;
1136sparc64-*-openbsd*)
1137 ;;
1138sparc-*-elf*)
63abf89e 1139 case ${host} in
1140 *-leon[3-9]*)
1141 ;;
1142 *)
1143 tmake_file="sparc/t-softmul"
1144 ;;
1145 esac
237490bf 1146 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1147 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
894a47b4 1148 ;;
1149sparc-*-linux*) # SPARC's running GNU/Linux, libc6
95de80bc 1150 tmake_file="${tmake_file} t-crtfm"
1151 if test "${host_address}" = 64; then
1152 tmake_file="$tmake_file sparc/t-linux64"
1153 fi
a23b9c51 1154 case ${host} in
1155 *-leon*)
a997b0d8 1156 tmake_file="${tmake_file} t-fdpbit"
1157 ;;
1158 *)
1159 tmake_file="${tmake_file} sparc/t-linux"
a23b9c51 1160 ;;
1161 esac
9213d2eb 1162 case ${host} in
1163 *-leon[3-9]*)
1164 ;;
1165 *)
95de80bc 1166 if test "${host_address}" = 32; then
1167 tmake_file="$tmake_file sparc/t-softmul"
1168 fi
9213d2eb 1169 ;;
1170 esac
894a47b4 1171 extra_parts="$extra_parts crtfastmath.o"
f9cccfac 1172 md_unwind_header=sparc/linux-unwind.h
894a47b4 1173 ;;
a23b9c51 1174sparc-*-rtems*)
fbb6f195 1175 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
237490bf 1176 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
894a47b4 1177 ;;
63abf89e 1178sparc*-*-solaris2*)
1179 tmake_file="$tmake_file t-crtfm"
1180 extra_parts="$extra_parts crtfastmath.o"
1e53920f 1181 md_unwind_header=sparc/sol2-unwind.h
894a47b4 1182 ;;
894a47b4 1183sparc64-*-elf*)
237490bf 1184 tmake_file="${tmake_file} t-crtfm"
1185 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
894a47b4 1186 ;;
a23b9c51 1187sparc64-*-rtems*)
00b706f9 1188 tmake_file="$tmake_file t-crtfm"
237490bf 1189 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
a23b9c51 1190 ;;
723e1902 1191sparc-wrs-vxworks)
1192 ;;
894a47b4 1193sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1125ba83 1194 tmake_file="$tmake_file t-crtfm"
237490bf 1195 extra_parts="$extra_parts crtfastmath.o"
894a47b4 1196 ;;
1197sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1198 extra_parts="$extra_parts crtfastmath.o"
95de80bc 1199 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1200 if test "${host_address}" = 64; then
1201 tmake_file="${tmake_file} sparc/t-linux64"
1202 fi
1203 if test "${host_address}" = 32; then
1204 tmake_file="${tmake_file} sparc/t-softmul"
1205 fi
1e53920f 1206 md_unwind_header=sparc/linux-unwind.h
894a47b4 1207 ;;
1208sparc64-*-netbsd*)
1209 ;;
1210spu-*-elf*)
4dc4ff49 1211 tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
237490bf 1212 extra_parts="$extra_parts \
1213 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1214 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1215 libgcc_cache64k.a libgcc_cache128k.a"
894a47b4 1216 ;;
a997b0d8 1217tic6x-*-uclinux)
adce431d 1218 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1219 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1220 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
022a2799 1221 tm_file="$tm_file c6x/c6x-abi.h"
adce431d 1222 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
a997b0d8 1223 unwind_header=config/c6x/unwind-c6x.h
1224 ;;
237490bf 1225tic6x-*-elf)
1226 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
022a2799 1227 tm_file="$tm_file c6x/c6x-abi.h"
237490bf 1228 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
7e5fc0c4 1229 unwind_header=config/c6x/unwind-c6x.h
5aa04b01 1230 ;;
2da35515 1231tilegx*-*-linux*)
7ce78e23 1232 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf tilegx/t-softfp t-softfp tilegx/t-tilegx"
1233 md_unwind_header=tilepro/linux-unwind.h
1234 ;;
2da35515 1235tilepro*-*-linux*)
7ce78e23 1236 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro"
1237 md_unwind_header=tilepro/linux-unwind.h
1238 ;;
707238af 1239v850*-*-*)
0cdefccf 1240 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
894a47b4 1241 ;;
63bfd172 1242vax-*-linux*)
9213d2eb 1243 tmake_file="$tmake_file vax/t-linux"
63bfd172 1244 ;;
894a47b4 1245vax-*-netbsdelf*)
1246 ;;
894a47b4 1247vax-*-openbsd*)
1248 ;;
8992df51 1249visium-*-elf*)
1250 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1251 tmake_file="visium/t-visium t-fdpbit"
1252 ;;
894a47b4 1253xstormy16-*-elf)
2219274c 1254 tmake_file="stormy16/t-stormy16 t-fdpbit"
894a47b4 1255 ;;
75c7ffbc 1256xtensa*-*-elf*)
237490bf 1257 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1258 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 1259 ;;
75c7ffbc 1260xtensa*-*-linux*)
382e1a72 1261 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1e53920f 1262 md_unwind_header=xtensa/linux-unwind.h
894a47b4 1263 ;;
1264am33_2.0-*-linux*)
237490bf 1265 # Don't need crtbeginT.o from *-*-linux* default.
894a47b4 1266 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
a997b0d8 1267 tmake_file="$tmake_file t-fdpbit"
894a47b4 1268 ;;
7eac0a4e 1269m32c-*-elf*|m32c-*-rtems*)
9213d2eb 1270 tmake_file="$tmake_file m32c/t-m32c"
894a47b4 1271 ;;
46222c18 1272mep*-*-*)
237490bf 1273 tmake_file="mep/t-mep t-fdpbit"
1274 extra_parts="crtbegin.o crtend.o"
46222c18 1275 ;;
8ce80784 1276nvptx-*)
1277 tmake_file="$tmake_file nvptx/t-nvptx"
1278 extra_parts="crt0.o"
1279 ;;
894a47b4 1280*)
1281 echo "*** Configuration ${host} not supported" 1>&2
1282 exit 1
1283 ;;
1284esac
e4cbe54f 1285
98c9b52b 1286case ${host} in
1287i[34567]86-*-* | x86_64-*-*)
1288 tmake_file="${tmake_file} i386/t-cpuinfo"
1289 ;;
1290esac
1291
e4cbe54f 1292case ${host} in
1eab96a6 1293i[34567]86-*-linux* | x86_64-*-linux* | \
a997b0d8 1294 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1295 i[34567]86-*-knetbsd*-gnu | \
1eab96a6 1296 i[34567]86-*-gnu*)
98c9b52b 1297 tmake_file="${tmake_file} t-tls i386/t-linux"
c9b3ebc5 1298 if test "$libgcc_cv_cfi" = "yes"; then
f2d9def0 1299 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
c9b3ebc5 1300 fi
e4cbe54f 1301 ;;
1302esac
b3fd46a0 1303
1304case ${host} in
1305i[34567]86-*-darwin* | x86_64-*-darwin* | \
09ec66c8 1306 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
6471e33b 1307 i[34567]86-*-linux* | x86_64-*-linux* | \
8a84c748 1308 i[34567]86-*-gnu* | \
14f27bc6 1309 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
45d13ef4 1310 i[34567]86-*-cygwin* | x86_64-*-cygwin* | \
1311 i[34567]86-*-mingw* | x86_64-*-mingw* | \
463553db 1312 i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \
6e029611 1313 i[34567]86-*-freebsd* | x86_64-*-freebsd* | \
1314 i[34567]86-*-openbsd* | x86_64-*-openbsd*)
84600db5 1315 tmake_file="${tmake_file} t-softfp-tf"
144633f4 1316 if test "${host_address}" = 32; then
84600db5 1317 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
144633f4 1318 fi
2c223cf2 1319 tmake_file="${tmake_file} i386/t-softfp t-softfp"
144633f4 1320 ;;
1321esac
1322
1323case ${host} in
1324i[34567]86-*-linux* | x86_64-*-linux*)
1325 # Provide backward binary compatibility for 64bit Linux/x86.
1326 if test "${host_address}" = 64; then
1327 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1328 fi
022a2799 1329 tm_file="${tm_file} i386/value-unwind.h"
b3fd46a0 1330 ;;
1331esac