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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config.gcc] - Blame information for rev 38

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

Line No. Rev Author Line
1 38 julius
# GCC target-specific configuration file.
2
# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
3
# 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 GCC target-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 target-specific information.
26
 
27
# This file switches on the shell variable ${target}, and also uses the
28
# following shell variables:
29
#
30
#  with_*               Various variables as set by configure.
31
#
32
#  enable_threads       Either the name, yes or no depending on whether
33
#                       threads support was requested.
34
#
35
#  default_use_cxa_atexit
36
#                         The default value for the $enable___cxa_atexit
37
#                       variable.  enable___cxa_atexit needs to be set to
38
#                       "yes" for the correct operation of C++ destructors
39
#                       but it relies upon the presence of a non-standard C
40
#                       library function called __cxa_atexit.
41
#                         Since not all C libraries provide __cxa_atexit the
42
#                       default value of $default_use_cxa_atexit is set to
43
#                       "no" except for targets which are known to be OK.
44
#
45
#  gas_flag             Either yes or no depending on whether GNU as was
46
#                       requested.
47
#
48
#  gnu_ld_flag          Either yes or no depending on whether GNU ld was
49
#                       requested.
50
 
51
# This file sets the following shell variables for use by the
52
# autoconf-generated configure script:
53
#
54
#  cpu_type             The name of the cpu, if different from the first
55
#                       chunk of the canonical target name.
56
#
57
#  tm_defines           List of target macros to define for all compilations.
58
#
59
#  tm_file              A list of target macro files, if different from
60
#                       "$cpu_type/$cpu_type.h". Usually it's constructed
61
#                       per target in a way like this:
62
#                       tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
63
#                       Note that the preferred order is:
64
#                       - specific target header "${cpu_type}/${cpu_type.h}"
65
#                       - generic headers like dbxelf.h elfos.h, etc.
66
#                       - specializing target headers like ${cpu_type.h}/elf.h
67
#                       This helps to keep OS specific stuff out of the CPU
68
#                       defining header ${cpu_type}/${cpu_type.h}.
69
#
70
#  tm_p_file            Location of file with declarations for functions
71
#                       in $out_file.
72
#
73
#  out_file             The name of the machine description C support
74
#                       file, if different from "$cpu_type/$cpu_type.c".
75
#
76
#  md_file              The name of the machine-description file, if
77
#                       different from "$cpu_type/$cpu_type.md".
78
#
79
#  tmake_file           A list of machine-description-specific
80
#                       makefile-fragments, if different from
81
#                       "$cpu_type/t-$cpu_type".
82
#
83
#  extra_modes          The name of the file containing a list of extra
84
#                       machine modes, if necessary and different from
85
#                       "$cpu_type/$cpu_type-modes.def".
86
#
87
#  extra_objs           List of extra objects that should be linked into
88
#                       the compiler proper (cc1, cc1obj, cc1plus)
89
#                       depending on target.
90
#
91
#  extra_gcc_objs       List of extra objects that should be linked into
92
#                       the compiler driver (gcc) depending on target.
93
#
94
#  extra_headers        List of used header files from the directory
95
#                       config/${cpu_type}.
96
#
97
#  extra_passes         List of extra executables compiled for this target
98
#                       machine, used for compiling from source to object.
99
#
100
#  extra_parts          List of extra object files that should be compiled
101
#                       for this target machine.
102
#
103
#  extra_programs       Like extra_passes, but these are used when linking.
104
#
105
#  extra_options        List of target-dependent .opt files.
106
#
107
#  c_target_objs        List of extra target-dependent objects that be
108
#                       linked into the C compiler only.
109
#
110
#  cxx_target_objs      List of extra target-dependent objects that be
111
#                       linked into the C++ compiler only.
112
#
113
#  target_gtfiles       List of extra source files with type information.
114
#
115
#  xm_defines           List of macros to define when compiling for the
116
#                       target machine.
117
#
118
#  xm_file              List of files to include when compiling for the
119
#                       target machine.
120
#
121
#  use_collect2         Set to yes or no, depending on whether collect2
122
#                       will be used.
123
#
124
#  target_cpu_default   Set to override the default target model.
125
#
126
#  gdb_needs_out_file_path
127
#                       Set to yes if gdb needs a dir command with
128
#                       `dirname $out_file`.
129
#
130
#  thread_file          Set to control which thread package to use.
131
#
132
#  gas                  Set to yes or no depending on whether the target
133
#                       system normally uses GNU as.
134
#
135
#  need_64bit_hwint     Set to yes if HOST_WIDE_INT must be 64 bits wide
136
#                       for this target.  This is true iff this target
137
#                       supports "long" or "wchar_t" wider than 32 bits.
138
#
139
#  configure_default_options
140
#                       Set to an initializer for configure_default_options
141
#                       in configargs.h, based on --with-cpu et cetera.
142
#
143
#  use_fixproto         Set to "yes" if fixproto should be run normally,
144
#                       "no" if fixproto should never be run.
145
 
146
# The following variables are used in each case-construct to build up the
147
# outgoing variables:
148
#
149
#  gnu_ld               Set to yes or no depending on whether the target
150
#                       system normally uses GNU ld.
151
 
152
out_file=
153
tmake_file=
154
extra_headers=
155
extra_passes=
156
extra_parts=
157
extra_programs=
158
extra_objs=
159
extra_gcc_objs=
160
extra_options=
161
c_target_objs=
162
cxx_target_objs=
163
tm_defines=
164
xm_defines=
165
# Set this to force installation and use of collect2.
166
use_collect2=
167
# Set this to override the default target model.
168
target_cpu_default=
169
# Set this if gdb needs a dir command with `dirname $out_file`
170
gdb_needs_out_file_path=
171
# Set this to control which thread package will be used.
172
thread_file=
173
# Reinitialize these from the flag values every loop pass, since some
174
# configure entries modify them.
175
gas="$gas_flag"
176
gnu_ld="$gnu_ld_flag"
177
default_use_cxa_atexit=no
178
target_gtfiles=
179
need_64bit_hwint=
180
 
181
# Default to not using fixproto.  Targets which need fixproto should
182
# specifically set this to 'yes'.
183
use_fixproto=no
184
 
185
# Don't carry these over build->host->target.  Please.
186
xm_file=
187
md_file=
188
 
189
# Obsolete configurations.
190
case ${target} in
191
   c4x-*                \
192
 | tic4x-*              \
193
 )
194
    if test "x$enable_obsolete" != xyes; then
195
      echo "*** Configuration ${target} is obsolete." >&2
196
      echo "*** Specify --enable-obsolete to build it anyway." >&2
197
      echo "*** Support will be REMOVED in the next major release of GCC," >&2
198
      echo "*** unless a maintainer comes forward." >&2
199
      exit 1
200
    fi;;
201
esac
202
 
203
# Unsupported targets list.  Do not put an entry in this list unless
204
# it would otherwise be caught by a more permissive pattern.  The list
205
# should be in alphabetical order.
206
case ${target} in
207
   alpha*-*-linux*libc1*                \
208
 | i[34567]86-sequent-sysv              \
209
 | i[34567]86-sequent-sysv[123]*        \
210
 | i[34567]86-go32-*                    \
211
 | i[34567]86-*-go32*                   \
212
 | m68k-*-linux*aout*                   \
213
 | m68k-*-linux*libc1*                  \
214
 | mips64orion*-*-rtems*                \
215
 | powerpc-*-linux*libc1*               \
216
 | sparc-*-linux*aout*                  \
217
 | sparc-*-linux*libc1*                 \
218
 | sparc-hal-solaris2*                  \
219
 | thumb-*-*                            \
220
 | *-*-linux*coff*                      \
221
 | *-*-linux*oldld*                     \
222
 | *-*-rtemsaout*                       \
223
 | *-*-rtemscoff*                       \
224
 | vax-*-vms*                           \
225
 )
226
        echo "*** Configuration ${target} not supported" 1>&2
227
        exit 1
228
        ;;
229
esac
230
 
231
# Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
232
# updated in each machine entry.  Also set default extra_headers for some
233
# machines.
234
tm_p_file=
235
cpu_type=`echo ${target} | sed 's/-.*$//'`
236
cpu_is_64bit=
237
case ${target} in
238
m32c*-*-*)
239
        cpu_type=m32c
240
        tmake_file=m32c/t-m32c
241
        ;;
242
alpha*-*-*)
243
        cpu_type=alpha
244
        need_64bit_hwint=yes
245
        ;;
246
am33_2.0-*-linux*)
247
        cpu_type=mn10300
248
        ;;
249
strongarm*-*-*)
250
        cpu_type=arm
251
        ;;
252
arm*-*-*)
253
        cpu_type=arm
254
        extra_headers="mmintrin.h"
255
        ;;
256
bfin*-*)
257
        cpu_type=bfin
258
        ;;
259
ep9312*-*-*)
260
        cpu_type=arm
261
        ;;
262
frv*)   cpu_type=frv
263
        ;;
264
xscale-*-*)
265
        cpu_type=arm
266
        extra_headers="mmintrin.h"
267
        ;;
268
i[34567]86-*-*)
269
        cpu_type=i386
270
        extra_headers="mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h pmmintrin.h"
271
        ;;
272
x86_64-*-*)
273
        cpu_type=i386
274
        extra_headers="mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h pmmintrin.h"
275
        need_64bit_hwint=yes
276
        ;;
277
ia64-*-*)
278
        extra_headers=ia64intrin.h
279
        need_64bit_hwint=yes
280
        ;;
281
hppa*-*-* | parisc*-*-*)
282
        cpu_type=pa
283
        ;;
284
m32r*-*-*)
285
        cpu_type=m32r
286
        ;;
287
m680[012]0-*-*)
288
        cpu_type=m68k
289
        extra_headers=math-68881.h
290
        ;;
291
m68k-*-*)
292
        extra_headers=math-68881.h
293
        ;;
294
mips*-*-*)
295
        cpu_type=mips
296
        need_64bit_hwint=yes
297
        ;;
298
powerpc*-*-*)
299
        cpu_type=rs6000
300
        extra_headers="ppc-asm.h altivec.h spe.h"
301
        need_64bit_hwint=yes
302
        case x$with_cpu in
303
            xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[3456]|xrs64a)
304
                cpu_is_64bit=yes
305
                ;;
306
        esac
307
        ;;
308
rs6000*-*-*)
309
        need_64bit_hwint=yes
310
        ;;
311
score*-*-*)
312
        cpu_type=score
313
        ;;
314
sparc64*-*-*)
315
        cpu_type=sparc
316
        need_64bit_hwint=yes
317
        ;;
318
sparc*-*-*)
319
        cpu_type=sparc
320
        ;;
321
s390*-*-*)
322
        cpu_type=s390
323
        need_64bit_hwint=yes
324
        ;;
325
# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
326
sh[123456789lbe]*-*-*)
327
        cpu_type=sh
328
        need_64bit_hwint=yes
329
        ;;
330
tic4x-*-*)
331
        cpu_type=c4x
332
        ;;
333
esac
334
 
335
tm_file=${cpu_type}/${cpu_type}.h
336
if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
337
then
338
        tm_p_file=${cpu_type}/${cpu_type}-protos.h
339
fi
340
extra_modes=
341
if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
342
then
343
        extra_modes=${cpu_type}/${cpu_type}-modes.def
344
fi
345
if test -f ${srcdir}/config/${cpu_type}/${cpu_type}.opt
346
then
347
        extra_options="${extra_options} ${cpu_type}/${cpu_type}.opt"
348
fi
349
 
350
case ${target} in
351
x86_64-*-*)
352
        tm_file="i386/biarch64.h ${tm_file}"
353
        ;;
354
esac
355
 
356
# On a.out targets, we need to use collect2.
357
case ${target} in
358
*-*-*aout*)
359
        use_collect2=yes
360
        ;;
361
esac
362
 
363
# Common parts for widely ported systems.
364
case ${target} in
365
*-*-darwin*)
366
  tm_file="${tm_file} darwin.h"
367
  case ${target} in
368
  *-*-darwin9*)
369
    tm_file="${tm_file} darwin9.h"
370
    ;;
371
  esac
372
  tm_file="${tm_file} ${cpu_type}/darwin.h"
373
  tm_p_file="${tm_p_file} darwin-protos.h"
374
  tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin"
375
  target_gtfiles="\$(srcdir)/config/darwin.c"
376
  extra_options="${extra_options} darwin.opt"
377
  c_target_objs="darwin-c.o"
378
  cxx_target_objs="darwin-c.o"
379
  extra_objs="darwin.o"
380
  default_use_cxa_atexit=yes
381
  case ${enable_threads} in
382
    "" | yes | posix) thread_file='posix' ;;
383
  esac
384
  ;;
385
*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
386
  # This is the place-holder for the generic a.out configuration
387
  # of FreeBSD.  No actual configuration resides here since
388
  # there was only ever a bare-bones ix86 configuration for
389
  # a.out and it exists solely in the machine-specific section.
390
  # This place-holder must exist to avoid dropping into
391
  # the generic ELF configuration of FreeBSD (i.e. it must be
392
  # ordered before that section).
393
  ;;
394
*-*-freebsd*)
395
  # This is the generic ELF configuration of FreeBSD.  Later
396
  # machine-specific sections may refine and add to this
397
  # configuration.
398
  #
399
  # Due to tm_file entry ordering issues that vary between cpu
400
  # architectures, we only define fbsd_tm_file to allow the
401
  # machine-specific section to dictate the final order of all
402
  # entries of tm_file with the minor exception that components
403
  # of the tm_file set here will always be of the form:
404
  #
405
  # freebsd.h [freebsd-.h ...] freebsd-spec.h freebsd.h
406
  #
407
  # The machine-specific section should not tamper with this
408
  # ordering but may order all other entries of tm_file as it
409
  # pleases around the provided core setting.
410
  gas=yes
411
  gnu_ld=yes
412
  extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
413
  case ${target} in
414
    *-*-freebsd3 | *-*-freebsd[3].*)
415
      tm_defines="${tm_defines} FBSD_MAJOR=3" ;;
416
    *-*-freebsd4 | *-*-freebsd[4].*)
417
      tm_defines="${tm_defines} FBSD_MAJOR=4" ;;
418
    *-*-freebsd5 | *-*-freebsd[5].*)
419
      tm_defines="${tm_defines} FBSD_MAJOR=5" ;;
420
    *-*-freebsd6 | *-*-freebsd[6].*)
421
      tm_defines="${tm_defines} FBSD_MAJOR=6" ;;
422
    *-*-freebsd7 | *-*-freebsd[7].*)
423
      tm_defines="${tm_defines} FBSD_MAJOR=7" ;;
424
    *-*-freebsd8 | *-*-freebsd[8].*)
425
      tm_defines="${tm_defines} FBSD_MAJOR=8" ;;
426
    *-*-freebsd9 | *-*-freebsd[9].*)
427
      tm_defines="${tm_defines} FBSD_MAJOR=9" ;;
428
    *)
429
      echo 'Please update *-*-freebsd* in gcc/config.gcc'
430
      exit 1
431
      ;;
432
  esac
433
  tmake_file="t-slibgcc-elf-ver t-freebsd"
434
  case ${enable_threads} in
435
    no)
436
      fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h"
437
      ;;
438
    "" | yes | posix)
439
      thread_file='posix'
