]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config.host
config.build (alpha*-dec-osf4*): Remove.
[thirdparty/gcc.git] / libgcc / config.host
CommitLineData
fa958513 1# libgcc host-specific configuration file.
8d8da227 2# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
e6e50811 3# 2008, 2009, 2010 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
748086b7 9#Software Foundation; either version 3, or (at your option) any later
fa958513
DJ
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
748086b7
JJ
18#along with GCC; see the file COPYING3. If not see
19#<http://www.gnu.org/licenses/>.
fa958513
DJ
20
21# This is the libgcc host-specific configuration file
22# where a configuration type is mapped to different system-specific
23# definitions and files. This is invoked by the autoconf-generated
24# configure script. Putting it in a separate shell file lets us skip
25# running autoconf when modifying host-specific information.
26
27# This file bears an obvious resemblance to gcc/config.gcc. The cases
28# should be kept similar, to ease moving library-specific settings
29# from config.gcc to this file. That is also why tmake_file is
30# left as tmake_file, rather than hmake_file, even though this library
31# switches on ${host}.
32
33# This file switches on the shell variable ${host}, and also uses the
34# following shell variables:
35#
36# with_* Various variables as set by configure.
37
38# This file sets the following shell variables for use by the
39# autoconf-generated configure script:
40#
41# asm_hidden_op The assembler pseudo-op to use for hide
42# lists for object files implemented in
43# assembly (with -fvisibility=hidden for C).
44# The default is ".hidden".
45# cpu_type The name of the cpu, if different from the first
46# chunk of the canonical host name.
47# extra_parts List of extra object files that should be compiled
48# for this target machine. This may be overridden
49# by setting EXTRA_PARTS in a tmake_file fragment.
50# If either is set, EXTRA_PARTS and
51# EXTRA_MULTILIB_PARTS inherited from the GCC
52# subdirectory will be ignored.
53# tmake_file A list of machine-description-specific
54# makefile-fragments, if different from
55# "$cpu_type/t-$cpu_type".
56
57asm_hidden_op=.hidden
58extra_parts=
59tmake_file=
60
61# Set default cpu_type so it can be updated in each machine entry.
62cpu_type=`echo ${host} | sed 's/-.*$//'`
63case ${host} in
64m32c*-*-*)
65 cpu_type=m32c
66 ;;
67alpha*-*-*)
68 cpu_type=alpha
69 ;;
70am33_2.0-*-linux*)
71 cpu_type=mn10300
72 ;;
fa958513
DJ
73arm*-*-*)
74 cpu_type=arm
75 ;;
47583040
AH
76avr-*-*)
77 cpu_type=avr
78 ;;
fa958513
DJ
79bfin*-*)
80 cpu_type=bfin
81 ;;
7d33c31d
KH
82fido-*-*)
83 cpu_type=m68k
84 ;;
fa958513
DJ
85frv*) cpu_type=frv
86 ;;
cceb575c
AG
87moxie*) cpu_type=moxie
88 ;;
fa958513
DJ
89i[34567]86-*-*)
90 cpu_type=i386
91 ;;
92x86_64-*-*)
93 cpu_type=i386
94 ;;
95ia64-*-*)
96 ;;
cd985f66 97hppa*-*-*)
fa958513
DJ
98 cpu_type=pa
99 ;;
aa4945c1
JB
100lm32*-*-*)
101 cpu_type=lm32
102 ;;
fa958513
DJ
103m32r*-*-*)
104 cpu_type=m32r
105 ;;
fa958513
DJ
106m68k-*-*)
107 ;;
7acf4da6
DD
108mep*-*-*)
109 ;;
fa958513
DJ
110mips*-*-*)
111 cpu_type=mips
112 ;;
113powerpc*-*-*)
114 cpu_type=rs6000
115 ;;
116rs6000*-*-*)
117 ;;
118score*-*-*)
119 cpu_type=score
120 ;;
121sparc64*-*-*)
122 cpu_type=sparc
123 ;;
124sparc*-*-*)
125 cpu_type=sparc
126 ;;
127spu*-*-*)
128 cpu_type=spu
129 ;;
130s390*-*-*)
131 cpu_type=s390
132 ;;
133# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
134sh[123456789lbe]*-*-*)
135 cpu_type=sh
136 ;;
fa958513
DJ
137esac
138
139# Common parts for widely ported systems.
140case ${host} in
141*-*-darwin*)
142 asm_hidden_op=.private_extern
143 tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin"
144 ;;
145*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
146 # This is the place-holder for the generic a.out configuration
147 # of FreeBSD. No actual configuration resides here since
148 # there was only ever a bare-bones ix86 configuration for
149 # a.out and it exists solely in the machine-specific section.
150 # This place-holder must exist to avoid dropping into
151 # the generic ELF configuration of FreeBSD (i.e. it must be
152 # ordered before that section).
153 ;;
154*-*-freebsd*)
155 # This is the generic ELF configuration of FreeBSD. Later
156 # machine-specific sections may refine and add to this
157 # configuration.
158 ;;
c0451df7 159*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu*)
fa958513
DJ
160 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
161 ;;
fa958513
DJ
162*-*-netbsd*)
163 ;;
164*-*-openbsd*)
165 ;;
166*-*-rtems*)
167 ;;
168*-*-vxworks*)
169 ;;
170*-*-elf)
171 ;;
172esac
173
174case ${host} in
175# Support site-specific machine types.
176*local*)
177 rest=`echo ${host} | sed -e "s/$cpu_type-//"`
178 if test -f $srcdir/config/${cpu_type}/t-$rest
179 then tmake_file=${cpu_type}/t-$rest
180 fi
181 ;;
c0451df7 182alpha*-*-linux* | alpha*-*-gnu*)
fa958513 183 tmake_file="${tmake_file} alpha/t-crtfm"
5ea41e3a 184 extra_parts="$extra_parts crtfastmath.o"
fa958513 185 ;;
fa958513
DJ
186alpha*-*-freebsd*)
187 ;;
188alpha*-*-netbsd*)
189 ;;
190alpha*-*-openbsd*)
191 ;;
8c200350 192alpha*-dec-osf5.1*)
fa958513
DJ
193 ;;
194alpha64-dec-*vms*)
a9a25daa 195 tmake_file="vms/t-vms vms/t-vms64 alpha/t-vms"
fa958513
DJ
196 ;;
197alpha*-dec-*vms*)
a9a25daa 198 tmake_file="vms/t-vms alpha/t-vms"
fa958513
DJ
199 ;;
200arc-*-elf*)
201 ;;
fa958513
DJ
202arm-wrs-vxworks)
203 ;;
cd985f66 204arm*-*-freebsd*)
fa958513
DJ
205 ;;
206arm*-*-netbsdelf*)
207 ;;
208arm*-*-netbsd*)
209 ;;
210arm*-*-linux*) # ARM GNU/Linux with ELF
211 ;;
212arm*-*-uclinux*) # ARM ucLinux
213 ;;
214arm*-*-ecos-elf)
215 ;;
216arm*-*-eabi* | arm*-*-symbianelf* )
217 ;;
218arm*-*-rtems*)
219 ;;
cd985f66 220arm*-*-elf)
fa958513
DJ
221 ;;
222arm*-wince-pe*)
223 ;;
224arm-*-pe*)
225 ;;
fa958513
DJ
226avr-*-rtems*)
227 ;;
228avr-*-*)
47583040
AH
229 # Make HImode functions for AVR
230 tmake_file=${cpu_type}/t-avr
fa958513
DJ
231 ;;
232bfin*-elf*)
233 ;;
234bfin*-uclinux*)
235 ;;
344189f9
BS
236bfin*-linux-uclibc*)
237 # No need to build crtbeginT.o on uClibc systems. Should probably
238 # be moved to the OS specific section above.
239 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
240 ;;
fa958513
DJ
241bfin*-*)
242 ;;
4081d704 243crisv32-*-elf | crisv32-*-none | cris-*-elf | cris-*-none)
8fce4e31 244 extra_parts="crtbegin.o crtend.o"
fa958513 245 ;;
4081d704 246cris-*-linux* | crisv32-*-linux*)
fa958513
DJ
247 ;;
248crx-*-elf)
249 ;;
7d33c31d
KH
250fido-*-elf)
251 ;;
fa958513
DJ
252fr30-*-elf)
253 ;;
254frv-*-elf)
255 ;;
256frv-*-*linux*)
257 ;;
fa958513
DJ
258h8300-*-rtems*)
259 ;;
260h8300-*-elf*)
261 ;;
cd985f66 262hppa*64*-*-linux*)
fa958513 263 ;;
cd985f66 264hppa*-*-linux*)
fa958513
DJ
265 ;;
266hppa[12]*-*-hpux10*)
267 ;;
268hppa*64*-*-hpux11*)
269 ;;
270hppa[12]*-*-hpux11*)
271 ;;
272i[34567]86-*-darwin*)
273 ;;
274x86_64-*-darwin*)
275 tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin"
276 ;;
277i[34567]86-*-elf*)
278 ;;
3ae3dbd6
HK
279x86_64-*-elf*)
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 ;;
c0451df7 295i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu*)
577565f9
UB
296 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
297 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
fa958513
DJ
298 ;;
299x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
577565f9
UB
300 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
301 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
fa958513 302 ;;
fa958513
DJ
303i[34567]86-pc-msdosdjgpp*)
304 ;;
305i[34567]86-*-lynxos*)
306 ;;
307i[3456x]86-*-netware*)
308 case /${with_ld} in
309 */nwld)
310 tmake_file="${tmake_file} i386/t-nwld"
311 ;;
312 esac
313 ;;
314i[34567]86-*-nto-qnx*)
315 ;;
316i[34567]86-*-rtems*)
317 ;;
fa958513 318i[34567]86-*-solaris2*)
19523300
RO
319 tmake_file="${tmake_file} i386/t-sol2"
320 case ${host} in
321 *-*-solaris2.1[0-9]*)
322 # Solaris 2.10 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
323 # part of the base system.
324 extra_parts="gmon.o crtbegin.o crtend.o"
325 ;;
326 *)
327 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
328 ;;
329 esac
fa958513 330 ;;
fa958513
DJ
331i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
332 ;;
9bd196f0 333i[34567]86-*-pe)
fa958513 334 ;;
9bd196f0 335i[34567]86-*-cygwin* | i[34567]86-*-mingw*)
76f5e200
DS
336 extra_parts="crtbegin.o crtend.o crtfastmath.o"
337 tmake_file="i386/t-cygming i386/t-crtfm"
9bd196f0
ZM
338 ;;
339x86_64-*-mingw*)
fa958513 340 ;;
fa958513
DJ
341i[34567]86-*-interix3*)
342 ;;
fa958513 343ia64*-*-elf*)
f43e89a3
RIL
344 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
345 tmake_file="ia64/t-ia64"
fa958513
DJ
346 ;;
347ia64*-*-freebsd*)
348 ;;
349ia64*-*-linux*)
350 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
ba181049 351 tmake_file="ia64/t-ia64 t-softfp ia64/t-fprules-softfp ia64/t-softfp-compat"
fa958513
DJ
352 ;;
353ia64*-*-hpux*)
354 ;;
a9a25daa
DR
355ia64-hp-*vms*)
356 tmake_file="vms/t-vms vms/t-vms64 ia64/t-vms"
357 ;;
fa958513
DJ
358iq2000*-*-elf*)
359 ;;
c1b14424 360lm32-*-elf*|lm32-*-rtems*)
aa4945c1
JB
361 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
362 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp"
363 ;;
364lm32-*-uclinux*)
365 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
366 tmake_file="lm32/t-lm32 lm32/t-uclinux t-softfp"
367 ;;
2042cb04 368m32r-*-elf*|m32r-*-rtems*)
fa958513
DJ
369 ;;
370m32rle-*-elf*)
371 ;;
372m32r-*-linux*)
373 ;;
374m32rle-*-linux*)
375 ;;
376m68hc11-*-*|m6811-*-*)
377 ;;
378m68hc12-*-*|m6812-*-*)
379 ;;
cd985f66 380m68k-*-elf*)
fa958513 381 ;;
cd985f66 382m68k*-*-netbsdelf*)
fa958513
DJ
383 ;;
384m68k*-*-openbsd*)
385 ;;
386m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
387 ;;
388m68k-*-linux*) # Motorola m68k's running GNU/Linux
389 # with ELF format using glibc 2
390 # aka the GNU/Linux C library 6.
391 ;;
392m68k-*-rtems*)
393 ;;
394mcore-*-elf)
395 ;;
396mcore-*-pe*)
397 ;;
398mips-sgi-irix[56]*)
399 ;;
400mips*-*-netbsd*) # NetBSD/mips, either endian.
401 ;;
402mips64*-*-linux*)
403 ;;
404mips*-*-linux*) # Linux MIPS, either endian.
405 ;;
406mips*-*-openbsd*)
407 ;;
408mipsisa32-*-elf* | mipsisa32el-*-elf*)
409 ;;
410mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
411 ;;
412mipsisa64-*-elf* | mipsisa64el-*-elf*)
413 ;;
0a4a51c7
AN
414mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
415 ;;
fa958513
DJ
416mipsisa64sr71k-*-elf*)
417 ;;
418mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
419 ;;
420mips-*-elf* | mipsel-*-elf*)
421 ;;
422mips64-*-elf* | mips64el-*-elf*)
423 ;;
424mips64vr-*-elf* | mips64vrel-*-elf*)
425 ;;
426mips64orion-*-elf* | mips64orionel-*-elf*)
427 ;;
428mips*-*-rtems*)
429 ;;
430mips-wrs-vxworks)
431 ;;
fa958513
DJ
432mipstx39-*-elf* | mipstx39el-*-elf*)
433 ;;
434mmix-knuth-mmixware)
e7c914db
HPN
435 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
436 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
fa958513
DJ
437 ;;
438mn10300-*-*)
439 ;;
cceb575c 440moxie-*-*)
e6e50811 441 tmake_file="moxie/t-moxie moxie/t-moxie-softfp"
cceb575c
AG
442 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
443 ;;
fa958513
DJ
444pdp11-*-*)
445 ;;
358da97e
HS
446picochip-*-*)
447 ;;
fa958513
DJ
448powerpc-*-darwin*)
449 ;;
450powerpc64-*-darwin*)
451 ;;
452powerpc*-*-freebsd*)
453 ;;
454powerpc-*-netbsd*)
455 ;;
fa958513
DJ
456powerpc-*-eabispe*)
457 ;;
458powerpc-*-eabisimaltivec*)
459 ;;
460powerpc-*-eabisim*)
461 ;;
462powerpc-*-elf*)
463 ;;
464powerpc-*-eabialtivec*)
465 ;;
466powerpc-*-eabi*)
467 ;;
468powerpc-*-rtems*)
469 ;;
633dd061 470powerpc-*-linux* | powerpc64-*-linux*)
bcf4713b 471 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128 t-softfp"
fa958513 472 ;;
633dd061
AM
473powerpc64-*-gnu*)
474 tmake_file="${tmake_file} rs6000/t-ldbl128 t-softfp"
475 ;;
fa958513
DJ
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.[3456789]* | powerpc-ibm-aix4.[3456789]*)
493 ;;
494rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
495 ;;
496rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
497 ;;
65a324b4
NC
498rx-*-elf)
499 extra_parts="crtbegin.o crtend.o"
500 tmake_file="rx/t-rx"
501 ;;
fa958513 502s390-*-linux*)
81dd9fd7 503 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi"
fa958513
DJ
504 ;;
505s390x-*-linux*)
81dd9fd7 506 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
fa958513
DJ
507 ;;
508s390x-ibm-tpf*)
81dd9fd7 509 tmake_file="${tmake_file} s390/t-crtstuff s390/t-tpf"
fa958513
DJ
510 ;;
511score-*-elf)
512 ;;
cd985f66 513sh-*-elf* | sh[12346l]*-*-elf* | \
fa958513 514sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
93fea8d3 515 sh-*-linux* | sh[2346lbe]*-*-linux* | \
fa958513
DJ
516 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
517 sh64-*-netbsd* | sh64l*-*-netbsd*)
26900826
KK
518 case ${host} in
519 sh*-*-linux*)
520 tmake_file="${tmake_file} sh/t-linux"
521 ;;
522 esac
fa958513 523 ;;
fa958513
DJ
524sh-*-rtems*)
525 ;;
526sh-wrs-vxworks)
527 ;;
fa958513
DJ
528sparc-*-netbsdelf*)
529 ;;
530sparc64-*-openbsd*)
531 ;;
532sparc-*-elf*)
533 ;;
534sparc-*-linux*) # SPARC's running GNU/Linux, libc6
535 extra_parts="$extra_parts crtfastmath.o"
536 tmake_file="${tmake_file} sparc/t-crtfm"
537 ;;
538sparc-*-rtems*)
539 ;;
540sparc64-*-solaris2* | sparcv9-*-solaris2*)
541 ;;
542sparc-*-solaris2*)
543 ;;
fa958513
DJ
544sparc64-*-elf*)
545 ;;
1910440e
RS
546sparc-wrs-vxworks)
547 ;;
fa958513
DJ
548sparc64-*-freebsd*|ultrasparc-*-freebsd*)
549 ;;
550sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
551 extra_parts="$extra_parts crtfastmath.o"
552 tmake_file="${tmake_file} sparc/t-crtfm"
553 ;;
554sparc64-*-netbsd*)
555 ;;
556spu-*-elf*)
557 ;;
fa958513
DJ
558v850e1-*-*)
559 ;;
560v850e-*-*)
561 ;;
562v850-*-*)
563 ;;
fea96e25
MR
564vax-*-linux*)
565 ;;
fa958513
DJ
566vax-*-netbsdelf*)
567 ;;
568vax-*-netbsd*)
569 ;;
570vax-*-openbsd*)
571 ;;
fa958513
DJ
572xstormy16-*-elf)
573 ;;
c660f132 574xtensa*-*-elf*)
fa958513 575 ;;
c660f132 576xtensa*-*-linux*)
fa958513
DJ
577 ;;
578am33_2.0-*-linux*)
579 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
580 ;;
541ed00e 581m32c-*-elf*|m32c-*-rtems*)
fa958513 582 ;;
7acf4da6
DD
583mep*-*-*)
584 ;;
fa958513
DJ
585*)
586 echo "*** Configuration ${host} not supported" 1>&2
587 exit 1
588 ;;
589esac
6f461e76
L
590
591case ${host} in
2a761e46
TS
592i[34567]86-*-linux* | x86_64-*-linux* | \
593 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | \
594 i[34567]86-*-gnu*)
6f461e76
L
595 tmake_file="${tmake_file} t-tls"
596 ;;
597esac
ff473280
L
598
599case ${host} in
600i[34567]86-*-darwin* | x86_64-*-darwin* | \
532bfb0a 601 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
e997fb9c 602 i[34567]86-*-linux* | x86_64-*-linux* | \
f128db92 603 i[34567]86-*-solaris2* | \
f0375e78 604 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
c174f11c 605 if test "${host_address}" = 32; then
ce16861e 606 tmake_file="${tmake_file} t-softfp i386/${host_address}/t-fprules-softfp"
c174f11c
L
607 fi
608 ;;
609esac
610
611case ${host} in
612i[34567]86-*-linux* | x86_64-*-linux*)
613 # Provide backward binary compatibility for 64bit Linux/x86.
614 if test "${host_address}" = 64; then
615 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
616 fi
ff473280
L
617 ;;
618esac