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