440
      tmake_file="${tmake_file} t-freebsd-thread"
441
      # Before 5.0, FreeBSD can't bind shared libraries to -lc
442
      # when "optionally" threaded via weak pthread_* checks.
443
      case ${target} in
444
        *-*-freebsd[34] | *-*-freebsd[34].*)
445
          tmake_file="${tmake_file} t-slibgcc-nolc-override"
446
          ;;
447
      esac
448
      ;;
449
    *)
450
      echo 'Unknown thread configuration for FreeBSD'
451
      exit 1
452
      ;;
453
  esac
454
  fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
455
  ;;
456
*-*-linux*libc1* | *-*-linux*aout*)
457
  # Avoid the generic linux case.
458
  ;;
459
*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
460
  # Must come before *-*-gnu* (because of *-*-linux-gnu* systems).
461
  extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
462
  extra_options="${extra_options} linux.opt"
463
  gas=yes
464
  gnu_ld=yes
465
  case ${enable_threads} in
466
    "" | yes | posix) thread_file='posix' ;;
467
  esac
468
  tmake_file="t-slibgcc-elf-ver t-linux"
469
  case ${target} in
470
    *-*-*uclibc*)
471
      tm_defines="${tm_defines} UCLIBC_DEFAULT=1"
472
      ;;
473
    *)
474
      tm_defines="${tm_defines} UCLIBC_DEFAULT=0"
475
      ;;
476
  esac
477
  # Assume that glibc or uClibc are being used and so __cxa_atexit is provided.
478
  default_use_cxa_atexit=yes
479
  ;;
480
*-*-gnu*)
481
  # On the Hurd, the setup is just about the same on
482
  # each different CPU.  The specific machines that we
483
  # support are matched above and just set $cpu_type.
484
  tm_file="${cpu_type}/gnu.h"
485
  extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
486
  # GNU tools are the only tools.
487
  gas=yes
488
  gnu_ld=yes
489
  # These details are the same as for Linux.
490
  # But here we need a little extra magic.
491
  tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
492
  case ${target} in
493
    alpha*)
494
      tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
495
      ;;
496
    i[34567]86-*-*)
497
      tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}"
498
      ;;
499
  esac
500
  # Assume that glibc is being used and so __cxa_atexit is provided.
501
  default_use_cxa_atexit=yes
502
  ;;
503
*-*-netbsd*)
504
  tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic"
505
  gas=yes
506
  gnu_ld=yes
507
 
508
  # NetBSD 2.0 and later get POSIX threads enabled by default.
509
  # Allow them to be explicitly enabled on any other version.
510
  case ${enable_threads} in
511
    "")
512
      case ${target} in
513
        *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
514
          thread_file='posix'
515
          tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
516
          ;;
517
      esac
518
      ;;
519
    yes | posix)
520
      thread_file='posix'
521
      tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
522
      ;;
523
  esac
524
 
525
  # NetBSD 1.7 and later are set up to use GCC's crtstuff for
526
  # ELF configurations.  We will clear extra_parts in the
527
  # a.out configurations.
528
  case ${target} in
529
    *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
530
      extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
531
      ;;
532
  esac
533
 
534
  # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
535
  # default (unless overridden by --disable-__cxa_atexit).
536
  case ${target} in
537
    *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
538
      default_use_cxa_atexit=yes
539
      ;;
540
  esac
541
  ;;
542
*-*-openbsd*)
543
  tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
544
  case ${enable_threads} in
545
    yes)
546
      thread_file='posix'
547
      tmake_file="${tmake_file} t-openbsd-thread"
548
      ;;
549
  esac
550
  case ${target} in
551
    *-*-openbsd2.*|*-*-openbsd3.[012])
552
      tm_defines="${tm_defines} HAS_LIBC_R=1" ;;
553
  esac
554
  ;;
555
*-*-rtems*)
556
  case ${enable_threads} in
557
    yes) thread_file='rtems' ;;
558
  esac
559
  ;;
560
*-*-vxworks*)
561
  tmake_file=t-vxworks
562
  tm_file="${tm_file} elfos.h svr4.h"
563
  xm_defines=POSIX
564
  extra_options="${extra_options} vxworks.opt"
565
  case ${enable_threads} in
566
    no) ;;
567
    "" | yes | vxworks) thread_file='vxworks' ;;
568
    *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;;
569
  esac
570
  ;;
571
*-*-elf)
572
  # Assume that newlib is being used and so __cxa_atexit is provided.
573
  default_use_cxa_atexit=yes
574
  ;;
575
esac
576
 
577
case ${target} in
578
# Support site-specific machine types.
579
*local*)
580
        rest=`echo ${target} | sed -e "s/$cpu_type-//"`
581
        tm_file=${cpu_type}/$rest.h
582
        if test -f $srcdir/config/${cpu_type}/xm-$rest.h
583
        then xm_file=${cpu_type}/xm-$rest.h
584
        fi
585
        if test -f $srcdir/config/${cpu_type}/t-$rest
586
        then tmake_file=${cpu_type}/t-$rest
587
        fi
588
        ;;
589
alpha*-*-unicosmk*)
590
        use_collect2=yes
591
        tm_file="${tm_file} alpha/unicosmk.h"
592
 
593
        # Don't include t-ieee for now because we don't support that yet
594
        # tmake_file="alpha/t-ieee"
595
        tmake_file="alpha/t-unicosmk"
596
        use_fixproto=yes
597
        ;;
598
alpha*-*-linux*)
599
        tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
600
        target_cpu_default="MASK_GAS"
601
        tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee alpha/t-linux"
602
        ;;
603
alpha*-*-gnu*)
604
        target_cpu_default="MASK_GAS"
605
        tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
606
        ;;
607
alpha*-*-freebsd*)
608
        tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
609
        target_cpu_default="MASK_GAS"
610
        tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
611
        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
612
        ;;
613
alpha*-*-netbsd*)
614
        tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
615
        target_cpu_default="MASK_GAS"
616
        tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
617
        ;;
618
alpha*-*-openbsd*)
619
        tm_defines="${tm_defines} OBSD_NO_DYNAMIC_LIBRARIES OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT"
620
        tm_file="alpha/alpha.h openbsd.h alpha/openbsd.h"
621
        # default x-alpha is only appropriate for dec-osf.
622
        target_cpu_default="MASK_GAS"
623
        tmake_file="alpha/t-alpha alpha/t-ieee"
624
        ;;
625
alpha*-dec-osf[45]*)
626
        if test x$stabs = xyes
627
        then
628
                tm_file="${tm_file} dbx.h"
629
        fi
630
        if test x$gas != xyes
631
        then
632
                extra_passes="mips-tfile mips-tdump"
633
        fi
634
        use_collect2=yes
635
        tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
636
        tm_file="${tm_file} alpha/osf.h"
637
        extra_headers=va_list.h
638
        case ${target} in
639
          *-*-osf4*)
640
            # Define TARGET_SUPPORT_ARCH except on 4.0a.
641
            case ${target} in
642
                *-*-osf4.0a) ;;
643
                *) tm_defines="${tm_defines} TARGET_SUPPORT_ARCH=1"
644
            esac
645
            ;;
646
          *-*-osf5*)
647
            tm_file="${tm_file} alpha/osf5.h"
648
            tm_defines="${tm_defines} TARGET_SUPPORT_ARCH=1"
649
            ;;
650
        esac
651
        case ${enable_threads} in
652
          "" | yes | posix)
653
            thread_file='posix'
654
            tmake_file="${tmake_file} alpha/t-osf-pthread"
655
            ;;
656
        esac
657
        ;;
658
alpha64-dec-*vms*)
659
        tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
660
        xm_file="alpha/xm-vms.h"
661
        tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
662
        prefix=/gnu
663
        local_prefix=/gnu
664
        ;;
665
alpha*-dec-*vms*)
666
        tm_file="${tm_file} alpha/vms.h"
667
        xm_file=alpha/xm-vms.h
668
        tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
669
        prefix=/gnu
670
        local_prefix=/gnu
671
        ;;
672
arc-*-elf*)
673
        tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
674
        extra_parts="crtinit.o crtfini.o"
675
        use_fixproto=yes
676
        ;;
677
arm-*-coff* | armel-*-coff*)
678
        tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h"
679
        tmake_file="arm/t-arm arm/t-arm-coff"
680
        ;;
681
arm-semi-aof | armel-semi-aof)
682
        tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
683
        tmake_file="arm/t-arm arm/t-semi"
684
        ;;
685
arm-wrs-vxworks)
686
        tm_file="dbxelf.h elfos.h svr4.h vxworks.h arm/elf.h arm/aout.h arm/arm.h arm/vxworks.h"
687
        tmake_file="${tmake_file} arm/t-arm arm/t-vxworks"
688
        ;;
689
arm*-*-freebsd*|strongarm*-*-freebsd*)
690
        tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
691
        tmake_file="${tmake_file} arm/t-arm arm/t-strongarm-elf"
692
        ;;
693
arm*-*-netbsdelf*)
694
        tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
695
        tmake_file="${tmake_file} arm/t-arm arm/t-netbsd"
696
        ;;
697
arm*-*-netbsd*)
698
        tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
699
        tmake_file="t-netbsd arm/t-arm arm/t-netbsd"
700
        extra_parts=""
701
        use_collect2=yes
702
        ;;
703
arm*-*-linux*)                  # ARM GNU/Linux with ELF
704
        tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
705
        tmake_file="${tmake_file} t-linux arm/t-arm"
706
        case ${target} in
707
        arm*-*-linux-*eabi)
708
            tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h"
709
            tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi"
710
            # The BPABI long long divmod functions return a 128-bit value in
711
            # registers r0-r3.  Correctly modeling that requires the use of
712
            # TImode.
713
            need_64bit_hwint=yes
714
            # The EABI requires the use of __cxa_atexit.
715
            default_use_cxa_atexit=yes
716
            ;;
717
        *)
718
            tmake_file="$tmake_file arm/t-linux"
719
            ;;
720
        esac
721
        tm_file="$tm_file arm/aout.h arm/arm.h"
722
        ;;
723
arm*-*-uclinux*)                # ARM ucLinux
724
        tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h"
725
        tmake_file="arm/t-arm arm/t-arm-elf"
726
        ;;
727
arm*-*-ecos-elf)
728
        tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
729
        tmake_file="arm/t-arm arm/t-arm-elf"
730
        ;;
731
arm*-*-eabi* | arm*-*-symbianelf* )
732
        # The BPABI long long divmod functions return a 128-bit value in
733
        # registers r0-r3.  Correctly modeling that requires the use of
734
        # TImode.
735
        need_64bit_hwint=yes
736
        default_use_cxa_atexit=yes
737
        tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h"
738
        tmake_file="arm/t-arm arm/t-arm-elf"
739
        case ${target} in
740
        arm*-*-eabi*)
741
          tmake_file="${tmake_file} arm/t-bpabi"
742
          ;;
743
        arm*-*-symbianelf*)
744
          tm_file="${tm_file} arm/symbian.h"
745
          # We do not include t-bpabi for Symbian OS because the system
746
          # provides its own implementation of the BPABI functions.
747
          tmake_file="${tmake_file} arm/t-symbian"
748
          ;;
749
        esac
750
        tm_file="${tm_file} arm/aout.h arm/arm.h"
751
        ;;
752
arm*-*-rtems*)
753
        tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h"
754
        tmake_file="arm/t-arm arm/t-arm-elf t-rtems arm/t-rtems"
755
        ;;
756
arm*-*-elf | ep9312-*-elf)
757
        tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
758
        tmake_file="arm/t-arm arm/t-arm-elf"
759
        ;;
760
arm*-wince-pe*)
761
        tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h arm/wince-pe.h"
762
        tmake_file="arm/t-arm arm/t-wince-pe"
763
        extra_options="${extra_options} arm/pe.opt"
764
        extra_objs="pe.o"
765
        ;;
766
arm-*-pe*)
767
        tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h"
768
        tmake_file="arm/t-arm arm/t-pe"
769
        extra_options="${extra_options} arm/pe.opt"
770
        extra_objs="pe.o"
771
        ;;
772
arm*-*-kaos*)
773
        tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-arm.h"
774
        tmake_file="arm/t-arm arm/t-arm-elf"
775
        ;;
776
avr-*-rtems*)
777
        tm_file="avr/avr.h dbxelf.h avr/rtems.h rtems.h"
778
        tmake_file="avr/t-avr t-rtems avr/t-rtems"
779
        ;;
780
avr-*-*)
781
        tm_file="avr/avr.h dbxelf.h"
782
        use_fixproto=yes
783
        ;;
784
bfin*-elf*)
785
        tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h"
786
        tmake_file=bfin/t-bfin-elf
787
        use_collect2=no
788
        ;;
789
bfin*-uclinux*)
790
        tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/uclinux.h"
791
        tmake_file=bfin/t-bfin-elf
792
        use_collect2=no
793
        ;;
794
bfin*-rtems*)
795
        tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h"
796
        tmake_file="bfin/t-bfin t-rtems bfin/t-rtems"
797
        ;;
798
bfin*-*)
799
        tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h"
800
        tmake_file=bfin/t-bfin
801
        use_collect2=no
802
        ;;
803
c4x-*-rtems* | tic4x-*-rtems*)
804
        tmake_file="c4x/t-c4x t-rtems c4x/t-rtems"
805
        tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
806
        c_target_objs="c4x-c.o"
807
        cxx_target_objs="c4x-c.o"
808
        ;;
809
c4x-* | tic4x-*)
810
        tmake_file=c4x/t-c4x
811
        c_target_objs="c4x-c.o"
812
        cxx_target_objs="c4x-c.o"
813
        ;;
814
cris-*-aout)
815
        tm_file="dbxelf.h ${tm_file} cris/aout.h"
816
        gas=yes
817
        tmake_file="cris/t-cris cris/t-aout"
818
        extra_options="${extra_options} cris/aout.opt"
819
        ;;
820
cris-*-elf | cris-*-none)
821
        tm_file="dbxelf.h elfos.h ${tm_file}"
822
        tmake_file="cris/t-cris cris/t-elfmulti"
823
        gas=yes
824
        extra_options="${extra_options} cris/elf.opt"
825
        ;;
826
cris-*-linux*)
827
        tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
828
        # We need to avoid using t-linux, so override default tmake_file
829
        tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
830
        extra_options="${extra_options} cris/linux.opt"
831
        ;;
832
crx-*-elf)
833
        tm_file="elfos.h ${tm_file}"
834
        extra_parts="crtbegin.o crtend.o"
835
        use_collect2=no
836
        ;;
837
fr30-*-elf)
838
        tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
839
        tmake_file=fr30/t-fr30
840
        extra_parts="crti.o crtn.o crtbegin.o crtend.o"
841
        use_fixproto=yes
842
        ;;
843
frv-*-elf)
844
        tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h"
845
        tmake_file=frv/t-frv
846
        use_fixproto=yes
847
        ;;
848
frv-*-*linux*)
849
        tm_file="dbxelf.h elfos.h svr4.h ${tm_file} \
850
                 linux.h frv/linux.h frv/frv-abi.h"
851
        tmake_file="${tmake_file} frv/t-frv frv/t-linux"
852
        ;;
853
h8300-*-rtemscoff*)
854
        tmake_file="h8300/t-h8300 t-rtems h8300/t-rtems"
