]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config.host
Daily bump.
[thirdparty/gcc.git] / libgcc / config.host
CommitLineData
894a47b4 1# libgcc host-specific configuration file.
f9fb6ba0 2# Copyright (C) 1997-2014 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 ;;
894a47b4 369arm*-*-netbsdelf*)
4dc4ff49 370 tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover"
894a47b4 371 ;;
894a47b4 372arm*-*-linux*) # ARM GNU/Linux with ELF
9213d2eb 373 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix"
6a11e52b 374 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
375 tm_file="$tm_file arm/bpabi-lib.h"
376 unwind_header=config/arm/unwind-arm.h
84600db5 377 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
894a47b4 378 ;;
379arm*-*-uclinux*) # ARM ucLinux
bbbe4599 380 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
4ef5912a 381 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
6a11e52b 382 tmake_file="${tmake_file} arm/t-bpabi"
383 tm_file="$tm_file arm/bpabi-lib.h"
384 unwind_header=config/arm/unwind-arm.h
237490bf 385 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 386 ;;
598ebe3d 387arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
9213d2eb 388 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
022a2799 389 tm_file="$tm_file arm/bpabi-lib.h"
e59be7e3 390 case ${host} in
598ebe3d 391 arm*-*-eabi* | arm*-*-rtems*)
e59be7e3 392 tmake_file="${tmake_file} arm/t-bpabi"
237490bf 393 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
e59be7e3 394 ;;
395 arm*-*-symbianelf*)
a997b0d8 396 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
022a2799 397 tm_file="$tm_file arm/symbian-lib.h"
237490bf 398 # Symbian OS provides its own startup code.
e59be7e3 399 ;;
400 esac
84600db5 401 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
e59be7e3 402 unwind_header=config/arm/unwind-arm.h
894a47b4 403 ;;
894a47b4 404avr-*-rtems*)
02c5dcd9 405 tmake_file="$tmake_file avr/t-avr avr/t-rtems t-fpbit"
022a2799 406 tm_file="$tm_file avr/avr-lib.h"
237490bf 407 # Don't use default.
408 extra_parts=
894a47b4 409 ;;
410avr-*-*)
a23b9c51 411 # Make HImode functions for AVR
412 tmake_file="${cpu_type}/t-avr t-fpbit"
fd28e216 413 if test x${with_avrlibc} != xno; then
414 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
415 fi
022a2799 416 tm_file="$tm_file avr/avr-lib.h"
894a47b4 417 ;;
418bfin*-elf*)
2219274c 419 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
237490bf 420 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
894a47b4 421 ;;
422bfin*-uclinux*)
2219274c 423 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
237490bf 424 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
1e53920f 425 md_unwind_header=bfin/linux-unwind.h
894a47b4 426 ;;
bce94ab5 427bfin*-linux-uclibc*)
2219274c 428 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
bce94ab5 429 # No need to build crtbeginT.o on uClibc systems. Should probably
430 # be moved to the OS specific section above.
431 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1e53920f 432 md_unwind_header=bfin/linux-unwind.h
bce94ab5 433 ;;
a23b9c51 434bfin*-rtems*)
9213d2eb 435 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
237490bf 436 extra_parts="$extra_parts crti.o crtn.o"
a23b9c51 437 ;;
894a47b4 438bfin*-*)
9213d2eb 439 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
237490bf 440 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
894a47b4 441 ;;
b9fdd12b 442cr16-*-elf)
443 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
444 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
445 ;;
237490bf 446crisv32-*-elf)
b4294f67 447 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
237490bf 448 ;;
237490bf 449cris-*-elf)
b4294f67 450 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
237490bf 451 ;;
877d7f12 452cris-*-linux* | crisv32-*-linux*)
b4294f67 453 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
894a47b4 454 ;;
d19f5793 455epiphany-*-elf*)
456 tmake_file="epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
457 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
458 ;;
894a47b4 459fr30-*-elf)
9213d2eb 460 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
237490bf 461 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 462 ;;
463frv-*-elf)
237490bf 464 tmake_file="$tmake_file frv/t-frv t-fdpbit"
022a2799 465 tm_file="$tm_file frv/frv-abi.h"
237490bf 466 # Don't use crtbegin.o, crtend.o.
467 extra_parts="frvbegin.o frvend.o"
894a47b4 468 ;;
469frv-*-*linux*)
9213d2eb 470 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
022a2799 471 tm_file="$tm_file frv/frv-abi.h"
894a47b4 472 ;;
894a47b4 473h8300-*-rtems*)
9213d2eb 474 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
022a2799 475 tm_file="$tm_file h8300/h8300-lib.h"
237490bf 476 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 477 ;;
478h8300-*-elf*)
9213d2eb 479 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
022a2799 480 tm_file="$tm_file h8300/h8300-lib.h"
237490bf 481 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 482 ;;
6af9f7ea 483hppa*64*-*-linux*)
9213d2eb 484 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
a99f9d91 485 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
894a47b4 486 ;;
6af9f7ea 487hppa*-*-linux*)
9213d2eb 488 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
a997b0d8 489 # Set the libgcc version number
490 if test x$enable_sjlj_exceptions = xyes; then
491 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
492 else
493 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
494 fi
a99f9d91 495 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
01cb8ad1 496 md_unwind_header=pa/linux-unwind.h
894a47b4 497 ;;
498hppa[12]*-*-hpux10*)
4dc4ff49 499 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
a997b0d8 500 # Set the libgcc version number
501 if test x$enable_sjlj_exceptions = xyes; then
502 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
503 else
504 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
505 fi
506 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
1e53920f 507 md_unwind_header=pa/hpux-unwind.h
894a47b4 508 ;;
509hppa*64*-*-hpux11*)
ab4fdb3d 510 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
a997b0d8 511 # Set the libgcc version number
512 if test x$enable_sjlj_exceptions = xyes; then
513 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
514 else
515 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
516 fi
517 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
237490bf 518 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
519 libgcc_stub.a"
1e53920f 520 md_unwind_header=pa/hpux-unwind.h
894a47b4 521 ;;
522hppa[12]*-*-hpux11*)
4dc4ff49 523 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
a997b0d8 524 # Set the libgcc version number
525 if test x$enable_sjlj_exceptions = xyes; then
526 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
527 else
528 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
529 fi
530 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
237490bf 531 extra_parts="libgcc_stub.a"
1e53920f 532 md_unwind_header=pa/hpux-unwind.h
894a47b4 533 ;;
07cf7615 534hppa*-*-openbsd*)
535 tmake_file="$tmake_file pa/t-openbsd"
536 ;;
894a47b4 537i[34567]86-*-darwin*)
ba079bc9 538 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
022a2799 539 tm_file="$tm_file i386/darwin-lib.h"
ba079bc9 540 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
894a47b4 541 ;;
542x86_64-*-darwin*)
a997b0d8 543 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
022a2799 544 tm_file="$tm_file i386/darwin-lib.h"
ba079bc9 545 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
894a47b4 546 ;;
547i[34567]86-*-elf*)
4dc4ff49 548 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
894a47b4 549 ;;
cc8ebe39 550x86_64-*-elf*)
4dc4ff49 551 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
cc8ebe39 552 ;;
463553db 553i[34567]86-*-dragonfly*)
554 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
555 md_unwind_header=i386/dragonfly-unwind.h
556 ;;
557x86_64-*-dragonfly*)
558 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
559 md_unwind_header=i386/dragonfly-unwind.h
560 ;;
894a47b4 561i[34567]86-*-freebsd*)
237490bf 562 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
894a47b4 563 ;;
564x86_64-*-freebsd*)
237490bf 565 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
894a47b4 566 ;;
567i[34567]86-*-netbsdelf*)
568 ;;
894a47b4 569x86_64-*-netbsd*)
237490bf 570 tmake_file="${tmake_file} i386/t-crtstuff"
894a47b4 571 ;;
572i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
573 ;;
574i[34567]86-*-openbsd*)
575 ;;
51796b3a 576x86_64-*-openbsd*)
577 ;;
fe27820f 578i[34567]86-*-linux*)
6d057ce8 579 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
237490bf 580 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
1e53920f 581 md_unwind_header=i386/linux-unwind.h
894a47b4 582 ;;
fe27820f 583i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
584 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
237490bf 585 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
fe27820f 586 ;;
587x86_64-*-linux*)
6d057ce8 588 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
237490bf 589 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
1e53920f 590 md_unwind_header=i386/linux-unwind.h
894a47b4 591 ;;
fe27820f 592x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
593 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
237490bf 594 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
fe27820f 595 ;;
894a47b4 596i[34567]86-pc-msdosdjgpp*)
597 ;;
598i[34567]86-*-lynxos*)
599 ;;
894a47b4 600i[34567]86-*-nto-qnx*)
4dc4ff49 601 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
237490bf 602 extra_parts=crtbegin.o
894a47b4 603 ;;
604i[34567]86-*-rtems*)
8a3edb33 605 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdf t-softfp"
237490bf 606 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 607 ;;
14f27bc6 608i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
ba079bc9 609 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
610 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
1e53920f 611 md_unwind_header=i386/sol2-unwind.h
894a47b4 612 ;;
894a47b4 613i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
614 ;;
1e53920f 615i[34567]86-*-cygwin*)
1db4f54b 616 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
a997b0d8 617 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
618 if test x$enable_sjlj_exceptions = xyes; then
619 tmake_eh_file="i386/t-sjlj-eh"
620 else
621 tmake_eh_file="i386/t-dw2-eh"
622 fi
623 # Shared libgcc DLL install dir depends on cross/native build.
624 if test x${build} = x${host} ; then
625 tmake_dlldir_file="i386/t-dlldir"
626 else
627 tmake_dlldir_file="i386/t-dlldir-x"
628 fi
9213d2eb 629 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 630 ;;
45d13ef4 631x86_64-*-cygwin*)
1db4f54b 632 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
45d13ef4 633 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
634 if test x$enable_sjlj_exceptions = xyes; then
635 tmake_eh_file="i386/t-sjlj-eh"
636 else
637 tmake_eh_file="i386/t-seh-eh"
638 fi
639 # Shared libgcc DLL install dir depends on cross/native build.
640 if test x${build} = x${host} ; then
641 tmake_dlldir_file="i386/t-dlldir"
642 else
643 tmake_dlldir_file="i386/t-dlldir-x"
644 fi
645 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
646 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"
647 ;;
1e53920f 648i[34567]86-*-mingw*)
649 extra_parts="crtbegin.o crtend.o crtfastmath.o"
4dc4ff49 650 case ${target_thread_file} in
651 win32)
652 tmake_file="$tmake_file i386/t-gthr-win32"
653 ;;
2d00fffd 654 posix)
655 tmake_file="i386/t-mingw-pthread $tmake_file"
656 ;;
4dc4ff49 657 esac
a997b0d8 658 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
659 if test x$enable_sjlj_exceptions = xyes; then
660 tmake_eh_file="i386/t-sjlj-eh"
661 else
662 tmake_eh_file="i386/t-dw2-eh"
7ed6dbef 663 md_unwind_header=i386/w32-unwind.h
a997b0d8 664 fi
665 # Shared libgcc DLL install dir depends on cross/native build.
666 if test x${build} = x${host} ; then
667 tmake_dlldir_file="i386/t-dlldir"
668 else
669 tmake_dlldir_file="i386/t-dlldir-x"
670 fi
9213d2eb 671 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 672 ;;
8f433c51 673x86_64-*-mingw*)
4dc4ff49 674 case ${target_thread_file} in
675 win32)
676 tmake_file="$tmake_file i386/t-gthr-win32"
677 ;;
2d00fffd 678 posix)
679 tmake_file="i386/t-mingw-pthread $tmake_file"
680 ;;
4dc4ff49 681 esac
a997b0d8 682 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
683 if test x$enable_sjlj_exceptions = xyes; then
684 tmake_eh_file="i386/t-sjlj-eh"
685 else
8ad0b530 686 tmake_eh_file="i386/t-seh-eh"
a997b0d8 687 fi
688 # Shared libgcc DLL install dir depends on cross/native build.
689 if test x${build} = x${host} ; then
690 tmake_dlldir_file="i386/t-dlldir"
691 else
692 tmake_dlldir_file="i386/t-dlldir-x"
693 fi
0624d0c7 694 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"
695 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
894a47b4 696 ;;
af8e12d0 697i[34567]86-*-interix[3-9]*)
4dc4ff49 698 tmake_file="$tmake_file i386/t-interix i386/t-chkstk"
894a47b4 699 ;;
894a47b4 700ia64*-*-elf*)
237490bf 701 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
2ff958e6 702 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
894a47b4 703 ;;
704ia64*-*-freebsd*)
237490bf 705 extra_parts="$extra_parts crtfastmath.o"
2ff958e6 706 tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
894a47b4 707 ;;
708ia64*-*-linux*)
237490bf 709 # Don't use crtbeginT.o from *-*-linux* default.
894a47b4 710 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
2ff958e6 711 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 712 if test x$with_system_libunwind != xyes ; then
a997b0d8 713 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
e59be7e3 714 fi
1e53920f 715 md_unwind_header=ia64/linux-unwind.h
894a47b4 716 ;;
717ia64*-*-hpux*)
2ff958e6 718 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
894a47b4 719 ;;
9b9a2528 720ia64-hp-*vms*)
9213d2eb 721 tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms"
237490bf 722 extra_parts="$extra_parts crtinitS.o"
1e53920f 723 md_unwind_header=ia64/vms-unwind.h
9b9a2528 724 ;;
894a47b4 725iq2000*-*-elf*)
08417926 726 tmake_file="iq2000/t-iq2000 t-fdpbit"
237490bf 727 # Don't use default.
728 extra_parts=
894a47b4 729 ;;
fbb6f195 730lm32-*-elf*)
237490bf 731 extra_parts="$extra_parts crti.o crtn.o"
84600db5 732 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
f6fe91e8 733 ;;
fbb6f195 734lm32-*-rtems*)
735 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
736 extra_parts="$extra_parts crti.o crtn.o"
737 ;;
f6fe91e8 738lm32-*-uclinux*)
237490bf 739 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
4dc4ff49 740 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
f6fe91e8 741 ;;
237490bf 742m32r-*-elf*)
a23b9c51 743 tmake_file=t-fdpbit
894a47b4 744 ;;
237490bf 745m32r-*-rtems*)
fbb6f195 746 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
0cd8c088 747 extra_parts="$extra_parts crtinit.o crtfini.o"
237490bf 748 ;;
894a47b4 749m32rle-*-elf*)
a23b9c51 750 tmake_file=t-fdpbit
894a47b4 751 ;;
752m32r-*-linux*)
237490bf 753 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
894a47b4 754 ;;
755m32rle-*-linux*)
237490bf 756 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
894a47b4 757 ;;
9213d2eb 758m68k-*-elf* | fido-*-elf)
759 tmake_file="$tmake_file m68k/t-floatlib"
894a47b4 760 ;;
6af9f7ea 761m68k*-*-netbsdelf*)
894a47b4 762 ;;
763m68k*-*-openbsd*)
764 ;;
5bb27b7c 765m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
766 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
1e53920f 767 md_unwind_header=m68k/linux-unwind.h
894a47b4 768 ;;
1e53920f 769m68k-*-linux*) # Motorola m68k's running GNU/Linux
894a47b4 770 # with ELF format using glibc 2
771 # aka the GNU/Linux C library 6.
5bb27b7c 772 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
a997b0d8 773 # If not configured with --enable-sjlj-exceptions, bump the
774 # libgcc version number.
775 if test x$enable_sjlj_exceptions != xyes; then
776 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
777 fi
1e53920f 778 md_unwind_header=m68k/linux-unwind.h
894a47b4 779 ;;
780m68k-*-rtems*)
9213d2eb 781 tmake_file="$tmake_file m68k/t-floatlib"
237490bf 782 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 783 ;;
784mcore-*-elf)
9213d2eb 785 tmake_file="mcore/t-mcore t-fdpbit"
237490bf 786 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 787 ;;
a997b0d8 788microblaze*-linux*)
c48df545 789 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
a997b0d8 790 ;;
98f2ac05 791microblaze*-*-elf)
792 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
793 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
d34b0d1e 794 ;;
d742e92d 795microblaze*-*-rtems*)
796 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
797 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
798 ;;
894a47b4 799mips*-*-netbsd*) # NetBSD/mips, either endian.
800 ;;
894a47b4 801mips*-*-linux*) # Linux MIPS, either endian.
283681bb 802 extra_parts="$extra_parts crtfastmath.o"
60b34f30 803 tmake_file="${tmake_file} t-crtfm"
60b34f30 804 case ${host} in
272552a3 805 mips64r5900* | mipsr5900*)
806 # The MIPS16 support code uses floating point
807 # instructions that are not supported on r5900.
808 ;;
809 *)
810 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
811 ;;
60b34f30 812 esac
1e53920f 813 md_unwind_header=mips/linux-unwind.h
894a47b4 814 ;;
a23b9c51 815mips*-sde-elf*)
20dbbfaf 816 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
a23b9c51 817 case "${with_newlib}" in
818 yes)
819 # newlib / libgloss.
820 ;;
821 *)
822 # MIPS toolkit libraries.
237490bf 823 tmake_file="$tmake_file mips/t-sdemtk"
a23b9c51 824 ;;
825 esac
237490bf 826 extra_parts="$extra_parts crti.o crtn.o"
a23b9c51 827 ;;
21889c08 828mipsisa32-*-elf* | mipsisa32el-*-elf* | \
829mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
830mipsisa64-*-elf* | mipsisa64el-*-elf* | \
77a32a8e 831mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
4dc4ff49 832 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 833 extra_parts="$extra_parts crti.o crtn.o"
77a32a8e 834 ;;
894a47b4 835mipsisa64sr71k-*-elf*)
20dbbfaf 836 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
237490bf 837 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 838 ;;
839mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
4dc4ff49 840 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 841 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 842 ;;
843mips-*-elf* | mipsel-*-elf*)
4dc4ff49 844 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 845 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 846 ;;
60b34f30 847mipsr5900-*-elf* | mipsr5900el-*-elf*)
848 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
849 extra_parts="$extra_parts crti.o crtn.o"
850 ;;
894a47b4 851mips64-*-elf* | mips64el-*-elf*)
4dc4ff49 852 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 853 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 854 ;;
60b34f30 855mips64r5900-*-elf* | mips64r5900el-*-elf*)
856 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
857 extra_parts="$extra_parts crti.o crtn.o"
858 ;;
894a47b4 859mips64vr-*-elf* | mips64vrel-*-elf*)
4dc4ff49 860 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
237490bf 861 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 862 ;;
863mips64orion-*-elf* | mips64orionel-*-elf*)
4dc4ff49 864 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 865 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 866 ;;
867mips*-*-rtems*)
4dc4ff49 868 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
237490bf 869 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 870 ;;
871mips-wrs-vxworks)
872 ;;
894a47b4 873mipstx39-*-elf* | mipstx39el-*-elf*)
237490bf 874 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
894a47b4 875 ;;
876mmix-knuth-mmixware)
8525326e 877 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
878 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
894a47b4 879 ;;
880mn10300-*-*)
a23b9c51 881 tmake_file=t-fdpbit
894a47b4 882 ;;
e83cd474 883moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux*)
84600db5 884 tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
e83cd474 885 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
237490bf 886 ;;
887moxie-*-rtems*)
fbb6f195 888 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
237490bf 889 # Don't use default.
890 extra_parts=
be52b6d8 891 ;;
e4a25868 892msp430*-*-elf)
893 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
894 ;;
eae21ed1 895nds32*-elf*)
896 # Basic makefile fragment and extra_parts for crt stuff.
897 # We also append c-isr library implementation.
898 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
899 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
900 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
901 case "${with_nds32_lib}" in
902 "" | newlib)
903 # Append library definition makefile fragment t-nds32-newlib.
904 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
905 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
906 ;;
907 mculib)
908 # Append library definition makefile fragment t-nds32-mculib.
909 # The software floating point library is included in mculib.
910 tmake_file="${tmake_file} nds32/t-nds32-mculib"
911 ;;
912 *)
913 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
914 exit 1
915 ;;
916 esac
917 ;;
de65406d 918nios2-*-linux*)
919 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
920 extra_parts="$extra_parts crti.o crtn.o"
921 md_unwind_header=nios2/linux-unwind.h
922 ;;
923nios2-*-*)
924 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
925 extra_parts="$extra_parts crti.o crtn.o"
926 ;;
894a47b4 927pdp11-*-*)
4dc4ff49 928 tmake_file="pdp11/t-pdp11 t-fdpbit"
894a47b4 929 ;;
894a47b4 930powerpc-*-darwin*)
1e53920f 931 case ${host} in
932 *-*-darwin9* | *-*-darwin[12][0-9]*)
933 # libSystem contains unwind information for signal frames since
934 # Darwin 9.
935 ;;
936 *)
937 md_unwind_header=rs6000/darwin-unwind.h
938 ;;
939 esac
84600db5 940 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
1a4a11f3 941 extra_parts="$extra_parts crt2.o"
894a47b4 942 ;;
943powerpc64-*-darwin*)
4dc4ff49 944 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1a4a11f3 945 extra_parts="$extra_parts crt2.o"
894a47b4 946 ;;
bdd1ee48 947powerpc*-*-freebsd*)
948 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 949 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
bdd1ee48 950 case ${host} in
951 powerpc64*)
952 tmake_file="${tmake_file} rs6000/t-freebsd64"
953 md_unwind_header=rs6000/freebsd-unwind.h
954 ;;
955 esac
894a47b4 956 ;;
957powerpc-*-netbsd*)
08417926 958 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
894a47b4 959 ;;
894a47b4 960powerpc-*-eabispe*)
16348e18 961 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 962 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 963 ;;
964powerpc-*-eabisimaltivec*)
738c50b8 965 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 966 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 967 ;;
968powerpc-*-eabisim*)
738c50b8 969 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 970 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 971 ;;
972powerpc-*-elf*)
47ab8c10 973 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 974 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 975 ;;
976powerpc-*-eabialtivec*)
738c50b8 977 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 978 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
a23b9c51 979 ;;
980powerpc-xilinx-eabi*)
738c50b8 981 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 982 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 983 ;;
984powerpc-*-eabi*)
738c50b8 985 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 986 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 987 ;;
988powerpc-*-rtems*)
a2397d15 989 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 990 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 991 ;;
d80dc920 992powerpc*-*-linux*)
e707b8cc 993 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"
994 if test "${host_address}" = 32; then
995 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp"
996 fi
237490bf 997 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1e53920f 998 md_unwind_header=rs6000/linux-unwind.h
894a47b4 999 ;;
6c352a95 1000powerpc-wrs-vxworks|powerpc-wrs-vxworksae|powerpc-wrs-vxworksmils)
47ab8c10 1001 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
894a47b4 1002 ;;
894a47b4 1003powerpc-*-lynxos*)
08417926 1004 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
894a47b4 1005 ;;
894a47b4 1006powerpcle-*-elf*)
738c50b8 1007 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1008 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1009 ;;
1010powerpcle-*-eabisim*)
738c50b8 1011 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1012 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1013 ;;
1014powerpcle-*-eabi*)
738c50b8 1015 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
237490bf 1016 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
894a47b4 1017 ;;
894a47b4 1018rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
e59be7e3 1019 md_unwind_header=rs6000/aix-unwind.h
c1420b84 1020 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
894a47b4 1021 ;;
1022rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
e59be7e3 1023 md_unwind_header=rs6000/aix-unwind.h
c1420b84 1024 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
894a47b4 1025 ;;
1026rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
e59be7e3 1027 md_unwind_header=rs6000/aix-unwind.h
a8af2dd5 1028 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1029 extra_parts="crtcxa.o crtcxa_s.o"
894a47b4 1030 ;;
78e515f7 1031rl78-*-elf)
1032 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1033 ;;
24833e1a 1034rx-*-elf)
a23b9c51 1035 tmake_file="rx/t-rx t-fdpbit"
022a2799 1036 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
24833e1a 1037 ;;
894a47b4 1038s390-*-linux*)
e38fe738 1039 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
1e53920f 1040 md_unwind_header=s390/linux-unwind.h
894a47b4 1041 ;;
1042s390x-*-linux*)
368b5b2c 1043 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
1044 if test "${host_address}" = 32; then
1045 tmake_file="${tmake_file} s390/32/t-floattodi"
1046 fi
1e53920f 1047 md_unwind_header=s390/linux-unwind.h
894a47b4 1048 ;;
1049s390x-ibm-tpf*)
4dc4ff49 1050 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
237490bf 1051 extra_parts="crtbeginS.o crtendS.o"
f9cccfac 1052 md_unwind_header=s390/tpf-unwind.h
894a47b4 1053 ;;
237490bf 1054sh-*-elf* | sh[12346l]*-*-elf*)
1055 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1056 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1057 libic_invalidate_array_4-100.a \
1058 libic_invalidate_array_4-200.a \
1059 libic_invalidate_array_4a.a \
1060 libgcc-Os-4-200.a libgcc-4-300.a"
9213d2eb 1061 case ${host} in sh64*-*-*)
1062 tmake_file="$tmake_file sh/t-sh64"
1063 ;;
1064 esac
97f1a704 1065 case ${host} in
237490bf 1066 sh*-superh-elf)
1067 tmake_file="$tmake_file sh/t-superh"
1068 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1069 ;;
1070 esac
1071 ;;
1072sh-*-linux* | sh[2346lbe]*-*-linux*)
9213d2eb 1073 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1074 case ${host} in sh64*-*-linux*)
1075 tmake_file="$tmake_file sh/t-sh64"
1076 ;;
1077 esac
237490bf 1078 md_unwind_header=sh/linux-unwind.h
1079 ;;
1080sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1081 sh64-*-netbsd* | sh64l*-*-netbsd*)
9213d2eb 1082 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1083 case ${host} in
1084 sh5*-*-netbsd* | sh64*-netbsd*)
1085 tmake_file="$tmake_file sh/t-sh64"
1086 ;;
1087 esac
237490bf 1088 # NetBSD's C library includes a fast software FP library that
1089 # has support for setting/setting the rounding mode, exception
1090 # mask, etc. Therefore, we don't want to include software FP
1091 # in libgcc.
894a47b4 1092 ;;
894a47b4 1093sh-*-rtems*)
9213d2eb 1094 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
237490bf 1095 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
57380e33 1096 libic_invalidate_array_4-100.a \
1097 libic_invalidate_array_4-200.a \
1098 libic_invalidate_array_4a.a \
1099 libgcc-Os-4-200.a libgcc-4-300.a"
894a47b4 1100 ;;
1101sh-wrs-vxworks)
9213d2eb 1102 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
894a47b4 1103 ;;
894a47b4 1104sparc-*-netbsdelf*)
1105 ;;
1106sparc64-*-openbsd*)
1107 ;;
1108sparc-*-elf*)
63abf89e 1109 case ${host} in
1110 *-leon[3-9]*)
1111 ;;
1112 *)
1113 tmake_file="sparc/t-softmul"
1114 ;;
1115 esac
237490bf 1116 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1117 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
894a47b4 1118 ;;
1119sparc-*-linux*) # SPARC's running GNU/Linux, libc6
95de80bc 1120 tmake_file="${tmake_file} t-crtfm"
1121 if test "${host_address}" = 64; then
1122 tmake_file="$tmake_file sparc/t-linux64"
1123 fi
a23b9c51 1124 case ${host} in
1125 *-leon*)
a997b0d8 1126 tmake_file="${tmake_file} t-fdpbit"
1127 ;;
1128 *)
1129 tmake_file="${tmake_file} sparc/t-linux"
a23b9c51 1130 ;;
1131 esac
9213d2eb 1132 case ${host} in
1133 *-leon[3-9]*)
1134 ;;
1135 *)
95de80bc 1136 if test "${host_address}" = 32; then
1137 tmake_file="$tmake_file sparc/t-softmul"
1138 fi
9213d2eb 1139 ;;
1140 esac
894a47b4 1141 extra_parts="$extra_parts crtfastmath.o"
f9cccfac 1142 md_unwind_header=sparc/linux-unwind.h
894a47b4 1143 ;;
a23b9c51 1144sparc-*-rtems*)
fbb6f195 1145 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
237490bf 1146 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
894a47b4 1147 ;;
63abf89e 1148sparc*-*-solaris2*)
1149 tmake_file="$tmake_file t-crtfm"
1150 extra_parts="$extra_parts crtfastmath.o"
1e53920f 1151 md_unwind_header=sparc/sol2-unwind.h
894a47b4 1152 ;;
894a47b4 1153sparc64-*-elf*)
237490bf 1154 tmake_file="${tmake_file} t-crtfm"
1155 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
894a47b4 1156 ;;
a23b9c51 1157sparc64-*-rtems*)
00b706f9 1158 tmake_file="$tmake_file t-crtfm"
237490bf 1159 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
a23b9c51 1160 ;;
723e1902 1161sparc-wrs-vxworks)
1162 ;;
894a47b4 1163sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1125ba83 1164 tmake_file="$tmake_file t-crtfm"
237490bf 1165 extra_parts="$extra_parts crtfastmath.o"
894a47b4 1166 ;;
1167sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1168 extra_parts="$extra_parts crtfastmath.o"
95de80bc 1169 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1170 if test "${host_address}" = 64; then
1171 tmake_file="${tmake_file} sparc/t-linux64"
1172 fi
1173 if test "${host_address}" = 32; then
1174 tmake_file="${tmake_file} sparc/t-softmul"
1175 fi
1e53920f 1176 md_unwind_header=sparc/linux-unwind.h
894a47b4 1177 ;;
1178sparc64-*-netbsd*)
1179 ;;
1180spu-*-elf*)
4dc4ff49 1181 tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
237490bf 1182 extra_parts="$extra_parts \
1183 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1184 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1185 libgcc_cache64k.a libgcc_cache128k.a"
894a47b4 1186 ;;
a997b0d8 1187tic6x-*-uclinux)
adce431d 1188 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1189 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1190 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
022a2799 1191 tm_file="$tm_file c6x/c6x-abi.h"
adce431d 1192 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
a997b0d8 1193 unwind_header=config/c6x/unwind-c6x.h
1194 ;;
237490bf 1195tic6x-*-elf)
1196 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
022a2799 1197 tm_file="$tm_file c6x/c6x-abi.h"
237490bf 1198 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
7e5fc0c4 1199 unwind_header=config/c6x/unwind-c6x.h
5aa04b01 1200 ;;
2da35515 1201tilegx*-*-linux*)
7ce78e23 1202 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf tilegx/t-softfp t-softfp tilegx/t-tilegx"
1203 md_unwind_header=tilepro/linux-unwind.h
1204 ;;
2da35515 1205tilepro*-*-linux*)
7ce78e23 1206 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro"
1207 md_unwind_header=tilepro/linux-unwind.h
1208 ;;
707238af 1209v850*-*-*)
0cdefccf 1210 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
894a47b4 1211 ;;
63bfd172 1212vax-*-linux*)
9213d2eb 1213 tmake_file="$tmake_file vax/t-linux"
63bfd172 1214 ;;
894a47b4 1215vax-*-netbsdelf*)
1216 ;;
894a47b4 1217vax-*-openbsd*)
1218 ;;
894a47b4 1219xstormy16-*-elf)
2219274c 1220 tmake_file="stormy16/t-stormy16 t-fdpbit"
894a47b4 1221 ;;
75c7ffbc 1222xtensa*-*-elf*)
237490bf 1223 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1224 extra_parts="$extra_parts crti.o crtn.o"
894a47b4 1225 ;;
75c7ffbc 1226xtensa*-*-linux*)
382e1a72 1227 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1e53920f 1228 md_unwind_header=xtensa/linux-unwind.h
894a47b4 1229 ;;
1230am33_2.0-*-linux*)
237490bf 1231 # Don't need crtbeginT.o from *-*-linux* default.
894a47b4 1232 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
a997b0d8 1233 tmake_file="$tmake_file t-fdpbit"
894a47b4 1234 ;;
7eac0a4e 1235m32c-*-elf*|m32c-*-rtems*)
9213d2eb 1236 tmake_file="$tmake_file m32c/t-m32c"
894a47b4 1237 ;;
46222c18 1238mep*-*-*)
237490bf 1239 tmake_file="mep/t-mep t-fdpbit"
1240 extra_parts="crtbegin.o crtend.o"
46222c18 1241 ;;
894a47b4 1242*)
1243 echo "*** Configuration ${host} not supported" 1>&2
1244 exit 1
1245 ;;
1246esac
e4cbe54f 1247
98c9b52b 1248case ${host} in
1249i[34567]86-*-* | x86_64-*-*)
1250 tmake_file="${tmake_file} i386/t-cpuinfo"
1251 ;;
1252esac
1253
e4cbe54f 1254case ${host} in
1eab96a6 1255i[34567]86-*-linux* | x86_64-*-linux* | \
a997b0d8 1256 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1257 i[34567]86-*-knetbsd*-gnu | \
1eab96a6 1258 i[34567]86-*-gnu*)
98c9b52b 1259 tmake_file="${tmake_file} t-tls i386/t-linux"
c9b3ebc5 1260 if test "$libgcc_cv_cfi" = "yes"; then
f2d9def0 1261 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
c9b3ebc5 1262 fi
e4cbe54f 1263 ;;
1264esac
b3fd46a0 1265
1266case ${host} in
1267i[34567]86-*-darwin* | x86_64-*-darwin* | \
09ec66c8 1268 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
6471e33b 1269 i[34567]86-*-linux* | x86_64-*-linux* | \
8a84c748 1270 i[34567]86-*-gnu* | \
14f27bc6 1271 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
45d13ef4 1272 i[34567]86-*-cygwin* | x86_64-*-cygwin* | \
1273 i[34567]86-*-mingw* | x86_64-*-mingw* | \
463553db 1274 i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \
6e029611 1275 i[34567]86-*-freebsd* | x86_64-*-freebsd* | \
1276 i[34567]86-*-openbsd* | x86_64-*-openbsd*)
84600db5 1277 tmake_file="${tmake_file} t-softfp-tf"
144633f4 1278 if test "${host_address}" = 32; then
84600db5 1279 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
144633f4 1280 fi
2c223cf2 1281 tmake_file="${tmake_file} i386/t-softfp t-softfp"
144633f4 1282 ;;
1283esac
1284
1285case ${host} in
1286i[34567]86-*-linux* | x86_64-*-linux*)
1287 # Provide backward binary compatibility for 64bit Linux/x86.
1288 if test "${host_address}" = 64; then
1289 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1290 fi
022a2799 1291 tm_file="${tm_file} i386/value-unwind.h"
b3fd46a0 1292 ;;
1293esac