]> gcc.gnu.org Git - gcc.git/blame - libgcc/config.host
Makefile.tpl ($(srcdir)/configure): Update dependencies.
[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 ;;
fa958513
DJ
153*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
154 # Must come before *-*-gnu* (because of *-*-linux-gnu* systems).
155 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
156 ;;
157*-*-gnu*)
158 ;;
159*-*-netbsd*)
160 ;;
161*-*-openbsd*)
162 ;;
163*-*-rtems*)
164 ;;
165*-*-vxworks*)
166 ;;
167*-*-elf)
168 ;;
169esac
170
171case ${host} in
172# Support site-specific machine types.
173*local*)
174 rest=`echo ${host} | sed -e "s/$cpu_type-//"`
175 if test -f $srcdir/config/${cpu_type}/t-$rest
176 then tmake_file=${cpu_type}/t-$rest
177 fi
178 ;;
fa958513
DJ
179alpha*-*-linux*)
180 tmake_file="${tmake_file} alpha/t-crtfm"
5ea41e3a 181 extra_parts="$extra_parts crtfastmath.o"
fa958513
DJ
182 ;;
183alpha*-*-gnu*)
184 ;;
185alpha*-*-freebsd*)
186 ;;
187alpha*-*-netbsd*)
188 ;;
189alpha*-*-openbsd*)
190 ;;
191alpha*-dec-osf[45]*)
192 ;;
193alpha64-dec-*vms*)
194 ;;
195alpha*-dec-*vms*)
196 ;;
197arc-*-elf*)
198 ;;
199arm-*-coff* | armel-*-coff*)
200 ;;
201arm-semi-aof | armel-semi-aof)
202 ;;
203arm-wrs-vxworks)
204 ;;
cd985f66 205arm*-*-freebsd*)
fa958513
DJ
206 ;;
207arm*-*-netbsdelf*)
208 ;;
209arm*-*-netbsd*)
210 ;;
211arm*-*-linux*) # ARM GNU/Linux with ELF
212 ;;
213arm*-*-uclinux*) # ARM ucLinux
214 ;;
215arm*-*-ecos-elf)
216 ;;
217arm*-*-eabi* | arm*-*-symbianelf* )
218 ;;
219arm*-*-rtems*)
220 ;;
cd985f66 221arm*-*-elf)
fa958513
DJ
222 ;;
223arm*-wince-pe*)
224 ;;
225arm-*-pe*)
226 ;;
fa958513
DJ
227avr-*-rtems*)
228 ;;
229avr-*-*)
47583040
AH
230 # Make HImode functions for AVR
231 tmake_file=${cpu_type}/t-avr
fa958513
DJ
232 ;;
233bfin*-elf*)
234 ;;
235bfin*-uclinux*)
236 ;;
344189f9
BS
237bfin*-linux-uclibc*)
238 # No need to build crtbeginT.o on uClibc systems. Should probably
239 # be moved to the OS specific section above.
240 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
241 ;;
fa958513
DJ
242bfin*-*)
243 ;;
4081d704 244crisv32-*-elf | crisv32-*-none | cris-*-elf | cris-*-none)
8fce4e31 245 extra_parts="crtbegin.o crtend.o"
fa958513 246 ;;
4081d704 247cris-*-linux* | crisv32-*-linux*)
fa958513
DJ
248 ;;
249crx-*-elf)
250 ;;
7d33c31d
KH
251fido-*-elf)
252 ;;
fa958513
DJ
253fr30-*-elf)
254 ;;
255frv-*-elf)
256 ;;
257frv-*-*linux*)
258 ;;
fa958513
DJ
259h8300-*-rtems*)
260 ;;
261h8300-*-elf*)
262 ;;
263h8300-*-*)
264 ;;
cd985f66 265hppa*64*-*-linux*)
fa958513 266 ;;
cd985f66 267hppa*-*-linux*)
fa958513
DJ
268 ;;
269hppa[12]*-*-hpux10*)
270 ;;
271hppa*64*-*-hpux11*)
272 ;;
273hppa[12]*-*-hpux11*)
274 ;;
275i[34567]86-*-darwin*)
276 ;;
277x86_64-*-darwin*)
278 tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin"
279 ;;
280i[34567]86-*-elf*)
281 ;;
3ae3dbd6
HK
282x86_64-*-elf*)
283 ;;
fa958513
DJ
284i[34567]86-*-aout*)
285 ;;
fa958513
DJ
286i[34567]86-*-freebsd*)
287 ;;
288x86_64-*-freebsd*)
289 ;;
290i[34567]86-*-netbsdelf*)
291 ;;
292i[34567]86-*-netbsd*)
293 ;;
294x86_64-*-netbsd*)
295 ;;
296i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
297 ;;
298i[34567]86-*-openbsd*)
299 ;;
300i[34567]86-*-coff*)
301 ;;
302i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu)
577565f9
UB
303 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
304 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
fa958513
DJ
305 ;;
306x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
577565f9
UB
307 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
308 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
fa958513
DJ
309 ;;
310i[34567]86-*-gnu*)
311 ;;
312i[34567]86-pc-msdosdjgpp*)
313 ;;
314i[34567]86-*-lynxos*)
315 ;;
316i[3456x]86-*-netware*)
317 case /${with_ld} in
318 */nwld)
319 tmake_file="${tmake_file} i386/t-nwld"
320 ;;
321 esac
322 ;;
323i[34567]86-*-nto-qnx*)
324 ;;
325i[34567]86-*-rtems*)
326 ;;
fa958513
DJ
327i[34567]86-*-solaris2*)
328 ;;
fa958513
DJ
329i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
330 ;;
9bd196f0 331i[34567]86-*-pe)
fa958513 332 ;;
9bd196f0 333i[34567]86-*-cygwin* | i[34567]86-*-mingw*)
76f5e200
DS
334 extra_parts="crtbegin.o crtend.o crtfastmath.o"
335 tmake_file="i386/t-cygming i386/t-crtfm"
9bd196f0
ZM
336 ;;
337x86_64-*-mingw*)
fa958513 338 ;;
fa958513
DJ
339i[34567]86-*-interix3*)
340 ;;
fa958513 341ia64*-*-elf*)
f43e89a3
RIL
342 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
343 tmake_file="ia64/t-ia64"
fa958513
DJ
344 ;;
345ia64*-*-freebsd*)
346 ;;
347ia64*-*-linux*)
348 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1555beba 349 tmake_file="ia64/t-ia64"
fa958513
DJ
350 ;;
351ia64*-*-hpux*)
352 ;;
353iq2000*-*-elf*)
354 ;;
355m32r-*-elf*)
356 ;;
357m32rle-*-elf*)
358 ;;
359m32r-*-linux*)
360 ;;
361m32rle-*-linux*)
362 ;;
363m68hc11-*-*|m6811-*-*)
364 ;;
365m68hc12-*-*|m6812-*-*)
366 ;;
367m68k-*-aout*)
368 ;;
369m68k-*-coff*)
370 ;;
cd985f66 371m68k-*-elf*)
fa958513 372 ;;
cd985f66 373m68k*-*-netbsdelf*)
fa958513
DJ
374 ;;
375m68k*-*-openbsd*)
376 ;;
377m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
378 ;;
379m68k-*-linux*) # Motorola m68k's running GNU/Linux
380 # with ELF format using glibc 2
381 # aka the GNU/Linux C library 6.
382 ;;
383m68k-*-rtems*)
384 ;;
385mcore-*-elf)
386 ;;
387mcore-*-pe*)
388 ;;
389mips-sgi-irix[56]*)
390 ;;
391mips*-*-netbsd*) # NetBSD/mips, either endian.
392 ;;
393mips64*-*-linux*)
394 ;;
395mips*-*-linux*) # Linux MIPS, either endian.
396 ;;
397mips*-*-openbsd*)
398 ;;
399mipsisa32-*-elf* | mipsisa32el-*-elf*)
400 ;;
401mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
402 ;;
403mipsisa64-*-elf* | mipsisa64el-*-elf*)
404 ;;
405mipsisa64sr71k-*-elf*)
406 ;;
407mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
408 ;;
409mips-*-elf* | mipsel-*-elf*)
410 ;;
411mips64-*-elf* | mips64el-*-elf*)
412 ;;
413mips64vr-*-elf* | mips64vrel-*-elf*)
414 ;;
415mips64orion-*-elf* | mips64orionel-*-elf*)
416 ;;
417mips*-*-rtems*)
418 ;;
419mips-wrs-vxworks)
420 ;;
fa958513
DJ
421mipstx39-*-elf* | mipstx39el-*-elf*)
422 ;;
423mmix-knuth-mmixware)
424 ;;
425mn10300-*-*)
426 ;;
fa958513
DJ
427pdp11-*-bsd)
428 ;;
429pdp11-*-*)
430 ;;
431powerpc64-*-linux*)
432 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
433 ;;
434powerpc64-*-gnu*)
435 tmake_file="${tmake_file} rs6000/t-ldbl128"
436 ;;
fa958513
DJ
437powerpc-*-darwin*)
438 ;;
439powerpc64-*-darwin*)
440 ;;
441powerpc*-*-freebsd*)
442 ;;
443powerpc-*-netbsd*)
444 ;;
fa958513
DJ
445powerpc-*-eabispe*)
446 ;;
447powerpc-*-eabisimaltivec*)
448 ;;
449powerpc-*-eabisim*)
450 ;;
451powerpc-*-elf*)
452 ;;
453powerpc-*-eabialtivec*)
454 ;;
455powerpc-*-eabi*)
456 ;;
457powerpc-*-rtems*)
458 ;;
459powerpc-*-linux*altivec*)
460 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
461 ;;
462powerpc-*-linux*spe*)
463 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
464 ;;
465powerpc-*-linux*)
466 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
467 ;;
468powerpc-*-gnu-gnualtivec*)
469 tmake_file="${tmake_file} rs6000/t-ldbl128"
470 ;;
471powerpc-*-gnu*)
472 tmake_file="${tmake_file} rs6000/t-ldbl128"
473 ;;
474powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
475 ;;
fa958513
DJ
476powerpc-*-lynxos*)
477 ;;
fa958513
DJ
478powerpcle-*-elf*)
479 ;;
480powerpcle-*-eabisim*)
481 ;;
482powerpcle-*-eabi*)
483 ;;
fa958513
DJ
484rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
485 ;;
486rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
487 ;;
488rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
489 ;;
490rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
491 ;;
492s390-*-linux*)
493 ;;
494s390x-*-linux*)
495 ;;
496s390x-ibm-tpf*)
497 ;;
498score-*-elf)
499 ;;
cd985f66 500sh-*-elf* | sh[12346l]*-*-elf* | \
fa958513 501sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
93fea8d3 502 sh-*-linux* | sh[2346lbe]*-*-linux* | \
fa958513
DJ
503 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
504 sh64-*-netbsd* | sh64l*-*-netbsd*)
26900826
KK
505 case ${host} in
506 sh*-*-linux*)
507 tmake_file="${tmake_file} sh/t-linux"
508 ;;
509 esac
fa958513 510 ;;
fa958513
DJ
511sh-*-rtems*)
512 ;;
513sh-wrs-vxworks)
514 ;;
515sh-*-*)
516 ;;
517sparc-*-netbsdelf*)
518 ;;
519sparc64-*-openbsd*)
520 ;;
521sparc-*-elf*)
522 ;;
523sparc-*-linux*) # SPARC's running GNU/Linux, libc6
524 extra_parts="$extra_parts crtfastmath.o"
525 tmake_file="${tmake_file} sparc/t-crtfm"
526 ;;
527sparc-*-rtems*)
528 ;;
529sparc64-*-solaris2* | sparcv9-*-solaris2*)
530 ;;
531sparc-*-solaris2*)
532 ;;
fa958513
DJ
533sparc64-*-elf*)
534 ;;
1910440e
RS
535sparc-wrs-vxworks)
536 ;;
fa958513
DJ
537sparc64-*-freebsd*|ultrasparc-*-freebsd*)
538 ;;
539sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
540 extra_parts="$extra_parts crtfastmath.o"
541 tmake_file="${tmake_file} sparc/t-crtfm"
542 ;;
543sparc64-*-netbsd*)
544 ;;
545spu-*-elf*)
546 ;;
fa958513
DJ
547v850e1-*-*)
548 ;;
549v850e-*-*)
550 ;;
551v850-*-*)
552 ;;
fa958513
DJ
553vax-*-netbsdelf*)
554 ;;
555vax-*-netbsd*)
556 ;;
557vax-*-openbsd*)
558 ;;
fa958513
DJ
559xstormy16-*-elf)
560 ;;
561xtensa-*-elf*)
562 ;;
563xtensa-*-linux*)
564 ;;
565am33_2.0-*-linux*)
566 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
567 ;;
568m32c-*-elf*)
569 ;;
570*)
571 echo "*** Configuration ${host} not supported" 1>&2
572 exit 1
573 ;;
574esac
6f461e76
L
575
576case ${host} in
577i[34567]86-*-linux* | x86_64-*-linux*)
578 tmake_file="${tmake_file} t-tls"
579 ;;
580esac
This page took 0.178286 seconds and 5 git commands to generate.