855
        tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h h8300/rtems.h rtems.h"
856
        ;;
857
h8300-*-rtems*)
858
        tmake_file="h8300/t-h8300 h8300/t-elf t-rtems h8300/t-rtems"
859
        tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h h8300/rtems.h rtems.h"
860
        ;;
861
h8300-*-elf*)
862
        tmake_file="h8300/t-h8300 h8300/t-elf"
863
        tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h"
864
        use_fixproto=yes
865
        ;;
866
h8300-*-*)
867
        tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h"
868
        use_fixproto=yes
869
        ;;
870
hppa*64*-*-linux* | parisc*64*-*-linux*)
871
        target_cpu_default="MASK_PA_11|MASK_PA_20"
872
        tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
873
                 pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
874
        tmake_file="${tmake_file} pa/t-linux64"
875
        gas=yes gnu_ld=yes
876
        need_64bit_hwint=yes
877
        ;;
878
hppa*-*-linux* | parisc*-*-linux*)
879
        target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS"
880
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
881
                 pa/pa32-regs.h pa/pa32-linux.h"
882
        tmake_file="${tmake_file} pa/t-linux"
883
        # Set the libgcc version number
884
        if test x$sjlj = x1; then
885
            tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
886
        else
887
            tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
888
        fi
889
        ;;
890
# port not yet contributed.
891
#hppa*-*-openbsd*)
892
#       target_cpu_default="MASK_PA_11"
893
#       ;;
894
hppa1.1-*-pro*)
895
        target_cpu_default="MASK_PORTABLE_RUNTIME|MASK_NO_SPACE_REGS|MASK_SOFT_FLOAT"
896
        tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h \
897
                 pa/pa-pro-end.h libgloss.h"
898
        tmake_file="pa/t-pro"
899
        ;;
900
hppa1.1-*-osf*)
901
        target_cpu_default="MASK_PA_11"
902
        tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h pa/pa-osf.h"
903
        tmake_file="pa/t-pa"
904
        use_collect2=yes
905
        ;;
906
hppa1.1-*-bsd*)
907
        target_cpu_default="MASK_PA_11"
908
        tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h"
909
        tmake_file="pa/t-pa"
910
        use_collect2=yes
911
        ;;
912
hppa[12]*-*-hpux10*)
913
        case ${target} in
914
        hppa1.1-*-* | hppa2*-*-*)
915
                target_cpu_default="MASK_PA_11"
916
                ;;
917
        esac
918
        tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \
919
                 pa/pa-hpux.h pa/pa-hpux10.h"
920
        extra_options="${extra_options} pa/pa-hpux.opt"
921
        case ${target} in
922
        *-*-hpux10.[1-9]*)
923
                tm_file="${tm_file} pa/pa-hpux1010.h"
924
                extra_options="${extra_options} pa/pa-hpux1010.opt"
925
                ;;
926
        esac
927
        tmake_file="pa/t-pa-hpux10 pa/t-pa-hpux pa/t-hpux-shlib"
928
        case ${enable_threads} in
929
          "")
930
            if test x$have_pthread_h = xyes ; then
931
              tmake_file="${tmake_file} pa/t-dce-thr"
932
            fi
933
            ;;
934
          yes | dce)
935
            tmake_file="${tmake_file} pa/t-dce-thr"
936
            ;;
937
        esac
938
        # Set the libgcc version number
939
        if test x$sjlj = x1; then
940
            tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
941
        else
942
            tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
943
        fi
944
        use_collect2=yes
945
        use_fixproto=yes
946
        gas=yes
947
        ;;
948
hppa*64*-*-hpux11*)
949
        target_cpu_default="MASK_PA_11|MASK_PA_20"
950
        if test x$gnu_ld = xyes
951
        then
952
                target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
953
        fi
954
        tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
955
                 pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \
956
                 pa/pa-hpux11.h"
957
        case ${target} in
958
        *-*-hpux11.[1-9]*)
959
                tm_file="${tm_file} pa/pa-hpux1111.h pa/pa-64.h pa/pa64-hpux.h"
960
                extra_options="${extra_options} pa/pa-hpux1111.opt"
961
                ;;
962
        *)
963
                tm_file="${tm_file} pa/pa-64.h pa/pa64-hpux.h"
964
                ;;
965
        esac
966
        extra_options="${extra_options} pa/pa-hpux.opt \
967
                       pa/pa-hpux1010.opt pa/pa64-hpux.opt"
968
        need_64bit_hwint=yes
969
        tmake_file="pa/t-pa64 pa/t-pa-hpux pa/t-hpux-shlib"
970
        # Set the libgcc version number
971
        if test x$sjlj = x1; then
972
            tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
973
        else
974
            tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
975
        fi
976
        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
977
                     libgcc_stub.a"
978
        case x${enable_threads} in
979
        x | xyes | xposix )
980
                thread_file=posix
981
                ;;
982
        esac
983
        gas=yes
984
        ;;
985
hppa[12]*-*-hpux11*)
986
        case ${target} in
987
        hppa1.1-*-* | hppa2*-*-*)
988
                target_cpu_default="MASK_PA_11"
989
                ;;
990
        esac
991
        tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \
992
                 pa/pa-hpux.h pa/pa-hpux1010.h pa/pa-hpux11.h"
993
        extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux1010.opt"
994
        case ${target} in
995
        *-*-hpux11.[1-9]*)
996
                tm_file="${tm_file} pa/pa-hpux1111.h"
997
                extra_options="${extra_options} pa/pa-hpux1111.opt"
998
                ;;
999
        esac
1000
        tmake_file="pa/t-pa-hpux11 pa/t-pa-hpux pa/t-hpux-shlib"
1001
        # Set the libgcc version number
1002
        if test x$sjlj = x1; then
1003
            tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
1004
        else
1005
            tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
1006
        fi
1007
        case x${enable_threads} in
1008
        x | xyes | xposix )
1009
                thread_file=posix
1010
                ;;
1011
        esac
1012
        use_collect2=yes
1013
        gas=yes
1014
        ;;
1015
i[34567]86-*-darwin*)
1016
        need_64bit_hwint=yes
1017
 
1018
        # This is so that '.../configure && make' doesn't fail due to
1019
        # config.guess deciding that the configuration is i386-*-darwin* and
1020
        # then this file using that to set --with-cpu=i386 which has no -m64
1021
        # support.
1022
        with_arch=${with_arch:-nocona}
1023
        with_cpu=${with_cpu:-generic}
1024
        ;;
1025
x86_64-*-darwin*)
1026
        with_arch=${with_arch:-nocona}
1027
        with_cpu=${with_cpu:-generic}
1028
        tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin"
1029
        tm_file="${tm_file} ${cpu_type}/darwin64.h"
1030
        ;;
1031
i[34567]86-*-elf*)
1032
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
1033
        tmake_file="i386/t-i386elf t-svr4"
1034
        use_fixproto=yes
1035
        ;;
1036
i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1037
        if test x$gas = xyes
1038
        then
1039
                tm_file="${tm_file} usegas.h"
1040
        fi
1041
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
1042
        tmake_file=t-svr4
1043
        extra_parts="crtbegin.o crtend.o"
1044
        use_fixproto=yes
1045
        ;;
1046
i[34567]86-*-aout*)
1047
        tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
1048
        use_fixproto=yes
1049
        ;;
1050
i[34567]86-*-beoself* | i[34567]86-*-beos*)
1051
        tmake_file='i386/t-beos i386/t-crtpic'
1052
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
1053
        extra_parts='crtbegin.o crtend.o'
1054
        ;;
1055
i[34567]86-*-freebsd*)
1056
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
1057
        ;;
1058
x86_64-*-freebsd*)
1059
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h"
1060
        ;;
1061
i[34567]86-*-netbsdelf*)
1062
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
1063
        ;;
1064
i[34567]86-*-netbsd*)
1065
        tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
1066
        tmake_file=t-netbsd
1067
        extra_parts=""
1068
        use_collect2=yes
1069
        ;;
1070
x86_64-*-netbsd*)
1071
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h"
1072
        ;;
1073
i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
1074
        tm_file="i386/i386.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h i386/openbsd.h"
1075
        # needed to unconfuse gdb
1076
        tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1077
        # we need collect2 until our bug is fixed...
1078
        use_collect2=yes
1079
        ;;
1080
i[34567]86-*-openbsd*)
1081
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h"
1082
        tm_file="${tm_file} openbsd.h i386/openbsdelf.h"
1083
        gas=yes
1084
        gnu_ld=yes
1085
        ;;
1086
i[34567]86-*-coff*)
1087
        tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
1088
        use_fixproto=yes
1089
        ;;
1090
i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu)
1091
                        # Intel 80386's running GNU/*
1092
                        # with ELF format using glibc 2
1093
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1094
        case ${target} in
1095
        i[34567]86-*-knetbsd*-gnu) tm_file="${tm_file} knetbsd-gnu.h i386/knetbsd-gnu.h" ;;
1096
        i[34567]86-*-kfreebsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu.h" ;;
1097
        esac
1098
        tmake_file="${tmake_file} i386/t-crtstuff i386/t-crtfm t-dfprules"
1099
        ;;
1100
x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
1101
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1102
                 i386/x86-64.h i386/linux64.h"
1103
        case ${target} in
1104
        x86_64-*-kfreebsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h" ;;
1105
        x86_64-*-knetbsd*-gnu) tm_file="${tm_file} knetbsd-gnu.h" ;;
1106
        esac
1107
        tmake_file="${tmake_file} i386/t-linux64 i386/t-crtfm t-dfprules"
1108
        ;;
1109
i[34567]86-*-gnu*)
1110
        ;;
1111
i[34567]86-pc-msdosdjgpp*)
1112
        xm_file=i386/xm-djgpp.h
1113
        tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h"
1114
        tmake_file=i386/t-djgpp
1115
        extra_options="${extra_options} i386/djgpp.opt"
1116
        gnu_ld=yes
1117
        gas=yes
1118
        ;;
1119
i[34567]86-*-lynxos*)
1120
        xm_defines=POSIX
1121
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/lynx.h lynx.h"
1122
        tmake_file="i386/t-crtstuff t-lynx"
1123
        extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1124
        extra_options="${extra_options} lynx.opt"
1125
        thread_file=lynx
1126
        gnu_ld=yes
1127
        gas=yes
1128
        ;;
1129
i[3456x]86-*-netware*)
1130
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h tm-dwarf2.h i386/netware.h"
1131
        tmake_file=i386/t-netware
1132
        extra_objs=netware.o
1133
        case /${with_ld} in
1134
        */nwld)
1135
                extra_objs="$extra_objs nwld.o"
1136
                tm_file="${tm_file} i386/nwld.h"
1137
                tmake_file="${tmake_file} i386/t-nwld"
1138
                extra_parts="crt0.o libgcc.def libc.def libcpre.def posixpre.def"
1139
                ;;
1140
        esac
1141
        case x${enable_threads} in
1142
        x | xyes | xposix) thread_file='posix';;
1143
        xnks) thread_file='nks';;
1144
        xno) ;;
1145
        *) echo 'Unknown thread configuration for NetWare' >&2; exit 1;;
1146
        esac
1147
        ;;
1148
i[34567]86-*-nto-qnx*)
1149
        tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h svr4.h i386/unix.h i386/nto.h"
1150
        tmake_file=i386/t-nto
1151
        gnu_ld=yes
1152
        gas=yes
1153
        ;;
1154
i[34567]86-*-rtems*)
1155
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
1156
        extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1157
        tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1158
        ;;
1159
i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1160
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h"
1161
        if test x$gas = xyes
1162
        then
1163
                tm_file="usegas.h ${tm_file}"
1164
        fi
1165
        tmake_file=i386/t-sco5
1166
        extra_parts="crtbegin.o crtend.o"
1167
        extra_options="${extra_options} i386/sco5.opt"
1168
        use_fixproto=yes
1169
        ;;
1170
i[34567]86-*-solaris2*)
1171
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h"
1172
        case ${target} in
1173
        *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
1174
                tm_file="${tm_file} sol2-6.h"
1175
                ;;
1176
        *-*-solaris2.1[0-9]*)
1177
                tm_file="${tm_file} sol2-10.h"
1178
                ;;
1179
        esac
1180
        tm_file="${tm_file} i386/sol2.h"
1181
        tmake_file="t-sol2 i386/t-sol2 t-svr4"
1182
        c_target_objs="sol2-c.o"
1183
        cxx_target_objs="sol2-c.o"
1184
        extra_objs="sol2.o"
1185
        tm_p_file="${tm_p_file} sol2-protos.h"
1186
        if test x$gnu_ld = xyes; then
1187
                tmake_file="$tmake_file t-slibgcc-elf-ver"
1188
                tm_defines="${tm_defines} TARGET_GNU_LD=1"
1189
        else
1190
                tmake_file="$tmake_file t-slibgcc-sld"
1191
        fi
1192
        if test x$gas = xyes; then
1193
                tm_file="usegas.h ${tm_file}"
1194
        fi
1195
        case ${target} in
1196
        *-*-solaris2.[789] | *-*-solaris2.1[0-9]*)
1197
                tm_file="$tm_file tm-dwarf2.h"
1198
                ;;
1199
        esac
1200
        case ${target} in
1201
        *-*-solaris2.1[0-9]*)
1202
                tm_file="${tm_file} i386/x86-64.h i386/sol2-10.h"
1203
                tm_defines="${tm_defines} TARGET_BI_ARCH=1"
1204
                tmake_file="$tmake_file i386/t-sol2-10"
1205
                need_64bit_hwint=yes
1206
                # FIXME: -m64 for i[34567]86-*-* should be allowed just
1207
                # like -m32 for x86_64-*-*.
1208
                case X"${with_cpu}" in
1209
                Xgeneric|Xnocona|Xx86-64|Xk8|Xopteron|Xathlon64|Xathlon-fx)
1210
                        ;;
1211
                X)
1212
                        with_cpu=generic
1213
                        ;;
1214
                *)
1215
                        echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
1216
                        echo "generic nocona x86-64 k8 opteron athlon64 athlon-fx" 1>&2
1217
                        exit 1
1218
                        ;;
1219
                esac
1220
                # Solaris 2.10 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
1221
                # part of the base system.
1222
                extra_parts="gmon.o crtbegin.o crtend.o"
1223
                ;;
1224
        *)
1225
                extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1226
                ;;
1227
        esac
1228
        case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
1229
          "":yes:* | yes:yes:* )
1230
                case ${target} in
1231
                  *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
1232
                        thread_file=posix95
1233
                        ;;
1234
                  *)
1235
                        thread_file=posix
1236
                        ;;
1237
                esac
1238
                ;;
1239
          "":*:yes | yes:*:yes )
1240
                thread_file=solaris
1241
                ;;
1242
        esac
1243
        ;;
1244
i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
1245
       tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1246
       if test x$stabs = xyes
1247
       then
1248
               tm_file="${tm_file} dbx.h"
1249
       fi
1250
       tmake_file="i386/t-crtpic t-svr4"
1251
       extra_parts="crtbegin.o crtend.o"
1252
       if test x$enable_threads = xyes; then
1253
               thread_file='posix'
1254
       fi
1255
        use_fixproto=yes
1256
       ;;
1257
i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
1258
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
1259
        if test x$stabs = xyes
1260
        then
1261
                tm_file="${tm_file} dbx.h"
