1 # libgcc host-specific configuration file.
2 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3 # 2008 Free Software Foundation, Inc.
5 #This file is part of GCC.
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
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
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
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.
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}.
34 # This file switches on the shell variable ${host}, and also uses the
35 # following shell variables:
37 # with_* Various variables as set by configure.
39 # This file sets the following shell variables for use by the
40 # autoconf-generated configure script:
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".
62 # Set default cpu_type so it can be updated in each machine entry.
63 cpu_type=`echo ${host} | sed 's/-.*$//'`
105 hppa*-*-* | parisc*-*-*)
139 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
140 sh[123456789lbe]*-*-*)
145 # Common parts for widely ported systems.
148 asm_hidden_op=.private_extern
149 tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin"
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).
161 # This is the generic ELF configuration of FreeBSD. Later
162 # machine-specific sections may refine and add to this
165 *-*-linux*libc1* | *-*-linux*aout*)
166 # Avoid the generic linux case.
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"
187 # Support site-specific machine types.
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
197 tmake_file="${tmake_file} alpha/t-crtfm"
198 extra_parts="$extra_parts crtfastmath.o"
216 arm-*-coff* | armel-*-coff*)
218 arm-semi-aof | armel-semi-aof)
222 arm*-*-freebsd*|strongarm*-*-freebsd*)
228 arm*-*-linux*) # ARM GNU/Linux with ELF
230 arm*-*-uclinux*) # ARM ucLinux
234 arm*-*-eabi* | arm*-*-symbianelf* )
238 arm*-*-elf | ep9312-*-elf)
249 # Make HImode functions for AVR
250 tmake_file=${cpu_type}/t-avr
257 # No need to build crtbeginT.o on uClibc systems. Should probably
258 # be moved to the OS specific section above.
259 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
265 crisv32-*-elf | crisv32-*-none | cris-*-elf | cris-*-none)
266 extra_parts="crtbegin.o crtend.o"
268 cris-*-linux* | crisv32-*-linux*)
286 hppa*64*-*-linux* | parisc*64*-*-linux*)
288 hppa*-*-linux* | parisc*-*-linux*)
302 i[34567]86-*-darwin*)
305 tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin"
311 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
315 i[34567]86-*-beoself* | i[34567]86-*-beos*)
317 i[34567]86-*-freebsd*)
321 i[34567]86-*-netbsdelf*)
323 i[34567]86-*-netbsd*)
327 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
329 i[34567]86-*-openbsd*)
333 i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu)
334 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
335 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
337 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
338 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
339 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
343 i[34567]86-pc-msdosdjgpp*)
345 i[34567]86-*-lynxos*)
347 i[3456x]86-*-netware*)
350 tmake_file="${tmake_file} i386/t-nwld"
354 i[34567]86-*-nto-qnx*)
358 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
360 i[34567]86-*-solaris2*)
362 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
364 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
366 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
370 i[34567]86-*-cygwin* | i[34567]86-*-mingw*)
371 extra_parts="crtbegin.o crtend.o crtfastmath.o"
372 tmake_file="i386/t-cygming i386/t-crtfm"
378 i[34567]86-*-interix3*)
383 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
384 tmake_file="ia64/t-ia64"
389 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
390 tmake_file="ia64/t-ia64"
404 m68hc11-*-*|m6811-*-*)
406 m68hc12-*-*|m6812-*-*)
412 m68020-*-elf* | m68k-*-elf*)
414 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
418 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
420 m68k-*-linux*) # Motorola m68k's running GNU/Linux
421 # with ELF format using glibc 2
422 # aka the GNU/Linux C library 6.
432 mips*-*-netbsd*) # NetBSD/mips, either endian.
436 mips*-*-linux*) # Linux MIPS, either endian.
440 mipsisa32-*-elf* | mipsisa32el-*-elf*)
442 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
444 mipsisa64-*-elf* | mipsisa64el-*-elf*)
446 mipsisa64sr71k-*-elf*)
448 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
450 mips-*-elf* | mipsel-*-elf*)
452 mips64-*-elf* | mips64el-*-elf*)
454 mips64vr-*-elf* | mips64vrel-*-elf*)
456 mips64orion-*-elf* | mips64orionel-*-elf*)
462 mips-wrs-windiss) # Instruction-level simulator for VxWorks.
464 mipstx39-*-elf* | mipstx39el-*-elf*)
477 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
480 tmake_file="${tmake_file} rs6000/t-ldbl128"
496 powerpc-*-eabisimaltivec*)
502 powerpc-*-eabialtivec*)
508 powerpc-*-linux*altivec*)
509 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
511 powerpc-*-linux*spe*)
512 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
515 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
517 powerpc-*-gnu-gnualtivec*)
518 tmake_file="${tmake_file} rs6000/t-ldbl128"
521 tmake_file="${tmake_file} rs6000/t-ldbl128"
523 powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
525 powerpc-wrs-windiss*) # Instruction-level simulator for VxWorks.
533 powerpcle-*-eabisim*)
541 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
543 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
545 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
547 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
557 sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
558 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
559 sh-*-linux* | sh[346lbe]*-*-linux* | \
560 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
561 sh64-*-netbsd* | sh64l*-*-netbsd*)
564 tmake_file="${tmake_file} sh/t-linux"
580 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
581 extra_parts="$extra_parts crtfastmath.o"
582 tmake_file="${tmake_file} sparc/t-crtfm"
586 sparc64-*-solaris2* | sparcv9-*-solaris2*)
596 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
598 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
599 extra_parts="$extra_parts crtfastmath.o"
600 tmake_file="${tmake_file} sparc/t-crtfm"
618 vax-*-bsd*) # VAXen running BSD
620 vax-*-sysv*) # VAXen running system V
628 vax-*-ultrix*) # VAXen running ultrix
641 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
646 echo "*** Configuration ${host} not supported" 1>&2
652 i[34567]86-*-linux* | x86_64-*-linux*)
653 tmake_file="${tmake_file} t-tls"