OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libgcc/] [config.host] - Blame information for rev 294

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.