1262
        fi
1263
        tmake_file="i386/t-crtpic t-svr4"
1264
        extra_parts="crtbegin.o crtend.o"
1265
        use_fixproto=yes
1266
        ;;
1267
i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
1268
        tm_file="${tm_file} i386/sysv4.h i386/unix.h i386/att.h vx-common.h"
1269
        case ${target} in
1270
          *-vxworksae*)
1271
            tm_file="${tm_file} vxworksae.h i386/vxworksae.h"
1272
            tmake_file="${tmake_file} i386/t-vxworks i386/t-vxworksae"
1273
            ;;
1274
          *)
1275
            tm_file="${tm_file} vxworks.h i386/vxworks.h"
1276
            tmake_file="${tmake_file} i386/t-vxworks"
1277
            ;;
1278
        esac
1279
        ;;
1280
i[34567]86-*-pe | i[34567]86-*-cygwin*)
1281
        tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h"
1282
        xm_file=i386/xm-cygwin.h
1283
        tmake_file="i386/t-cygwin i386/t-cygming"
1284
        target_gtfiles="\$(srcdir)/config/i386/winnt.c"
1285
        extra_options="${extra_options} i386/cygming.opt"
1286
        extra_objs="winnt.o winnt-stubs.o"
1287
        c_target_objs=cygwin2.o
1288
        cxx_target_objs="cygwin2.o winnt-cxx.o"
1289
        extra_gcc_objs=cygwin1.o
1290
        if test x$enable_threads = xyes; then
1291
                thread_file='posix'
1292
        fi
1293
        ;;
1294
i[34567]86-*-mingw32*)
1295
        tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
1296
        xm_file=i386/xm-mingw32.h
1297
        tmake_file="i386/t-cygming i386/t-mingw32"
1298
        target_gtfiles="\$(srcdir)/config/i386/winnt.c"
1299
        extra_options="${extra_options} i386/cygming.opt"
1300
        extra_objs="winnt.o winnt-stubs.o"
1301
        cxx_target_objs=winnt-cxx.o
1302
        case ${enable_threads} in
1303
          "" | yes | win32)
1304
          thread_file='win32'
1305
          tmake_file="${tmake_file} i386/t-gthr-win32"
1306
          ;;
1307
        esac
1308
        case ${target} in
1309
                *mingw32crt*)
1310
                        tm_file="${tm_file} i386/crtdll.h"
1311
                        ;;
1312
                *mingw32msv* | *mingw32*)
1313
                        ;;
1314
        esac
1315
        ;;
1316
i[34567]86-*-uwin*)
1317
        tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h"
1318
        tmake_file="i386/t-cygwin i386/t-uwin"
1319
        extra_objs=winnt.o
1320
        extra_options="${extra_options} i386/cygming.opt"
1321
        target_gtfiles="\$(srcdir)/config/i386/winnt.c"
1322
        if test x$enable_threads = xyes; then
1323
                thread_file='win32'
1324
        fi
1325
        use_fixproto=yes
1326
        ;;
1327
i[34567]86-*-interix3*)
1328
        tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h"
1329
        tmake_file="i386/t-interix"
1330
        extra_objs=winnt.o
1331
        target_gtfiles="\$(srcdir)/config/i386/winnt.c"
1332
        if test x$enable_threads = xyes ; then
1333
                thread_file='posix'
1334
        fi
1335
        if test x$stabs = xyes ; then
1336
                tm_file="${tm_file} dbxcoff.h"
1337
        fi
1338
        ;;
1339
i[34567]86-*-kaos*)
1340
        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h kaos.h i386/kaos-i386.h"
1341
        tmake_file="i386/t-i386elf t-svr4"
1342
        ;;
1343
ia64*-*-elf*)
1344
        tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1345
        tmake_file="ia64/t-ia64"
1346
        target_cpu_default="0"
1347
        if test x$gas = xyes
1348
        then
1349
                target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1350
        fi
1351
        if test x$gnu_ld = xyes
1352
        then
1353
                target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1354
        fi
1355
        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1356
        use_fixproto=yes
1357
        ;;
1358
ia64*-*-freebsd*)
1359
        tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1360
        target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1361
        tmake_file="${tmake_file} ia64/t-ia64"
1362
        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1363
        ;;
1364
ia64*-*-linux*)
1365
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1366
        tmake_file="${tmake_file} ia64/t-ia64 t-libunwind ia64/t-glibc"
1367
        if test x$with_system_libunwind != xyes ; then
1368
                tmake_file="${tmake_file} t-libunwind-elf ia64/t-glibc-libunwind"
1369
        fi
1370
        target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1371
        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1372
        ;;
1373
ia64*-*-hpux*)
1374
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h"
1375
        tmake_file="ia64/t-ia64 ia64/t-hpux"
1376
        target_cpu_default="MASK_GNU_AS"
1377
        case x$enable_threads in
1378
        xyes | xposix )
1379
                thread_file=posix
1380
                ;;
1381
        esac
1382
        use_collect2=no
1383
        c_target_objs="ia64-c.o"
1384
        cxx_target_objs="ia64-c.o"
1385
        extra_options="${extra_options} ia64/ilp32.opt"
1386
        # If we decide to run fixproto we should define FIXPROTO_DEFINES
1387
        # in ia64/t-hpux, and also fix the definition of putenv in
1388
        # sys-protos.h (const char not char).
1389
        ;;
1390
iq2000*-*-elf*)
1391
        tm_file="svr4.h elfos.h iq2000/iq2000.h"
1392
        tmake_file=iq2000/t-iq2000
1393
        out_file=iq2000/iq2000.c
1394
        md_file=iq2000/iq2000.md
1395
        use_fixproto=yes
1396
        ;;
1397
m32r-*-elf*)
1398
        tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1399
        extra_parts="crtinit.o crtfini.o"
1400
        use_fixproto=yes
1401
        ;;
1402
m32rle-*-elf*)
1403
        tm_file="dbxelf.h elfos.h svr4.h m32r/little.h ${tm_file}"
1404
        extra_parts="crtinit.o crtfini.o m32rx/crtinit.o m32rx/crtfini.o"
1405
        use_fixproto=yes
1406
        ;;
1407
m32r-*-linux*)
1408
        tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} m32r/linux.h"
1409
        # We override the tmake_file for linux -- why?
1410
        tmake_file="t-slibgcc-elf-ver m32r/t-linux"
1411
        gnu_ld=yes
1412
        use_fixproto=yes
1413
        if test x$enable_threads = xyes; then
1414
                thread_file='posix'
1415
        fi
1416
        ;;
1417
m32rle-*-linux*)
1418
        tm_file="dbxelf.h elfos.h svr4.h linux.h m32r/little.h ${tm_file} m32r/linux.h"
1419
        # We override the tmake_file for linux -- why?
1420
        tmake_file="t-slibgcc-elf-ver m32r/t-linux"
1421
        gnu_ld=yes
1422
        use_fixproto=yes
1423
        if test x$enable_threads = xyes; then
1424
                thread_file='posix'
1425
        fi
1426
        ;;
1427
# m68hc11 and m68hc12 share the same machine description.
1428
m68hc11-*-*|m6811-*-*)
1429
        tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1430
        tm_p_file="m68hc11/m68hc11-protos.h"
1431
        md_file="m68hc11/m68hc11.md"
1432
        out_file="m68hc11/m68hc11.c"
1433
        tmake_file="m68hc11/t-m68hc11-gas"
1434
        use_fixproto=yes
1435
        ;;
1436
m68hc12-*-*|m6812-*-*)
1437
        tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1438
        tm_p_file="m68hc11/m68hc11-protos.h"
1439
        md_file="m68hc11/m68hc11.md"
1440
        out_file="m68hc11/m68hc11.c"
1441
        tmake_file="m68hc11/t-m68hc11-gas"
1442
        extra_options="${extra_options} m68hc11/m68hc11.opt"
1443
        use_fixproto=yes
1444
        ;;
1445
m68k-*-aout*)
1446
        tmake_file=m68k/t-m68kbare
1447
        tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kemb.h m68k/m68k-aout.h libgloss.h"
1448
        ;;
1449
m68k-*-coff*)
1450
        tmake_file=m68k/t-m68kbare
1451
        tm_defines="${tm_defines} MOTOROLA USE_GAS"
1452
        tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kemb.h dbxcoff.h m68k/coff.h dbx.h"
1453
        use_fixproto=yes
1454
        ;;
1455
m68020-*-elf* | m68k-*-elf*)
1456
        tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1457
        tm_defines="${tm_defines} MOTOROLA USE_GAS"
1458
        tmake_file=m68k/t-m68kelf
1459
        extra_parts="crtbegin.o crtend.o"
1460
        ;;
1461
m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1462
        tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1463
        tm_defines="${tm_defines} MOTOROLA USE_GAS"
1464
        case ${target} in
1465
        m68010*)
1466
                target_cpu_default="0"
1467
                ;;
1468
        *)
1469
                target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1470
                ;;
1471
        esac
1472
        ;;
1473
m68k*-*-openbsd*)
1474
        # needed to unconfuse gdb
1475
        tm_defines="${tm_defines} OBSD_OLD_GAS TARGET_DEFAULT=(MASK_68020|MASK_68881|MASK_BITFIELD)"
1476
        tm_file="m68k/m68k.h openbsd.h m68k/openbsd.h"
1477
        tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1478
        # we need collect2 until our bug is fixed...
1479
        use_collect2=yes
1480
        ;;
1481
m68k-*-uclinux*)                # Motorola m68k/ColdFire running uClinux with uClibc
1482
        tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/uclinux.h"
1483
        tm_defines="${tm_defines} MOTOROLA USE_GAS"
1484
        tmake_file=m68k/t-uclinux
1485
        use_fixproto=no
1486
        ;;
1487
m68k-*-linux*)          # Motorola m68k's running GNU/Linux
1488
                                # with ELF format using glibc 2
1489
                                # aka the GNU/Linux C library 6.
1490
        tm_file="m68k/m68k.h dbxelf.h elfos.h svr4.h linux.h m68k/linux.h"
1491
        extra_options="${extra_options} m68k/ieee.opt"
1492
        tm_defines="${tm_defines} MOTOROLA USE_GAS"
1493
        # if not configured with --enable-sjlj-exceptions, bump the
1494
        # libgcc version number
1495
        if test x$sjlj != x1; then
1496
            tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
1497
        fi
1498
        ;;
1499
m68k-*-rtems*)
1500
        tmake_file="m68k/t-m68kbare m68k/t-crtstuff t-rtems m68k/t-rtems"
1501
        tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h"
1502
        tm_defines="${tm_defines} MOTOROLA USE_GAS"
1503
        extra_parts="crtbegin.o crtend.o"
1504
        ;;
1505
mcore-*-elf)
1506
        tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
1507
        tmake_file=mcore/t-mcore
1508
        use_fixproto=yes
1509
        ;;
1510
mcore-*-pe*)
1511
        tm_file="svr3.h dbxcoff.h ${tm_file} mcore/mcore-pe.h"
1512
        tmake_file=mcore/t-mcore-pe
1513
        use_fixproto=yes
1514
        ;;
1515
mips-sgi-irix[56]*)
1516
        tm_file="elfos.h ${tm_file} mips/iris.h"
1517
        tmake_file="mips/t-iris mips/t-slibgcc-irix"
1518
        target_cpu_default="MASK_ABICALLS"
1519
        case ${target} in
1520
        *-*-irix5*)
1521
                tm_file="${tm_file} mips/iris5.h"
1522
                ;;
1523
 
1524
        *-*-irix6*)
1525
                tm_file="${tm_file} mips/iris6.h"
1526
                tmake_file="${tmake_file} mips/t-iris6"
1527
                tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
1528
                ;;
1529
        esac
1530
        if test "x$stabs" = xyes
1531
        then
1532
                tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
1533
        fi
1534
        if test "x$gnu_ld" = xyes
1535
        then
1536
                tm_defines="${tm_defines} IRIX_USING_GNU_LD"
1537
        fi
1538
#       if test x$enable_threads = xyes; then
1539
#               thread_file='irix'
1540
#       fi
1541
        use_fixproto=yes
1542
        ;;
1543
mips*-*-netbsd*)                        # NetBSD/mips, either endian.
1544
        target_cpu_default="MASK_ABICALLS"
1545
        tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h"
1546
        ;;
1547
mips64*-*-linux*)
1548
        tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h"
1549
        tmake_file="${tmake_file} mips/t-linux64"
1550
        tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32"
1551
        gnu_ld=yes
1552
        gas=yes
1553
        ;;
1554
mips*-*-linux*)                         # Linux MIPS, either endian.
1555
        tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
1556
        case ${target} in
1557
        mipsisa32*-*)
1558
                target_cpu_default="MASK_SOFT_FLOAT"
1559
                tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
1560
                ;;
1561
        esac
1562
        ;;
1563
mips*-*-openbsd*)
1564
        tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS"
1565
        target_cpu_default="MASK_ABICALLS"
1566
        tm_file="mips/mips.h openbsd.h mips/openbsd.h mips/sdb.h"
1567
        case ${target} in
1568
        mips*el-*-openbsd*)
1569
            tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=0";;
1570
        *)  tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN";;
1571
        esac
1572
        ;;
1573
mipsisa32-*-elf* | mipsisa32el-*-elf*)
1574
        tm_file="elfos.h ${tm_file} mips/elf.h"
1575
        tmake_file=mips/t-isa3264
1576
        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
1577
        use_fixproto=yes
1578
        ;;
1579
mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
1580
        tm_file="elfos.h ${tm_file} mips/elf.h"
1581
        tmake_file=mips/t-isa3264
1582
        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
1583
        use_fixproto=yes
1584
        ;;
1585
mipsisa64-*-elf* | mipsisa64el-*-elf*)
1586
        tm_file="elfos.h ${tm_file} mips/elf.h"
1587
        tmake_file=mips/t-isa3264
1588
        target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1589
        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
1590
        use_fixproto=yes
1591
        ;;
1592
mipsisa64sr71k-*-elf*)
1593
        tm_file="elfos.h ${tm_file} mips/elf.h"
1594
        tmake_file=mips/t-sr71k
1595
        target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1596
        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
1597
        use_fixproto=yes
1598
        ;;
1599
mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1600
        tm_file="elfos.h ${tm_file} mips/elf.h"
1601
        tmake_file="mips/t-elf mips/t-sb1"
1602
        target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1603
        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1604
        use_fixproto=yes
1605
        ;;
1606
mips-*-elf* | mipsel-*-elf*)
1607
        tm_file="elfos.h ${tm_file} mips/elf.h"
1608
        tmake_file=mips/t-elf
1609
        use_fixproto=yes
1610
        ;;
1611
mips64-*-elf* | mips64el-*-elf*)
1612
        tm_file="elfos.h ${tm_file} mips/elf.h"
1613
        tmake_file=mips/t-elf
1614
        target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1615
        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1616
        use_fixproto=yes
1617
        ;;
1618
mips64vr-*-elf* | mips64vrel-*-elf*)
1619
        tm_file="mips/vr.h elfos.h ${tm_file} mips/elf.h"
1620
        tmake_file=mips/t-vr
1621
        use_fixproto=yes
1622
        ;;
1623
mips64orion-*-elf* | mips64orionel-*-elf*)
1624
        tm_file="elfos.h ${tm_file} mips/elforion.h mips/elf.h"
