]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config.host
Daily bump.
[thirdparty/gcc.git] / libgcc / config.host
CommitLineData
fa958513 1# libgcc host-specific configuration file.
8d8da227 2# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
daecebc8 3# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
fa958513
DJ
4
5#This file is part of GCC.
6
7#GCC is free software; you can redistribute it and/or modify it under
8#the terms of the GNU General Public License as published by the Free
748086b7 9#Software Foundation; either version 3, or (at your option) any later
fa958513
DJ
10#version.
11
12#GCC is distributed in the hope that it will be useful, but WITHOUT
13#ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15#for more details.
16
17#You should have received a copy of the GNU General Public License
748086b7
JJ
18#along with GCC; see the file COPYING3. If not see
19#<http://www.gnu.org/licenses/>.
fa958513
DJ
20
21# This is the libgcc host-specific configuration file
22# where a configuration type is mapped to different system-specific
23# definitions and files. This is invoked by the autoconf-generated
24# configure script. Putting it in a separate shell file lets us skip
25# running autoconf when modifying host-specific information.
26
27# This file bears an obvious resemblance to gcc/config.gcc. The cases
28# should be kept similar, to ease moving library-specific settings
29# from config.gcc to this file. That is also why tmake_file is
30# left as tmake_file, rather than hmake_file, even though this library
31# switches on ${host}.
32
33# This file switches on the shell variable ${host}, and also uses the
34# following shell variables:
35#
36# with_* Various variables as set by configure.
37
38# This file sets the following shell variables for use by the
39# autoconf-generated configure script:
40#
41# asm_hidden_op The assembler pseudo-op to use for hide
42# lists for object files implemented in
43# assembly (with -fvisibility=hidden for C).
44# The default is ".hidden".
45# cpu_type The name of the cpu, if different from the first
46# chunk of the canonical host name.
10e48e39
RO
47# enable_execute_stack The name of a source file implementing
48# __enable_execute_stack.
fa958513
DJ
49# extra_parts List of extra object files that should be compiled
50# for this target machine. This may be overridden
51# by setting EXTRA_PARTS in a tmake_file fragment.
52# If either is set, EXTRA_PARTS and
53# EXTRA_MULTILIB_PARTS inherited from the GCC
54# subdirectory will be ignored.
58cd1d70
RO
55# md_unwind_header The name of a header file defining
56# MD_FALLBACK_FRAME_STATE_FOR.
aca0b0b3
RO
57# sfp_machine_header The name of a sfp-machine.h header file for soft-fp.
58# Defaults to "$cpu_type/sfp-machine.h" if it exists,
59# no-sfp-machine.h otherwise.
fa958513 60# tmake_file A list of machine-description-specific
200feb07 61# makefile fragments.
852b75ed
RO
62# tm_defines List of target macros to define for all compilations.
63# tm_file A list of target macro files used only for code
64# built for the target, not the host. These files
65# are relative to $srcdir/config and must not have
66# the same names as files in $srcdir/../gcc/config.
201cdb74
RO
67# unwind_header The name of the header file declaring the unwind
68# runtime interface routines.
fa958513
DJ
69
70asm_hidden_op=.hidden
10e48e39 71enable_execute_stack=
fa958513
DJ
72extra_parts=
73tmake_file=
852b75ed
RO
74tm_file=
75tm_define=
58cd1d70 76md_unwind_header=no-unwind.h
201cdb74 77unwind_header=unwind-generic.h
fa958513
DJ
78
79# Set default cpu_type so it can be updated in each machine entry.
80cpu_type=`echo ${host} | sed 's/-.*$//'`
81case ${host} in
82m32c*-*-*)
83 cpu_type=m32c
569dc494 84 tmake_file=t-fdpbit
fa958513
DJ
85 ;;
86alpha*-*-*)
87 cpu_type=alpha
88 ;;
89am33_2.0-*-linux*)
90 cpu_type=mn10300
91 ;;
fa958513
DJ
92arm*-*-*)
93 cpu_type=arm
94 ;;
47583040
AH
95avr-*-*)
96 cpu_type=avr
97 ;;
fa958513
DJ
98bfin*-*)
99 cpu_type=bfin
100 ;;
b25364a0
S
101cr16-*-*)
102 ;;
7d33c31d
KH
103fido-*-*)
104 cpu_type=m68k
105 ;;
fa958513
DJ
106frv*) cpu_type=frv
107 ;;
cceb575c
AG
108moxie*) cpu_type=moxie
109 ;;
fa958513
DJ
110i[34567]86-*-*)
111 cpu_type=i386
112 ;;
113x86_64-*-*)
114 cpu_type=i386
115 ;;
116ia64-*-*)
117 ;;
cd985f66 118hppa*-*-*)
fa958513
DJ
119 cpu_type=pa
120 ;;
aa4945c1
JB
121lm32*-*-*)
122 cpu_type=lm32
123 ;;
fa958513
DJ
124m32r*-*-*)
125 cpu_type=m32r
126 ;;
fa958513
DJ
127m68k-*-*)
128 ;;
7acf4da6
DD
129mep*-*-*)
130 ;;
80920132
ME
131microblaze*-*-*)
132 cpu_type=microblaze
133 ;;
fa958513
DJ
134mips*-*-*)
135 cpu_type=mips
569dc494 136 tmake_file=mips/t-mips
fa958513
DJ
137 ;;
138powerpc*-*-*)
139 cpu_type=rs6000
140 ;;
141rs6000*-*-*)
142 ;;
143score*-*-*)
144 cpu_type=score
145 ;;
146sparc64*-*-*)
147 cpu_type=sparc
148 ;;
149sparc*-*-*)
150 cpu_type=sparc
151 ;;
152spu*-*-*)
153 cpu_type=spu
154 ;;
155s390*-*-*)
156 cpu_type=s390
157 ;;
158# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
159sh[123456789lbe]*-*-*)
160 cpu_type=sh
161 ;;
4be46d19
NC
162v850*-*-*)
163 cpu_type=v850
164 ;;
bcead286
BS
165tic6x-*-*)
166 cpu_type=c6x
167 ;;
fa958513
DJ
168esac
169
170# Common parts for widely ported systems.
171case ${host} in
172*-*-darwin*)
173 asm_hidden_op=.private_extern
f9989b51 174 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin"
e2362f5d 175 extra_parts="crt3.o crttms.o crttme.o"
fa958513 176 ;;
fa958513
DJ
177*-*-freebsd*)
178 # This is the generic ELF configuration of FreeBSD. Later
179 # machine-specific sections may refine and add to this
180 # configuration.
f9989b51 181 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"
5f73c6cc 182 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
b040f2be
RO
183 case ${target_thread_file} in
184 posix)
f9989b51 185 tmake_file="${tmake_file} t-freebsd-thread"
b040f2be
RO
186 # Before 5.0, FreeBSD can't bind shared libraries to -lc
187 # when "optionally" threaded via weak pthread_* checks.
188 case ${host} in
189 *-*-freebsd[34] | *-*-freebsd[34].*)
190 tmake_file="${tmake_file} t-slibgcc-nolc-override"
191 ;;
192 esac
193 ;;
194 esac
fa958513 195 ;;
201cdb74 196*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
f9989b51 197 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"
fa958513
DJ
198 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
199 ;;
5f73c6cc 200*-*-lynxos*)
f9989b51 201 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
5f73c6cc
RO
202 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
203 ;;
fa958513 204*-*-netbsd*)
f9989b51 205 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
5f73c6cc
RO
206 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
207 # ELF configurations. We will clear extra_parts in the
208 # a.out configurations.
209 case ${host} in
210 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
211 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
212 ;;
213 esac
fa958513
DJ
214 ;;
215*-*-openbsd*)
8eaee0f0 216 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
f9989b51
RO
217 case ${target_thread_file} in
218 posix)
219 tmake_file="$tmake_file t-openbsd-thread"
220 ;;
221 esac
fa958513
DJ
222 ;;
223*-*-rtems*)
c9cd1a07 224 tmake_file="$tmake_file t-rtems"
5f73c6cc 225 extra_parts="crtbegin.o crtend.o"
fa958513 226 ;;
ca24c5ad 227*-*-solaris2*)
201cdb74
RO
228 # Unless linker support and dl_iterate_phdr are present,
229 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
f9989b51 230 tmake_file="$tmake_file t-sol2 t-eh-dw2-dip t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
ca24c5ad
RO
231 if test $with_gnu_ld = yes; then
232 tmake_file="$tmake_file t-slibgcc-gld"
233 else
234 tmake_file="$tmake_file t-slibgcc-sld"
235 fi
236 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
237 tmake_file="$tmake_file $cpu_type/t-sol2"
238 extra_parts="gmon.o crtbegin.o crtend.o"
239 case ${host} in
fbdd5d87 240 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
ca24c5ad
RO
241 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
242 # part of the base system.
243 ;;
244 sparc*-*-solaris2.1[0-9]*)
245 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
246 extra_parts="$extra_parts crt1.o gcrt1.o"
247 ;;
248 *)
ca24c5ad
RO
249 extra_parts="$extra_parts crt1.o crti.o crtn.o gcrt1.o"
250 ;;
251 esac
252 ;;
5f73c6cc
RO
253*-*-uclinux*)
254 extra_parts="crtbegin.o crtend.o"
255 ;;
256*-*-*vms*)
257 tmake_file="vms/t-vms"
4b12e93d 258 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
5f73c6cc 259 ;;
fa958513 260*-*-vxworks*)
f9989b51 261 tmake_file=t-vxworks
fa958513
DJ
262 ;;
263*-*-elf)
5f73c6cc 264 extra_parts="crtbegin.o crtend.o"
fa958513
DJ
265 ;;
266esac
267
10e48e39 268case ${host} in
5c30094f 269*-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2*)
10e48e39
RO
270 enable_execute_stack=enable-execute-stack-mprotect.c
271 ;;
272i[34567]86-*-mingw* | x86_64-*-mingw*)
273 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
274 ;;
275*)
276 enable_execute_stack=enable-execute-stack-empty.c;
277 ;;
278esac
279
fa958513 280case ${host} in
ebb9f8b0 281alpha*-*-linux*)
f9989b51 282 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
5ea41e3a 283 extra_parts="$extra_parts crtfastmath.o"
58cd1d70 284 md_unwind_header=alpha/linux-unwind.h
fa958513 285 ;;
fa958513 286alpha*-*-freebsd*)
f9989b51 287 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
5f73c6cc 288 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
fa958513
DJ
289 ;;
290alpha*-*-netbsd*)
f9989b51 291 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
fa958513
DJ
292 ;;
293alpha*-*-openbsd*)
f9989b51 294 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
fa958513 295 ;;
fa958513 296alpha64-dec-*vms*)
f9989b51 297 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
5f73c6cc 298 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
58cd1d70 299 md_unwind_header=alpha/vms-unwind.h
fa958513
DJ
300 ;;
301alpha*-dec-*vms*)
f9989b51 302 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
5f73c6cc 303 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
58cd1d70 304 md_unwind_header=alpha/vms-unwind.h
fa958513 305 ;;
fa958513 306arm-wrs-vxworks)
45b86625 307 tmake_file="$tmake_file arm/t-arm arm/t-vxworks t-fdpbit"
5f73c6cc 308 extra_parts="$extra_parts crti.o crtn.o"
fa958513 309 ;;
cd985f66 310arm*-*-freebsd*)
45b86625 311 tmake_file="$tmake_file arm/t-arm arm/t-strongarm-elf t-fdpbit"
fa958513
DJ
312 ;;
313arm*-*-netbsdelf*)
f9989b51 314 tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover"
fa958513 315 ;;
fa958513 316arm*-*-linux*) # ARM GNU/Linux with ELF
45b86625 317 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix"
201cdb74 318 case ${host} in
9945a876 319 arm*-*-linux-*)
45b86625 320 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
852b75ed 321 tm_file="$tm_file arm/bpabi-lib.h"
201cdb74
RO
322 unwind_header=config/arm/unwind-arm.h
323 ;;
45b86625
RO
324 *)
325 tmake_file="$tmake_file arm/t-linux"
326 ;;
201cdb74 327 esac
aca0b0b3 328 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
fa958513
DJ
329 ;;
330arm*-*-uclinux*) # ARM ucLinux
655b30bf 331 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
201cdb74
RO
332 case ${host} in
333 arm*-*-uclinux*eabi)
334 tmake_file="${tmake_file} arm/t-bpabi"
852b75ed 335 tm_file="$tm_file arm/bpabi-lib.h"
201cdb74
RO
336 unwind_header=config/arm/unwind-arm.h
337 ;;
338 esac
45b86625 339 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
5f73c6cc 340 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
341 ;;
342arm*-*-ecos-elf)
45b86625 343 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
5f73c6cc 344 extra_parts="$extra_parts crti.o crtn.o"
fa958513 345 ;;
76644b68 346arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*)
45b86625 347 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
852b75ed 348 tm_file="$tm_file arm/bpabi-lib.h"
201cdb74 349 case ${host} in
76644b68 350 arm*-*-eabi* | arm*-*-rtemseabi*)
201cdb74 351 tmake_file="${tmake_file} arm/t-bpabi"
5f73c6cc 352 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
201cdb74
RO
353 ;;
354 arm*-*-symbianelf*)
b040f2be 355 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
852b75ed 356 tm_file="$tm_file arm/symbian-lib.h"
5f73c6cc 357 # Symbian OS provides its own startup code.
201cdb74
RO
358 ;;
359 esac
aca0b0b3 360 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
201cdb74 361 unwind_header=config/arm/unwind-arm.h
fa958513
DJ
362 ;;
363arm*-*-rtems*)
45b86625 364 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
5f73c6cc 365 extra_parts="$extra_parts crti.o crtn.o"
fa958513 366 ;;
cd985f66 367arm*-*-elf)
45b86625 368 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
5f73c6cc 369 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
370 ;;
371arm*-wince-pe*)
45b86625 372 tmake_file="$tmake_file arm/t-arm arm/t-wince-pe"
fa958513 373 ;;
fa958513 374avr-*-rtems*)
d618bb2c 375 tmake_file="$tmake_file avr/t-avr avr/t-rtems t-fpbit"
852b75ed 376 tm_file="$tm_file avr/avr-lib.h"
5f73c6cc
RO
377 # Don't use default.
378 extra_parts=
fa958513
DJ
379 ;;
380avr-*-*)
569dc494
RO
381 # Make HImode functions for AVR
382 tmake_file="${cpu_type}/t-avr t-fpbit"
b588ae30
GJL
383 if test x${with_avrlibc} != xno; then
384 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
385 fi
852b75ed 386 tm_file="$tm_file avr/avr-lib.h"
fa958513
DJ
387 ;;
388bfin*-elf*)
200feb07 389 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
5f73c6cc 390 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
fa958513
DJ
391 ;;
392bfin*-uclinux*)
200feb07 393 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
5f73c6cc 394 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
58cd1d70 395 md_unwind_header=bfin/linux-unwind.h
fa958513 396 ;;
344189f9 397bfin*-linux-uclibc*)
200feb07 398 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
344189f9
BS
399 # No need to build crtbeginT.o on uClibc systems. Should probably
400 # be moved to the OS specific section above.
401 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
58cd1d70 402 md_unwind_header=bfin/linux-unwind.h
344189f9 403 ;;
569dc494 404bfin*-rtems*)
45b86625 405 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
5f73c6cc 406 extra_parts="$extra_parts crti.o crtn.o"
569dc494 407 ;;
fa958513 408bfin*-*)
45b86625 409 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
5f73c6cc 410 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
fa958513 411 ;;
b25364a0
S
412cr16-*-elf)
413 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
414 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
415 ;;
5f73c6cc 416crisv32-*-elf)
bf86b067 417 tmake_file="$tmake_file cris/t-cris t-fdpbit"
5f73c6cc 418 ;;
5f73c6cc 419cris-*-elf)
bf86b067 420 tmake_file="$tmake_file cris/t-cris t-fdpbit cris/t-elfmulti"
5f73c6cc 421 ;;
4081d704 422cris-*-linux* | crisv32-*-linux*)
f9989b51 423 tmake_file="$tmake_file cris/t-cris t-fdpbit cris/t-linux"
fa958513 424 ;;
feeeff5c
JR
425epiphany-*-elf*)
426 tmake_file="epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
427 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
428 ;;
fa958513 429fr30-*-elf)
45b86625 430 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
5f73c6cc 431 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
432 ;;
433frv-*-elf)
5f73c6cc 434 tmake_file="$tmake_file frv/t-frv t-fdpbit"
852b75ed 435 tm_file="$tm_file frv/frv-abi.h"
5f73c6cc
RO
436 # Don't use crtbegin.o, crtend.o.
437 extra_parts="frvbegin.o frvend.o"
fa958513
DJ
438 ;;
439frv-*-*linux*)
45b86625 440 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
852b75ed 441 tm_file="$tm_file frv/frv-abi.h"
fa958513 442 ;;
fa958513 443h8300-*-rtems*)
45b86625 444 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
852b75ed 445 tm_file="$tm_file h8300/h8300-lib.h"
5f73c6cc 446 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
447 ;;
448h8300-*-elf*)
45b86625 449 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
852b75ed 450 tm_file="$tm_file h8300/h8300-lib.h"
5f73c6cc 451 extra_parts="$extra_parts crti.o crtn.o"
fa958513 452 ;;
cd985f66 453hppa*64*-*-linux*)
45b86625 454 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
fa958513 455 ;;
cd985f66 456hppa*-*-linux*)
45b86625 457 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
b040f2be
RO
458 # Set the libgcc version number
459 if test x$enable_sjlj_exceptions = xyes; then
460 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
461 else
462 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
463 fi
0defd786 464 md_unwind_header=pa/linux-unwind.h
fa958513
DJ
465 ;;
466hppa[12]*-*-hpux10*)
f9989b51 467 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
b040f2be
RO
468 # Set the libgcc version number
469 if test x$enable_sjlj_exceptions = xyes; then
470 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
471 else
472 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
473 fi
474 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
58cd1d70 475 md_unwind_header=pa/hpux-unwind.h
fa958513
DJ
476 ;;
477hppa*64*-*-hpux11*)
9dfd5832 478 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
b040f2be
RO
479 # Set the libgcc version number
480 if test x$enable_sjlj_exceptions = xyes; then
481 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
482 else
483 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
484 fi
485 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
5f73c6cc
RO
486 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
487 libgcc_stub.a"
58cd1d70 488 md_unwind_header=pa/hpux-unwind.h
fa958513
DJ
489 ;;
490hppa[12]*-*-hpux11*)
f9989b51 491 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
b040f2be
RO
492 # Set the libgcc version number
493 if test x$enable_sjlj_exceptions = xyes; then
494 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
495 else
496 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
497 fi
498 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
5f73c6cc 499 extra_parts="libgcc_stub.a"
58cd1d70 500 md_unwind_header=pa/hpux-unwind.h
fa958513 501 ;;
17f293b0
MK
502hppa*-*-openbsd*)
503 tmake_file="$tmake_file pa/t-openbsd"
504 ;;
fa958513 505i[34567]86-*-darwin*)
b3fe1584 506 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
852b75ed 507 tm_file="$tm_file i386/darwin-lib.h"
b3fe1584 508 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
fa958513
DJ
509 ;;
510x86_64-*-darwin*)
b040f2be 511 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
852b75ed 512 tm_file="$tm_file i386/darwin-lib.h"
b3fe1584 513 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
fa958513
DJ
514 ;;
515i[34567]86-*-elf*)
f9989b51 516 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
fa958513 517 ;;
3ae3dbd6 518x86_64-*-elf*)
f9989b51 519 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
3ae3dbd6 520 ;;
fa958513 521i[34567]86-*-freebsd*)
5f73c6cc 522 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
fa958513
DJ
523 ;;
524x86_64-*-freebsd*)
5f73c6cc 525 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
fa958513
DJ
526 ;;
527i[34567]86-*-netbsdelf*)
528 ;;
fa958513 529x86_64-*-netbsd*)
5f73c6cc 530 tmake_file="${tmake_file} i386/t-crtstuff"
fa958513
DJ
531 ;;
532i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
533 ;;
534i[34567]86-*-openbsd*)
535 ;;
613061fd
MK
536x86_64-*-openbsd*)
537 ;;
9e7714f4 538i[34567]86-*-linux*)
577565f9 539 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
5f73c6cc 540 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
58cd1d70 541 md_unwind_header=i386/linux-unwind.h
fa958513 542 ;;
9e7714f4
TS
543i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
544 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
5f73c6cc 545 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
9e7714f4
TS
546 ;;
547x86_64-*-linux*)
577565f9 548 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
5f73c6cc 549 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
58cd1d70 550 md_unwind_header=i386/linux-unwind.h
fa958513 551 ;;
9e7714f4
TS
552x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
553 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
5f73c6cc 554 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
9e7714f4 555 ;;
fa958513
DJ
556i[34567]86-pc-msdosdjgpp*)
557 ;;
558i[34567]86-*-lynxos*)
559 ;;
fa958513 560i[34567]86-*-nto-qnx*)
f9989b51 561 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
5f73c6cc 562 extra_parts=crtbegin.o
fa958513
DJ
563 ;;
564i[34567]86-*-rtems*)
c9cd1a07 565 tmake_file="$tmake_file i386/t-softfp i386/t-crtstuff"
5f73c6cc 566 extra_parts="$extra_parts crti.o crtn.o"
fa958513 567 ;;
fbdd5d87 568i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
b3fe1584
RO
569 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
570 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
58cd1d70 571 md_unwind_header=i386/sol2-unwind.h
fa958513 572 ;;
fa958513
DJ
573i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
574 ;;
58cd1d70 575i[34567]86-*-cygwin*)
76f5e200 576 extra_parts="crtbegin.o crtend.o crtfastmath.o"
b040f2be
RO
577 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
578 if test x$enable_sjlj_exceptions = xyes; then
579 tmake_eh_file="i386/t-sjlj-eh"
580 else
581 tmake_eh_file="i386/t-dw2-eh"
582 fi
583 # Shared libgcc DLL install dir depends on cross/native build.
584 if test x${build} = x${host} ; then
585 tmake_dlldir_file="i386/t-dlldir"
586 else
587 tmake_dlldir_file="i386/t-dlldir-x"
588 fi
45b86625 589 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"
9bd196f0 590 ;;
58cd1d70
RO
591i[34567]86-*-mingw*)
592 extra_parts="crtbegin.o crtend.o crtfastmath.o"
f9989b51
RO
593 case ${target_thread_file} in
594 win32)
595 tmake_file="$tmake_file i386/t-gthr-win32"
596 ;;
e3d871e4
RO
597 posix)
598 tmake_file="i386/t-mingw-pthread $tmake_file"
599 ;;
f9989b51 600 esac
b040f2be
RO
601 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
602 if test x$enable_sjlj_exceptions = xyes; then
603 tmake_eh_file="i386/t-sjlj-eh"
604 else
605 tmake_eh_file="i386/t-dw2-eh"
0c0c6398 606 md_unwind_header=i386/w32-unwind.h
b040f2be
RO
607 fi
608 # Shared libgcc DLL install dir depends on cross/native build.
609 if test x${build} = x${host} ; then
610 tmake_dlldir_file="i386/t-dlldir"
611 else
612 tmake_dlldir_file="i386/t-dlldir-x"
613 fi
45b86625 614 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"
58cd1d70 615 ;;
9bd196f0 616x86_64-*-mingw*)
f9989b51
RO
617 case ${target_thread_file} in
618 win32)
619 tmake_file="$tmake_file i386/t-gthr-win32"
620 ;;
e3d871e4
RO
621 posix)
622 tmake_file="i386/t-mingw-pthread $tmake_file"
623 ;;
f9989b51 624 esac
b040f2be
RO
625 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
626 if test x$enable_sjlj_exceptions = xyes; then
627 tmake_eh_file="i386/t-sjlj-eh"
628 else
bf1431e3 629 tmake_eh_file="i386/t-seh-eh"
b040f2be
RO
630 fi
631 # Shared libgcc DLL install dir depends on cross/native build.
632 if test x${build} = x${host} ; then
633 tmake_dlldir_file="i386/t-dlldir"
634 else
635 tmake_dlldir_file="i386/t-dlldir-x"
636 fi
45b86625 637 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"
35d8090d 638 extra_parts="$extra_parts crtfastmath.o"
fa958513 639 ;;
daecebc8 640i[34567]86-*-interix[3-9]*)
f9989b51 641 tmake_file="$tmake_file i386/t-interix i386/t-chkstk"
fa958513 642 ;;
fa958513 643ia64*-*-elf*)
5f73c6cc 644 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
1ab3568b 645 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
fa958513
DJ
646 ;;
647ia64*-*-freebsd*)
5f73c6cc 648 extra_parts="$extra_parts crtfastmath.o"
1ab3568b 649 tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
fa958513
DJ
650 ;;
651ia64*-*-linux*)
5f73c6cc 652 # Don't use crtbeginT.o from *-*-linux* default.
fa958513 653 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1ab3568b 654 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"
201cdb74 655 if test x$with_system_libunwind != xyes ; then
b040f2be 656 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
201cdb74 657 fi
58cd1d70 658 md_unwind_header=ia64/linux-unwind.h
fa958513
DJ
659 ;;
660ia64*-*-hpux*)
1ab3568b 661 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
fa958513 662 ;;
a9a25daa 663ia64-hp-*vms*)
45b86625 664 tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms"
5f73c6cc 665 extra_parts="$extra_parts crtinitS.o"
58cd1d70 666 md_unwind_header=ia64/vms-unwind.h
a9a25daa 667 ;;
fa958513 668iq2000*-*-elf*)
d4b4b542 669 tmake_file="iq2000/t-iq2000 t-fdpbit"
5f73c6cc
RO
670 # Don't use default.
671 extra_parts=
fa958513 672 ;;
c9cd1a07 673lm32-*-elf*)
5f73c6cc 674 extra_parts="$extra_parts crti.o crtn.o"
aca0b0b3 675 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
aa4945c1 676 ;;
c9cd1a07
RO
677lm32-*-rtems*)
678 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
679 extra_parts="$extra_parts crti.o crtn.o"
680 ;;
aa4945c1 681lm32-*-uclinux*)
5f73c6cc 682 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
f9989b51 683 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
aa4945c1 684 ;;
5f73c6cc 685m32r-*-elf*)
569dc494 686 tmake_file=t-fdpbit
fa958513 687 ;;
5f73c6cc 688m32r-*-rtems*)
c9cd1a07 689 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
5f73c6cc 690 ;;
fa958513 691m32rle-*-elf*)
569dc494 692 tmake_file=t-fdpbit
fa958513
DJ
693 ;;
694m32r-*-linux*)
5f73c6cc 695 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
fa958513
DJ
696 ;;
697m32rle-*-linux*)
5f73c6cc 698 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
fa958513 699 ;;
45b86625
RO
700m68k-*-elf* | fido-*-elf)
701 tmake_file="$tmake_file m68k/t-floatlib"
fa958513 702 ;;
cd985f66 703m68k*-*-netbsdelf*)
fa958513
DJ
704 ;;
705m68k*-*-openbsd*)
706 ;;
8b281334
RH
707m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
708 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
58cd1d70 709 md_unwind_header=m68k/linux-unwind.h
fa958513 710 ;;
58cd1d70 711m68k-*-linux*) # Motorola m68k's running GNU/Linux
fa958513
DJ
712 # with ELF format using glibc 2
713 # aka the GNU/Linux C library 6.
8b281334 714 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
b040f2be
RO
715 # If not configured with --enable-sjlj-exceptions, bump the
716 # libgcc version number.
717 if test x$enable_sjlj_exceptions != xyes; then
718 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
719 fi
58cd1d70 720 md_unwind_header=m68k/linux-unwind.h
fa958513
DJ
721 ;;
722m68k-*-rtems*)
45b86625 723 tmake_file="$tmake_file m68k/t-floatlib"
5f73c6cc 724 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
725 ;;
726mcore-*-elf)
45b86625 727 tmake_file="mcore/t-mcore t-fdpbit"
5f73c6cc 728 extra_parts="$extra_parts crti.o crtn.o"
fa958513 729 ;;
b040f2be
RO
730microblaze*-linux*)
731 tmake_file="$tmake_file t-slibgcc-nolc-override microblaze/t-microblaze t-fdpbit"
732 ;;
80920132 733microblaze*-*-*)
569dc494 734 tmake_file="microblaze/t-microblaze t-fdpbit"
5f73c6cc 735 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
80920132 736 ;;
fa958513
DJ
737mips*-*-netbsd*) # NetBSD/mips, either endian.
738 ;;
fa958513 739mips*-*-linux*) # Linux MIPS, either endian.
48b09a92 740 extra_parts="$extra_parts crtfastmath.o"
78c27266 741 tmake_file="${tmake_file} t-crtfm mips/t-mips16"
58cd1d70 742 md_unwind_header=mips/linux-unwind.h
e4bb767e
AJ
743 if test "${ac_cv_sizeof_long_double}" = 16; then
744 tmake_file="${tmake_file} mips/t-tpbit"
745 fi
fa958513 746 ;;
569dc494 747mips*-sde-elf*)
eb028768 748 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
569dc494
RO
749 case "${with_newlib}" in
750 yes)
751 # newlib / libgloss.
752 ;;
753 *)
754 # MIPS toolkit libraries.
5f73c6cc 755 tmake_file="$tmake_file mips/t-sdemtk"
569dc494
RO
756 ;;
757 esac
5f73c6cc 758 extra_parts="$extra_parts crti.o crtn.o"
569dc494 759 ;;
c6412d86
RO
760mipsisa32-*-elf* | mipsisa32el-*-elf* | \
761mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
762mipsisa64-*-elf* | mipsisa64el-*-elf* | \
0a4a51c7 763mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
f9989b51 764 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 765 extra_parts="$extra_parts crti.o crtn.o"
0a4a51c7 766 ;;
fa958513 767mipsisa64sr71k-*-elf*)
eb028768 768 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
5f73c6cc 769 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
770 ;;
771mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
f9989b51 772 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 773 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
774 ;;
775mips-*-elf* | mipsel-*-elf*)
f9989b51 776 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 777 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
778 ;;
779mips64-*-elf* | mips64el-*-elf*)
f9989b51 780 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 781 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
782 ;;
783mips64vr-*-elf* | mips64vrel-*-elf*)
f9989b51 784 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
5f73c6cc 785 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
786 ;;
787mips64orion-*-elf* | mips64orionel-*-elf*)
f9989b51 788 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 789 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
790 ;;
791mips*-*-rtems*)
f9989b51 792 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 793 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
794 ;;
795mips-wrs-vxworks)
796 ;;
fa958513 797mipstx39-*-elf* | mipstx39el-*-elf*)
5f73c6cc 798 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
fa958513
DJ
799 ;;
800mmix-knuth-mmixware)
e7c914db
HPN
801 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
802 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
fa958513
DJ
803 ;;
804mn10300-*-*)
569dc494 805 tmake_file=t-fdpbit
fa958513 806 ;;
5f73c6cc 807moxie-*-elf | moxie-*-uclinux*)
aca0b0b3 808 tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
5f73c6cc
RO
809 extra_parts="$extra_parts crti.o crtn.o"
810 ;;
811moxie-*-rtems*)
c9cd1a07 812 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
5f73c6cc
RO
813 # Don't use default.
814 extra_parts=
cceb575c 815 ;;
fa958513 816pdp11-*-*)
f9989b51 817 tmake_file="pdp11/t-pdp11 t-fdpbit"
fa958513 818 ;;
358da97e 819picochip-*-*)
569dc494 820 tmake_file="picochip/t-picochip t-fpbit"
358da97e 821 ;;
fa958513 822powerpc-*-darwin*)
58cd1d70
RO
823 case ${host} in
824 *-*-darwin9* | *-*-darwin[12][0-9]*)
825 # libSystem contains unwind information for signal frames since
826 # Darwin 9.
827 ;;
828 *)
829 md_unwind_header=rs6000/darwin-unwind.h
830 ;;
831 esac
aca0b0b3 832 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
e141542e 833 extra_parts="$extra_parts crt2.o"
fa958513
DJ
834 ;;
835powerpc64-*-darwin*)
f9989b51 836 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
e141542e 837 extra_parts="$extra_parts crt2.o"
fa958513 838 ;;
d82ad50d
AT
839powerpc*-*-freebsd*)
840 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
5f73c6cc 841 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
d82ad50d
AT
842 case ${host} in
843 powerpc64*)
844 tmake_file="${tmake_file} rs6000/t-freebsd64"
845 md_unwind_header=rs6000/freebsd-unwind.h
846 ;;
847 esac
fa958513
DJ
848 ;;
849powerpc-*-netbsd*)
d4b4b542 850 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
fa958513 851 ;;
fa958513 852powerpc-*-eabispe*)
f9c55897 853 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic"
5f73c6cc 854 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
855 ;;
856powerpc-*-eabisimaltivec*)
f9c55897 857 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 858 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
859 ;;
860powerpc-*-eabisim*)
f9c55897 861 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 862 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
863 ;;
864powerpc-*-elf*)
f9c55897 865 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 866 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
867 ;;
868powerpc-*-eabialtivec*)
f9c55897 869 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 870 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
569dc494
RO
871 ;;
872powerpc-xilinx-eabi*)
f9c55897 873 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 874 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
875 ;;
876powerpc-*-eabi*)
f9c55897 877 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 878 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
879 ;;
880powerpc-*-rtems*)
f9c55897 881 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 882 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513 883 ;;
633dd061 884powerpc-*-linux* | powerpc64-*-linux*)
f9c55897 885 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"
5f73c6cc 886 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
58cd1d70 887 md_unwind_header=rs6000/linux-unwind.h
fa958513 888 ;;
fa958513 889powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
f9c55897 890 tmake_file="$tmake_file rs6000/t-ppccomm t-fdpbit"
fa958513 891 ;;
fa958513 892powerpc-*-lynxos*)
d4b4b542 893 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
fa958513 894 ;;
fa958513 895powerpcle-*-elf*)
f9c55897 896 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 897 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
898 ;;
899powerpcle-*-eabisim*)
f9c55897 900 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 901 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
902 ;;
903powerpcle-*-eabi*)
f9c55897 904 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 905 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513 906 ;;
fa958513 907rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
201cdb74 908 md_unwind_header=rs6000/aix-unwind.h
138f5acd 909 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
fa958513
DJ
910 ;;
911rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
201cdb74 912 md_unwind_header=rs6000/aix-unwind.h
138f5acd 913 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
fa958513
DJ
914 ;;
915rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
201cdb74 916 md_unwind_header=rs6000/aix-unwind.h
138f5acd 917 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
fa958513 918 ;;
85b8555e
DD
919rl78-*-elf)
920 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
921 ;;
65a324b4 922rx-*-elf)
569dc494 923 tmake_file="rx/t-rx t-fdpbit"
852b75ed 924 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
65a324b4 925 ;;
fa958513 926s390-*-linux*)
81dd9fd7 927 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
58cd1d70 928 md_unwind_header=s390/linux-unwind.h
fa958513
DJ
929 ;;
930s390x-*-linux*)
81dd9fd7 931 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
58cd1d70 932 md_unwind_header=s390/linux-unwind.h
fa958513
DJ
933 ;;
934s390x-ibm-tpf*)
f9989b51 935 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
5f73c6cc 936 extra_parts="crtbeginS.o crtendS.o"
10c4cabc 937 md_unwind_header=s390/tpf-unwind.h
fa958513
DJ
938 ;;
939score-*-elf)
aca0b0b3 940 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp"
5f73c6cc 941 extra_parts="$extra_parts crti.o crtn.o"
fa958513 942 ;;
5f73c6cc
RO
943sh-*-elf* | sh[12346l]*-*-elf*)
944 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
945 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
946 libic_invalidate_array_4-100.a \
947 libic_invalidate_array_4-200.a \
948 libic_invalidate_array_4a.a \
949 libgcc-Os-4-200.a libgcc-4-300.a"
45b86625
RO
950 case ${host} in sh64*-*-*)
951 tmake_file="$tmake_file sh/t-sh64"
952 ;;
953 esac
26900826 954 case ${host} in
5f73c6cc
RO
955 sh*-superh-elf)
956 tmake_file="$tmake_file sh/t-superh"
957 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
958 ;;
959 esac
960 ;;
961sh-*-linux* | sh[2346lbe]*-*-linux*)
45b86625
RO
962 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
963 case ${host} in sh64*-*-linux*)
964 tmake_file="$tmake_file sh/t-sh64"
965 ;;
966 esac
5f73c6cc
RO
967 md_unwind_header=sh/linux-unwind.h
968 ;;
969sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
970 sh64-*-netbsd* | sh64l*-*-netbsd*)
45b86625
RO
971 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
972 case ${host} in
973 sh5*-*-netbsd* | sh64*-netbsd*)
974 tmake_file="$tmake_file sh/t-sh64"
975 ;;
976 esac
5f73c6cc
RO
977 # NetBSD's C library includes a fast software FP library that
978 # has support for setting/setting the rounding mode, exception
979 # mask, etc. Therefore, we don't want to include software FP
980 # in libgcc.
fa958513 981 ;;
fa958513 982sh-*-rtems*)
45b86625 983 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
5f73c6cc
RO
984 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
985 $sh_ic_extra_parts $sh_opt_extra_parts"
fa958513
DJ
986 ;;
987sh-wrs-vxworks)
45b86625 988 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
fa958513 989 ;;
fa958513
DJ
990sparc-*-netbsdelf*)
991 ;;
992sparc64-*-openbsd*)
993 ;;
994sparc-*-elf*)
ca24c5ad
RO
995 case ${host} in
996 *-leon[3-9]*)
997 ;;
998 *)
999 tmake_file="sparc/t-softmul"
1000 ;;
1001 esac
5f73c6cc
RO
1002 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1003 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
fa958513
DJ
1004 ;;
1005sparc-*-linux*) # SPARC's running GNU/Linux, libc6
d2a7d041
DM
1006 tmake_file="${tmake_file} t-crtfm"
1007 if test "${host_address}" = 64; then
1008 tmake_file="$tmake_file sparc/t-linux64"
1009 fi
569dc494
RO
1010 case ${host} in
1011 *-leon*)
b040f2be
RO
1012 tmake_file="${tmake_file} t-fdpbit"
1013 ;;
1014 *)
1015 tmake_file="${tmake_file} sparc/t-linux"
569dc494
RO
1016 ;;
1017 esac
45b86625
RO
1018 case ${host} in
1019 *-leon[3-9]*)
1020 ;;
1021 *)
d2a7d041
DM
1022 if test "${host_address}" = 32; then
1023 tmake_file="$tmake_file sparc/t-softmul"
1024 fi
45b86625
RO
1025 ;;
1026 esac
fa958513 1027 extra_parts="$extra_parts crtfastmath.o"
10c4cabc 1028 md_unwind_header=sparc/linux-unwind.h
fa958513 1029 ;;
569dc494 1030sparc-*-rtems*)
c9cd1a07 1031 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
5f73c6cc 1032 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
fa958513 1033 ;;
ca24c5ad
RO
1034sparc*-*-solaris2*)
1035 tmake_file="$tmake_file t-crtfm"
1036 extra_parts="$extra_parts crtfastmath.o"
58cd1d70 1037 md_unwind_header=sparc/sol2-unwind.h
fa958513 1038 ;;
fa958513 1039sparc64-*-elf*)
5f73c6cc
RO
1040 tmake_file="${tmake_file} t-crtfm"
1041 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
fa958513 1042 ;;
569dc494 1043sparc64-*-rtems*)
c9cd1a07 1044 tmake_file="$tmake_file sparc/t-elf t-crtfm"
5f73c6cc 1045 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
569dc494 1046 ;;
1910440e
RS
1047sparc-wrs-vxworks)
1048 ;;
fa958513 1049sparc64-*-freebsd*|ultrasparc-*-freebsd*)
35d8090d 1050 tmake_file="$tmake_file t-crtfm"
5f73c6cc 1051 extra_parts="$extra_parts crtfastmath.o"
fa958513
DJ
1052 ;;
1053sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1054 extra_parts="$extra_parts crtfastmath.o"
d2a7d041
DM
1055 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1056 if test "${host_address}" = 64; then
1057 tmake_file="${tmake_file} sparc/t-linux64"
1058 fi
1059 if test "${host_address}" = 32; then
1060 tmake_file="${tmake_file} sparc/t-softmul"
1061 fi
58cd1d70 1062 md_unwind_header=sparc/linux-unwind.h
fa958513
DJ
1063 ;;
1064sparc64-*-netbsd*)
1065 ;;
1066spu-*-elf*)
f9989b51 1067 tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
5f73c6cc
RO
1068 extra_parts="$extra_parts \
1069 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1070 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1071 libgcc_cache64k.a libgcc_cache128k.a"
fa958513 1072 ;;
b040f2be 1073tic6x-*-uclinux)
4d5ae4ea
BS
1074 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1075 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1076 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
852b75ed 1077 tm_file="$tm_file c6x/c6x-abi.h"
4d5ae4ea 1078 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
b040f2be
RO
1079 unwind_header=config/c6x/unwind-c6x.h
1080 ;;
5f73c6cc
RO
1081tic6x-*-elf)
1082 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
852b75ed 1083 tm_file="$tm_file c6x/c6x-abi.h"
5f73c6cc 1084 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1e874273 1085 unwind_header=config/c6x/unwind-c6x.h
bcead286 1086 ;;
dd552284
WL
1087tilegx-*-linux*)
1088 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf tilegx/t-softfp t-softfp tilegx/t-tilegx"
1089 md_unwind_header=tilepro/linux-unwind.h
1090 ;;
1091tilepro-*-linux*)
1092 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro"
1093 md_unwind_header=tilepro/linux-unwind.h
1094 ;;
4be46d19 1095v850*-*-*)
45b86625 1096 tmake_file="v850/t-v850 t-fdpbit"
fa958513 1097 ;;
fea96e25 1098vax-*-linux*)
45b86625 1099 tmake_file="$tmake_file vax/t-linux"
fea96e25 1100 ;;
fa958513
DJ
1101vax-*-netbsdelf*)
1102 ;;
fa958513
DJ
1103vax-*-openbsd*)
1104 ;;
fa958513 1105xstormy16-*-elf)
200feb07 1106 tmake_file="stormy16/t-stormy16 t-fdpbit"
fa958513 1107 ;;
c660f132 1108xtensa*-*-elf*)
5f73c6cc
RO
1109 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1110 extra_parts="$extra_parts crti.o crtn.o"
fa958513 1111 ;;
c660f132 1112xtensa*-*-linux*)
b040f2be 1113 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux"
58cd1d70 1114 md_unwind_header=xtensa/linux-unwind.h
fa958513
DJ
1115 ;;
1116am33_2.0-*-linux*)
5f73c6cc 1117 # Don't need crtbeginT.o from *-*-linux* default.
fa958513 1118 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
b040f2be 1119 tmake_file="$tmake_file t-fdpbit"
fa958513 1120 ;;
541ed00e 1121m32c-*-elf*|m32c-*-rtems*)
45b86625 1122 tmake_file="$tmake_file m32c/t-m32c"
fa958513 1123 ;;
7acf4da6 1124mep*-*-*)
5f73c6cc
RO
1125 tmake_file="mep/t-mep t-fdpbit"
1126 extra_parts="crtbegin.o crtend.o"
7acf4da6 1127 ;;
fa958513
DJ
1128*)
1129 echo "*** Configuration ${host} not supported" 1>&2
1130 exit 1
1131 ;;
1132esac
6f461e76 1133
aca06c90
RO
1134case ${host} in
1135i[34567]86-*-* | x86_64-*-*)
1136 tmake_file="${tmake_file} i386/t-cpuinfo"
1137 ;;
1138esac
1139
6f461e76 1140case ${host} in
2a761e46 1141i[34567]86-*-linux* | x86_64-*-linux* | \
b040f2be
RO
1142 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1143 i[34567]86-*-knetbsd*-gnu | \
2a761e46 1144 i[34567]86-*-gnu*)
aca06c90 1145 tmake_file="${tmake_file} t-tls i386/t-linux"
b6110d6d 1146 if test "$libgcc_cv_cfi" = "yes"; then
ca007d11 1147 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
b6110d6d 1148 fi
6f461e76
L
1149 ;;
1150esac
ff473280
L
1151
1152case ${host} in
1153i[34567]86-*-darwin* | x86_64-*-darwin* | \
532bfb0a 1154 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
e997fb9c 1155 i[34567]86-*-linux* | x86_64-*-linux* | \
3f56ef8b 1156 i[34567]86-*-gnu* | \
fbdd5d87 1157 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
d78552bd
UB
1158 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \
1159 i[34567]86-*-freebsd* | x86_64-*-freebsd*)
aca0b0b3 1160 tmake_file="${tmake_file} t-softfp-tf"
c174f11c 1161 if test "${host_address}" = 32; then
aca0b0b3 1162 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
c174f11c 1163 fi
492fbea1 1164 tmake_file="${tmake_file} i386/t-softfp t-softfp"
c174f11c
L
1165 ;;
1166esac
1167
1168case ${host} in
1169i[34567]86-*-linux* | x86_64-*-linux*)
1170 # Provide backward binary compatibility for 64bit Linux/x86.
1171 if test "${host_address}" = 64; then
1172 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1173 fi
852b75ed 1174 tm_file="${tm_file} i386/value-unwind.h"
ff473280
L
1175 ;;
1176esac