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