1625
        tmake_file=mips/t-elf
1626
        target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1627
        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1628
        use_fixproto=yes
1629
        ;;
1630
mips*-*-rtems*)
1631
        tm_file="elfos.h ${tm_file} mips/elf.h mips/rtems.h rtems.h"
1632
        tmake_file="mips/t-elf t-rtems mips/t-rtems"
1633
        ;;
1634
mips-wrs-vxworks)
1635
        # We want vxworks.h after mips/elf.h, which unfortunately means we
1636
        # have to redo the tm_file list from scratch.
1637
        tm_file="elfos.h mips/mips.h svr4.h mips/elf.h vxworks.h mips/vxworks.h"
1638
        tmake_file="${tmake_file} mips/t-vxworks"
1639
        ;;
1640
mips-wrs-windiss)       # Instruction-level simulator for VxWorks.
1641
        xm_defines=POSIX
1642
        tm_file="elfos.h mips/mips.h svr4.h mips/elf.h windiss.h mips/windiss.h"
1643
        tmake_file="${tmake_file} mips/t-elf"
1644
        thread_file=
1645
        ;;
1646
mipstx39-*-elf* | mipstx39el-*-elf*)
1647
        tm_file="elfos.h ${tm_file} mips/r3900.h mips/elf.h"
1648
        tmake_file=mips/t-r3900
1649
        use_fixproto=yes
1650
        ;;
1651
mmix-knuth-mmixware)
1652
        need_64bit_hwint=yes
1653
        ;;
1654
mn10300-*-*)
1655
        tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1656
        if test x$stabs = xyes
1657
        then
1658
                tm_file="${tm_file} dbx.h"
1659
        fi
1660
        use_collect2=no
1661
        use_fixproto=yes
1662
        ;;
1663
mt-*-elf)
1664
        tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1665
        tmake_file="${tmake_file} mt/t-mt"
1666
        ;;
1667
ns32k-*-netbsdelf*)
1668
        echo "GCC does not yet support the ${target} target"; exit 1
1669
        ;;
1670
ns32k-*-netbsd*)
1671
        tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1672
        # On NetBSD, the headers are already okay, except for math.h.
1673
        tmake_file="t-netbsd ns32k/t-ns32k"
1674
        extra_parts=""
1675
        use_collect2=yes
1676
        ;;
1677
or32-*-elf*)
1678
        tm_file="${tm_file} dbxelf.h elfos.h or32/elf.h or32/or32.h"
1679
        ;;
1680
or32-*linux*)
1681
       tm_file="${tm_file} dbxelf.h elfos.h or32/or32.h or32/elf.h or32/linux-gas.h or32/linux-elf.h"
1682
       tmake_file=or32/t-default
1683
       ;;
1684
 
1685
pdp11-*-bsd)
1686
        tm_file="${tm_file} pdp11/2bsd.h"
1687
        use_fixproto=yes
1688
        ;;
1689
pdp11-*-*)
1690
        use_fixproto=yes
1691
        ;;
1692
# port not yet contributed
1693
#powerpc-*-openbsd*)
1694
#       tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-fprules-fpbit "
1695
#       extra_headers=
1696
#       ;;
1697
powerpc64-*-linux*)
1698
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1699
        test x$with_cpu != x || cpu_is_64bit=yes
1700
        test x$cpu_is_64bit != xyes || tm_file="${tm_file} rs6000/default64.h"
1701
        tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h"
1702
        if test x${enable_secureplt} = xyes; then
1703
                tm_file="rs6000/secureplt.h ${tm_file}"
1704
        fi
1705
        extra_options="${extra_options} rs6000/sysv4.opt rs6000/linux64.opt"
1706
        tmake_file="t-dfprules rs6000/t-fprules ${tmake_file} rs6000/t-ppccomm rs6000/t-linux64 rs6000/t-fprules-softfp soft-fp/t-softfp"
1707
        ;;
1708
powerpc64-*-gnu*)
1709
        tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux64.h rs6000/gnu.h"
1710
        extra_options="${extra_options} rs6000/sysv4.opt rs6000/linux64.opt"
1711
        tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64 rs6000/t-fprules-softfp soft-fp/t-softfp"
1712
        ;;
1713
powerpc-*-beos*)
1714
        tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
1715
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-beos"
1716
        extra_headers=
1717
        use_fixproto=yes
1718
        ;;
1719
powerpc-*-darwin*)
1720
        extra_options="${extra_options} rs6000/darwin.opt"
1721
        extra_parts="crt2.o"
1722
        case ${target} in
1723
          *-darwin1[0-9]* | *-darwin[8-9]*)
1724
            tmake_file="${tmake_file} rs6000/t-darwin8"
1725
            tm_file="${tm_file} rs6000/darwin8.h"
1726
            ;;
1727
          *-darwin7*)
1728
            tm_file="${tm_file} rs6000/darwin7.h"
1729
            ;;
1730
          *-darwin[0-6]*)
1731
            ;;
1732
        esac
1733
        extra_headers=altivec.h
1734
        ;;
1735
powerpc64-*-darwin*)
1736
        tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h"
1737
        extra_options="${extra_options} ${cpu_type}/darwin.opt"
1738
        # We're omitting t-darwin8 to avoid building any multilibs
1739
        extra_headers=altivec.h
1740
        ;;
1741
powerpc*-*-freebsd*)
1742
        tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
1743
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1744
        extra_options="${extra_options} rs6000/sysv4.opt"
1745
        ;;
1746
powerpc-*-netbsd*)
1747
        tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1748
        tmake_file="${tmake_file} rs6000/t-netbsd"
1749
        extra_options="${extra_options} rs6000/sysv4.opt"
1750
        ;;
1751
powerpc-*-chorusos*)
1752
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
1753
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos rs6000/t-ppccomm"
1754
        extra_options="${extra_options} rs6000/sysv4.opt"
1755
        case ${enable_threads} in
1756
          yes | posix)
1757
            thread_file='posix'
1758
            ;;
1759
        esac
1760
        use_fixproto=yes
1761
        ;;
1762
powerpc-*-eabispe*)
1763
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
1764
        extra_options="${extra_options} rs6000/sysv4.opt"
1765
        tmake_file="rs6000/t-spe rs6000/t-ppccomm"
1766
        ;;
1767
powerpc-*-eabisimaltivec*)
1768
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h rs6000/eabialtivec.h"
1769
        extra_options="${extra_options} rs6000/sysv4.opt"
1770
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcendian rs6000/t-ppccomm"
1771
        ;;
1772
powerpc-*-eabisim*)
1773
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
1774
        extra_options="${extra_options} rs6000/sysv4.opt"
1775
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
1776
        ;;
1777
powerpc-*-elf*)
1778
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1779
        extra_options="${extra_options} rs6000/sysv4.opt"
1780
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
1781
        use_fixproto=yes
1782
        ;;
1783
powerpc-*-eabialtivec*)
1784
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
1785
        extra_options="${extra_options} rs6000/sysv4.opt"
1786
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcendian rs6000/t-ppccomm"
1787
        ;;
1788
powerpc-*-eabi*)
1789
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
1790
        extra_options="${extra_options} rs6000/sysv4.opt"
1791
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
1792
        ;;
1793
powerpc-*-rtems*)
1794
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
1795
        extra_options="${extra_options} rs6000/sysv4.opt"
1796
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-rtems t-rtems rs6000/t-ppccomm"
1797
        ;;
1798
powerpc-*-linux*altivec*)
1799
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
1800
        extra_options="${extra_options} rs6000/sysv4.opt"
1801
        tmake_file="rs6000/t-fprules rs6000/t-fprules-softfp soft-fp/t-softfp rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1802
        ;;
1803
powerpc-*-linux*spe*)
1804
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
1805
        extra_options="${extra_options} rs6000/sysv4.opt"
1806
        tmake_file="rs6000/t-fprules rs6000/t-fprules-softfp soft-fp/t-softfp rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1807
        ;;
1808
powerpc-*-linux*)
1809
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1810
        extra_options="${extra_options} rs6000/sysv4.opt"
1811
        tmake_file="t-dfprules rs6000/t-fprules rs6000/t-fprules-softfp soft-fp/t-softfp rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1812
        case ${enable_targets}:${cpu_is_64bit} in
1813
            *powerpc64* | all:* | *:yes)
1814
                if test x$cpu_is_64bit = xyes; then
1815
                    tm_file="${tm_file} rs6000/default64.h"
1816
                fi
1817
                tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h"
1818
                tmake_file="$tmake_file rs6000/t-linux64"
1819
                extra_options="${extra_options} rs6000/linux64.opt"
1820
                ;;
1821
            *)
1822
                tm_file="${tm_file} rs6000/linux.h"
1823
                ;;
1824
        esac
1825
        if test x${enable_secureplt} = xyes; then
1826
                tm_file="rs6000/secureplt.h ${tm_file}"
1827
        fi
1828
        ;;
1829
powerpc-*-gnu-gnualtivec*)
1830
        tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h"
1831
        extra_options="${extra_options} rs6000/sysv4.opt"
1832
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1833
        if test x$enable_threads = xyes; then
1834
                thread_file='posix'
1835
        fi
1836
        ;;
1837
powerpc-*-gnu*)
1838
        tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/gnu.h"
1839
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1840
        extra_options="${extra_options} rs6000/sysv4.opt"
1841
        if test x$enable_threads = xyes; then
1842
                thread_file='posix'
1843
        fi
1844
        ;;
1845
powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
1846
        # We want vxworks.h after rs6000/sysv4.h, which unfortunately
1847
        # means we have to redo the tm_file list from scratch.
1848
        tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1849
        tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppccomm rs6000/t-vxworks"
1850
        extra_options="${extra_options} rs6000/sysv4.opt"
1851
        extra_headers=ppc-asm.h
1852
        case ${target} in
1853
          *-vxworksae*)
1854
            tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/vxworksae.h"
1855
            tmake_file="${tmake_file} rs6000/t-vxworksae"
1856
            ;;
1857
          *-vxworks*)
1858
            tm_file="${tm_file} vx-common.h vxworks.h rs6000/vxworks.h"
1859
            ;;
1860
        esac
1861
        ;;
1862
powerpc-wrs-windiss*)  # Instruction-level simulator for VxWorks.
1863
        tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
1864
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
1865
        extra_options="${extra_options} rs6000/sysv4.opt"
1866
        thread_file=""
1867
        use_fixproto=yes
1868
        ;;
1869
powerpc-*-lynxos*)
1870
        xm_defines=POSIX
1871
        tm_file="${tm_file} dbxelf.h elfos.h rs6000/sysv4.h rs6000/lynx.h lynx.h"
1872
        tmake_file="t-lynx rs6000/t-lynx"
1873
        extra_options="${extra_options} rs6000/sysv4.opt lynx.opt"
1874
        extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1875
        extra_options="${extra_options} lynx.opt"
1876
        thread_file=lynx
1877
        gnu_ld=yes
1878
        gas=yes
1879
        ;;
1880
powerpcle-*-sysv*)
1881
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1882
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos rs6000/t-ppccomm"
1883
        extra_options="${extra_options} rs6000/sysv4.opt"
1884
        use_fixproto=yes
1885
        ;;
1886
powerpcle-*-elf*)
1887
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1888
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
1889
        extra_options="${extra_options} rs6000/sysv4.opt"
1890
        use_fixproto=yes
1891
        ;;
1892
powerpcle-*-eabisim*)
1893
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
1894
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
1895
        extra_options="${extra_options} rs6000/sysv4.opt"
1896
        ;;
1897
powerpcle-*-eabi*)
1898
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
1899
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
1900
        extra_options="${extra_options} rs6000/sysv4.opt"
1901
        ;;
1902
powerpc-*-kaos*)
1903
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h kaos.h rs6000/kaos-ppc.h"
1904
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
1905
        extra_options="${extra_options} rs6000/sysv4.opt"
1906
        ;;
1907
powerpcle-*-kaos*)
1908
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h kaos.h rs6000/kaos-ppc.h"
1909
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
1910
        extra_options="${extra_options} rs6000/sysv4.opt"
1911
        ;;
1912
rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
1913
        tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
1914
        tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-newas"
1915
        extra_options="${extra_options} rs6000/aix41.opt"
1916
        use_collect2=yes
1917
        extra_headers=
1918
        use_fixproto=yes
1919
        ;;
1920
rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1921
        tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
1922
        tmake_file=rs6000/t-aix43
1923
        extra_options="${extra_options} rs6000/aix64.opt"
1924
        use_collect2=yes
1925
        thread_file='aix'
1926
        extra_headers=
1927
        ;;
1928
rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1929
        tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
1930
        extra_options="${extra_options} rs6000/aix64.opt"
1931
        tmake_file=rs6000/t-aix43
1932
        use_collect2=yes
1933
        thread_file='aix'
1934
        extra_headers=
1935
        ;;
1936
rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1937
        tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
1938
        tmake_file=rs6000/t-aix52
1939
        extra_options="${extra_options} rs6000/aix64.opt"
1940
        use_collect2=yes
1941
        thread_file='aix'
1942
        extra_headers=
1943
        ;;
1944
s390-*-linux*)
1945
        tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1946
        tmake_file="${tmake_file} t-dfprules s390/t-crtstuff s390/t-linux"
1947
        ;;
1948
s390x-*-linux*)
1949
        tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1950
        tm_p_file=s390/s390-protos.h
1951
        md_file=s390/s390.md
1952
        extra_modes=s390/s390-modes.def
1953
        out_file=s390/s390.c
1954
        tmake_file="${tmake_file} t-dfprules s390/t-crtstuff s390/t-linux s390/t-linux64"
1955
        ;;
1956
s390x-ibm-tpf*)
1957
        tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h s390/tpf.h"
1958
        tm_p_file=s390/s390-protos.h
1959
        md_file=s390/s390.md
1960
        extra_modes=s390/s390-modes.def
1961
        out_file=s390/s390.c
1962
        extra_parts="crtbeginS.o crtendS.o"
1963
        tmake_file="s390/t-crtstuff s390/t-tpf"
1964
        thread_file='tpf'
1965
        extra_options="${extra_options} s390/tpf.opt"
1966
        ;;
1967
score-*-elf)
1968
        tm_file="dbxelf.h elfos.h score/elf.h score/score.h"
1969
        tmake_file=score/t-score-elf
1970
        extra_objs="score-mdaux.o"
1971
        ;;
1972
sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
1973
sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
1974
  sh-*-linux* | sh[346lbe]*-*-linux* | \
1975
  sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1976
   sh64-*-netbsd* | sh64l*-*-netbsd*)
1977
        tmake_file="${tmake_file} sh/t-sh sh/t-elf"
1978
        if test x${with_endian} = x; then
1979
                case ${target} in
1980
                sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;;
1981
                shbe-*-* | sheb-*-*)               with_endian=big,little ;;
1982
                sh[1234]l* | sh[34]*-*-linux*)     with_endian=little ;;
1983
                shl* | sh64l* | sh*-*-linux* | \
1984
                  sh5l* | sh-superh-elf)           with_endian=little,big ;;
1985
                sh[1234]*-*-*)                     with_endian=big ;;
1986
                *)                                 with_endian=big,little ;;
1987
                esac
1988
        fi
1989
        case ${with_endian} in
1990
        big|little)     tmake_file="${tmake_file} sh/t-1e" ;;
