OSDN Git Service

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