]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgcc/config.host
Makefile.in (FPBIT_FUNCS, [...]): Remove.
[thirdparty/gcc.git] / libgcc / config.host
1 # libgcc host-specific configuration file.
2 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3 # 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
4
5 #This file is part of GCC.
6
7 #GCC is free software; you can redistribute it and/or modify it under
8 #the terms of the GNU General Public License as published by the Free
9 #Software Foundation; either version 3, or (at your option) any later
10 #version.
11
12 #GCC is distributed in the hope that it will be useful, but WITHOUT
13 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 #for more details.
16
17 #You should have received a copy of the GNU General Public License
18 #along with GCC; see the file COPYING3. If not see
19 #<http://www.gnu.org/licenses/>.
20
21 # This is the libgcc host-specific configuration file
22 # where a configuration type is mapped to different system-specific
23 # definitions and files. This is invoked by the autoconf-generated
24 # configure script. Putting it in a separate shell file lets us skip
25 # running autoconf when modifying host-specific information.
26
27 # This file bears an obvious resemblance to gcc/config.gcc. The cases
28 # should be kept similar, to ease moving library-specific settings
29 # from config.gcc to this file. That is also why tmake_file is
30 # left as tmake_file, rather than hmake_file, even though this library
31 # switches on ${host}.
32
33 # This file switches on the shell variable ${host}, and also uses the
34 # following shell variables:
35 #
36 # with_* Various variables as set by configure.
37
38 # This file sets the following shell variables for use by the
39 # autoconf-generated configure script:
40 #
41 # asm_hidden_op The assembler pseudo-op to use for hide
42 # lists for object files implemented in
43 # assembly (with -fvisibility=hidden for C).
44 # The default is ".hidden".
45 # cpu_type The name of the cpu, if different from the first
46 # chunk of the canonical host name.
47 # enable_execute_stack The name of a source file implementing
48 # __enable_execute_stack.
49 # extra_parts List of extra object files that should be compiled
50 # for this target machine. This may be overridden
51 # by setting EXTRA_PARTS in a tmake_file fragment.
52 # If either is set, EXTRA_PARTS and
53 # EXTRA_MULTILIB_PARTS inherited from the GCC
54 # subdirectory will be ignored.
55 # md_unwind_header The name of a header file defining
56 # MD_FALLBACK_FRAME_STATE_FOR.
57 # tmake_file A list of machine-description-specific
58 # makefile-fragments, if different from
59 # "$cpu_type/t-$cpu_type".
60 # unwind_header The name of the header file declaring the unwind
61 # runtime interface routines.
62
63 asm_hidden_op=.hidden
64 enable_execute_stack=
65 extra_parts=
66 tmake_file=
67 md_unwind_header=no-unwind.h
68 unwind_header=unwind-generic.h
69
70 # Set default cpu_type so it can be updated in each machine entry.
71 cpu_type=`echo ${host} | sed 's/-.*$//'`
72 case ${host} in
73 m32c*-*-*)
74 cpu_type=m32c
75 tmake_file=t-fdpbit
76 ;;
77 alpha*-*-*)
78 cpu_type=alpha
79 ;;
80 am33_2.0-*-linux*)
81 cpu_type=mn10300
82 ;;
83 arm*-*-*)
84 cpu_type=arm
85 ;;
86 avr-*-*)
87 cpu_type=avr
88 ;;
89 bfin*-*)
90 cpu_type=bfin
91 ;;
92 fido-*-*)
93 cpu_type=m68k
94 ;;
95 frv*) cpu_type=frv
96 ;;
97 moxie*) cpu_type=moxie
98 ;;
99 i[34567]86-*-*)
100 cpu_type=i386
101 ;;
102 x86_64-*-*)
103 cpu_type=i386
104 ;;
105 ia64-*-*)
106 ;;
107 hppa*-*-*)
108 cpu_type=pa
109 ;;
110 lm32*-*-*)
111 cpu_type=lm32
112 ;;
113 m32r*-*-*)
114 cpu_type=m32r
115 ;;
116 m68k-*-*)
117 ;;
118 mep*-*-*)
119 ;;
120 microblaze*-*-*)
121 cpu_type=microblaze
122 ;;
123 mips*-*-*)
124 cpu_type=mips
125 tmake_file=mips/t-mips
126 ;;
127 powerpc*-*-*)
128 cpu_type=rs6000
129 ;;
130 rs6000*-*-*)
131 ;;
132 score*-*-*)
133 cpu_type=score
134 ;;
135 sparc64*-*-*)
136 cpu_type=sparc
137 ;;
138 sparc*-*-*)
139 cpu_type=sparc
140 ;;
141 spu*-*-*)
142 cpu_type=spu
143 ;;
144 s390*-*-*)
145 cpu_type=s390
146 ;;
147 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
148 sh[123456789lbe]*-*-*)
149 cpu_type=sh
150 ;;
151 v850*-*-*)
152 cpu_type=v850
153 ;;
154 tic6x-*-*)
155 cpu_type=c6x
156 ;;
157 esac
158
159 # Common parts for widely ported systems.
160 case ${host} in
161 *-*-darwin*)
162 asm_hidden_op=.private_extern
163 tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin"
164 extra_parts=crt3.o
165 ;;
166 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
167 # This is the place-holder for the generic a.out configuration
168 # of FreeBSD. No actual configuration resides here since
169 # there was only ever a bare-bones ix86 configuration for
170 # a.out and it exists solely in the machine-specific section.
171 # This place-holder must exist to avoid dropping into
172 # the generic ELF configuration of FreeBSD (i.e. it must be
173 # ordered before that section).
174 ;;
175 *-*-freebsd*)
176 # This is the generic ELF configuration of FreeBSD. Later
177 # machine-specific sections may refine and add to this
178 # configuration.
179 tmake_file=t-eh-dw2-dip
180 ;;
181 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
182 tmake_file=t-eh-dw2-dip
183 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
184 ;;
185 *-*-netbsd*)
186 ;;
187 *-*-openbsd*)
188 ;;
189 *-*-rtems*)
190 ;;
191 *-*-solaris2*)
192 # Unless linker support and dl_iterate_phdr are present,
193 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
194 tmake_file="$tmake_file t-sol2 t-eh-dw2-dip t-slibgcc t-slibgcc-elf-ver"
195 if test $with_gnu_ld = yes; then
196 tmake_file="$tmake_file t-slibgcc-gld"
197 else
198 tmake_file="$tmake_file t-slibgcc-sld"
199 fi
200 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
201 tmake_file="$tmake_file $cpu_type/t-sol2"
202 extra_parts="gmon.o crtbegin.o crtend.o"
203 case ${host} in
204 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
205 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
206 # part of the base system.
207 ;;
208 sparc*-*-solaris2.1[0-9]*)
209 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
210 extra_parts="$extra_parts crt1.o gcrt1.o"
211 ;;
212 *)
213 tmake_file="$tmake_file t-crtin"
214 extra_parts="$extra_parts crt1.o crti.o crtn.o gcrt1.o"
215 ;;
216 esac
217 ;;
218 *-*-vxworks*)
219 ;;
220 *-*-elf)
221 ;;
222 esac
223
224 case ${host} in
225 *-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2* | \
226 alpha*-dec-osf5.1*)
227 enable_execute_stack=enable-execute-stack-mprotect.c
228 ;;
229 i[34567]86-*-mingw* | x86_64-*-mingw*)
230 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
231 ;;
232 *)
233 enable_execute_stack=enable-execute-stack-empty.c;
234 ;;
235 esac
236
237 case ${host} in
238 alpha*-*-linux*)
239 tmake_file="${tmake_file} t-crtfm"
240 extra_parts="$extra_parts crtfastmath.o"
241 md_unwind_header=alpha/linux-unwind.h
242 ;;
243 alpha*-*-freebsd*)
244 tmake_file="${tmake_file} t-crtfm"
245 extra_parts="$extra_parts crtfastmath.o"
246 ;;
247 alpha*-*-netbsd*)
248 ;;
249 alpha*-*-openbsd*)
250 ;;
251 alpha*-dec-osf5.1*)
252 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm t-slibgcc alpha/t-slibgcc-osf"
253 case ${target_thread_file} in
254 posix)
255 tmake_file="${tmake_file} alpha/t-osf-pthread"
256 ;;
257 esac
258 extra_parts="${extra_parts} qrnnd.o crtfastmath.o gthr-posix.o"
259 md_unwind_header=alpha/osf5-unwind.h
260 ;;
261 alpha64-dec-*vms*)
262 tmake_file="vms/t-vms vms/t-vms64 alpha/t-vms"
263 md_unwind_header=alpha/vms-unwind.h
264 ;;
265 alpha*-dec-*vms*)
266 tmake_file="vms/t-vms alpha/t-vms"
267 md_unwind_header=alpha/vms-unwind.h
268 ;;
269 arm-wrs-vxworks)
270 tmake_file=t-fdpbit
271 ;;
272 arm*-*-freebsd*)
273 tmake_file=t-fdpbit
274 ;;
275 arm*-*-netbsdelf*)
276 ;;
277 arm*-*-linux*) # ARM GNU/Linux with ELF
278 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
279 case ${host} in
280 arm*-*-linux-*eabi)
281 tmake_file="${tmake_file} arm/t-bpabi"
282 unwind_header=config/arm/unwind-arm.h
283 ;;
284 esac
285 ;;
286 arm*-*-uclinux*) # ARM ucLinux
287 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
288 case ${host} in
289 arm*-*-uclinux*eabi)
290 tmake_file="${tmake_file} arm/t-bpabi"
291 unwind_header=config/arm/unwind-arm.h
292 ;;
293 esac
294 ;;
295 arm*-*-ecos-elf)
296 ;;
297 arm*-*-eabi* | arm*-*-symbianelf* )
298 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
299 case ${host} in
300 arm*-*-eabi*)
301 tmake_file="${tmake_file} arm/t-bpabi"
302 ;;
303 arm*-*-symbianelf*)
304 tmake_file="${tmake_file} arm/t-symbian"
305 ;;
306 esac
307 unwind_header=config/arm/unwind-arm.h
308 ;;
309 arm*-*-rtems*)
310 ;;
311 arm*-*-elf)
312 ;;
313 arm*-wince-pe*)
314 ;;
315 avr-*-rtems*)
316 tmake_file=t-fpbit
317 ;;
318 avr-*-*)
319 # Make HImode functions for AVR
320 tmake_file="${cpu_type}/t-avr t-fpbit"
321
322 ;;
323 bfin*-elf*)
324 tmke_file=t-fdpbit
325 ;;
326 bfin*-uclinux*)
327 tmake_file=t-fdpbit
328 md_unwind_header=bfin/linux-unwind.h
329 ;;
330 bfin*-linux-uclibc*)
331 tmake_file=t-fdpbit
332 # No need to build crtbeginT.o on uClibc systems. Should probably
333 # be moved to the OS specific section above.
334 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
335 md_unwind_header=bfin/linux-unwind.h
336 ;;
337 bfin*-rtems*)
338 tmake_file=t-fdpbit
339 ;;
340 bfin*-*)
341 tmake_file=t-fdpbit
342 ;;
343 crisv32-*-elf | crisv32-*-none | cris-*-elf | cris-*-none)
344 tmake_file=t-fdpbit
345 extra_parts="crtbegin.o crtend.o"
346 ;;
347 cris-*-linux* | crisv32-*-linux*)
348 tmake_file=t-fdpbit
349 ;;
350 fido-*-elf)
351 ;;
352 fr30-*-elf)
353 tmake_file=t-fdpbit
354 ;;
355 frv-*-elf)
356 tmake_file=t-fdpbit
357 ;;
358 frv-*-*linux*)
359 tmake_file=t-fdpbit
360 ;;
361 h8300-*-rtems*)
362 tmake_file=t-fpbit
363 ;;
364 h8300-*-elf*)
365 tmake_file=t-fpbit
366 ;;
367 hppa*64*-*-linux*)
368 ;;
369 hppa*-*-linux*)
370 md_unwind_header=pa/linux-unwind.h
371 ;;
372 hppa[12]*-*-hpux10*)
373 md_unwind_header=pa/hpux-unwind.h
374 ;;
375 hppa*64*-*-hpux11*)
376 md_unwind_header=pa/hpux-unwind.h
377 ;;
378 hppa[12]*-*-hpux11*)
379 md_unwind_header=pa/hpux-unwind.h
380 ;;
381 i[34567]86-*-darwin*)
382 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
383 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
384 ;;
385 x86_64-*-darwin*)
386 tmake_file="t-darwin ${cpu_type}/t-darwin64 i386/t-crtpc i386/t-crtfm t-slibgcc-darwin"
387 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
388 ;;
389 i[34567]86-*-elf*)
390 ;;
391 x86_64-*-elf*)
392 ;;
393 i[34567]86-*-freebsd*)
394 tmake_file="${tmake_file} i386/t-freebsd"
395 ;;
396 x86_64-*-freebsd*)
397 tmake_file="${tmake_file} i386/t-freebsd"
398 ;;
399 i[34567]86-*-netbsdelf*)
400 ;;
401 x86_64-*-netbsd*)
402 ;;
403 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
404 ;;
405 i[34567]86-*-openbsd*)
406 ;;
407 i[34567]86-*-linux*)
408 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
409 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm t-dfprules"
410 md_unwind_header=i386/linux-unwind.h
411 ;;
412 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
413 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
414 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm t-dfprules"
415 ;;
416 x86_64-*-linux*)
417 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
418 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm t-dfprules"
419 md_unwind_header=i386/linux-unwind.h
420 ;;
421 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
422 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
423 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm t-dfprules"
424 ;;
425 i[34567]86-pc-msdosdjgpp*)
426 ;;
427 i[34567]86-*-lynxos*)
428 ;;
429 i[34567]86-*-nto-qnx*)
430 ;;
431 i[34567]86-*-rtems*)
432 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
433 tmake_file="${tmake_file} t-crtin i386/t-softfp i386/t-crtstuff t-rtems"
434 ;;
435 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
436 tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
437 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
438 md_unwind_header=i386/sol2-unwind.h
439 ;;
440 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
441 ;;
442 i[34567]86-*-cygwin*)
443 extra_parts="crtbegin.o crtend.o crtfastmath.o"
444 tmake_file="i386/t-cygming i386/t-crtfm t-dfprules"
445 ;;
446 i[34567]86-*-mingw*)
447 extra_parts="crtbegin.o crtend.o crtfastmath.o"
448 tmake_file="i386/t-cygming i386/t-crtfm t-dfprules"
449 md_unwind_header=i386/w32-unwind.h
450 ;;
451 x86_64-*-mingw*)
452 tmake_file="t-dfprules i386/t-crtfm"
453 extra_parts="$extra_parts crtfastmath.o"
454 ;;
455 i[34567]86-*-interix3*)
456 ;;
457 ia64*-*-elf*)
458 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
459 tmake_file="ia64/t-ia64 ia64/t-eh-ia64 t-crtfm"
460 ;;
461 ia64*-*-freebsd*)
462 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
463 tmake_file="ia64/t-ia64 ia64/t-eh-ia64 t-crtfm"
464 ;;
465 ia64*-*-linux*)
466 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
467 tmake_file="ia64/t-ia64 t-crtfm t-softfp ia64/t-fprules-softfp ia64/t-softfp-compat ia64/t-glibc ia64/t-eh-ia64 t-libunwind"
468 if test x$with_system_libunwind != xyes ; then
469 tmake_file="${tmake_file} t-libunwind-elf ia64/t-glibc-libunwind"
470 fi
471 md_unwind_header=ia64/linux-unwind.h
472 ;;
473 ia64*-*-hpux*)
474 tmake_file="ia64/t-hpux"
475 ;;
476 ia64-hp-*vms*)
477 tmake_file="vms/t-vms vms/t-vms64 ia64/t-eh-ia64 ia64/t-vms"
478 md_unwind_header=ia64/vms-unwind.h
479 ;;
480 iq2000*-*-elf*)
481 tmake_file=t-fdpbit
482 ;;
483 lm32-*-elf*|lm32-*-rtems*)
484 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
485 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp"
486 ;;
487 lm32-*-uclinux*)
488 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
489 tmake_file="lm32/t-lm32 lm32/t-uclinux t-softfp"
490 ;;
491 m32r-*-elf*|m32r-*-rtems*)
492 tmake_file=t-fdpbit
493 ;;
494 m32rle-*-elf*)
495 tmake_file=t-fdpbit
496 ;;
497 m32r-*-linux*)
498 tmake_file=t-fdpbit
499 ;;
500 m32rle-*-linux*)
501 tmake_file=t-fdpbit
502 ;;
503 m68k-*-elf*)
504 ;;
505 m68k*-*-netbsdelf*)
506 ;;
507 m68k*-*-openbsd*)
508 ;;
509 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
510 md_unwind_header=m68k/linux-unwind.h
511 ;;
512 m68k-*-linux*) # Motorola m68k's running GNU/Linux
513 # with ELF format using glibc 2
514 # aka the GNU/Linux C library 6.
515 md_unwind_header=m68k/linux-unwind.h
516 ;;
517 m68k-*-rtems*)
518 ;;
519 mcore-*-elf)
520 tmake_file=t-fdpbit
521 ;;
522 microblaze*-*-*)
523 tmake_file="microblaze/t-microblaze t-fdpbit"
524 ;;
525 mips-sgi-irix6.5*)
526 tmake_file="$tmake_file mips/t-irix6 t-crtfm mips/t-tpbit t-slibgcc mips/t-slibgcc-irix"
527 extra_parts="crtbegin.o crtend.o crtfastmath.o irix-crti.o irix-crtn.o"
528 md_unwind_header=mips/irix6-unwind.h
529 ;;
530 mips*-*-netbsd*) # NetBSD/mips, either endian.
531 ;;
532 mips64*-*-linux* | mipsisa64*-*-linux*)
533 extra_parts="$extra_parts crtfastmath.o"
534 tmake_file="${tmake_file} t-crtfm mips/t-tpbit"
535 md_unwind_header=mips/linux-unwind.h
536 ;;
537 mips*-*-linux*) # Linux MIPS, either endian.
538 extra_parts="$extra_parts crtfastmath.o"
539 tmake_file="${tmake_file} t-crtfm"
540 md_unwind_header=mips/linux-unwind.h
541 ;;
542 mips*-*-openbsd*)
543 ;;
544 mips*-sde-elf*)
545 case "${with_newlib}" in
546 yes)
547 # newlib / libgloss.
548 ;;
549 *)
550 # MIPS toolkit libraries.
551 tmake_file=mips/t-sdemtk
552 ;;
553 esac
554 ;;
555 mipsisa32-*-elf* | mipsisa32el-*-elf*)
556 ;;
557 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
558 ;;
559 mipsisa64-*-elf* | mipsisa64el-*-elf*)
560 ;;
561 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
562 ;;
563 mipsisa64sr71k-*-elf*)
564 tmake_file=t-fdpbit
565 ;;
566 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
567 ;;
568 mips-*-elf* | mipsel-*-elf*)
569 ;;
570 mips64-*-elf* | mips64el-*-elf*)
571 ;;
572 mips64vr-*-elf* | mips64vrel-*-elf*)
573 ;;
574 mips64orion-*-elf* | mips64orionel-*-elf*)
575 ;;
576 mips*-*-rtems*)
577 ;;
578 mips-wrs-vxworks)
579 ;;
580 mipstx39-*-elf* | mipstx39el-*-elf*)
581 ;;
582 mmix-knuth-mmixware)
583 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
584 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
585 ;;
586 mn10300-*-*)
587 tmake_file=t-fdpbit
588 ;;
589 moxie-*-*)
590 tmake_file="moxie/t-moxie moxie/t-moxie-softfp"
591 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
592 ;;
593 pdp11-*-*)
594 tmake_file=t-fdpbit
595 ;;
596 picochip-*-*)
597 tmake_file="picochip/t-picochip t-fpbit"
598 ;;
599 powerpc-*-darwin*)
600 case ${host} in
601 *-*-darwin9* | *-*-darwin[12][0-9]*)
602 # libSystem contains unwind information for signal frames since
603 # Darwin 9.
604 ;;
605 *)
606 md_unwind_header=rs6000/darwin-unwind.h
607 ;;
608 esac
609 extra_parts="$extra_parts crt2.o"
610 ;;
611 powerpc64-*-darwin*)
612 extra_parts="$extra_parts crt2.o"
613 ;;
614 powerpc-*-freebsd*)
615 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-freebsd t-softfp"
616 ;;
617 powerpc-*-netbsd*)
618 ;;
619 powerpc-*-eabispe*)
620 tmake_file="${tmake_file} rs6000/t-ppccomm"
621 ;;
622 powerpc-*-eabisimaltivec*)
623 tmake_file=t-fdpbit
624 ;;
625 powerpc-*-eabisim*)
626 tmake_file=t-fdpbit
627 ;;
628 powerpc-*-elf*)
629 tmake_file=t-fdpbit
630 ;;
631 powerpc-*-eabialtivec*)
632 tmake_file=t-fdpbit
633 ;;
634 powerpc-xilinx-eabi*)
635 tmake_file=t-fdpbit
636 ;;
637 powerpc-*-eabi*)
638 tmake_file="${tmake_file} rs6000/t-ppccomm t-fdpbit"
639 ;;
640 powerpc-*-rtems*)
641 tmake_file=t-fdpbit
642 ;;
643 powerpc-*-linux* | powerpc64-*-linux*)
644 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128 t-softfp t-dfprules rs6000/t-ppc64-fp"
645 md_unwind_header=rs6000/linux-unwind.h
646 ;;
647 powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
648 tmake_file=t-fdpbit
649 ;;
650 powerpc-*-lynxos*)
651 tmake_file=t-fdpbit
652 ;;
653 powerpcle-*-elf*)
654 tmake_file=t-fdpbit
655 ;;
656 powerpcle-*-eabisim*)
657 tmake_file=t-fdpbit
658 ;;
659 powerpcle-*-eabi*)
660 tmake_file=t-fdpbit
661 ;;
662 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
663 md_unwind_header=rs6000/aix-unwind.h
664 tmake_file="t-fdpbit rs6000/t-ppc64-fp"
665 ;;
666 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
667 md_unwind_header=rs6000/aix-unwind.h
668 tmake_file="t-fdpbit rs6000/t-ppc64-fp"
669 ;;
670 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
671 md_unwind_header=rs6000/aix-unwind.h
672 tmake_file="t-fdpbit rs6000/t-ppc64-fp"
673 ;;
674 rx-*-elf)
675 extra_parts="crtbegin.o crtend.o"
676 tmake_file="rx/t-rx t-fdpbit"
677 ;;
678 s390-*-linux*)
679 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
680 md_unwind_header=s390/linux-unwind.h
681 ;;
682 s390x-*-linux*)
683 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
684 md_unwind_header=s390/linux-unwind.h
685 ;;
686 s390x-ibm-tpf*)
687 tmake_file="${tmake_file} s390/t-crtstuff s390/t-tpf t-eh-dw2-dip"
688 md_unwind_header=s390/tpf-unwind.h
689 ;;
690 score-*-elf)
691 ;;
692 sh-*-elf* | sh[12346l]*-*-elf* | \
693 sh-*-linux* | sh[2346lbe]*-*-linux* | \
694 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
695 sh64-*-netbsd* | sh64l*-*-netbsd*)
696 case ${host} in
697 sh*-*-linux*)
698 tmake_file="${tmake_file} sh/t-linux t-fdpbit"
699 md_unwind_header=sh/linux-unwind.h
700 ;;
701 sh*-*-netbsd*)
702 # NetBSD's C library includes a fast software FP library that
703 # has support for setting/setting the rounding mode, exception
704 # mask, etc. Therefore, we don't want to include software FP
705 # in libgcc.
706 ;;
707 sh*-*-*)
708 tmake_file=t-fdpbit
709 ;;
710 esac
711 ;;
712 sh-*-rtems*)
713 tmake_file=t-fdpbit
714 ;;
715 sh-wrs-vxworks)
716 tmake_file=t-fdpbit
717 ;;
718 sparc-*-netbsdelf*)
719 ;;
720 sparc64-*-openbsd*)
721 ;;
722 sparc-*-elf*)
723 case ${host} in
724 *-leon[3-9]*)
725 ;;
726 *)
727 tmake_file="sparc/t-softmul"
728 ;;
729 esac
730 tmake_file="${tmake_file} t-fdpbit t-crtin t-crtfm"
731 extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o"
732 ;;
733 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
734 case ${host} in
735 *-leon*)
736 tmake_file=t-fdpbit
737 ;;
738 esac
739 extra_parts="$extra_parts crtfastmath.o"
740 tmake_file="${tmake_file} t-crtfm"
741 md_unwind_header=sparc/linux-unwind.h
742 ;;
743 sparc-*-rtems*)
744 tmake_file="sparc/t-elf t-crtin t-crtfm t-rtems t-fdpbit"
745 extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o"
746 ;;
747 sparc*-*-solaris2*)
748 tmake_file="$tmake_file t-crtfm"
749 extra_parts="$extra_parts crtfastmath.o"
750 md_unwind_header=sparc/sol2-unwind.h
751 ;;
752 sparc64-*-elf*)
753 tmake_file="${tmake_file} t-crtin t-crtfm"
754 extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o"
755 ;;
756 sparc64-*-rtems*)
757 tmake_file="sparc/t-elf t-crtin t-crtfm t-rtems"
758 extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o"
759 ;;
760 sparc-wrs-vxworks)
761 ;;
762 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
763 tmake_file="$tmake_file t-crtfm"
764 extra_parts=crtfastmath.o
765 ;;
766 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
767 extra_parts="$extra_parts crtfastmath.o"
768 tmake_file="${tmake_file} t-crtfm"
769 md_unwind_header=sparc/linux-unwind.h
770 ;;
771 sparc64-*-netbsd*)
772 ;;
773 spu-*-elf*)
774 tmake_file="t-fdpbit spu/t-elf"
775 ;;
776 tic6x-*-*)
777 tmake_file="${tmake_file} t-gnu-prefix"
778 ;;
779 v850*-*-*)
780 tmake_file=t-fdpbit
781 ;;
782 vax-*-linux*)
783 ;;
784 vax-*-netbsdelf*)
785 ;;
786 vax-*-openbsd*)
787 ;;
788 xstormy16-*-elf)
789 tmake_file=t-fdpbit
790 ;;
791 xtensa*-*-elf*)
792 tmake_file=xtensa/t-xtensa
793 ;;
794 xtensa*-*-linux*)
795 tmake_file=xtensa/t-xtensa
796 md_unwind_header=xtensa/linux-unwind.h
797 ;;
798 am33_2.0-*-linux*)
799 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
800 tmake_file=t-fdpbit
801 ;;
802 m32c-*-elf*|m32c-*-rtems*)
803 ;;
804 mep*-*-*)
805 tmake_file=t-fdpbit
806 ;;
807 *)
808 echo "*** Configuration ${host} not supported" 1>&2
809 exit 1
810 ;;
811 esac
812
813 case ${host} in
814 i[34567]86-*-linux* | x86_64-*-linux* | \
815 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | \
816 i[34567]86-*-gnu*)
817 tmake_file="${tmake_file} t-tls"
818 if test "$libgcc_cv_cfi" = "yes"; then
819 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
820 fi
821 ;;
822 esac
823
824 case ${host} in
825 i[34567]86-*-darwin* | x86_64-*-darwin* | \
826 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
827 i[34567]86-*-linux* | x86_64-*-linux* | \
828 i[34567]86-*-gnu* | \
829 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
830 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \
831 i[34567]86-*-freebsd* | x86_64-*-freebsd*)
832 if test "${host_address}" = 32; then
833 tmake_file="${tmake_file} t-softfp i386/${host_address}/t-fprules-softfp"
834 fi
835 ;;
836 esac
837
838 case ${host} in
839 i[34567]86-*-linux* | x86_64-*-linux*)
840 # Provide backward binary compatibility for 64bit Linux/x86.
841 if test "${host_address}" = 64; then
842 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
843 fi
844 ;;
845 esac