1991
        big,little|little,big) ;;
1992
        *)      echo "with_endian=${with_endian} not supported."; exit 1 ;;
1993
        esac
1994
        case ${with_endian} in
1995
        little*)        tm_file="sh/little.h ${tm_file}" ;;
1996
        esac
1997
        tm_file="${tm_file} dbxelf.h elfos.h"
1998
        case ${target} in
1999
        sh*-*-netbsd*)  ;;
2000
        *)              tm_file="${tm_file} svr4.h" ;;
2001
        esac
2002
        tm_file="${tm_file} sh/elf.h"
2003
        case ${target} in
2004
        sh*-*-linux*)   tmake_file="${tmake_file} sh/t-linux"
2005
                        tm_file="${tm_file} linux.h sh/linux.h" ;;
2006
        sh*-*-kaos*)    tm_file="${tm_file} sh/embed-elf.h kaos.h sh/kaos-sh.h"
2007
                        ;;
2008
        sh*-*-netbsd*)  tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h" ;;
2009
        sh*-superh-elf) if test x$with_libgloss != xno; then
2010
                                with_libgloss=yes
2011
                                tm_file="${tm_file} sh/newlib.h"
2012
                        fi
2013
                        tm_file="${tm_file} sh/embed-elf.h"
2014
                        extra_options="${extra_options} sh/superh.opt" ;;
2015
        *)              if test x$with_newlib = xyes \
2016
                           && test x$with_libgloss = xyes; then
2017
                                tm_file="${tm_file} sh/newlib.h"
2018
                        fi
2019
                        tm_file="${tm_file} sh/embed-elf.h" ;;
2020
        esac
2021
        case ${target} in
2022
        sh5*-*-netbsd*)
2023
                # SHmedia, 32-bit ABI
2024
                tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd"
2025
                ;;
2026
        sh64*-netbsd*)
2027
                # SHmedia, 64-bit ABI
2028
                tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd sh/t-netbsd-sh5-64"
2029
                ;;
2030
        *-*-netbsd)
2031
                tmake_file="${tmake_file} sh/t-netbsd"
2032
                ;;
2033
        sh64*-*-linux*)
2034
                tmake_file="${tmake_file} sh/t-sh64 sh/t-linux64"
2035
                tm_file="${tm_file} sh/sh64.h"
2036
                extra_headers="shmedia.h ushmedia.h sshmedia.h"
2037
                ;;
2038
        sh64*)
2039
                tmake_file="${tmake_file} sh/t-sh64"
2040
                tm_file="${tm_file} sh/sh64.h"
2041
                extra_headers="shmedia.h ushmedia.h sshmedia.h"
2042
                ;;
2043
        *-*-symbianelf*)
2044
                tmake_file="sh/t-symbian"
2045
                tm_file="sh/symbian-pre.h sh/little.h ${tm_file} sh/symbian-post.h"
2046
                extra_objs="symbian.o"
2047
                extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
2048
                ;;
2049
        esac
2050
        # sed el/eb endian suffixes away to avoid confusion with sh[23]e
2051
        case `echo ${target} | sed 's/e[lb]-/-/'` in
2052
        sh64*-*-netbsd*)        sh_cpu_target=sh5-64media ;;
2053
        sh64* | sh5*-*-netbsd*) sh_cpu_target=sh5-32media ;;
2054
        sh4a_single_only*)      sh_cpu_target=sh4a-single-only ;;
2055
        sh4a_single*)           sh_cpu_target=sh4a-single ;;
2056
        sh4a_nofpu*)            sh_cpu_target=sh4a-nofpu ;;
2057
        sh4al)                  sh_cpu_target=sh4al ;;
2058
        sh4a*)                  sh_cpu_target=sh4a ;;
2059
        sh4_single_only*)       sh_cpu_target=sh4-single-only ;;
2060
        sh4_single*)            sh_cpu_target=sh4-single ;;
2061
        sh4_nofpu*)             sh_cpu_target=sh4-nofpu ;;
2062
        sh4* | sh-superh-*)     sh_cpu_target=sh4 ;;
2063
        sh3e*)                  sh_cpu_target=sh3e ;;
2064
        sh*-*-netbsd* | sh3*)   sh_cpu_target=sh3 ;;
2065
        sh2a_single_only*)      sh_cpu_target=sh2a-single-only ;;
2066
        sh2a_single*)           sh_cpu_target=sh2a-single ;;
2067
        sh2a_nofpu*)            sh_cpu_target=sh2a-nofpu ;;
2068
        sh2a*)                  sh_cpu_target=sh2a ;;
2069
        sh2e*)                  sh_cpu_target=sh2e ;;
2070
        sh2*)                   sh_cpu_target=sh2 ;;
2071
        *)                      sh_cpu_target=sh1 ;;
2072
        esac
2073
        # did the user say --without-fp ?
2074
        if test x$with_fp = xno; then
2075
                case ${sh_cpu_target} in
2076
                sh5-*media)     sh_cpu_target=${sh_cpu_target}-nofpu ;;
2077
                sh4al | sh1)    ;;
2078
                sh4a* )         sh_cpu_target=sh4a-nofpu ;;
2079
                sh4*)           sh_cpu_target=sh4-nofpu ;;
2080
                sh3*)           sh_cpu_target=sh3 ;;
2081
                sh2a*)          sh_cpu_target=sh2a-nofpu ;;
2082
                sh2*)           sh_cpu_target=sh2 ;;
2083
                *)      echo --without-fp not available for $target: ignored
2084
                esac
2085
                tm_defines="$tm_defines STRICT_NOFPU=1"
2086
        fi
2087
        sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr A-Z_ a-z-`"
2088
        case $sh_cpu_default in
2089
        sh5-64media-nofpu | sh5-64media | \
2090
          sh5-32media-nofpu | sh5-32media | sh5-compact-nofpu | sh5-compact | \
2091
          sh2a-single-only | sh2a-single | sh2a-nofpu | sh2a | \
2092
          sh4a-single-only | sh4a-single | sh4a-nofpu | sh4a | sh4al | \
2093
          sh4-single-only | sh4-single | sh4-nofpu | sh4 | \
2094
          sh3e | sh3 | sh2e | sh2 | sh1) ;;
2095
        "")     sh_cpu_default=${sh_cpu_target} ;;
2096
        *)      echo "with_cpu=$with_cpu not supported"; exit 1 ;;
2097
        esac
2098
        sh_multilibs=${with_multilib_list}
2099
        if test x${sh_multilibs} = x ; then
2100
                case ${target} in
2101
                sh64-superh-linux* | \
2102
                sh[1234]*)      sh_multilibs=${sh_cpu_target} ;;
2103
                sh64* | sh5*)   sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;;
2104
                sh-superh-*)    sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;;
2105
                sh*-*-linux*)   sh_multilibs=m1,m3e,m4 ;;
2106
                sh*-*-netbsd*)  sh_multilibs=m3,m3e,m4 ;;
2107
                *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;;
2108
                esac
2109
                if test x$with_fp = xno; then
2110
                        sh_multilibs="`echo $sh_multilibs|sed -e s/m4/sh4-nofpu/ -e s/,m4-[^,]*//g -e s/,m[23]e// -e s/m2a,m2a-single/m2a-nofpu/ -e s/m5-..m....,//g`"
2111
                fi
2112
        fi
2113
        target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`
2114
        tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"'
2115
        sh_multilibs=`echo $sh_multilibs,$sh_cpu_default | sed -e 's/[  ,/][    ,]*/ /g' -e 's/ $//' -e 's/^m/sh/' -e 's/ m/ sh/g' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-`
2116
        for sh_multilib in ${sh_multilibs}; do
2117
                case ${sh_multilib} in
2118
                sh1 | sh2 | sh2e | sh3 | sh3e | \
2119
                sh4 | sh4-single | sh4-single-only | sh4-nofpu | \
2120
                sh4a | sh4a-single | sh4a-single-only | sh4a-nofpu | sh4al | \
2121
                sh2a | sh2a-single | sh2a-single-only | sh2a-nofpu | \
2122
                sh5-64media | sh5-64media-nofpu | \
2123
                sh5-32media | sh5-32media-nofpu | \
2124
                sh5-compact | sh5-compact-nofpu)
2125
                        tmake_file="${tmake_file} sh/t-mlib-${sh_multilib}"
2126
                        tm_defines="$tm_defines SUPPORT_`echo $sh_multilib|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1"
2127
                        ;;
2128
                *)
2129
                        echo "with_multilib_list=${sh_multilib} not supported."
2130
                        exit 1
2131
                        ;;
2132
                esac
2133
        done
2134
        if test x${enable_incomplete_targets} = xyes ; then
2135
                tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1 SUPPORT_SH5_32MEDIA=1 SUPPORT_SH5_32MEDIA_NOFPU=1 SUPPORT_SH5_64MEDIA=1 SUPPORT_SH5_64MEDIA_NOFPU=1"
2136
        fi
2137
        use_fixproto=yes
2138
        ;;
2139
sh-*-rtemscoff*)
2140
        tmake_file="sh/t-sh t-rtems sh/t-rtems"
2141
        tm_file="${tm_file} dbxcoff.h sh/coff.h sh/rtems.h rtems.h"
2142
        ;;
2143
sh-*-rtems*)
2144
        tmake_file="sh/t-sh sh/t-elf t-rtems sh/t-rtems"
2145
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h"
2146
        ;;
2147
sh-wrs-vxworks)
2148
        tmake_file="$tmake_file sh/t-sh sh/t-elf sh/t-vxworks"
2149
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/vxworks.h"
2150
        ;;
2151
sh-*-*)
2152
        tm_file="${tm_file} dbxcoff.h sh/coff.h"
2153
        use_fixproto=yes
2154
        ;;
2155
sparc-*-netbsdelf*)
2156
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2157
        extra_options="${extra_options} sparc/long-double-switch.opt"
2158
        ;;
2159
sparc64-*-openbsd*)
2160
        tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h"
2161
        extra_options="${extra_options} sparc/little-endian.opt"
2162
        gas=yes gnu_ld=yes
2163
        with_cpu=ultrasparc
2164
        ;;
2165
sparc-*-elf*)
2166
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp-elf.h"
2167
        tmake_file="sparc/t-elf sparc/t-crtfm"
2168
        extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2169
        use_fixproto=yes
2170
        ;;
2171
sparc-*-linux*)         # SPARC's running GNU/Linux, libc6
2172
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
2173
        extra_options="${extra_options} sparc/long-double-switch.opt"
2174
        tmake_file="${tmake_file} sparc/t-linux sparc/t-crtfm"
2175
        ;;
2176
sparc-*-rtems*)
2177
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h"
2178
        tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
2179
        extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2180
        ;;
2181
sparc64-*-solaris2* | sparcv9-*-solaris2*)
2182
        tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h"
2183
        case ${target} in
2184
        *-*-solaris2.1[0-9]*)
2185
                tm_file="${tm_file} sol2-10.h"
2186
                ;;
2187
        esac
2188
        tm_file="${tm_file} sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h"
2189
        if test x$gnu_ld = xyes; then
2190
                tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
2191
        fi
2192
        if test x$gas = xyes; then
2193
                tm_file="${tm_file} sparc/sol2-gas.h sparc/sol2-gas-bi.h"
2194
        fi
2195
        tm_file="${tm_file} tm-dwarf2.h"
2196
        tmake_file="t-sol2 sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
2197
        if test x$gnu_ld = xyes; then
2198
                tmake_file="$tmake_file t-slibgcc-elf-ver"
2199
        else
2200
                tmake_file="$tmake_file t-slibgcc-sld"
2201
        fi
2202
        c_target_objs="sol2-c.o"
2203
        cxx_target_objs="sol2-c.o"
2204
        extra_objs="sol2.o"
2205
        tm_p_file="${tm_p_file} sol2-protos.h"
2206
        extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2207
        case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
2208
          "":yes:* | yes:yes:* ) thread_file=posix ;;
2209
          "":*:yes | yes:*:yes ) thread_file=solaris ;;
2210
        esac
2211
        need_64bit_hwint=yes
2212
        ;;
2213
sparc-*-solaris2*)
2214
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h"
2215
        case ${target} in
2216
        *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
2217
                tm_file="${tm_file} sol2-6.h"
2218
                ;;
2219
        *-*-solaris2.1[0-9]*)
2220
                tm_file="${tm_file} sol2-10.h"
2221
                ;;
2222
        esac
2223
        tm_file="${tm_file} sparc/sol2.h"
2224
        if test x$gnu_ld = xyes; then
2225
                tm_file="${tm_file} sparc/sol2-gld.h"
2226
        fi
2227
        if test x$gas = xyes; then
2228
                tm_file="${tm_file} sparc/sol2-gas.h"
2229
        fi
2230
        tmake_file="t-sol2 sparc/t-sol2 sparc/t-crtfm"
2231
        if test x$gnu_ld = xyes; then
2232
                tmake_file="$tmake_file t-slibgcc-elf-ver"
2233
        else
2234
                tmake_file="$tmake_file t-slibgcc-sld"
2235
        fi
2236
        case ${target} in
2237
        *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
2238
                if test x$gnu_ld = xno; then
2239
                        tm_file="${tm_file} sparc/sol26-sld.h"
2240
                fi
2241
                ;;
2242
        *-*-solaris2.[789] | *-*-solaris2.1[0-9]*)
2243
                tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
2244
                if test x$gnu_ld = xyes; then
2245
                        tm_file="${tm_file} sparc/sol2-gld-bi.h"
2246
                fi
2247
                if test x$gas = xyes; then
2248
                        tm_file="${tm_file} sparc/sol2-gas-bi.h"
2249
                fi
2250
                tm_file="${tm_file} tm-dwarf2.h"
2251
                tmake_file="$tmake_file sparc/t-sol2-64"
2252
                need_64bit_hwint=yes
2253
                test x$with_cpu != x || with_cpu=v9
2254
                ;;
2255
        esac
2256
        c_target_objs="sol2-c.o"
2257
        cxx_target_objs="sol2-c.o"
2258
        extra_objs="sol2.o"
2259
        tm_p_file="${tm_p_file} sol2-protos.h"
2260
        extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2261
        case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
2262
          "":yes:* | yes:yes:* )
2263
                case ${target} in
2264
                  *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
2265
                        thread_file=posix95
2266
                        ;;
2267
                  *)
2268
                        thread_file=posix
2269
                        ;;
2270
                esac
2271
                ;;
2272
          "":*:yes | yes:*:yes )
2273
                thread_file=solaris
2274
                ;;
2275
        esac
2276
        ;;
2277
sparc-*-sysv4*)
2278
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sysv4-only.h"
2279
        tmake_file=t-svr4
2280
        extra_parts="crtbegin.o crtend.o"
2281
        use_fixproto=yes
2282
        ;;
2283
sparc64-*-elf*)
2284
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp64-elf.h"
2285
        extra_options="${extra_options} sparc/little-endian.opt"
2286
        tmake_file="${tmake_file} sparc/t-crtfm"
2287
        extra_parts="crtbegin.o crtend.o"
2288
        use_fixproto=yes
2289
        ;;
2290
sparc64-*-freebsd*|ultrasparc-*-freebsd*)
2291
        tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
2292
        extra_options="${extra_options} sparc/long-double-switch.opt"
