]> gcc.gnu.org Git - gcc.git/blame - libgcc/config.host
compiler: Give error for byte-order-mark in middle of file.
[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*)
f9989b51
RO
216 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic"
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
RO
318 case ${host} in
319 arm*-*-linux-*eabi)
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
DJ
501 ;;
502i[34567]86-*-darwin*)
b3fe1584 503 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
852b75ed 504 tm_file="$tm_file i386/darwin-lib.h"
b3fe1584 505 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
fa958513
DJ
506 ;;
507x86_64-*-darwin*)
b040f2be 508 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
852b75ed 509 tm_file="$tm_file i386/darwin-lib.h"
b3fe1584 510 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
fa958513
DJ
511 ;;
512i[34567]86-*-elf*)
f9989b51 513 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
fa958513 514 ;;
3ae3dbd6 515x86_64-*-elf*)
f9989b51 516 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
3ae3dbd6 517 ;;
fa958513 518i[34567]86-*-freebsd*)
5f73c6cc 519 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
fa958513
DJ
520 ;;
521x86_64-*-freebsd*)
5f73c6cc 522 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
fa958513
DJ
523 ;;
524i[34567]86-*-netbsdelf*)
525 ;;
fa958513 526x86_64-*-netbsd*)
5f73c6cc 527 tmake_file="${tmake_file} i386/t-crtstuff"
fa958513
DJ
528 ;;
529i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
530 ;;
531i[34567]86-*-openbsd*)
532 ;;
613061fd
MK
533x86_64-*-openbsd*)
534 ;;
9e7714f4 535i[34567]86-*-linux*)
577565f9 536 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
5f73c6cc 537 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
58cd1d70 538 md_unwind_header=i386/linux-unwind.h
fa958513 539 ;;
9e7714f4
TS
540i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
541 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
5f73c6cc 542 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
9e7714f4
TS
543 ;;
544x86_64-*-linux*)
577565f9 545 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
5f73c6cc 546 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
58cd1d70 547 md_unwind_header=i386/linux-unwind.h
fa958513 548 ;;
9e7714f4
TS
549x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
550 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
5f73c6cc 551 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
9e7714f4 552 ;;
fa958513
DJ
553i[34567]86-pc-msdosdjgpp*)
554 ;;
555i[34567]86-*-lynxos*)
556 ;;
fa958513 557i[34567]86-*-nto-qnx*)
f9989b51 558 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
5f73c6cc 559 extra_parts=crtbegin.o
fa958513
DJ
560 ;;
561i[34567]86-*-rtems*)
c9cd1a07 562 tmake_file="$tmake_file i386/t-softfp i386/t-crtstuff"
5f73c6cc 563 extra_parts="$extra_parts crti.o crtn.o"
fa958513 564 ;;
fbdd5d87 565i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
b3fe1584
RO
566 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
567 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
58cd1d70 568 md_unwind_header=i386/sol2-unwind.h
fa958513 569 ;;
fa958513
DJ
570i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
571 ;;
58cd1d70 572i[34567]86-*-cygwin*)
76f5e200 573 extra_parts="crtbegin.o crtend.o crtfastmath.o"
b040f2be
RO
574 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
575 if test x$enable_sjlj_exceptions = xyes; then
576 tmake_eh_file="i386/t-sjlj-eh"
577 else
578 tmake_eh_file="i386/t-dw2-eh"
579 fi
580 # Shared libgcc DLL install dir depends on cross/native build.
581 if test x${build} = x${host} ; then
582 tmake_dlldir_file="i386/t-dlldir"
583 else
584 tmake_dlldir_file="i386/t-dlldir-x"
585 fi
45b86625 586 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 587 ;;
58cd1d70
RO
588i[34567]86-*-mingw*)
589 extra_parts="crtbegin.o crtend.o crtfastmath.o"
f9989b51
RO
590 case ${target_thread_file} in
591 win32)
592 tmake_file="$tmake_file i386/t-gthr-win32"
593 ;;
e3d871e4
RO
594 posix)
595 tmake_file="i386/t-mingw-pthread $tmake_file"
596 ;;
f9989b51 597 esac
b040f2be
RO
598 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
599 if test x$enable_sjlj_exceptions = xyes; then
600 tmake_eh_file="i386/t-sjlj-eh"
601 else
602 tmake_eh_file="i386/t-dw2-eh"
0c0c6398 603 md_unwind_header=i386/w32-unwind.h
b040f2be
RO
604 fi
605 # Shared libgcc DLL install dir depends on cross/native build.
606 if test x${build} = x${host} ; then
607 tmake_dlldir_file="i386/t-dlldir"
608 else
609 tmake_dlldir_file="i386/t-dlldir-x"
610 fi
45b86625 611 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 612 ;;
9bd196f0 613x86_64-*-mingw*)
f9989b51
RO
614 case ${target_thread_file} in
615 win32)
616 tmake_file="$tmake_file i386/t-gthr-win32"
617 ;;
e3d871e4
RO
618 posix)
619 tmake_file="i386/t-mingw-pthread $tmake_file"
620 ;;
f9989b51 621 esac
b040f2be
RO
622 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
623 if test x$enable_sjlj_exceptions = xyes; then
624 tmake_eh_file="i386/t-sjlj-eh"
625 else
bf1431e3 626 tmake_eh_file="i386/t-seh-eh"
b040f2be
RO
627 fi
628 # Shared libgcc DLL install dir depends on cross/native build.
629 if test x${build} = x${host} ; then
630 tmake_dlldir_file="i386/t-dlldir"
631 else
632 tmake_dlldir_file="i386/t-dlldir-x"
633 fi
45b86625 634 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 635 extra_parts="$extra_parts crtfastmath.o"
fa958513 636 ;;
daecebc8 637i[34567]86-*-interix[3-9]*)
f9989b51 638 tmake_file="$tmake_file i386/t-interix i386/t-chkstk"
fa958513 639 ;;
fa958513 640ia64*-*-elf*)
5f73c6cc 641 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
1ab3568b 642 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
fa958513
DJ
643 ;;
644ia64*-*-freebsd*)
5f73c6cc 645 extra_parts="$extra_parts crtfastmath.o"
1ab3568b 646 tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
fa958513
DJ
647 ;;
648ia64*-*-linux*)
5f73c6cc 649 # Don't use crtbeginT.o from *-*-linux* default.
fa958513 650 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1ab3568b 651 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 652 if test x$with_system_libunwind != xyes ; then
b040f2be 653 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
201cdb74 654 fi
58cd1d70 655 md_unwind_header=ia64/linux-unwind.h
fa958513
DJ
656 ;;
657ia64*-*-hpux*)
1ab3568b 658 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
fa958513 659 ;;
a9a25daa 660ia64-hp-*vms*)
45b86625 661 tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms"
5f73c6cc 662 extra_parts="$extra_parts crtinitS.o"
58cd1d70 663 md_unwind_header=ia64/vms-unwind.h
a9a25daa 664 ;;
fa958513 665iq2000*-*-elf*)
d4b4b542 666 tmake_file="iq2000/t-iq2000 t-fdpbit"
5f73c6cc
RO
667 # Don't use default.
668 extra_parts=
fa958513 669 ;;
c9cd1a07 670lm32-*-elf*)
5f73c6cc 671 extra_parts="$extra_parts crti.o crtn.o"
aca0b0b3 672 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
aa4945c1 673 ;;
c9cd1a07
RO
674lm32-*-rtems*)
675 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
676 extra_parts="$extra_parts crti.o crtn.o"
677 ;;
aa4945c1 678lm32-*-uclinux*)
5f73c6cc 679 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
f9989b51 680 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
aa4945c1 681 ;;
5f73c6cc 682m32r-*-elf*)
569dc494 683 tmake_file=t-fdpbit
fa958513 684 ;;
5f73c6cc 685m32r-*-rtems*)
c9cd1a07 686 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
5f73c6cc 687 ;;
fa958513 688m32rle-*-elf*)
569dc494 689 tmake_file=t-fdpbit
fa958513
DJ
690 ;;
691m32r-*-linux*)
5f73c6cc 692 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
fa958513
DJ
693 ;;
694m32rle-*-linux*)
5f73c6cc 695 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
fa958513 696 ;;
45b86625
RO
697m68k-*-elf* | fido-*-elf)
698 tmake_file="$tmake_file m68k/t-floatlib"
fa958513 699 ;;
cd985f66 700m68k*-*-netbsdelf*)
fa958513
DJ
701 ;;
702m68k*-*-openbsd*)
703 ;;
8b281334
RH
704m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
705 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
58cd1d70 706 md_unwind_header=m68k/linux-unwind.h
fa958513 707 ;;
58cd1d70 708m68k-*-linux*) # Motorola m68k's running GNU/Linux
fa958513
DJ
709 # with ELF format using glibc 2
710 # aka the GNU/Linux C library 6.
8b281334 711 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
b040f2be
RO
712 # If not configured with --enable-sjlj-exceptions, bump the
713 # libgcc version number.
714 if test x$enable_sjlj_exceptions != xyes; then
715 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
716 fi
58cd1d70 717 md_unwind_header=m68k/linux-unwind.h
fa958513
DJ
718 ;;
719m68k-*-rtems*)
45b86625 720 tmake_file="$tmake_file m68k/t-floatlib"
5f73c6cc 721 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
722 ;;
723mcore-*-elf)
45b86625 724 tmake_file="mcore/t-mcore t-fdpbit"
5f73c6cc 725 extra_parts="$extra_parts crti.o crtn.o"
fa958513 726 ;;
b040f2be
RO
727microblaze*-linux*)
728 tmake_file="$tmake_file t-slibgcc-nolc-override microblaze/t-microblaze t-fdpbit"
729 ;;
80920132 730microblaze*-*-*)
569dc494 731 tmake_file="microblaze/t-microblaze t-fdpbit"
5f73c6cc 732 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
80920132 733 ;;
fa958513
DJ
734mips*-*-netbsd*) # NetBSD/mips, either endian.
735 ;;
fa958513 736mips*-*-linux*) # Linux MIPS, either endian.
48b09a92 737 extra_parts="$extra_parts crtfastmath.o"
78c27266 738 tmake_file="${tmake_file} t-crtfm mips/t-mips16"
58cd1d70 739 md_unwind_header=mips/linux-unwind.h
e4bb767e
AJ
740 if test "${ac_cv_sizeof_long_double}" = 16; then
741 tmake_file="${tmake_file} mips/t-tpbit"
742 fi
fa958513 743 ;;
569dc494 744mips*-sde-elf*)
eb028768 745 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
569dc494
RO
746 case "${with_newlib}" in
747 yes)
748 # newlib / libgloss.
749 ;;
750 *)
751 # MIPS toolkit libraries.
5f73c6cc 752 tmake_file="$tmake_file mips/t-sdemtk"
569dc494
RO
753 ;;
754 esac
5f73c6cc 755 extra_parts="$extra_parts crti.o crtn.o"
569dc494 756 ;;
c6412d86
RO
757mipsisa32-*-elf* | mipsisa32el-*-elf* | \
758mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
759mipsisa64-*-elf* | mipsisa64el-*-elf* | \
0a4a51c7 760mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
f9989b51 761 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 762 extra_parts="$extra_parts crti.o crtn.o"
0a4a51c7 763 ;;
fa958513 764mipsisa64sr71k-*-elf*)
eb028768 765 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
5f73c6cc 766 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
767 ;;
768mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
f9989b51 769 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 770 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
771 ;;
772mips-*-elf* | mipsel-*-elf*)
f9989b51 773 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 774 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
775 ;;
776mips64-*-elf* | mips64el-*-elf*)
f9989b51 777 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 778 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
779 ;;
780mips64vr-*-elf* | mips64vrel-*-elf*)
f9989b51 781 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
5f73c6cc 782 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
783 ;;
784mips64orion-*-elf* | mips64orionel-*-elf*)
f9989b51 785 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 786 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
787 ;;
788mips*-*-rtems*)
f9989b51 789 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
5f73c6cc 790 extra_parts="$extra_parts crti.o crtn.o"
fa958513
DJ
791 ;;
792mips-wrs-vxworks)
793 ;;
fa958513 794mipstx39-*-elf* | mipstx39el-*-elf*)
5f73c6cc 795 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
fa958513
DJ
796 ;;
797mmix-knuth-mmixware)
e7c914db
HPN
798 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
799 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
fa958513
DJ
800 ;;
801mn10300-*-*)
569dc494 802 tmake_file=t-fdpbit
fa958513 803 ;;
5f73c6cc 804moxie-*-elf | moxie-*-uclinux*)
aca0b0b3 805 tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
5f73c6cc
RO
806 extra_parts="$extra_parts crti.o crtn.o"
807 ;;
808moxie-*-rtems*)
c9cd1a07 809 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
5f73c6cc
RO
810 # Don't use default.
811 extra_parts=
cceb575c 812 ;;
fa958513 813pdp11-*-*)
f9989b51 814 tmake_file="pdp11/t-pdp11 t-fdpbit"
fa958513 815 ;;
358da97e 816picochip-*-*)
569dc494 817 tmake_file="picochip/t-picochip t-fpbit"
358da97e 818 ;;
fa958513 819powerpc-*-darwin*)
58cd1d70
RO
820 case ${host} in
821 *-*-darwin9* | *-*-darwin[12][0-9]*)
822 # libSystem contains unwind information for signal frames since
823 # Darwin 9.
824 ;;
825 *)
826 md_unwind_header=rs6000/darwin-unwind.h
827 ;;
828 esac
aca0b0b3 829 tmake_file="$tmake_file rs6000/t-ibm-ldouble"
e141542e 830 extra_parts="$extra_parts crt2.o"
fa958513
DJ
831 ;;
832powerpc64-*-darwin*)
f9989b51 833 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
e141542e 834 extra_parts="$extra_parts crt2.o"
fa958513 835 ;;
d82ad50d
AT
836powerpc*-*-freebsd*)
837 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 838 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
d82ad50d
AT
839 case ${host} in
840 powerpc64*)
841 tmake_file="${tmake_file} rs6000/t-freebsd64"
842 md_unwind_header=rs6000/freebsd-unwind.h
843 ;;
844 esac
fa958513
DJ
845 ;;
846powerpc-*-netbsd*)
d4b4b542 847 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
fa958513 848 ;;
fa958513 849powerpc-*-eabispe*)
f9c55897 850 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic"
5f73c6cc 851 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
852 ;;
853powerpc-*-eabisimaltivec*)
f9c55897 854 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 855 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
856 ;;
857powerpc-*-eabisim*)
f9c55897 858 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 859 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
860 ;;
861powerpc-*-elf*)
f9c55897 862 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 863 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
864 ;;
865powerpc-*-eabialtivec*)
f9c55897 866 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 867 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
569dc494
RO
868 ;;
869powerpc-xilinx-eabi*)
f9c55897 870 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 871 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
872 ;;
873powerpc-*-eabi*)
f9c55897 874 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 875 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
876 ;;
877powerpc-*-rtems*)
f9c55897 878 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 879 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513 880 ;;
633dd061 881powerpc-*-linux* | powerpc64-*-linux*)
f9c55897 882 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 883 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
58cd1d70 884 md_unwind_header=rs6000/linux-unwind.h
fa958513 885 ;;
fa958513 886powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
f9c55897 887 tmake_file="$tmake_file rs6000/t-ppccomm t-fdpbit"
fa958513 888 ;;
fa958513 889powerpc-*-lynxos*)
d4b4b542 890 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
fa958513 891 ;;
fa958513 892powerpcle-*-elf*)
f9c55897 893 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 894 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
895 ;;
896powerpcle-*-eabisim*)
f9c55897 897 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 898 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513
DJ
899 ;;
900powerpcle-*-eabi*)
f9c55897 901 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
5f73c6cc 902 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
fa958513 903 ;;
fa958513 904rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
201cdb74 905 md_unwind_header=rs6000/aix-unwind.h
138f5acd 906 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
fa958513
DJ
907 ;;
908rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
201cdb74 909 md_unwind_header=rs6000/aix-unwind.h
138f5acd 910 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
fa958513
DJ
911 ;;
912rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
201cdb74 913 md_unwind_header=rs6000/aix-unwind.h
138f5acd 914 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
fa958513 915 ;;
85b8555e
DD
916rl78-*-elf)
917 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
918 ;;
65a324b4 919rx-*-elf)
569dc494 920 tmake_file="rx/t-rx t-fdpbit"
852b75ed 921 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
65a324b4 922 ;;
fa958513 923s390-*-linux*)
81dd9fd7 924 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
58cd1d70 925 md_unwind_header=s390/linux-unwind.h
fa958513
DJ
926 ;;
927s390x-*-linux*)
81dd9fd7 928 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
58cd1d70 929 md_unwind_header=s390/linux-unwind.h
fa958513
DJ
930 ;;
931s390x-ibm-tpf*)
f9989b51 932 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
5f73c6cc 933 extra_parts="crtbeginS.o crtendS.o"
10c4cabc 934 md_unwind_header=s390/tpf-unwind.h
fa958513
DJ
935 ;;
936score-*-elf)
aca0b0b3 937 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp"
5f73c6cc 938 extra_parts="$extra_parts crti.o crtn.o"
fa958513 939 ;;
5f73c6cc
RO
940sh-*-elf* | sh[12346l]*-*-elf*)
941 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
942 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
943 libic_invalidate_array_4-100.a \
944 libic_invalidate_array_4-200.a \
945 libic_invalidate_array_4a.a \
946 libgcc-Os-4-200.a libgcc-4-300.a"
45b86625
RO
947 case ${host} in sh64*-*-*)
948 tmake_file="$tmake_file sh/t-sh64"
949 ;;
950 esac
26900826 951 case ${host} in
5f73c6cc
RO
952 sh*-superh-elf)
953 tmake_file="$tmake_file sh/t-superh"
954 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
955 ;;
956 esac
957 ;;
958sh-*-linux* | sh[2346lbe]*-*-linux*)
45b86625
RO
959 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
960 case ${host} in sh64*-*-linux*)
961 tmake_file="$tmake_file sh/t-sh64"
962 ;;
963 esac
5f73c6cc
RO
964 md_unwind_header=sh/linux-unwind.h
965 ;;
966sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
967 sh64-*-netbsd* | sh64l*-*-netbsd*)
45b86625
RO
968 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
969 case ${host} in
970 sh5*-*-netbsd* | sh64*-netbsd*)
971 tmake_file="$tmake_file sh/t-sh64"
972 ;;
973 esac
5f73c6cc
RO
974 # NetBSD's C library includes a fast software FP library that
975 # has support for setting/setting the rounding mode, exception
976 # mask, etc. Therefore, we don't want to include software FP
977 # in libgcc.
fa958513 978 ;;
fa958513 979sh-*-rtems*)
45b86625 980 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
5f73c6cc
RO
981 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
982 $sh_ic_extra_parts $sh_opt_extra_parts"
fa958513
DJ
983 ;;
984sh-wrs-vxworks)
45b86625 985 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
fa958513 986 ;;
fa958513
DJ
987sparc-*-netbsdelf*)
988 ;;
989sparc64-*-openbsd*)
990 ;;
991sparc-*-elf*)
ca24c5ad
RO
992 case ${host} in
993 *-leon[3-9]*)
994 ;;
995 *)
996 tmake_file="sparc/t-softmul"
997 ;;
998 esac
5f73c6cc
RO
999 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1000 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
fa958513
DJ
1001 ;;
1002sparc-*-linux*) # SPARC's running GNU/Linux, libc6
d2a7d041
DM
1003 tmake_file="${tmake_file} t-crtfm"
1004 if test "${host_address}" = 64; then
1005 tmake_file="$tmake_file sparc/t-linux64"
1006 fi
569dc494
RO
1007 case ${host} in
1008 *-leon*)
b040f2be
RO
1009 tmake_file="${tmake_file} t-fdpbit"
1010 ;;
1011 *)
1012 tmake_file="${tmake_file} sparc/t-linux"
569dc494
RO
1013 ;;
1014 esac
45b86625
RO
1015 case ${host} in
1016 *-leon[3-9]*)
1017 ;;
1018 *)
d2a7d041
DM
1019 if test "${host_address}" = 32; then
1020 tmake_file="$tmake_file sparc/t-softmul"
1021 fi
45b86625
RO
1022 ;;
1023 esac
fa958513 1024 extra_parts="$extra_parts crtfastmath.o"
10c4cabc 1025 md_unwind_header=sparc/linux-unwind.h
fa958513 1026 ;;
569dc494 1027sparc-*-rtems*)
c9cd1a07 1028 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
5f73c6cc 1029 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
fa958513 1030 ;;
ca24c5ad
RO
1031sparc*-*-solaris2*)
1032 tmake_file="$tmake_file t-crtfm"
1033 extra_parts="$extra_parts crtfastmath.o"
58cd1d70 1034 md_unwind_header=sparc/sol2-unwind.h
fa958513 1035 ;;
fa958513 1036sparc64-*-elf*)
5f73c6cc
RO
1037 tmake_file="${tmake_file} t-crtfm"
1038 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
fa958513 1039 ;;
569dc494 1040sparc64-*-rtems*)
c9cd1a07 1041 tmake_file="$tmake_file sparc/t-elf t-crtfm"
5f73c6cc 1042 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
569dc494 1043 ;;
1910440e
RS
1044sparc-wrs-vxworks)
1045 ;;
fa958513 1046sparc64-*-freebsd*|ultrasparc-*-freebsd*)
35d8090d 1047 tmake_file="$tmake_file t-crtfm"
5f73c6cc 1048 extra_parts="$extra_parts crtfastmath.o"
fa958513
DJ
1049 ;;
1050sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1051 extra_parts="$extra_parts crtfastmath.o"
d2a7d041
DM
1052 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1053 if test "${host_address}" = 64; then
1054 tmake_file="${tmake_file} sparc/t-linux64"
1055 fi
1056 if test "${host_address}" = 32; then
1057 tmake_file="${tmake_file} sparc/t-softmul"
1058 fi
58cd1d70 1059 md_unwind_header=sparc/linux-unwind.h
fa958513
DJ
1060 ;;
1061sparc64-*-netbsd*)
1062 ;;
1063spu-*-elf*)
f9989b51 1064 tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
5f73c6cc
RO
1065 extra_parts="$extra_parts \
1066 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
1067 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
1068 libgcc_cache64k.a libgcc_cache128k.a"
fa958513 1069 ;;
b040f2be 1070tic6x-*-uclinux)
4d5ae4ea
BS
1071 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1072 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1073 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
852b75ed 1074 tm_file="$tm_file c6x/c6x-abi.h"
4d5ae4ea 1075 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
b040f2be
RO
1076 unwind_header=config/c6x/unwind-c6x.h
1077 ;;
5f73c6cc
RO
1078tic6x-*-elf)
1079 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
852b75ed 1080 tm_file="$tm_file c6x/c6x-abi.h"
5f73c6cc 1081 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1e874273 1082 unwind_header=config/c6x/unwind-c6x.h
bcead286 1083 ;;
dd552284
WL
1084tilegx-*-linux*)
1085 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf tilegx/t-softfp t-softfp tilegx/t-tilegx"
1086 md_unwind_header=tilepro/linux-unwind.h
1087 ;;
1088tilepro-*-linux*)
1089 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro"
1090 md_unwind_header=tilepro/linux-unwind.h
1091 ;;
4be46d19 1092v850*-*-*)
45b86625 1093 tmake_file="v850/t-v850 t-fdpbit"
fa958513 1094 ;;
fea96e25 1095vax-*-linux*)
45b86625 1096 tmake_file="$tmake_file vax/t-linux"
fea96e25 1097 ;;
fa958513
DJ
1098vax-*-netbsdelf*)
1099 ;;
fa958513
DJ
1100vax-*-openbsd*)
1101 ;;
fa958513 1102xstormy16-*-elf)
200feb07 1103 tmake_file="stormy16/t-stormy16 t-fdpbit"
fa958513 1104 ;;
c660f132 1105xtensa*-*-elf*)
5f73c6cc
RO
1106 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1107 extra_parts="$extra_parts crti.o crtn.o"
fa958513 1108 ;;
c660f132 1109xtensa*-*-linux*)
b040f2be 1110 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux"
58cd1d70 1111 md_unwind_header=xtensa/linux-unwind.h
fa958513
DJ
1112 ;;
1113am33_2.0-*-linux*)
5f73c6cc 1114 # Don't need crtbeginT.o from *-*-linux* default.
fa958513 1115 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
b040f2be 1116 tmake_file="$tmake_file t-fdpbit"
fa958513 1117 ;;
541ed00e 1118m32c-*-elf*|m32c-*-rtems*)
45b86625 1119 tmake_file="$tmake_file m32c/t-m32c"
fa958513 1120 ;;
7acf4da6 1121mep*-*-*)
5f73c6cc
RO
1122 tmake_file="mep/t-mep t-fdpbit"
1123 extra_parts="crtbegin.o crtend.o"
7acf4da6 1124 ;;
fa958513
DJ
1125*)
1126 echo "*** Configuration ${host} not supported" 1>&2
1127 exit 1
1128 ;;
1129esac
6f461e76 1130
aca06c90
RO
1131case ${host} in
1132i[34567]86-*-* | x86_64-*-*)
1133 tmake_file="${tmake_file} i386/t-cpuinfo"
1134 ;;
1135esac
1136
6f461e76 1137case ${host} in
2a761e46 1138i[34567]86-*-linux* | x86_64-*-linux* | \
b040f2be
RO
1139 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1140 i[34567]86-*-knetbsd*-gnu | \
2a761e46 1141 i[34567]86-*-gnu*)
aca06c90 1142 tmake_file="${tmake_file} t-tls i386/t-linux"
b6110d6d 1143 if test "$libgcc_cv_cfi" = "yes"; then
ca007d11 1144 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
b6110d6d 1145 fi
6f461e76
L
1146 ;;
1147esac
ff473280
L
1148
1149case ${host} in
1150i[34567]86-*-darwin* | x86_64-*-darwin* | \
532bfb0a 1151 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
e997fb9c 1152 i[34567]86-*-linux* | x86_64-*-linux* | \
3f56ef8b 1153 i[34567]86-*-gnu* | \
fbdd5d87 1154 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
d78552bd
UB
1155 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \
1156 i[34567]86-*-freebsd* | x86_64-*-freebsd*)
aca0b0b3 1157 tmake_file="${tmake_file} t-softfp-tf"
c174f11c 1158 if test "${host_address}" = 32; then
aca0b0b3 1159 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
c174f11c 1160 fi
492fbea1 1161 tmake_file="${tmake_file} i386/t-softfp t-softfp"
c174f11c
L
1162 ;;
1163esac
1164
1165case ${host} in
1166i[34567]86-*-linux* | x86_64-*-linux*)
1167 # Provide backward binary compatibility for 64bit Linux/x86.
1168 if test "${host_address}" = 64; then
1169 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1170 fi
852b75ed 1171 tm_file="${tm_file} i386/value-unwind.h"
ff473280
L
1172 ;;
1173esac
This page took 0.642308 seconds and 5 git commands to generate.