OSDN Git Service

* config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-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         extra_parts="$extra_parts crtfastmath.o"
196         ;;
197 alpha*-*-gnu*)
198         ;;
199 alpha*-*-freebsd*)
200         ;;
201 alpha*-*-netbsd*)
202         ;;
203 alpha*-*-openbsd*)
204         ;;
205 alpha*-dec-osf[45]*)
206         ;;
207 alpha64-dec-*vms*)
208         ;;
209 alpha*-dec-*vms*)
210         ;;
211 arc-*-elf*)
212         ;;
213 arm-*-coff* | armel-*-coff*)
214         ;;
215 arm-semi-aof | armel-semi-aof)
216         ;;
217 arm-wrs-vxworks)
218         ;;
219 arm*-*-freebsd*|strongarm*-*-freebsd*)
220         ;;
221 arm*-*-netbsdelf*)
222         ;;
223 arm*-*-netbsd*)
224         ;;
225 arm*-*-linux*)                  # ARM GNU/Linux with ELF
226         ;;
227 arm*-*-uclinux*)                # ARM ucLinux
228         ;;
229 arm*-*-ecos-elf)
230         ;;
231 arm*-*-eabi* | arm*-*-symbianelf* )
232         ;;
233 arm*-*-rtems*)
234         ;;
235 arm*-*-elf | ep9312-*-elf)
236         ;;
237 arm*-wince-pe*)
238         ;;
239 arm-*-pe*)
240         ;;
241 arm*-*-kaos*)
242         ;;
243 avr-*-rtems*)
244         ;;
245 avr-*-*)
246         ;;
247 bfin*-elf*)
248         ;;
249 bfin*-uclinux*)
250         ;;
251 bfin*-linux-uclibc*)
252         # No need to build crtbeginT.o on uClibc systems.  Should probably
253         # be moved to the OS specific section above.
254         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
255         ;;
256 bfin*-*)
257         ;;
258 c4x-*-rtems* | tic4x-*-rtems*)
259         ;;
260 c4x-* | tic4x-*)
261         ;;
262 cris-*-aout)
263         ;;
264 cris-*-elf | cris-*-none)
265         extra_parts="crtbegin.o crtend.o"
266         ;;
267 cris-*-linux*)
268         ;;
269 crx-*-elf)
270         ;;
271 fr30-*-elf)
272         ;;
273 frv-*-elf)
274         ;;
275 frv-*-*linux*)
276         ;;
277 h8300-*-rtemscoff*)
278         ;;
279 h8300-*-rtems*)
280         ;;
281 h8300-*-elf*)
282         ;;
283 h8300-*-*)
284         ;;
285 hppa*64*-*-linux* | parisc*64*-*-linux*)
286         ;;
287 hppa*-*-linux* | parisc*-*-linux*)
288         ;;
289 hppa1.1-*-pro*)
290         ;;
291 hppa1.1-*-osf*)
292         ;;
293 hppa1.1-*-bsd*)
294         ;;
295 hppa[12]*-*-hpux10*)
296         ;;
297 hppa*64*-*-hpux11*)
298         ;;
299 hppa[12]*-*-hpux11*)
300         ;;
301 i[34567]86-*-darwin*)
302         ;;
303 x86_64-*-darwin*)
304         tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin"
305         ;;
306 i[34567]86-*-elf*)
307         ;;
308 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
309         ;;
310 i[34567]86-*-aout*)
311         ;;
312 i[34567]86-*-beoself* | i[34567]86-*-beos*)
313         ;;
314 i[34567]86-*-freebsd*)
315         ;;
316 x86_64-*-freebsd*)
317         ;;
318 i[34567]86-*-netbsdelf*)
319         ;;
320 i[34567]86-*-netbsd*)
321         ;;
322 x86_64-*-netbsd*)
323         ;;
324 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
325         ;;
326 i[34567]86-*-openbsd*)
327         ;;
328 i[34567]86-*-coff*)
329         ;;
330 i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu)
331         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
332         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
333         ;;
334 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
335         extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
336         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
337         ;;
338 i[34567]86-*-gnu*)
339         ;;
340 i[34567]86-pc-msdosdjgpp*)
341         ;;
342 i[34567]86-*-lynxos*)
343         ;;
344 i[3456x]86-*-netware*)
345         case /${with_ld} in
346         */nwld)
347                 tmake_file="${tmake_file} i386/t-nwld"
348                 ;;
349         esac
350         ;;
351 i[34567]86-*-nto-qnx*)
352         ;;
353 i[34567]86-*-rtems*)
354         ;;
355 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
356         ;;
357 i[34567]86-*-solaris2*)
358         ;;
359 i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
360        ;;
361 i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
362         ;;
363 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
364         ;;
365 i[34567]86-*-pe | i[34567]86-*-cygwin*)
366         ;;
367 i[34567]86-*-mingw32* | x86_64-*-mingw*)
368         ;;
369 i[34567]86-*-uwin*)
370         ;;
371 i[34567]86-*-interix3*)
372         ;;
373 i[34567]86-*-kaos*)
374         ;;
375 ia64*-*-elf*)
376         ;;
377 ia64*-*-freebsd*)
378         ;;
379 ia64*-*-linux*)
380         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
381         tmake_file="ia64/t-ia64"
382         ;;
383 ia64*-*-hpux*)
384         ;;
385 iq2000*-*-elf*)
386         ;;
387 m32r-*-elf*)
388         ;;
389 m32rle-*-elf*)
390         ;;
391 m32r-*-linux*)
392         ;;
393 m32rle-*-linux*)
394         ;;
395 m68hc11-*-*|m6811-*-*)
396         ;;
397 m68hc12-*-*|m6812-*-*)
398         ;;
399 m68k-*-aout*)
400         ;;
401 m68k-*-coff*)
402         ;;
403 m68020-*-elf* | m68k-*-elf*)
404         ;;
405 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
406         ;;
407 m68k*-*-openbsd*)
408         ;;
409 m68k-*-uclinux*)                # Motorola m68k/ColdFire running uClinux with uClibc
410         ;;
411 m68k-*-linux*)          # Motorola m68k's running GNU/Linux
412                                 # with ELF format using glibc 2
413                                 # aka the GNU/Linux C library 6.
414         ;;
415 m68k-*-rtems*)
416         ;;
417 mcore-*-elf)
418         ;;
419 mcore-*-pe*)
420         ;;
421 mips-sgi-irix[56]*)
422         ;;
423 mips*-*-netbsd*)                        # NetBSD/mips, either endian.
424         ;;
425 mips64*-*-linux*)
426         ;;
427 mips*-*-linux*)                         # Linux MIPS, either endian.
428         ;;
429 mips*-*-openbsd*)
430         ;;
431 mipsisa32-*-elf* | mipsisa32el-*-elf*)
432         ;;
433 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
434         ;;
435 mipsisa64-*-elf* | mipsisa64el-*-elf*)
436         ;;
437 mipsisa64sr71k-*-elf*)
438         ;;
439 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
440         ;;
441 mips-*-elf* | mipsel-*-elf*)
442         ;;
443 mips64-*-elf* | mips64el-*-elf*)
444         ;;
445 mips64vr-*-elf* | mips64vrel-*-elf*)
446         ;;
447 mips64orion-*-elf* | mips64orionel-*-elf*)
448         ;;
449 mips*-*-rtems*)
450         ;;
451 mips-wrs-vxworks)
452         ;;
453 mips-wrs-windiss)       # Instruction-level simulator for VxWorks.
454         ;;
455 mipstx39-*-elf* | mipstx39el-*-elf*)
456         ;;
457 mmix-knuth-mmixware)
458         ;;
459 mn10300-*-*)
460         ;;
461 mt-*-elf)
462         ;;
463 ns32k-*-netbsdelf*)
464         echo "GCC does not yet support the ${host} target"; exit 1
465         ;;
466 ns32k-*-netbsd*)
467         ;;
468 pdp11-*-bsd)
469         ;;
470 pdp11-*-*)
471         ;;
472 powerpc64-*-linux*)
473         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
474         ;;
475 powerpc64-*-gnu*)
476         tmake_file="${tmake_file} rs6000/t-ldbl128"
477         ;;
478 powerpc-*-beos*)
479         ;;
480 powerpc-*-darwin*)
481         ;;
482 powerpc64-*-darwin*)
483         ;;
484 powerpc*-*-freebsd*)
485         ;;
486 powerpc-*-netbsd*)
487         ;;
488 powerpc-*-chorusos*)
489         ;;
490 powerpc-*-eabispe*)
491         ;;
492 powerpc-*-eabisimaltivec*)
493         ;;
494 powerpc-*-eabisim*)
495         ;;
496 powerpc-*-elf*)
497         ;;
498 powerpc-*-eabialtivec*)
499         ;;
500 powerpc-*-eabi*)
501         ;;
502 powerpc-*-rtems*)
503         ;;
504 powerpc-*-linux*altivec*)
505         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
506         ;;
507 powerpc-*-linux*spe*)
508         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
509         ;;
510 powerpc-*-linux*)
511         tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
512         ;;
513 powerpc-*-gnu-gnualtivec*)
514         tmake_file="${tmake_file} rs6000/t-ldbl128"
515         ;;
516 powerpc-*-gnu*)
517         tmake_file="${tmake_file} rs6000/t-ldbl128"
518         ;;
519 powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
520         ;;
521 powerpc-wrs-windiss*)  # Instruction-level simulator for VxWorks.
522         ;;
523 powerpc-*-lynxos*)
524         ;;
525 powerpcle-*-sysv*)
526         ;;
527 powerpcle-*-elf*)
528         ;;
529 powerpcle-*-eabisim*)
530         ;;
531 powerpcle-*-eabi*)
532         ;;
533 powerpc-*-kaos*)
534         ;;
535 powerpcle-*-kaos*)
536         ;;
537 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
538         ;;
539 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
540         ;;
541 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
542         ;;
543 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
544         ;;
545 s390-*-linux*)
546         ;;
547 s390x-*-linux*)
548         ;;
549 s390x-ibm-tpf*)
550         ;;
551 score-*-elf)
552         ;;
553 sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
554 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
555   sh-*-linux* | sh[346lbe]*-*-linux* | \
556   sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
557    sh64-*-netbsd* | sh64l*-*-netbsd*)
558         case ${host} in
559         sh*-*-linux*)
560                 tmake_file="${tmake_file} sh/t-linux"
561                 ;;
562         esac
563         ;;
564 sh-*-rtemscoff*)
565         ;;
566 sh-*-rtems*)
567         ;;
568 sh-wrs-vxworks)
569         ;;
570 sh-*-*)
571         ;;
572 sparc-*-netbsdelf*)
573         ;;
574 sparc64-*-openbsd*)
575         ;;
576 sparc-*-elf*)
577         ;;
578 sparc-*-linux*)         # SPARC's running GNU/Linux, libc6
579         extra_parts="$extra_parts crtfastmath.o"
580         tmake_file="${tmake_file} sparc/t-crtfm"
581         ;;
582 sparc-*-rtems*)
583         ;;
584 sparc64-*-solaris2* | sparcv9-*-solaris2*)
585         ;;
586 sparc-*-solaris2*)
587         ;;
588 sparc-*-sysv4*)
589         ;;
590 sparc64-*-elf*)
591         ;;
592 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
593         ;;
594 sparc64-*-linux*)               # 64-bit SPARC's running GNU/Linux
595         extra_parts="$extra_parts crtfastmath.o"
596         tmake_file="${tmake_file} sparc/t-crtfm"
597         ;;
598 sparc64-*-netbsd*)
599         ;;
600 spu-*-elf*)
601         ;;
602 strongarm-*-elf*)
603         ;;
604 strongarm-*-pe)
605         ;;
606 strongarm-*-kaos*)
607         ;;
608 v850e1-*-*)
609         ;;
610 v850e-*-*)
611         ;;
612 v850-*-*)
613         ;;
614 vax-*-bsd*)                     # VAXen running BSD
615         ;;
616 vax-*-sysv*)                    # VAXen running system V
617         ;;
618 vax-*-netbsdelf*)
619         ;;
620 vax-*-netbsd*)
621         ;;
622 vax-*-openbsd*)
623         ;;
624 vax-*-ultrix*)                  # VAXen running ultrix
625         ;;
626 xscale-*-elf)
627         ;;
628 xscale-*-coff)
629         ;;
630 xstormy16-*-elf)
631         ;;
632 xtensa-*-elf*)
633         ;;
634 xtensa-*-linux*)
635         ;;
636 am33_2.0-*-linux*)
637         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
638         ;;
639 m32c-*-elf*)
640         ;;
641 *)
642         echo "*** Configuration ${host} not supported" 1>&2
643         exit 1
644         ;;
645 esac