2293
        tmake_file="${tmake_file} sparc/t-crtfm"
2294
        case "x$with_cpu" in
2295
                xultrasparc) ;;
2296
                x) with_cpu=ultrasparc ;;
2297
                *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
2298
        esac
2299
        need_64bit_hwint=yes
2300
        ;;
2301
sparc64-*-linux*)               # 64-bit SPARC's running GNU/Linux
2302
        tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
2303
        extra_options="${extra_options} sparc/long-double-switch.opt"
2304
        tmake_file="${tmake_file} sparc/t-linux sparc/t-linux64 sparc/t-crtfm"
2305
        ;;
2306
sparc64-*-netbsd*)
2307
        tm_file="sparc/biarch64.h ${tm_file}"
2308
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2309
        extra_options="${extra_options} sparc/long-double-switch.opt"
2310
        tmake_file="${tmake_file} sparc/t-netbsd64"
2311
        ;;
2312
strongarm-*-elf*)
2313
        tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2314
        tmake_file="arm/t-arm arm/t-strongarm-elf"
2315
        out_file=arm/arm.c
2316
        md_file=arm/arm.md
2317
        extra_modes=arm/arm-modes.def
2318
        use_fixproto=yes
2319
        ;;
2320
strongarm-*-pe)
2321
        tm_file="arm/semi.h arm/aout.h arm/coff.h dbxcoff.h arm/strongarm-coff.h arm/arm.h arm/pe.h arm/strongarm-pe.h"
2322
        tmake_file="arm/t-arm arm/t-strongarm-pe"
2323
        out_file=arm/arm.c
2324
        md_file=arm/arm.md
2325
        extra_modes=arm/arm-modes.def
2326
        extra_options="${extra_options} arm/pe.opt"
2327
        extra_objs=pe.o
2328
        use_fixproto=yes
2329
        ;;
2330
strongarm-*-kaos*)
2331
        tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-strongarm.h"
2332
        tmake_file="arm/t-arm arm/t-strongarm-elf"
2333
        out_file=arm/arm.c
2334
        md_file=arm/arm.md
2335
        extra_modes=arm/arm-modes.def
2336
        ;;
2337
v850e1-*-*)
2338
        target_cpu_default="TARGET_CPU_v850e1"
2339
        tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2340
        tm_p_file=v850/v850-protos.h
2341
        tmake_file=v850/t-v850e
2342
        md_file=v850/v850.md
2343
        out_file=v850/v850.c
2344
        extra_options="${extra_options} v850/v850.opt"
2345
        if test x$stabs = xyes
2346
        then
2347
                tm_file="${tm_file} dbx.h"
2348
        fi
2349
        use_collect2=no
2350
        c_target_objs="v850-c.o"
2351
        cxx_target_objs="v850-c.o"
2352
        use_fixproto=yes
2353
        ;;
2354
v850e-*-*)
2355
        target_cpu_default="TARGET_CPU_v850e"
2356
        tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2357
        tm_p_file=v850/v850-protos.h
2358
        tmake_file=v850/t-v850e
2359
        md_file=v850/v850.md
2360
        out_file=v850/v850.c
2361
        extra_options="${extra_options} v850/v850.opt"
2362
        if test x$stabs = xyes
2363
        then
2364
                tm_file="${tm_file} dbx.h"
2365
        fi
2366
        use_collect2=no
2367
        c_target_objs="v850-c.o"
2368
        cxx_target_objs="v850-c.o"
2369
        use_fixproto=yes
2370
        ;;
2371
v850-*-*)
2372
        target_cpu_default="TARGET_CPU_generic"
2373
        tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2374
        tmake_file=v850/t-v850
2375
        if test x$stabs = xyes
2376
        then
2377
                tm_file="${tm_file} dbx.h"
2378
        fi
2379
        use_collect2=no
2380
        c_target_objs="v850-c.o"
2381
        cxx_target_objs="v850-c.o"
2382
        use_fixproto=yes
2383
        ;;
2384
vax-*-bsd*)                     # VAXen running BSD
2385
        tm_file="${tm_file} vax/bsd.h"
2386
        tmake_file=vax/t-memfuncs
2387
        use_collect2=yes
2388
        use_fixproto=yes
2389
        ;;
2390
vax-*-sysv*)                    # VAXen running system V
2391
        tm_file="${tm_file} vax/vaxv.h"
2392
        tmake_file=vax/t-memfuncs
2393
        use_fixproto=yes
2394
        ;;
2395
vax-*-netbsdelf*)
2396
        tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
2397
        ;;
2398
vax-*-netbsd*)
2399
        tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
2400
        tmake_file=t-netbsd
2401
        extra_parts=""
2402
        use_collect2=yes
2403
        ;;
2404
vax-*-openbsd*)
2405
        tm_file="vax/vax.h vax/openbsd1.h openbsd.h vax/openbsd.h"
2406
        use_collect2=yes
2407
        ;;
2408
vax-*-ultrix*)                  # VAXen running ultrix
2409
        tm_file="${tm_file} vax/ultrix.h"
2410
        tmake_file=vax/t-memfuncs
2411
        use_fixproto=yes
2412
        ;;
2413
xscale-*-elf)
2414
        tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2415
        tmake_file="arm/t-arm arm/t-xscale-elf"
2416
        out_file=arm/arm.c
2417
        md_file=arm/arm.md
2418
        extra_modes=arm/arm-modes.def
2419
        use_fixproto=yes
2420
        ;;
2421
xscale-*-coff)
2422
        tm_file="arm/semi.h arm/aout.h arm/coff.h dbxcoff.h arm/xscale-coff.h arm/arm.h"
2423
        tmake_file="arm/t-arm arm/t-xscale-coff"
2424
        out_file=arm/arm.c
2425
        md_file=arm/arm.md
2426
        extra_modes=arm/arm-modes.def
2427
        use_fixproto=yes
2428
        ;;
2429
xstormy16-*-elf)
2430
        # For historical reasons, the target files omit the 'x'.
2431
        tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
2432
        tm_p_file=stormy16/stormy16-protos.h
2433
        md_file=stormy16/stormy16.md
2434
        out_file=stormy16/stormy16.c
2435
        extra_options=stormy16/stormy16.opt
2436
        tmake_file="stormy16/t-stormy16"
2437
        extra_parts="crtbegin.o crtend.o"
2438
        use_fixproto=yes
2439
        ;;
2440
xtensa-*-elf*)
2441
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
2442
        tmake_file="xtensa/t-xtensa xtensa/t-elf"
2443
        ;;
2444
xtensa-*-linux*)
2445
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
2446
        tmake_file="${tmake_file} xtensa/t-xtensa xtensa/t-linux"
2447
        ;;
2448
am33_2.0-*-linux*)
2449
        tm_file="mn10300/mn10300.h dbxelf.h elfos.h linux.h mn10300/linux.h"
2450
        tmake_file="${tmake_file} mn10300/t-linux"
2451
        gas=yes gnu_ld=yes
2452
        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2453
        use_collect2=no
2454
        ;;
2455
m32c-*-elf*)
2456
        tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2457
        c_target_objs="m32c-pragma.o"
2458
        cxx_target_objs="m32c-pragma.o"
2459
        use_fixproto=yes
2460
        ;;
2461
*)
2462
        echo "*** Configuration ${target} not supported" 1>&2
2463
        exit 1
2464
        ;;
2465
esac
2466
 
2467
case ${target} in
2468
i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1)
2469
        tmake_file="${tmake_file} i386/t-gmm_malloc"
2470
        ;;
2471
i[34567]86-*-linux* | x86_64-*-linux*)
2472
        tmake_file="${tmake_file} i386/t-pmm_malloc"
2473
        ;;
2474
i[34567]86-*-* | x86_64-*-*)
2475
        tmake_file="${tmake_file} i386/t-gmm_malloc"
2476
        ;;
2477
esac
2478
 
2479
# Support for --with-cpu and related options (and a few unrelated options,
2480
# too).
2481
case ${with_cpu} in
2482
  yes | no)
2483
    echo "--with-cpu must be passed a value" 1>&2
2484
    exit 1
2485
    ;;
2486
esac
2487
 
2488
# If there is no $with_cpu option, try to infer one from ${target}.
2489
# This block sets nothing except for with_cpu.
2490
if test x$with_cpu = x ; then
2491
  case ${target} in
2492
    ep9312-*-*)
2493
      # A Cirrus ARM variant.
2494
      with_cpu="ep9312"
2495
      ;;
2496
    i386-*-*)
2497
      with_cpu=i386
2498
      ;;
2499
    i486-*-*)
2500
      with_cpu=i486
2501
      ;;
2502
    i586-*-*)
2503
      case ${target_noncanonical} in
2504
        k6_2-*)
2505
          with_cpu=k6-2
2506
          ;;
2507
        k6_3-*)
2508
          with_cpu=k6-3
2509
          ;;
2510
        k6-*)
2511
          with_cpu=k6
2512
          ;;
2513
        pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2514
          with_cpu=pentium-mmx
2515
          ;;
2516
        *)
2517
          with_cpu=pentium
2518
          ;;
2519
      esac
2520
      ;;
2521
    i686-*-* | i786-*-*)
2522
      case ${target_noncanonical} in
2523
        k8-*|opteron-*|athlon_64-*)
2524
          with_cpu=k8
2525
          ;;
2526
        athlon_xp-*|athlon_mp-*|athlon_4-*)
2527
          with_cpu=athlon-4
2528
          ;;
2529
        athlon_tbird-*|athlon-*)
2530
          with_cpu=athlon
2531
          ;;
2532
        pentium2-*)
2533
          with_cpu=pentium2
2534
          ;;
2535
        pentium3-*|pentium3m-*)
2536
          with_cpu=pentium3
2537
          ;;
2538
        pentium4-*|pentium4m-*)
2539
          with_cpu=pentium4
2540
          ;;
2541
        prescott-*)
2542
          with_cpu=prescott
2543
          ;;
2544
        nocona-*)
2545
          with_cpu=nocona
2546
          ;;
2547
        pentium_m-*)
2548
          with_cpu=pentium-m
2549
          ;;
2550
        pentiumpro-*)
2551
          with_cpu=pentiumpro
2552
          ;;
2553
        *)
2554
          with_cpu=generic
2555
          ;;
2556
      esac
2557
      ;;
2558
    x86_64-*-*)
2559
      case ${target_noncanonical} in
2560
        k8-*|opteron-*|athlon_64-*)
2561
          with_cpu=k8
2562
          ;;
2563
        nocona-*)
2564
          with_cpu=nocona
2565
          ;;
2566
        *)
2567
          with_cpu=generic
2568
          ;;
2569
      esac
2570
      ;;
2571
    alphaev6[78]*-*-*)
2572
      with_cpu=ev67
2573
      ;;
2574
    alphaev6*-*-*)
2575
      with_cpu=ev6
2576
      ;;
2577
    alphapca56*-*-*)
2578
      with_cpu=pca56
2579
      ;;
2580
    alphaev56*-*-*)
2581
      with_cpu=ev56
2582
      ;;
2583
    alphaev5*-*-*)
2584
      with_cpu=ev5
2585
      ;;
2586
    frv-*-*linux* | frv400-*-*linux*)
2587
      with_cpu=fr400
2588
      ;;
2589
    frv550-*-*linux*)
2590
      with_cpu=fr550
2591
      ;;
2592
    sparc*-*-*)
2593
      with_cpu="`echo ${target} | sed 's/-.*$//'`"
2594
      ;;
2595
  esac
2596
fi
2597
 
2598
# Similarly for --with-float
2599
if test x$with_float = x; then
2600
        case ${target} in
2601
        ep9312-*-*)
2602
                with_float=hard
2603
                ;;
2604
        esac
2605
fi
2606
 
2607
# Similarly for --with-schedule.
2608
if test x$with_schedule = x; then
2609
        case ${target} in
2610
        hppa1* | parisc1*)
2611
                # Override default PA8000 scheduling model.
2612
                with_schedule=7100LC
2613
                ;;
2614
        esac
2615
fi
2616
 
2617
# Validate and mark as valid any --with options supported
2618
# by this target.  In order to use a particular --with option
2619
# you must list it in supported_defaults; validating the value
2620
# is optional.  This case statement should set nothing besides
2621
# supported_defaults.
2622
 
2623
supported_defaults=
2624
case "${target}" in
2625
        alpha*-*-*)
2626
                supported_defaults="cpu tune"
2627
                for which in cpu tune; do
2628
                        eval "val=\$with_$which"
2629
                        case "$val" in
2630
                        "" \
2631
                        | ev4 | ev45 | 21064 | ev5 | 21164 | ev56 | 21164a \
2632
                        | pca56 | 21164PC | 21164pc | ev6 | 21264 | ev67 \
2633
                        | 21264a)
2634
                                ;;
2635
                        *)
2636
                                echo "Unknown CPU used in --with-$which=$val" 1>&2
2637
                                exit 1
2638
                                ;;
2639
                        esac
2640
                done
2641
                ;;
2642
 
2643
        arm*-*-*)
2644
                supported_defaults="arch cpu float tune fpu abi mode"
2645
                for which in cpu tune; do
2646
                        # See if it matches any of the entries in arm-cores.def
2647
                        eval "val=\$with_$which"
2648
                        if [ x"$val" = x ] \
2649
                            || grep "^ARM_CORE(\"$val\"," \
2650
                                    ${srcdir}/config/arm/arm-cores.def \
2651
                                    > /dev/null; then
2652
                          # Ok
2653
                          new_val=`grep "^ARM_CORE(\"$val\"," \
2654
                                ${srcdir}/config/arm/arm-cores.def | \
2655
                                sed -e 's/^[^,]*,[      ]*//' | \
2656
                                sed -e 's/,.*$//'`
2657
                          eval "target_${which}_cname=$new_val"
2658
                        echo "For $val real value is $new_val"
2659
                          true
2660
                        else
2661
                          echo "Unknown CPU used in --with-$which=$val" 1>&2
2662
                          exit 1
2663
                        fi
2664
                done
2665
 
2666
                case "$with_arch" in
2667
                "" \
2668
                | armv[23456] | armv2a | armv3m | armv4t | armv5t \
2669
                | armv5te | armv6j |armv6k | armv6z | armv6zk \
2670
                | iwmmxt | ep9312)
2671
                        # OK
2672
                        ;;
2673
                *)
2674
                        echo "Unknown arch used in --with-arch=$with_arch" 1>&2
2675
                        exit 1
2676
                        ;;
2677
                esac
2678
 
2679
                case "$with_float" in
2680
                "" \
2681
                | soft | hard | softfp)
2682
                        # OK
2683
                        ;;
2684
                *)
2685
                        echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2686
                        exit 1
2687
                        ;;
2688
                esac
2689
 
2690
                case "$with_fpu" in
2691
                "" \
2692
                | fpa | fpe2 | fpe3 | maverick | vfp )
2693
                        # OK
2694
                        ;;
2695
                *)
2696
                        echo "Unknown fpu used in --with-fpu=$with_fpu" 2>&1
2697
                        exit 1
2698
                        ;;
2699
                esac
2700
 
2701
                case "$with_abi" in
2702
                "" \
2703
                | apcs-gnu | atpcs | aapcs | iwmmxt )
2704
                        #OK
2705
                        ;;
2706
                *)
2707
                        echo "Unknown ABI used in --with-abi=$with_abi"
