]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config.host
* config.host (ia64*-*-elf*): Build ia64 specific libgcc parts.
[thirdparty/gcc.git] / libgcc / config.host
CommitLineData
fa958513
DJ
1# libgcc host-specific configuration file.
2# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
3# 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 2, 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 COPYING. If not, write to the Free
19#Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
20#02110-1301, USA.
21
22# This is the libgcc host-specific configuration file
23# where a configuration type is mapped to different system-specific
24# definitions and files. This is invoked by the autoconf-generated
25# configure script. Putting it in a separate shell file lets us skip
26# running autoconf when modifying host-specific information.
27
28# This file bears an obvious resemblance to gcc/config.gcc. The cases
29# should be kept similar, to ease moving library-specific settings
30# from config.gcc to this file. That is also why tmake_file is
31# left as tmake_file, rather than hmake_file, even though this library
32# switches on ${host}.
33
34# This file switches on the shell variable ${host}, and also uses the
35# following shell variables:
36#
37# with_* Various variables as set by configure.
38
39# This file sets the following shell variables for use by the
40# autoconf-generated configure script:
41#
42# asm_hidden_op The assembler pseudo-op to use for hide
43# lists for object files implemented in
44# assembly (with -fvisibility=hidden for C).
45# The default is ".hidden".
46# cpu_type The name of the cpu, if different from the first
47# chunk of the canonical host name.
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# tmake_file A list of machine-description-specific
55# makefile-fragments, if different from
56# "$cpu_type/t-$cpu_type".
57
58asm_hidden_op=.hidden
59extra_parts=
60tmake_file=
61
62# Set default cpu_type so it can be updated in each machine entry.
63cpu_type=`echo ${host} | sed 's/-.*$//'`
64case ${host} in
65m32c*-*-*)
66 cpu_type=m32c
67 ;;
68alpha*-*-*)
69 cpu_type=alpha
70 ;;
71am33_2.0-*-linux*)
72 cpu_type=mn10300
73 ;;
74strongarm*-*-*)
75 cpu_type=arm
76 ;;
77arm*-*-*)
78 cpu_type=arm
79 ;;
80bfin*-*)
81 cpu_type=bfin
82 ;;
83ep9312*-*-*)
84 cpu_type=arm
85 ;;
7d33c31d
KH
86fido-*-*)
87 cpu_type=m68k
88 ;;
fa958513
DJ
89frv*) cpu_type=frv
90 ;;
91xscale-*-*)
92 cpu_type=arm
93 ;;
94i[34567]86-*-*)
95 cpu_type=i386
96 ;;
97x86_64-*-*)
98 cpu_type=i386
99 ;;
100ia64-*-*)
101 ;;
102hppa*-*-* | parisc*-*-*)
103 cpu_type=pa
104 ;;
105m32r*-*-*)
106 cpu_type=m32r
107 ;;
108m680[012]0-*-*)
109 cpu_type=m68k
110 ;;
111m68k-*-*)
112 ;;
113mips*-*-*)
114 cpu_type=mips
115 ;;
116powerpc*-*-*)
117 cpu_type=rs6000
118 ;;
119rs6000*-*-*)
120 ;;
121score*-*-*)
122 cpu_type=score
123 ;;
124sparc64*-*-*)
125 cpu_type=sparc
126 ;;
127sparc*-*-*)
128 cpu_type=sparc
129 ;;
130spu*-*-*)
131 cpu_type=spu
132 ;;
133s390*-*-*)
134 cpu_type=s390
135 ;;
136# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
137sh[123456789lbe]*-*-*)
138 cpu_type=sh
139 ;;
140tic4x-*-*)
141 cpu_type=c4x
142 ;;
143esac
144
145# Common parts for widely ported systems.
146case ${host} in
147*-*-darwin*)
148 asm_hidden_op=.private_extern
149 tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin"
150 ;;
151*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
152 # This is the place-holder for the generic a.out configuration
153 # of FreeBSD. No actual configuration resides here since
154 # there was only ever a bare-bones ix86 configuration for
155 # a.out and it exists solely in the machine-specific section.
156 # This place-holder must exist to avoid dropping into
157 # the generic ELF configuration of FreeBSD (i.e. it must be
158 # ordered before that section).
159 ;;
160*-*-freebsd*)
161 # This is the generic ELF configuration of FreeBSD. Later
162 # machine-specific sections may refine and add to this
163 # configuration.
164 ;;
165*-*-linux*libc1* | *-*-linux*aout*)
166 # Avoid the generic linux case.
167 ;;
168*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
169 # Must come before *-*-gnu* (because of *-*-linux-gnu* systems).
170 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
171 ;;
172*-*-gnu*)
173 ;;
174*-*-netbsd*)
175 ;;
176*-*-openbsd*)
177 ;;
178*-*-rtems*)
179 ;;
180*-*-vxworks*)
181 ;;
182*-*-elf)
183 ;;
184esac
185
186case ${host} in
187# Support site-specific machine types.
188*local*)
189 rest=`echo ${host} | sed -e "s/$cpu_type-//"`
190 if test -f $srcdir/config/${cpu_type}/t-$rest
191 then tmake_file=${cpu_type}/t-$rest
192 fi
193 ;;
194alpha*-*-unicosmk*)
195 ;;
196alpha*-*-linux*)
197 tmake_file="${tmake_file} alpha/t-crtfm"
5ea41e3a 198 extra_parts="$extra_parts crtfastmath.o"
fa958513
DJ
199 ;;
200alpha*-*-gnu*)
201 ;;
202alpha*-*-freebsd*)
203 ;;
204alpha*-*-netbsd*)
205 ;;
206alpha*-*-openbsd*)
207 ;;
208alpha*-dec-osf[45]*)
209 ;;
210alpha64-dec-*vms*)
211 ;;
212alpha*-dec-*vms*)
213 ;;
214arc-*-elf*)
215 ;;
216arm-*-coff* | armel-*-coff*)
217 ;;
218arm-semi-aof | armel-semi-aof)
219 ;;
220arm-wrs-vxworks)
221 ;;
222arm*-*-freebsd*|strongarm*-*-freebsd*)
223 ;;
224arm*-*-netbsdelf*)
225 ;;
226arm*-*-netbsd*)
227 ;;
228arm*-*-linux*) # ARM GNU/Linux with ELF
229 ;;
230arm*-*-uclinux*) # ARM ucLinux
231 ;;
232arm*-*-ecos-elf)
233 ;;
234arm*-*-eabi* | arm*-*-symbianelf* )
235 ;;
236arm*-*-rtems*)
237 ;;
238arm*-*-elf | ep9312-*-elf)
239 ;;
240arm*-wince-pe*)
241 ;;
242arm-*-pe*)
243 ;;
244arm*-*-kaos*)
245 ;;
246avr-*-rtems*)
247 ;;
248avr-*-*)
249 ;;
250bfin*-elf*)
251 ;;
252bfin*-uclinux*)
253 ;;
344189f9
BS
254bfin*-linux-uclibc*)
255 # No need to build crtbeginT.o on uClibc systems. Should probably
256 # be moved to the OS specific section above.
257 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
258 ;;
fa958513
DJ
259bfin*-*)
260 ;;
261c4x-*-rtems* | tic4x-*-rtems*)
262 ;;
263c4x-* | tic4x-*)
264 ;;
265cris-*-aout)
266 ;;
267cris-*-elf | cris-*-none)
8fce4e31 268 extra_parts="crtbegin.o crtend.o"
fa958513
DJ
269 ;;
270cris-*-linux*)
271 ;;
272crx-*-elf)
273 ;;
7d33c31d
KH
274fido-*-elf)
275 ;;
fa958513
DJ
276fr30-*-elf)
277 ;;
278frv-*-elf)
279 ;;
280frv-*-*linux*)
281 ;;
282h8300-*-rtemscoff*)
283 ;;
284h8300-*-rtems*)
285 ;;
286h8300-*-elf*)
287 ;;
288h8300-*-*)
289 ;;
290hppa*64*-*-linux* | parisc*64*-*-linux*)
291 ;;
292hppa*-*-linux* | parisc*-*-linux*)
293 ;;
294hppa1.1-*-pro*)
295 ;;
296hppa1.1-*-osf*)
297 ;;
298hppa1.1-*-bsd*)
299 ;;
300hppa[12]*-*-hpux10*)
301 ;;
302hppa*64*-*-hpux11*)
303 ;;
304hppa[12]*-*-hpux11*)
305 ;;
306i[34567]86-*-darwin*)
307 ;;
308x86_64-*-darwin*)
309 tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin"
310 ;;
311i[34567]86-*-elf*)
312 ;;
3ae3dbd6
HK
313x86_64-*-elf*)
314 ;;
fa958513
DJ
315i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
316 ;;
317i[34567]86-*-aout*)
318 ;;
319i[34567]86-*-beoself* | i[34567]86-*-beos*)
320 ;;
321i[34567]86-*-freebsd*)
322 ;;
323x86_64-*-freebsd*)
324 ;;
325i[34567]86-*-netbsdelf*)
326 ;;
327i[34567]86-*-netbsd*)
328 ;;
329x86_64-*-netbsd*)
330 ;;
331i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
332 ;;
333i[34567]86-*-openbsd*)
334 ;;
335i[34567]86-*-coff*)
336 ;;
337i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu)
577565f9
UB
338 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
339 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
fa958513
DJ
340 ;;
341x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
577565f9
UB
342 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
343 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
fa958513
DJ
344 ;;
345i[34567]86-*-gnu*)
346 ;;
347i[34567]86-pc-msdosdjgpp*)
348 ;;
349i[34567]86-*-lynxos*)
350 ;;
351i[3456x]86-*-netware*)
352 case /${with_ld} in
353 */nwld)
354 tmake_file="${tmake_file} i386/t-nwld"
355 ;;
356 esac
357 ;;
358i[34567]86-*-nto-qnx*)
359 ;;
360i[34567]86-*-rtems*)
361 ;;
362i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
363 ;;
364i[34567]86-*-solaris2*)
365 ;;
366i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
367 ;;
368i[34567]86-*-sysv4*) # Intel 80386's running system V.4
369 ;;
370i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
371 ;;
9bd196f0 372i[34567]86-*-pe)
fa958513 373 ;;
9bd196f0 374i[34567]86-*-cygwin* | i[34567]86-*-mingw*)
76f5e200
DS
375 extra_parts="crtbegin.o crtend.o crtfastmath.o"
376 tmake_file="i386/t-cygming i386/t-crtfm"
9bd196f0
ZM
377 ;;
378x86_64-*-mingw*)
fa958513
DJ
379 ;;
380i[34567]86-*-uwin*)
381 ;;
382i[34567]86-*-interix3*)
383 ;;
384i[34567]86-*-kaos*)
385 ;;
386ia64*-*-elf*)
f43e89a3
RIL
387 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
388 tmake_file="ia64/t-ia64"
fa958513
DJ
389 ;;
390ia64*-*-freebsd*)
391 ;;
392ia64*-*-linux*)
393 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1555beba 394 tmake_file="ia64/t-ia64"
fa958513
DJ
395 ;;
396ia64*-*-hpux*)
397 ;;
398iq2000*-*-elf*)
399 ;;
400m32r-*-elf*)
401 ;;
402m32rle-*-elf*)
403 ;;
404m32r-*-linux*)
405 ;;
406m32rle-*-linux*)
407 ;;
408m68hc11-*-*|m6811-*-*)
409 ;;
410m68hc12-*-*|m6812-*-*)
411 ;;
412m68k-*-aout*)
413 ;;
414m68k-*-coff*)
415 ;;
416m68020-*-elf* | m68k-*-elf*)
417 ;;
418m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
419 ;;
420m68k*-*-openbsd*)
421 ;;
422m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
423 ;;
424m68k-*-linux*) # Motorola m68k's running GNU/Linux
425 # with ELF format using glibc 2
426 # aka the GNU/Linux C library 6.
427 ;;
428m68k-*-rtems*)
429 ;;
430mcore-*-elf)
431 ;;
432mcore-*-pe*)
433 ;;
434mips-sgi-irix[56]*)
435 ;;
436mips*-*-netbsd*) # NetBSD/mips, either endian.
437 ;;
438mips64*-*-linux*)
439 ;;
440mips*-*-linux*) # Linux MIPS, either endian.
441 ;;
442mips*-*-openbsd*)
443 ;;
444mipsisa32-*-elf* | mipsisa32el-*-elf*)
445 ;;
446mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
447 ;;
448mipsisa64-*-elf* | mipsisa64el-*-elf*)
449 ;;
450mipsisa64sr71k-*-elf*)
451 ;;
452mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
453 ;;
454mips-*-elf* | mipsel-*-elf*)
455 ;;
456mips64-*-elf* | mips64el-*-elf*)
457 ;;
458mips64vr-*-elf* | mips64vrel-*-elf*)
459 ;;
460mips64orion-*-elf* | mips64orionel-*-elf*)
461 ;;
462mips*-*-rtems*)
463 ;;
464mips-wrs-vxworks)
465 ;;
466mips-wrs-windiss) # Instruction-level simulator for VxWorks.
467 ;;
468mipstx39-*-elf* | mipstx39el-*-elf*)
469 ;;
470mmix-knuth-mmixware)
471 ;;
472mn10300-*-*)
473 ;;
474mt-*-elf)
475 ;;
476ns32k-*-netbsdelf*)
477 echo "GCC does not yet support the ${host} target"; exit 1
478 ;;
479ns32k-*-netbsd*)
480 ;;
481pdp11-*-bsd)
482 ;;
483pdp11-*-*)
484 ;;
485powerpc64-*-linux*)
486 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
487 ;;
488powerpc64-*-gnu*)
489 tmake_file="${tmake_file} rs6000/t-ldbl128"
490 ;;
491powerpc-*-beos*)
492 ;;
493powerpc-*-darwin*)
494 ;;
495powerpc64-*-darwin*)
496 ;;
497powerpc*-*-freebsd*)
498 ;;
499powerpc-*-netbsd*)
500 ;;
501powerpc-*-chorusos*)
502 ;;
503powerpc-*-eabispe*)
504 ;;
505powerpc-*-eabisimaltivec*)
506 ;;
507powerpc-*-eabisim*)
508 ;;
509powerpc-*-elf*)
510 ;;
511powerpc-*-eabialtivec*)
512 ;;
513powerpc-*-eabi*)
514 ;;
515powerpc-*-rtems*)
516 ;;
517powerpc-*-linux*altivec*)
518 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
519 ;;
520powerpc-*-linux*spe*)
521 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
522 ;;
523powerpc-*-linux*)
524 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
525 ;;
526powerpc-*-gnu-gnualtivec*)
527 tmake_file="${tmake_file} rs6000/t-ldbl128"
528 ;;
529powerpc-*-gnu*)
530 tmake_file="${tmake_file} rs6000/t-ldbl128"
531 ;;
532powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
533 ;;
534powerpc-wrs-windiss*) # Instruction-level simulator for VxWorks.
535 ;;
536powerpc-*-lynxos*)
537 ;;
538powerpcle-*-sysv*)
539 ;;
540powerpcle-*-elf*)
541 ;;
542powerpcle-*-eabisim*)
543 ;;
544powerpcle-*-eabi*)
545 ;;
546powerpc-*-kaos*)
547 ;;
548powerpcle-*-kaos*)
549 ;;
550rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
551 ;;
552rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
553 ;;
554rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
555 ;;
556rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
557 ;;
558s390-*-linux*)
559 ;;
560s390x-*-linux*)
561 ;;
562s390x-ibm-tpf*)
563 ;;
564score-*-elf)
565 ;;
566sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
567sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
568 sh-*-linux* | sh[346lbe]*-*-linux* | \
569 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
570 sh64-*-netbsd* | sh64l*-*-netbsd*)
26900826
KK
571 case ${host} in
572 sh*-*-linux*)
573 tmake_file="${tmake_file} sh/t-linux"
574 ;;
575 esac
fa958513
DJ
576 ;;
577sh-*-rtemscoff*)
578 ;;
579sh-*-rtems*)
580 ;;
581sh-wrs-vxworks)
582 ;;
583sh-*-*)
584 ;;
585sparc-*-netbsdelf*)
586 ;;
587sparc64-*-openbsd*)
588 ;;
589sparc-*-elf*)
590 ;;
591sparc-*-linux*) # SPARC's running GNU/Linux, libc6
592 extra_parts="$extra_parts crtfastmath.o"
593 tmake_file="${tmake_file} sparc/t-crtfm"
594 ;;
595sparc-*-rtems*)
596 ;;
597sparc64-*-solaris2* | sparcv9-*-solaris2*)
598 ;;
599sparc-*-solaris2*)
600 ;;
601sparc-*-sysv4*)
602 ;;
603sparc64-*-elf*)
604 ;;
1910440e
RS
605sparc-wrs-vxworks)
606 ;;
fa958513
DJ
607sparc64-*-freebsd*|ultrasparc-*-freebsd*)
608 ;;
609sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
610 extra_parts="$extra_parts crtfastmath.o"
611 tmake_file="${tmake_file} sparc/t-crtfm"
612 ;;
613sparc64-*-netbsd*)
614 ;;
615spu-*-elf*)
616 ;;
617strongarm-*-elf*)
618 ;;
619strongarm-*-pe)
620 ;;
621strongarm-*-kaos*)
622 ;;
623v850e1-*-*)
624 ;;
625v850e-*-*)
626 ;;
627v850-*-*)
628 ;;
629vax-*-bsd*) # VAXen running BSD
630 ;;
631vax-*-sysv*) # VAXen running system V
632 ;;
633vax-*-netbsdelf*)
634 ;;
635vax-*-netbsd*)
636 ;;
637vax-*-openbsd*)
638 ;;
639vax-*-ultrix*) # VAXen running ultrix
640 ;;
641xscale-*-elf)
642 ;;
643xscale-*-coff)
644 ;;
645xstormy16-*-elf)
646 ;;
647xtensa-*-elf*)
648 ;;
649xtensa-*-linux*)
650 ;;
651am33_2.0-*-linux*)
652 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
653 ;;
654m32c-*-elf*)
655 ;;
656*)
657 echo "*** Configuration ${host} not supported" 1>&2
658 exit 1
659 ;;
660esac
6f461e76
L
661
662case ${host} in
663i[34567]86-*-linux* | x86_64-*-linux*)
664 tmake_file="${tmake_file} t-tls"
665 ;;
666esac