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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gcc/] [gcc-3.4.4/] [gcc-3.4.4-or32.diff] - Blame information for rev 1612

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

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

powered by: WebSVN 2.1.0

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