2708
                        exit 1
2709
                        ;;
2710
                esac
2711
 
2712
                case "$with_mode" in
2713
                "" \
2714
                | arm | thumb )
2715
                        #OK
2716
                        ;;
2717
                *)
2718
                        echo "Unknown mode used in --with-mode=$with_mode"
2719
                        exit 1
2720
                        ;;
2721
                esac
2722
 
2723
                if test "x$with_arch" != x && test "x$with_cpu" != x; then
2724
                        echo "Warning: --with-arch overrides --with-cpu=$with_cpu" 1>&2
2725
                fi
2726
                ;;
2727
 
2728
        fr*-*-*linux*)
2729
                supported_defaults=cpu
2730
                case "$with_cpu" in
2731
                fr400) ;;
2732
                fr550) ;;
2733
                *)
2734
                        echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
2735
                        exit 1
2736
                        ;;
2737
                esac
2738
                ;;
2739
 
2740
        m68k*-linux*)
2741
                supported_defaults="cpu"
2742
                case "$with_cpu" in
2743
                "" | "m68020" | "m68030" | "m68040" | "m68060" | "m68020-40" | "m68020-60")
2744
                        # OK
2745
                        ;;
2746
                *)
2747
                        echo "Unknown CPU used in --with-cpu=$with_cpu, known values:"  1>&2
2748
                        echo "m68020 m68030 m68040 m68060 m68020-40 m68020-60" 1>&2
2749
                        exit 1
2750
                        ;;
2751
                esac
2752
                ;;
2753
 
2754
        hppa*-*-* | parisc*-*-*)
2755
                supported_defaults="arch schedule"
2756
 
2757
                case "$with_arch" in
2758
                "" | 1.0 | 1.1 | 2.0)
2759
                        # OK
2760
                        ;;
2761
                *)
2762
                        echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
2763
                        exit 1
2764
                        ;;
2765
                esac
2766
 
2767
                case "$with_schedule" in
2768
                "" | 700 | 7100 | 7100LC | 7200 | 7300 | 8000)
2769
                        # OK
2770
                        ;;
2771
                *)
2772
                        echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
2773
                        exit 1
2774
                        ;;
2775
                esac
2776
                ;;
2777
 
2778
        i[34567]86-*-* | x86_64-*-*)
2779
                supported_defaults="arch cpu tune"
2780
                for which in arch cpu tune; do
2781
                        eval "val=\$with_$which"
2782
                        case ${val} in
2783
                        i386 | i486 \
2784
                        | i586 | pentium | pentium-mmx | winchip-c6 | winchip2 \
2785
                        | c3 | c3-2 | i686 | pentiumpro | pentium2 | pentium3 \
2786
                        | pentium4 | k6 | k6-2 | k6-3 | athlon | athlon-tbird \
2787
                        | athlon-4 | athlon-xp | athlon-mp \
2788
                        | prescott | pentium-m | pentium4m | pentium3m)
2789
                                case "${target}" in
2790
                                  x86_64-*-*)
2791
                                      echo "CPU given in --with-$which=$val doesn't support 64bit mode." 1>&2
2792
                                      exit 1
2793
                                      ;;
2794
                                esac
2795
                                # OK
2796
                                ;;
2797
                        "" | k8 | opteron | athlon64 | athlon-fx | nocona | generic)
2798
                                # OK
2799
                                ;;
2800
                        *)
2801
                                echo "Unknown CPU given in --with-$which=$val." 1>&2
2802
                                exit 1
2803
                                ;;
2804
                        esac
2805
                done
2806
                ;;
2807
 
2808
        mips*-*-*)
2809
                supported_defaults="abi arch float tune divide"
2810
 
2811
                case ${with_float} in
2812
                "" | soft | hard)
2813
                        # OK
2814
                        ;;
2815
                *)
2816
                        echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2817
                        exit 1
2818
                        ;;
2819
                esac
2820
 
2821
                case ${with_abi} in
2822
                "" | 32 | o64 | n32 | 64 | eabi)
2823
                        # OK
2824
                        ;;
2825
                *)
2826
                        echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
2827
                        exit 1
2828
                        ;;
2829
                esac
2830
 
2831
                case ${with_divide} in
2832
                "" | breaks | traps)
2833
                        # OK
2834
                        ;;
2835
                *)
2836
                        echo "Unknown division check type use in --with-divide=$with_divide" 1>&2
2837
                        exit 1
2838
                esac
2839
                ;;
2840
 
2841
        mt-*-*)
2842
                supported_defaults="arch"
2843
 
2844
                case "$with_arch" in
2845
                "" \
2846
                | ms1-64-001 \
2847
                | ms1-16-002 \
2848
                | ms1-16-003 \
2849
                | ms2 \
2850
                | "")
2851
                        # OK
2852
                        ;;
2853
                *)
2854
                        echo "Unknown arch used in --with-arch=$with_arch" 1>&2
2855
                        exit 1
2856
                        ;;
2857
                esac
2858
                ;;
2859
 
2860
        powerpc*-*-* | rs6000-*-*)
2861
                supported_defaults="cpu float tune"
2862
 
2863
                for which in cpu tune; do
2864
                        eval "val=\$with_$which"
2865
                        case ${val} in
2866
                        default32 | default64)
2867
                                with_which="with_$which"
2868
                                eval $with_which=
2869
                                ;;
2870
                        405cr)
2871
                                tm_defines="${tm_defines} CONFIG_PPC405CR"
2872
                                eval "with_$which=405"
2873
                                ;;
2874
                        "" | common \
2875
                        | power | power[23456] | powerpc | powerpc64 \
2876
                        | rios | rios1 | rios2 | rsc | rsc1 | rs64a \
2877
                        | 401 | 403 | 405 | 405fp | 440 | 440fp | 505 \
2878
                        | 601 | 602 | 603 | 603e | ec603e | 604 \
2879
                        | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \
2880
                        | 854[08] | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5)
2881
                                # OK
2882
                                ;;
2883
                        *)
2884
                                echo "Unknown cpu used in --with-$which=$val." 1>&2
2885
                                exit 1
2886
                                ;;
2887
                        esac
2888
                done
2889
                ;;
2890
 
2891
        s390*-*-*)
2892
                supported_defaults="arch mode tune"
2893
 
2894
                for which in arch tune; do
2895
                        eval "val=\$with_$which"
2896
                        case ${val} in
2897
                        "" | g5 | g6 | z900 | z990 | z9-109)
2898
                                # OK
2899
                                ;;
2900
                        *)
2901
                                echo "Unknown cpu used in --with-$which=$val." 1>&2
2902
                                exit 1
2903
                                ;;
2904
                        esac
2905
                done
2906
 
2907
                case ${with_mode} in
2908
                "" | esa | zarch)
2909
                        # OK
2910
                        ;;
2911
                *)
2912
                        echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2
2913
                        exit 1
2914
                        ;;
2915
                esac
2916
                ;;
2917
 
2918
        sh[123456ble]-*-* | sh-*-*)
2919
                supported_defaults="cpu"
2920
                case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in
2921
                "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu )
2922
                        # OK
2923
                        ;;
2924
                m2a | m2a-single | m2a-single-only | m2a-nofpu)
2925
                        ;;
2926
                m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al)
2927
                        ;;
2928
                *)
2929
                        echo "Unknown CPU used in --with-cpu=$with_cpu, known values:"  1>&2
2930
                        echo "m1 m2 m2e m3 m3e m4 m4-single m4-single-only m4-nofpu" 1>&2
2931
                        echo "m4a m4a-single m4a-single-only m4a-nofpu m4al" 1>&2
2932
                        echo "m2a m2a-single m2a-single-only m2a-nofpu" 1>&2
2933
                        exit 1
2934
                        ;;
2935
                esac
2936
                ;;
2937
        sparc*-*-*)
2938
                supported_defaults="cpu float tune"
2939
 
2940
                for which in cpu tune; do
2941
                        eval "val=\$with_$which"
2942
                        case ${val} in
2943
                        "" | sparc | sparcv9 | sparc64 | sparc86x \
2944
                        | v7 | cypress | v8 | supersparc | sparclite | f930 \
2945
                        | f934 | hypersparc | sparclite86x | sparclet | tsc701 \
2946
                        | v9 | ultrasparc | ultrasparc3 | niagara)
2947
                                # OK
2948
                                ;;
2949
                        *)
2950
                                echo "Unknown cpu used in --with-$which=$val" 1>&2
2951
                                exit 1
2952
                                ;;
2953
                        esac
2954
                done
2955
 
2956
                case ${with_float} in
2957
                "" | soft | hard)
2958
                        # OK
2959
                        ;;
2960
                *)
2961
                        echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2962
                        exit 1
2963
                        ;;
2964
                esac
2965
                ;;
2966
 
2967
        v850*-*-*)
2968
                supported_defaults=cpu
2969
                case ${with_cpu} in
2970
                "" | v850e | v850e1)
2971
                        # OK
2972
                        ;;
2973
                *)
2974
                        echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
2975
                        exit 1
2976
                        ;;
2977
                esac
2978
                ;;
2979
esac
2980
 
2981
# Set some miscellaneous flags for particular targets.
2982
target_cpu_default2=
2983
case ${target} in
2984
        alpha*-*-*)
2985
                if test x$gas = xyes
2986
                then
2987
                        target_cpu_default2="MASK_GAS"
2988
                fi
2989
                ;;
2990
 
2991
        arm*-*-*)
2992
                if test x$target_cpu_cname = x
2993
                then
2994
                        target_cpu_default2=TARGET_CPU_generic
2995
                else
2996
                        target_cpu_default2=TARGET_CPU_$target_cpu_cname
2997
                fi
2998
                ;;
2999
 
3000
        m68k*-linux*)
3001
                case "x$with_cpu" in
3002
                x)
3003
                        # The most generic
3004
                        target_cpu_default2="(MASK_68020|MASK_68881|MASK_BITFIELD)"
3005
                        ;;
3006
                xm68020)
3007
                        target_cpu_default2="(MASK_68020|MASK_68881|MASK_BITFIELD)"
3008
                        ;;
3009
                xm68030)
3010
                        target_cpu_default2="(MASK_68030|MASK_68020|MASK_68881|MASK_BITFIELD)"
3011
                        ;;
3012
                xm68040)
3013
                        target_cpu_default2="(MASK_68040|MASK_68040_ONLY|MASK_68020|MASK_68881|MASK_BITFIELD)"
3014
                        ;;
3015
                xm68060)
3016
                        target_cpu_default2="(MASK_68060|MASK_68040_ONLY|MASK_68020|MASK_68881|MASK_BITFIELD)"
3017
                        ;;
3018
                xm68020-40)
3019
                        target_cpu_default2="(MASK_BITFIELD|MASK_68881|MASK_68020|MASK_68040)"
3020
                        ;;
3021
                xm68020-60)
3022
                        target_cpu_default2="(MASK_BITFIELD|MASK_68881|MASK_68020|MASK_68040|MASK_68060)"
3023
                        ;;
3024
                *)
3025
                        echo "Unknown CPU used in --with-cpu=$with_cpu"  1>&2
3026
                        exit 1
3027
                        ;;
3028
                esac
3029
                ;;
3030
 
3031
        hppa*-*-* | parisc*-*-*)
3032
                target_cpu_default2="MASK_BIG_SWITCH"
3033
                if test x$gas = xyes
3034
                then
3035
                        target_cpu_default2="${target_cpu_default2}|MASK_GAS|MASK_JUMP_IN_DELAY"
3036
                fi
3037
                ;;
3038
 
3039
        mips*-*-*)
3040
                if test x$gnu_ld = xyes
3041
                then
3042
                        target_cpu_default2="MASK_SPLIT_ADDRESSES"
3043
                fi
3044
                case ${target} in
3045
                        mips*el-*-*)
3046
                                tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
3047
                                ;;
3048
                esac
3049
                if test "x$enable_gofast" = xyes
3050
                then
3051
                        tm_defines="US_SOFTWARE_GOFAST $tm_defines"
3052
                        tmake_file="mips/t-gofast $tmake_file"
3053
                else
3054
                        tmake_file="mips/t-mips $tmake_file"
3055
                fi
3056
                ;;
3057
 
3058
        powerpc*-*-* | rs6000-*-*)
3059
                # FIXME: The PowerPC port uses the value set at compile time,
3060
                # although it's only cosmetic.
3061
                if test "x$with_cpu" != x
3062
                then
3063
                        target_cpu_default2="\\\"$with_cpu\\\""
3064
                fi
3065
                out_file=rs6000/rs6000.c
3066
                c_target_objs="${c_target_objs} rs6000-c.o"
3067
                cxx_target_objs="${cxx_target_objs} rs6000-c.o"
3068
                tmake_file="rs6000/t-rs6000 ${tmake_file}"
3069
 
3070
                if test x$enable_e500_double = xyes
3071
                then
3072
                        tm_file="$tm_file rs6000/e500-double.h"
3073
                fi
3074
                ;;
3075
 
3076
        sh[123456ble]*-*-* | sh-*-*)
3077
                c_target_objs="${c_target_objs} sh-c.o"
3078
                cxx_target_objs="${cxx_target_objs} sh-c.o"
3079
                ;;
3080
 
3081
        sparc*-*-*)
3082
                # Some standard aliases.
3083
                case x$with_cpu in
3084
                xsparc)
3085
                        with_cpu=v7
3086
                        ;;
3087
                xsparcv9 | xsparc64)
3088
                        with_cpu=v9
3089
                        ;;
3090
                esac
3091
 
3092
                # The SPARC port checks this value at compile-time.
3093
                target_cpu_default2="TARGET_CPU_$with_cpu"
3094
                ;;
3095
        v850*-*-*)
3096
                # FIXME: The v850 is "special" in that it does not support
3097
                # runtime CPU selection, only --with-cpu.
3098
                case "x$with_cpu" in
3099
                x)
3100
                        ;;
3101
                xv850e)
3102
                        target_cpu_default2="TARGET_CPU_$with_cpu"
3103
                        ;;
3104
                esac
3105
                ;;
3106
esac
3107
 
3108
t=
3109
all_defaults="abi cpu arch tune schedule float mode fpu divide"
3110
for option in $all_defaults
3111
do
3112
        eval "val=\$with_$option"
3113
        if test -n "$val"; then
3114
                case " $supported_defaults " in
3115
                *" $option "*)
3116
                        ;;
3117
                *)
3118
                        echo "This target does not support --with-$option." 2>&1
3119
                        echo "Valid --with options are: $supported_defaults" 2>&1
3120
                        exit 1
3121
                        ;;
3122
                esac
3123
 
3124
                if test "x$t" = x
3125
                then
3126
                        t="{ \"$option\", \"$val\" }"
3127
                else
3128
                        t="${t}, { \"$option\", \"$val\" }"
3129
                fi
3130
        fi
3131
done
3132
 
3133
if test "x$t" = x
3134
then
3135
        configure_default_options="{ { NULL, NULL} }"
3136
else
3137
        configure_default_options="{ ${t} }"
3138
fi
3139
 
3140
if test "$target_cpu_default2" != ""
3141
then
3142
        if test "$target_cpu_default" != ""
3143
        then
3144
                target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3145
        else
3146
                target_cpu_default=$target_cpu_default2
3147
        fi
3148
fi

powered by: WebSVN 2.1.0

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