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