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

Subversion Repositories openrisc

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

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

powered by: WebSVN 2.1.0

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