]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config.host
MAINTAINERS: Update my email address in WAA section.
[thirdparty/gcc.git] / libgcc / config.host
CommitLineData
fa958513 1# libgcc host-specific configuration file.
8d8da227
JM
2# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3# 2008 Free Software Foundation, Inc.
fa958513
DJ
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 ;;
fa958513
DJ
74arm*-*-*)
75 cpu_type=arm
76 ;;
47583040
AH
77avr-*-*)
78 cpu_type=avr
79 ;;
fa958513
DJ
80bfin*-*)
81 cpu_type=bfin
82 ;;
7d33c31d
KH
83fido-*-*)
84 cpu_type=m68k
85 ;;
fa958513
DJ
86frv*) cpu_type=frv
87 ;;
fa958513
DJ
88i[34567]86-*-*)
89 cpu_type=i386
90 ;;
91x86_64-*-*)
92 cpu_type=i386
93 ;;
94ia64-*-*)
95 ;;
cd985f66 96hppa*-*-*)
fa958513
DJ
97 cpu_type=pa
98 ;;
99m32r*-*-*)
100 cpu_type=m32r
101 ;;
fa958513
DJ
102m68k-*-*)
103 ;;
104mips*-*-*)
105 cpu_type=mips
106 ;;
107powerpc*-*-*)
108 cpu_type=rs6000
109 ;;
110rs6000*-*-*)
111 ;;
112score*-*-*)
113 cpu_type=score
114 ;;
115sparc64*-*-*)
116 cpu_type=sparc
117 ;;
118sparc*-*-*)
119 cpu_type=sparc
120 ;;
121spu*-*-*)
122 cpu_type=spu
123 ;;
124s390*-*-*)
125 cpu_type=s390
126 ;;
127# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
128sh[123456789lbe]*-*-*)
129 cpu_type=sh
130 ;;
fa958513
DJ
131esac
132
133# Common parts for widely ported systems.
134case ${host} in
135*-*-darwin*)
136 asm_hidden_op=.private_extern
137 tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin"
138 ;;
139*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
140 # This is the place-holder for the generic a.out configuration
141 # of FreeBSD. No actual configuration resides here since
142 # there was only ever a bare-bones ix86 configuration for
143 # a.out and it exists solely in the machine-specific section.
144 # This place-holder must exist to avoid dropping into
145 # the generic ELF configuration of FreeBSD (i.e. it must be
146 # ordered before that section).
147 ;;
148*-*-freebsd*)
149 # This is the generic ELF configuration of FreeBSD. Later
150 # machine-specific sections may refine and add to this
151 # configuration.
152 ;;
c0451df7 153*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu*)
fa958513
DJ
154 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
155 ;;
fa958513
DJ
156*-*-netbsd*)
157 ;;
158*-*-openbsd*)
159 ;;
160*-*-rtems*)
161 ;;
162*-*-vxworks*)
163 ;;
164*-*-elf)
165 ;;
166esac
167
168case ${host} in
169# Support site-specific machine types.
170*local*)
171 rest=`echo ${host} | sed -e "s/$cpu_type-//"`
172 if test -f $srcdir/config/${cpu_type}/t-$rest
173 then tmake_file=${cpu_type}/t-$rest
174 fi
175 ;;
c0451df7 176alpha*-*-linux* | alpha*-*-gnu*)
fa958513 177 tmake_file="${tmake_file} alpha/t-crtfm"
5ea41e3a 178 extra_parts="$extra_parts crtfastmath.o"
fa958513 179 ;;
fa958513
DJ
180alpha*-*-freebsd*)
181 ;;
182alpha*-*-netbsd*)
183 ;;
184alpha*-*-openbsd*)
185 ;;
186alpha*-dec-osf[45]*)
187 ;;
188alpha64-dec-*vms*)
189 ;;
190alpha*-dec-*vms*)
191 ;;
192arc-*-elf*)
193 ;;
194arm-*-coff* | armel-*-coff*)
195 ;;
196arm-semi-aof | armel-semi-aof)
197 ;;
198arm-wrs-vxworks)
199 ;;
cd985f66 200arm*-*-freebsd*)
fa958513
DJ
201 ;;
202arm*-*-netbsdelf*)
203 ;;
204arm*-*-netbsd*)
205 ;;
206arm*-*-linux*) # ARM GNU/Linux with ELF
207 ;;
208arm*-*-uclinux*) # ARM ucLinux
209 ;;
210arm*-*-ecos-elf)
211 ;;
212arm*-*-eabi* | arm*-*-symbianelf* )
213 ;;
214arm*-*-rtems*)
215 ;;
cd985f66 216arm*-*-elf)
fa958513
DJ
217 ;;
218arm*-wince-pe*)
219 ;;
220arm-*-pe*)
221 ;;
fa958513
DJ
222avr-*-rtems*)
223 ;;
224avr-*-*)
47583040
AH
225 # Make HImode functions for AVR
226 tmake_file=${cpu_type}/t-avr
fa958513
DJ
227 ;;
228bfin*-elf*)
229 ;;
230bfin*-uclinux*)
231 ;;
344189f9
BS
232bfin*-linux-uclibc*)
233 # No need to build crtbeginT.o on uClibc systems. Should probably
234 # be moved to the OS specific section above.
235 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
236 ;;
fa958513
DJ
237bfin*-*)
238 ;;
4081d704 239crisv32-*-elf | crisv32-*-none | cris-*-elf | cris-*-none)
8fce4e31 240 extra_parts="crtbegin.o crtend.o"
fa958513 241 ;;
4081d704 242cris-*-linux* | crisv32-*-linux*)
fa958513
DJ
243 ;;
244crx-*-elf)
245 ;;
7d33c31d
KH
246fido-*-elf)
247 ;;
fa958513
DJ
248fr30-*-elf)
249 ;;
250frv-*-elf)
251 ;;
252frv-*-*linux*)
253 ;;
fa958513
DJ
254h8300-*-rtems*)
255 ;;
256h8300-*-elf*)
257 ;;
258h8300-*-*)
259 ;;
cd985f66 260hppa*64*-*-linux*)
fa958513 261 ;;
cd985f66 262hppa*-*-linux*)
fa958513
DJ
263 ;;
264hppa[12]*-*-hpux10*)
265 ;;
266hppa*64*-*-hpux11*)
267 ;;
268hppa[12]*-*-hpux11*)
269 ;;
270i[34567]86-*-darwin*)
271 ;;
272x86_64-*-darwin*)
273 tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin"
274 ;;
275i[34567]86-*-elf*)
276 ;;
3ae3dbd6
HK
277x86_64-*-elf*)
278 ;;
fa958513
DJ
279i[34567]86-*-aout*)
280 ;;
fa958513
DJ
281i[34567]86-*-freebsd*)
282 ;;
283x86_64-*-freebsd*)
284 ;;
285i[34567]86-*-netbsdelf*)
286 ;;
287i[34567]86-*-netbsd*)
288 ;;
289x86_64-*-netbsd*)
290 ;;
291i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
292 ;;
293i[34567]86-*-openbsd*)
294 ;;
295i[34567]86-*-coff*)
296 ;;
c0451df7 297i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu*)
577565f9
UB
298 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
299 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
fa958513
DJ
300 ;;
301x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
577565f9
UB
302 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
303 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
fa958513 304 ;;
fa958513
DJ
305i[34567]86-pc-msdosdjgpp*)
306 ;;
307i[34567]86-*-lynxos*)
308 ;;
309i[3456x]86-*-netware*)
310 case /${with_ld} in
311 */nwld)
312 tmake_file="${tmake_file} i386/t-nwld"
313 ;;
314 esac
315 ;;
316i[34567]86-*-nto-qnx*)
317 ;;
318i[34567]86-*-rtems*)
319 ;;
fa958513 320i[34567]86-*-solaris2*)
19523300
RO
321 tmake_file="${tmake_file} i386/t-sol2"
322 case ${host} in
323 *-*-solaris2.1[0-9]*)
324 # Solaris 2.10 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
325 # part of the base system.
326 extra_parts="gmon.o crtbegin.o crtend.o"
327 ;;
328 *)
329 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
330 ;;
331 esac
fa958513 332 ;;
fa958513
DJ
333i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
334 ;;
9bd196f0 335i[34567]86-*-pe)
fa958513 336 ;;
9bd196f0 337i[34567]86-*-cygwin* | i[34567]86-*-mingw*)
76f5e200
DS
338 extra_parts="crtbegin.o crtend.o crtfastmath.o"
339 tmake_file="i386/t-cygming i386/t-crtfm"
9bd196f0
ZM
340 ;;
341x86_64-*-mingw*)
fa958513 342 ;;
fa958513
DJ
343i[34567]86-*-interix3*)
344 ;;
fa958513 345ia64*-*-elf*)
f43e89a3
RIL
346 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
347 tmake_file="ia64/t-ia64"
fa958513
DJ
348 ;;
349ia64*-*-freebsd*)
350 ;;
351ia64*-*-linux*)
352 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1555beba 353 tmake_file="ia64/t-ia64"
fa958513
DJ
354 ;;
355ia64*-*-hpux*)
356 ;;
357iq2000*-*-elf*)
358 ;;
359m32r-*-elf*)
360 ;;
361m32rle-*-elf*)
362 ;;
363m32r-*-linux*)
364 ;;
365m32rle-*-linux*)
366 ;;
367m68hc11-*-*|m6811-*-*)
368 ;;
369m68hc12-*-*|m6812-*-*)
370 ;;
371m68k-*-aout*)
372 ;;
373m68k-*-coff*)
374 ;;
cd985f66 375m68k-*-elf*)
fa958513 376 ;;
cd985f66 377m68k*-*-netbsdelf*)
fa958513
DJ
378 ;;
379m68k*-*-openbsd*)
380 ;;
381m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
382 ;;
383m68k-*-linux*) # Motorola m68k's running GNU/Linux
384 # with ELF format using glibc 2
385 # aka the GNU/Linux C library 6.
386 ;;
387m68k-*-rtems*)
388 ;;
389mcore-*-elf)
390 ;;
391mcore-*-pe*)
392 ;;
393mips-sgi-irix[56]*)
394 ;;
395mips*-*-netbsd*) # NetBSD/mips, either endian.
396 ;;
397mips64*-*-linux*)
398 ;;
399mips*-*-linux*) # Linux MIPS, either endian.
400 ;;
401mips*-*-openbsd*)
402 ;;
403mipsisa32-*-elf* | mipsisa32el-*-elf*)
404 ;;
405mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
406 ;;
407mipsisa64-*-elf* | mipsisa64el-*-elf*)
408 ;;
0a4a51c7
AN
409mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
410 ;;
fa958513
DJ
411mipsisa64sr71k-*-elf*)
412 ;;
413mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
414 ;;
415mips-*-elf* | mipsel-*-elf*)
416 ;;
417mips64-*-elf* | mips64el-*-elf*)
418 ;;
419mips64vr-*-elf* | mips64vrel-*-elf*)
420 ;;
421mips64orion-*-elf* | mips64orionel-*-elf*)
422 ;;
423mips*-*-rtems*)
424 ;;
425mips-wrs-vxworks)
426 ;;
fa958513
DJ
427mipstx39-*-elf* | mipstx39el-*-elf*)
428 ;;
429mmix-knuth-mmixware)
430 ;;
431mn10300-*-*)
432 ;;
fa958513
DJ
433pdp11-*-bsd)
434 ;;
435pdp11-*-*)
436 ;;
358da97e
HS
437picochip-*-*)
438 ;;
fa958513
DJ
439powerpc64-*-linux*)
440 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
441 ;;
442powerpc64-*-gnu*)
443 tmake_file="${tmake_file} rs6000/t-ldbl128"
444 ;;
fa958513
DJ
445powerpc-*-darwin*)
446 ;;
447powerpc64-*-darwin*)
448 ;;
449powerpc*-*-freebsd*)
450 ;;
451powerpc-*-netbsd*)
452 ;;
fa958513
DJ
453powerpc-*-eabispe*)
454 ;;
455powerpc-*-eabisimaltivec*)
456 ;;
457powerpc-*-eabisim*)
458 ;;
459powerpc-*-elf*)
460 ;;
461powerpc-*-eabialtivec*)
462 ;;
463powerpc-*-eabi*)
464 ;;
465powerpc-*-rtems*)
466 ;;
467powerpc-*-linux*altivec*)
468 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
469 ;;
470powerpc-*-linux*spe*)
471 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
472 ;;
473powerpc-*-linux*)
474 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
475 ;;
476powerpc-*-gnu-gnualtivec*)
477 tmake_file="${tmake_file} rs6000/t-ldbl128"
478 ;;
479powerpc-*-gnu*)
480 tmake_file="${tmake_file} rs6000/t-ldbl128"
481 ;;
482powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
483 ;;
fa958513
DJ
484powerpc-*-lynxos*)
485 ;;
fa958513
DJ
486powerpcle-*-elf*)
487 ;;
488powerpcle-*-eabisim*)
489 ;;
490powerpcle-*-eabi*)
491 ;;
fa958513
DJ
492rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
493 ;;
494rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
495 ;;
496rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
497 ;;
498rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
499 ;;
500s390-*-linux*)
501 ;;
502s390x-*-linux*)
503 ;;
504s390x-ibm-tpf*)
505 ;;
506score-*-elf)
507 ;;
cd985f66 508sh-*-elf* | sh[12346l]*-*-elf* | \
fa958513 509sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
93fea8d3 510 sh-*-linux* | sh[2346lbe]*-*-linux* | \
fa958513
DJ
511 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
512 sh64-*-netbsd* | sh64l*-*-netbsd*)
26900826
KK
513 case ${host} in
514 sh*-*-linux*)
515 tmake_file="${tmake_file} sh/t-linux"
516 ;;
517 esac
fa958513 518 ;;
fa958513
DJ
519sh-*-rtems*)
520 ;;
521sh-wrs-vxworks)
522 ;;
523sh-*-*)
524 ;;
525sparc-*-netbsdelf*)
526 ;;
527sparc64-*-openbsd*)
528 ;;
529sparc-*-elf*)
530 ;;
531sparc-*-linux*) # SPARC's running GNU/Linux, libc6
532 extra_parts="$extra_parts crtfastmath.o"
533 tmake_file="${tmake_file} sparc/t-crtfm"
534 ;;
535sparc-*-rtems*)
536 ;;
537sparc64-*-solaris2* | sparcv9-*-solaris2*)
538 ;;
539sparc-*-solaris2*)
540 ;;
fa958513
DJ
541sparc64-*-elf*)
542 ;;
1910440e
RS
543sparc-wrs-vxworks)
544 ;;
fa958513
DJ
545sparc64-*-freebsd*|ultrasparc-*-freebsd*)
546 ;;
547sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
548 extra_parts="$extra_parts crtfastmath.o"
549 tmake_file="${tmake_file} sparc/t-crtfm"
550 ;;
551sparc64-*-netbsd*)
552 ;;
553spu-*-elf*)
554 ;;
fa958513
DJ
555v850e1-*-*)
556 ;;
557v850e-*-*)
558 ;;
559v850-*-*)
560 ;;
fa958513
DJ
561vax-*-netbsdelf*)
562 ;;
563vax-*-netbsd*)
564 ;;
565vax-*-openbsd*)
566 ;;
fa958513
DJ
567xstormy16-*-elf)
568 ;;
c660f132 569xtensa*-*-elf*)
fa958513 570 ;;
c660f132 571xtensa*-*-linux*)
fa958513
DJ
572 ;;
573am33_2.0-*-linux*)
574 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
575 ;;
576m32c-*-elf*)
577 ;;
578*)
579 echo "*** Configuration ${host} not supported" 1>&2
580 exit 1
581 ;;
582esac
6f461e76
L
583
584case ${host} in
2a761e46
TS
585i[34567]86-*-linux* | x86_64-*-linux* | \
586 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | \
587 i[34567]86-*-gnu*)
6f461e76
L
588 tmake_file="${tmake_file} t-tls"
589 ;;
590esac
ff473280
L
591
592case ${host} in
593i[34567]86-*-darwin* | x86_64-*-darwin* | \
594 i[34567]86-*-linux* | x86_64-*-linux*)
c174f11c
L
595 if test "${host_address}" = 32; then
596 tmake_file="${tmake_file} i386/${host_address}/t-fprules-softfp"
597 fi
598 ;;
599esac
600
601case ${host} in
602i[34567]86-*-linux* | x86_64-*-linux*)
603 # Provide backward binary compatibility for 64bit Linux/x86.
604 if test "${host_address}" = 64; then
605 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
606 fi
ff473280
L
607 ;;
608esac