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