OSDN Git Service

* config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 #This file is part of GCC.
5
6 #GCC is free software; you can redistribute it and/or modify it under
7 #the terms of the GNU General Public License as published by the Free
8 #Software Foundation; either version 2, or (at your option) any later
9 #version.
10
11 #GCC is distributed in the hope that it will be useful, but WITHOUT
12 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 #for more details.
15
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING.  If not, write to the Free
18 #Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19 #02111-1307, USA.
20
21 # This is the GCC build-, host- and target-specific configuration file
22 # where a configuration type, as recognized and generated by config.bfd,
23 # is mapped to different system-specific definitions and files.  This is
24 # invoked by the autoconf-generated configure script, called for build,
25 # host and target in that order, setting ${machine} to each.  Putting it
26 # in a separate shell file lets us skip running autoconf when modifying
27 # build-, host- and target-specific information.
28
29 # This file switches on the shell variable ${machine}, and also uses the
30 # following shell variables:
31 #
32 #  with_*               Various variables as set by configure.
33 #
34 #  enable_threads_flag  Either the name, yes or no depending on whether
35 #                       threads support was requested.
36 #
37 #  gas_flag             Either yes or no depending on whether GNU as was
38 #                       requested.
39 #
40 #  gnu_ld_flag          Either yes or no depending on whether GNU ld was
41 #                       requested.
42
43 # This file sets the following shell variables for use by the
44 # autoconf-generated configure script:
45 #
46 #  cpu_type             The name of the cpu, if different from machine.
47 #
48 #  tm_file              A list of target macro files, if different from
49 #                       "$cpu_type/$cpu_type.h".
50 #
51 #  tm_p_file            Location of file with declarations for functions
52 #                       in $out_file.
53 #
54 #  out_file             The name of the machine description C support
55 #                       file, if different from "$cpu_type/$cpu_type.c".
56 #
57 #  md_file              The name of the machine-description file, if
58 #                       different from "$cpu_type/$cpu_type.md".
59 #
60 #  tmake_file           A list of machine-description-specific
61 #                       makefile-fragments, if different from
62 #                       "$cpu_type/t-$cpu_type".
63 #
64 #  float_format         Set to the symbolic name for the floating-point
65 #                       formats used for this machine, if different from
66 #                       "i64".  Used to derive a header file name to
67 #                       include, like "vax" for "float-vax.h".  If no such
68 #                       file is wanted, set to "none".
69 #
70 #  extra_objs           List of extra objects that should be linked into
71 #                       the compiler proper (cc1, cc1obj, cc1plus)
72 #                       depending on target.
73 #
74 #  extra_headers        List of used header files from the directory
75 #                       ginclude.
76 #
77 #  host_xmake_file      List of host-specific makefile-fragments.
78 #
79 #  extra_passes         List of extra executables compiled for this target
80 #                       machine, used for compiling from source to object.
81 #
82 #  extra_parts          List of extra object files that should be compiled
83 #                       for this target machine.
84 #
85 #  extra_programs       Like extra_passes, but these are used when linking.
86 #
87 #  host_extra_objs      List of extra host-dependant objects that should
88 #                       be linked into the compiler proper.
89 #
90 #  host_extra_gcc_objs  List of extra host-dependant objects that should
91 #                       be linked into the gcc driver.
92 #
93 #  c_target_objs        List of extra target-dependant objects that be
94 #                       linked into the C compiler only.
95 #
96 #  cxx_target_objs      List of extra target-dependant objects that be
97 #                       linked into the C++ compiler only.
98 #
99 #  build_xm_defines     List of macros to define when compiling for the
100 #                       build machine.
101 #
102 #  build_xm_file        List of files to include when compiling for the
103 #                       build machine.
104 #
105 #  host_xm_defines      List of macros to define when compiling for the
106 #                       host machine.
107 #
108 #  host_xm_file         List of files to include when compiling for the
109 #                       host machine.
110 #
111 #  xm_defines           List of macros to define when compiling for the
112 #                       target machine.
113 #
114 #  xm_file              List of files to include when compiling for the
115 #                       target machine.
116 #
117 #  use_collect2         Set to yes or no, depending on whether collect2
118 #                       will be used.
119 #
120 #  target_cpu_default   Set to override the default target model.
121 #
122 #  build_install_headers_dir
123 #                       Target to use when installing header files.
124 #
125 #  host_truncate_target
126 #                       Non-empty if the target name should be truncated
127 #                       on this host, due to filename length issues.
128 #
129 #  gdb_needs_out_file_path
130 #                       Set to yes if gdb needs a dir command with
131 #                       `dirname $out_file`.
132 #
133 #  build_exeext         Set to the suffix, if the build machine requires
134 #                       executables to have a file name suffix.
135 #
136 #  host_exeext          Set to the suffix, if the host machine requires
137 #                       executables to have a file name suffix.
138 #
139 #  thread_file          Set to control which thread package to use.
140 #
141 #  gas                  Set to yes or no depending on whether the target
142 #                       system normally uses GNU as.
143
144 # The following variables are used in each case-construct to build up the
145 # outgoing variables:
146 #
147 #  xmake_file           Makefile-fragment when this system is as a host,
148 #                       for host_xmake_file.
149 #
150 #  extra_host_objs      List of extra objects that should be linked into
151 #                       the compiler proper when this system is a host,
152 #                       for host_extra_objs.
153 #
154 #  install_headers_dir  Makefile-target for how the header file directory
155 #                       is installed, when this system is a build system,
156 #                       for build_install_headers_dir.
157 #
158 #  truncate_target      Non-empty if the target name should be truncated
159 #                       when this system is a host, due to filename length
160 #                       issues.  For host_truncate_target.
161 #
162 #  exeext               The suffix for executables on this system.
163 #
164 #  gnu_ld               Set to yes or no depending on whether the target
165 #                       system normally uses GNU ld.
166
167 out_file=
168 xmake_file=
169 tmake_file=
170 extra_headers=
171 extra_passes=
172 extra_parts=
173 extra_programs=
174 extra_objs=
175 extra_host_objs=
176 extra_gcc_objs=
177 c_target_objs=
178 cxx_target_objs=
179 xm_defines=
180 float_format=
181 # Set this to force installation and use of collect2.
182 use_collect2=
183 # Set this to override the default target model.
184 target_cpu_default=
185 # Set this to control how the header file directory is installed.
186 install_headers_dir=install-headers-tar
187 # Set this if directory names should be truncated to 14 characters.
188 truncate_target=
189 # Set this if gdb needs a dir command with `dirname $out_file`
190 gdb_needs_out_file_path=
191 # Set this if the build machine requires executables to have a
192 # file name suffix.
193 exeext=
194 # Set this to control which thread package will be used.
195 thread_file=
196 # Reinitialize these from the flag values every loop pass, since some
197 # configure entries modify them.
198 gas="$gas_flag"
199 gnu_ld="$gnu_ld_flag"
200 enable_threads=$enable_threads_flag
201
202 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
203 # updated in each machine entry.
204 tm_p_file=
205 cpu_type=`echo $machine | sed 's/-.*$//'`
206 case $machine in
207 alpha*-*-*)
208         cpu_type=alpha
209         ;;
210 strongarm*-*-*)
211         cpu_type=arm
212         ;;
213 arm*-*-*)
214         cpu_type=arm
215         ;;
216 xscale-*-*)
217         cpu_type=arm
218         ;;
219 c*-convex-*)
220         cpu_type=convex
221         ;;
222 i[34567]86-*-*)
223         cpu_type=i386
224         ;;
225 x86_64-*-*)
226         cpu_type=i386
227         ;;
228 hppa*-*-* | parisc*-*-*)
229         cpu_type=pa
230         ;;
231 m68000-*-*)
232         cpu_type=m68k
233         ;;
234 mips*-*-*)
235         cpu_type=mips
236         ;;
237 pj*-*-*)
238         cpu_type=pj
239         ;;
240 powerpc*-*-*)
241         cpu_type=rs6000
242         ;;
243 sparc*-*-*)
244         cpu_type=sparc
245         ;;
246 esac
247
248 tm_file=${cpu_type}/${cpu_type}.h
249 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
250 then
251         tm_p_file=${cpu_type}/${cpu_type}-protos.h
252 fi
253 # On a.out targets, we need to use collect2.
254 case $machine in
255 *-*-*aout*)
256         use_collect2=yes
257         ;;
258 esac
259
260 # Common parts for GNU/Linux, GNU/Hurd, OpenBSD and FreeBSD systems.
261 case $machine in
262 *-*-linux*)
263         xm_defines=POSIX
264         ;;
265 *-*-gnu*)
266         # On the Hurd, the setup is just about the same on
267         # each different CPU.  The specific machines that we
268         # support are matched above and just set $cpu_type.
269         xm_defines=POSIX
270         tm_file="${cpu_type}/gnu.h"
271         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
272         # GNU always uses ELF.
273         elf=yes
274         # GNU tools are the only tools.
275         gnu_ld=yes
276         gas=yes
277         # These details are the same as for Linux.
278         xmake_file=x-linux
279         # But here we need a little extra magic.
280         tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
281         case $machine in
282         i[34567]86-*-*)
283                 tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}"
284                 ;;
285         esac
286         ;;
287 *-*-openbsd*)
288         tm_file=${cpu_type}/openbsd.h
289         tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
290         xm_defines=POSIX
291         if test x$enable_threads = xyes; then
292                 thread_file='posix'
293                 tmake_file="${tmake_file} t-openbsd-thread"
294         fi
295         ;;
296 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
297         # This is the place-holder for the generic a.out configuration
298         # of FreeBSD.  No actual configuration resides here since
299         # there was only ever a bare-bones ix86 configuration for
300         # a.out and it exists solely in the machine-specific section.
301         # This place-holder must exist to avoid dropping into
302         # the generic ELF configuration of FreeBSD (i.e. it must be
303         # ordered before that section).
304         ;;
305 *-*-freebsd*)
306         # This is the generic ELF configuration of FreeBSD.  Later
307         # machine-specific sections may refine and add to this
308         # configuration.
309         #
310         # Due to tm_file entry ordering issues that vary between cpu
311         # architectures, we only define fbsd_tm_file to allow the
312         # machine-specific section to dictate the final order of all
313         # entries of tm_file with the minor exception that components
314         # of the tm_file set here will always be of the form:
315         #
316         # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd.h
317         #
318         # The machine-specific section should not tamper with this
319         # ordering but may order all other entries of tm_file as it
320         # pleases around the provided core setting.
321         gas=yes
322         gnu_ld=yes
323         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
324         case $machine in
325         *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
326         *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
327         *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
328         *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
329         *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
330         esac
331         tmake_file=t-freebsd
332         xm_defines=POSIX
333         case x${enable_threads} in
334         xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
335         x | xyes | xpthreads | xposix)
336                 thread_file='posix'
337                 tmake_file="${tmake_file} t-freebsd-thread"
338                 ;;
339         *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
340         esac
341         fbsd_tm_file="${fbsd_tm_file} freebsd.h"
342         if test x${thread_file} = xposix; then
343           if test x${enable_libgcj} = xyes; then
344             echo 'FreeBSD does not currently handle --enable-threads (now'
345             echo 'the default to match system compiler) and --enable-libgcj.'
346             echo 'Please explicitly configure with --disable-threads or'
347             echo '--disable-libgcj'
348             exit 1
349           fi
350         fi
351         ;;
352 esac
353
354 case $machine in
355 # Support site-specific machine types.
356 *local*)
357         rest=`echo $machine | sed -e "s/$cpu_type-//"`
358         tm_file=${cpu_type}/$rest.h
359         if test -f $srcdir/config/${cpu_type}/xm-$rest.h
360         then xm_file=${cpu_type}/xm-$rest.h
361         fi
362         if test -f $srcdir/config/${cpu_type}/x-$rest
363         then xmake_file=${cpu_type}/x-$rest
364         fi
365         if test -f $srcdir/config/${cpu_type}/t-$rest
366         then tmake_file=${cpu_type}/t-$rest
367         fi
368         ;;
369 1750a-*-*)
370         # 1750a is only supported as a target.
371         case "$build,$host" in 1750a*,* | *,1750a* )
372                 echo "*** $machine is only supported as a target" >&2
373                 exit 1
374         esac
375         ;;
376 a29k-*-bsd* | a29k-*-sym1*)
377         tm_file="${tm_file} a29k/unix.h"
378         xm_defines=POSIX
379         use_collect2=yes
380         ;;
381 a29k-*-udi | a29k-*-coff)
382         tm_file="${tm_file} dbxcoff.h"
383         tmake_file=a29k/t-a29kbare
384         ;;
385 a29k*-*-rtems*)
386         tm_file=a29k/rtems.h
387         tmake_file="a29k/t-a29kbare t-rtems"
388         if test x$enable_threads = xyes; then
389           thread_file='rtems'
390         fi
391         ;;
392 a29k-wrs-vxworks*)
393         tm_file="${tm_file} dbxcoff.h a29k/vx29k.h"
394         tmake_file=a29k/t-vx29k
395         extra_parts="crtbegin.o crtend.o"
396         thread_file='vxworks'
397         ;;
398 a29k-*-*)                       # Default a29k environment.
399         use_collect2=yes
400         ;;
401 alpha*-*-unicosmk*)
402         use_collect2=yes
403         tm_file="${tm_file} alpha/unicosmk.h"
404
405         # Don't include t-ieee for now because we don't support that yet
406         # tmake_file="alpha/t-ieee"
407         tmake_file="alpha/t-unicosmk"
408         ;;
409 alpha-*-interix)
410         tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
411
412         # GAS + IEEE_CONFORMANT+IEEE (no inexact);
413         #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
414
415         # GAS + IEEE_CONFORMANT
416         target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
417
418         xm_defines=POSIX
419         xm_file="alpha/xm-alpha-interix.h xm-interix.h"
420         xmake_file=x-interix
421         tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
422         if test x$enable_threads = xyes ; then
423                 thread_file='posix'
424         fi
425         if test x$stabs = xyes ; then
426                 tm_file="${tm_file} dbxcoff.h"
427         fi
428         #prefix='$$INTERIX_ROOT'/usr/contrib
429         #local_prefix='$$INTERIX_ROOT'/usr/contrib
430         ;;
431 alpha*-*-linux*ecoff*)
432         tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
433         target_cpu_default="MASK_GAS"
434         tmake_file="alpha/t-alpha alpha/t-ieee"
435         gas=no
436         gas=yes gnu_ld=yes
437         ;;
438 alpha*-*-linux*libc1*)
439         tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
440         target_cpu_default="MASK_GAS"
441         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-crtfm alpha/t-ieee"
442         gas=yes gnu_ld=yes
443         if test x$enable_threads = xyes; then
444                 thread_file='posix'
445         fi
446         ;;
447 alpha*-*-linux*)
448         tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
449         target_cpu_default="MASK_GAS"
450         tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
451         gas=yes gnu_ld=yes
452         if test x$enable_threads = xyes; then
453                 thread_file='posix'
454         fi
455         ;;
456 alpha*-*-freebsd*)
457         tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
458         target_cpu_default="MASK_GAS"
459         tmake_file="${tmake_file} alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
460         ;;
461 alpha*-*-netbsd*)
462         xm_defines=POSIX
463         tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
464         target_cpu_default="MASK_GAS"
465         tmake_file="alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
466         gas=yes gnu_ld=yes
467         ;;
468
469 alpha*-*-openbsd*)
470         # default x-alpha is only appropriate for dec-osf.
471         target_cpu_default="MASK_GAS"
472         tmake_file="alpha/t-alpha alpha/t-ieee"
473         ;;
474
475 alpha*-dec-osf*)
476         xm_defines=POSIX
477         if test x$stabs = xyes
478         then
479                 tm_file="${tm_file} dbx.h"
480         fi
481         if test x$gas != xyes
482         then
483                 extra_passes="mips-tfile mips-tdump"
484         fi
485         use_collect2=yes
486         tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf alpha/t-crtfm"
487         case $machine in
488           *-*-osf1*)
489             tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
490             ;;
491           *-*-osf[23]*)
492             tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
493             ;;
494           *-*-osf4*)
495             tm_file="${tm_file} alpha/osf.h"
496             tmake_file="$tmake_file alpha/t-osf4"
497             # Some versions of OSF4 (specifically X4.0-9 296.7) have
498             # a broken tar, so we use cpio instead.
499             install_headers_dir=install-headers-cpio
500             ;;
501           *-*-osf5*)
502             tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
503             tmake_file="$tmake_file alpha/t-osf4"
504             float_format=i128
505             ;;
506         esac
507         case $machine in
508           *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
509             target_cpu_default=MASK_SUPPORT_ARCH
510             ;;
511         esac
512         ;;
513 alpha*-*-vxworks*)
514         xm_defines=POSIX
515         tm_file="${tm_file} dbx.h alpha/vxworks.h"
516         tmake_file="alpha/t-alpha alpha/t-ieee"
517         if [ x$gas != xyes ]
518         then
519                 extra_passes="mips-tfile mips-tdump"
520         fi
521         use_collect2=yes
522         thread_file='vxworks'
523         ;;
524 alpha*-dec-vms*)
525         xm_defines=POSIX
526         tm_file=alpha/vms.h
527         xm_file=alpha/xm-vms.h
528         tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
529         ;;
530 arc-*-elf*)
531         extra_parts="crtinit.o crtfini.o"
532         ;;
533 arm*-*-rtems*)
534         tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/rtems-elf.h rtems.h"
535         tmake_file="arm/t-arm-elf t-rtems"
536         if test x$enable_threads = xyes; then
537           thread_file='rtems'
538         fi
539         ;;
540 arm-*-coff* | armel-*-coff*)
541         tm_file=arm/coff.h
542         tmake_file=arm/t-arm-coff
543         ;;
544 arm-*-vxworks*)
545         tm_file=arm/vxarm.h
546         tmake_file=arm/t-arm-coff
547         thread_file='vxworks'
548         ;;
549 arm-*-riscix1.[01]*)            # Acorn RISC machine (early versions)
550         tm_file=arm/riscix1-1.h
551         use_collect2=yes
552         ;;
553 arm-*-riscix*)                  # Acorn RISC machine
554         if test x$gas = xyes
555         then
556             tm_file=arm/rix-gas.h
557         else
558             tm_file=arm/riscix.h
559         fi
560         xmake_file=arm/x-riscix
561         tmake_file=arm/t-riscix
562         use_collect2=yes
563         ;;
564 arm-semi-aout | armel-semi-aout)
565         tm_file=arm/semi.h
566         tmake_file=arm/t-semi
567         ;;
568 arm-semi-aof | armel-semi-aof)
569         tm_file=arm/semiaof.h
570         tmake_file=arm/t-semi
571         ;;
572 arm*-*-netbsd*)
573         tm_file=arm/netbsd.h
574         tmake_file="t-netbsd arm/t-netbsd"
575         use_collect2=yes
576         ;;
577 arm*-*-linux*)                  # ARM GNU/Linux with ELF
578         xmake_file=x-linux
579         tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
580         tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
581         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
582         gnu_ld=yes
583         case x${enable_threads} in
584         x | xyes | xpthreads | xposix)
585                 thread_file='posix'
586                 ;;
587         esac
588         ;;
589 arm*-*-uclinux*)                # ARM ucLinux
590         tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h"
591         tmake_file=arm/t-arm-elf
592         ;;
593 arm*-*-aout)
594         tm_file=arm/aout.h
595         tmake_file=arm/t-arm-aout
596         ;;
597 arm*-*-ecos-elf)
598         tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/ecos-elf.h"
599         tmake_file=arm/t-arm-elf
600         ;;
601 arm*-*-elf)
602         tm_file="elfos.h arm/unknown-elf.h arm/elf.h"
603         tmake_file=arm/t-arm-elf
604         ;;
605 arm*-*-conix*)
606         tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/conix-elf.h"
607         tmake_file=arm/t-arm-elf
608         ;;
609 arm*-*-oabi)
610         tm_file="arm/unknown-elf-oabi.h elfos.h arm/unknown-elf.h arm/elf.h"
611         tmake_file=arm/t-arm-elf
612         ;;
613 arm-*-pe*)
614         tm_file=arm/pe.h
615         tmake_file=arm/t-pe
616         extra_objs="pe.o"
617         ;;
618 avr-*-*)
619         ;;
620 c1-convex-*)                    # Convex C1
621         target_cpu_default=1
622         use_collect2=yes
623         ;;
624 c2-convex-*)                    # Convex C2
625         target_cpu_default=2
626         use_collect2=yes
627         ;;
628 c32-convex-*)
629         target_cpu_default=4
630         use_collect2=yes
631         ;;
632 c34-convex-*)
633         target_cpu_default=8
634         use_collect2=yes
635         ;;
636 c38-convex-*)
637         target_cpu_default=16
638         use_collect2=yes
639         ;;
640 c4x-*-rtems*)
641         cpu_type=c4x
642         tmake_file="c4x/t-c4x t-rtems"
643         tm_file=c4x/rtems.h
644         if test x$enable_threads = xyes; then
645           thread_file='rtems'
646         fi
647         ;;
648 c4x-*)
649         cpu_type=c4x
650         float_format=c4x
651         tmake_file=c4x/t-c4x
652         ;;
653 clipper-intergraph-clix*)
654         tm_file="${tm_file} svr3.h clipper/clix.h"
655         xm_defines=POSIX
656         extra_headers=va-clipper.h
657         extra_parts="crtbegin.o crtend.o"
658         install_headers_dir=install-headers-cpio
659         ;;
660 cris-*-aout)
661         tm_file="dbxelf.h cris/cris.h cris/aout.h"
662         gas=yes
663         tmake_file="cris/t-cris cris/t-aout"
664         ;;
665 cris-*-elf | cris-*-none)
666         tm_file="elfos.h cris/cris.h"
667         tmake_file="cris/t-cris cris/t-elfmulti"
668         gas=yes
669         ;;
670 cris-*-linux*)
671         tm_file="linux.h cris/cris.h cris/linux.h"
672         tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
673         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
674         case x${enable_threads} in
675         x | xyes | xpthreads | xposix)
676                 thread_file=posix
677                 ;;
678         esac
679         gas=yes
680         ;;
681 d30v-*)
682         float_format=i64
683         ;;
684 dsp16xx-*)
685         ;;
686 elxsi-elxsi-*)
687         use_collect2=yes
688         ;;
689 fr30-*-elf)
690         tm_file="fr30/fr30.h"
691         tmake_file=fr30/t-fr30
692         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
693         ;;
694 h8300-*-rtems*)
695         tmake_file="h8300/t-h8300 t-rtems"
696         tm_file=h8300/rtems.h
697         if test x$enable_threads = xyes; then
698           thread_file='rtems'
699         fi
700         float_format=i32
701         ;;
702 h8300-*-elf*)
703         tmake_file="h8300/t-h8300 h8300/t-elf"
704         tm_file="h8300/h8300.h h8300/elf.h"
705         float_format=i32
706         ;;
707 h8300-*-*)
708         float_format=i32
709         ;;
710 hppa*64*-*-linux* | parisc*64*-*-linux*)
711         target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
712         tm_file="pa/pa64-start.h ${tm_file} linux.h pa/pa-linux.h \
713                  pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
714         tmake_file=pa/t-linux64
715         gas=yes gnu_ld=yes
716         ;;
717 hppa*-*-linux* | parisc*-*-linux*)
718         target_cpu_default="MASK_PA_11"
719         tm_file="${tm_file} linux.h pa/pa-linux.h \
720                  pa/pa32-regs.h pa/pa32-linux.h"
721         tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
722         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
723         gas=yes gnu_ld=yes
724         if test x$enable_threads = xyes; then
725                 thread_file='posix'
726         fi
727         ;;
728 hppa*-*-openbsd*)
729         target_cpu_default="MASK_PA_11"
730         tmake_file=pa/t-openbsd
731         ;;
732 hppa1.1-*-rtems*)
733         tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
734         tmake_file="pa/t-pro t-rtems"
735         if test x$enable_threads = xyes; then
736           thread_file='rtems'
737         fi
738         ;;
739 hppa1.1-*-pro*)
740         target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
741         tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
742         tmake_file=pa/t-pro
743         ;;
744 hppa1.1-*-osf*)
745         target_cpu_default="MASK_PA_11"
746         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
747         use_collect2=yes
748         ;;
749 hppa1.1-*-rtems*)
750         target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
751         tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
752         tmake_file=pa/t-pro
753         ;;
754 hppa1.0-*-osf*)
755         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
756         use_collect2=yes
757         ;;
758 hppa1.1-*-bsd*)
759         tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
760         target_cpu_default="MASK_PA_11"
761         use_collect2=yes
762         ;;
763 hppa1.0-*-bsd*)
764         tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
765         use_collect2=yes
766         ;;
767 hppa1.0-*-hpux7*)
768         tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
769         xm_defines=POSIX
770         xmake_file=pa/x-pa-hpux
771         install_headers_dir=install-headers-cpio
772         use_collect2=yes
773         ;;
774 hppa1.0-*-hpux8.0[0-2]*)
775         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
776         xm_defines=POSIX
777         xmake_file=pa/x-pa-hpux
778         if test x$gas != xyes
779         then
780                 tm_file="pa/pa-oldas.h ${tm_file}"
781         fi
782         install_headers_dir=install-headers-cpio
783         use_collect2=yes
784         ;;
785 hppa1.1-*-hpux8.0[0-2]*)
786         target_cpu_default="MASK_PA_11"
787         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
788         xm_defines=POSIX
789         xmake_file=pa/x-pa-hpux
790         if test x$gas != xyes
791         then
792                 tm_file="pa/pa-oldas.h ${tm_file}"
793         fi
794         install_headers_dir=install-headers-cpio
795         use_collect2=yes
796         ;;
797 hppa1.1-*-hpux8*)
798         target_cpu_default="MASK_PA_11"
799         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
800         xm_defines=POSIX
801         xmake_file=pa/x-pa-hpux
802         install_headers_dir=install-headers-cpio
803         use_collect2=yes
804         ;;
805 hppa1.0-*-hpux8*)
806         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
807         xm_defines=POSIX
808         xmake_file=pa/x-pa-hpux
809         install_headers_dir=install-headers-cpio
810         use_collect2=yes
811         ;;
812 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
813         target_cpu_default="MASK_PA_11"
814         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
815         float_format=i128
816         xm_defines=POSIX
817         xmake_file=pa/x-pa-hpux
818         tmake_file=pa/t-pa
819         if test x$enable_threads = x; then
820             enable_threads=$have_pthread_h
821         fi
822         case x${enable_threads} in
823         xyes | xdce)
824                 tmake_file="${tmake_file} pa/t-dce-thr"
825                 ;;
826         esac
827         install_headers_dir=install-headers-cpio
828         use_collect2=yes
829         ;;
830 hppa1.0-*-hpux10*)
831         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
832         float_format=i128
833         xm_defines=POSIX
834         xmake_file=pa/x-pa-hpux
835         tmake_file=pa/t-pa
836         if test x$enable_threads = x; then
837             enable_threads=$have_pthread_h
838         fi
839         case x${enable_threads} in
840         xyes | xdce)
841                 tmake_file="${tmake_file} pa/t-dce-thr"
842                 ;;
843         esac
844         install_headers_dir=install-headers-cpio
845         use_collect2=yes
846         ;;
847 hppa*64*-*-hpux11*)
848         xm_defines=POSIX
849         xmake_file=pa/x-pa-hpux
850         tmake_file=pa/t-pa
851         tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
852         float_format=i128
853         tmake_file=pa/t-pa64
854         target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
855
856 #       if [ x$enable_threads = x ]; then
857 #           enable_threads=$have_pthread_h
858 #       fi
859 #       if [ x$enable_threads = xyes ]; then
860 #               thread_file='dce'
861 #               tmake_file="${tmake_file} pa/t-dce-thr"
862 #       fi
863         install_headers_dir=install-headers-cpio
864         use_collect2=yes
865         ;;
866 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
867         target_cpu_default="MASK_PA_11"
868         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
869         float_format=i128
870         xm_defines=POSIX
871         xmake_file=pa/x-pa-hpux
872         tmake_file=pa/t-pa
873 #       if test x$enable_threads = x; then
874 #           enable_threads=$have_pthread_h
875 #       fi
876 #       if test x$enable_threads = xyes; then
877 #               thread_file='dce'
878 #               tmake_file="${tmake_file} pa/t-dce-thr"
879 #       fi
880         install_headers_dir=install-headers-cpio
881         use_collect2=yes
882         ;;
883 hppa1.0-*-hpux11*)
884         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
885         float_format=i128
886         xm_defines=POSIX
887         xmake_file=pa/x-pa-hpux
888 #       if test x$enable_threads = x; then
889 #           enable_threads=$have_pthread_h
890 #       fi
891 #       if test x$enable_threads = xyes; then
892 #               thread_file='dce'
893 #               tmake_file="${tmake_file} pa/t-dce-thr"
894 #       fi
895         install_headers_dir=install-headers-cpio
896         use_collect2=yes
897         ;;
898 hppa1.1-*-hpux* | hppa2*-*-hpux*)
899         target_cpu_default="MASK_PA_11"
900         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
901         xm_defines=POSIX
902         xmake_file=pa/x-pa-hpux
903         install_headers_dir=install-headers-cpio
904         use_collect2=yes
905         ;;
906 hppa1.0-*-hpux*)
907         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
908         xm_defines=POSIX
909         xmake_file=pa/x-pa-hpux
910         install_headers_dir=install-headers-cpio
911         use_collect2=yes
912         ;;
913 hppa1.1-*-hiux* | hppa2*-*-hiux*)
914         target_cpu_default="MASK_PA_11"
915         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
916         xm_defines=POSIX
917         xmake_file=pa/x-pa-hpux
918         install_headers_dir=install-headers-cpio
919         use_collect2=yes
920         ;;
921 hppa1.0-*-hiux*)
922         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
923         xm_defines=POSIX
924         xmake_file=pa/x-pa-hpux
925         install_headers_dir=install-headers-cpio
926         use_collect2=yes
927         ;;
928 hppa*-*-lites*)
929         tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
930         target_cpu_default="MASK_PA_11"
931         use_collect2=yes
932         ;;
933 hppa*-*-mpeix*)
934         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
935         xmake_file=pa/x-pa-mpeix
936         echo "You must use gas. Assuming it is already installed."
937         gas=yes
938         install_headers_dir=install-headers-tar
939         use_collect2=yes
940         ;;
941 i370-*-opened*)                  # IBM 360/370/390 Architecture
942         xm_defines='POSIX FATAL_EXIT_CODE=12'
943         tm_file=i370/oe.h
944         xmake_file=i370/x-oe
945         ;;
946 i370-*-mvs*)
947         xm_defines='POSIX FATAL_EXIT_CODE=12'
948         tm_file=i370/mvs.h
949         ;;
950 i370-*-linux*)
951         xmake_file=x-linux
952         tm_file="i370/linux.h ${tm_file}"
953         tmake_file="t-slibgcc-elf-ver t-linux"
954         # broken_install=yes
955         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
956         # extra_parts="crtbegin.o crtend.o"
957         gnu_ld=yes
958         gas=yes
959         elf=yes
960         if test x$enable_threads = xyes; then
961                 thread_file='posix'
962         fi
963         ;;
964 i[34567]86-*-chorusos*)
965         xm_defines=POSIX
966         tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h chorus.h"
967         tmake_file=i386/t-i386elf
968         xmake_file=x-svr4
969         case x${enable_threads} in
970           xyes | xpthreads | xposix)
971                 thread_file='posix'
972                 ;;
973         esac
974         ;;
975 i[34567]86-*-elf*)
976         xm_defines=POSIX
977         tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h"
978         tmake_file=i386/t-i386elf
979         xmake_file=x-svr4
980         ;;
981 i[34567]86-ibm-aix*)            # IBM PS/2 running AIX
982         if test x$gas = xyes
983         then
984                 tm_file=i386/aix386.h
985                 extra_parts="crtbegin.o crtend.o"
986                 tmake_file=i386/t-crtstuff
987         else
988                 tm_file=i386/aix386ng.h
989                 use_collect2=yes
990         fi
991         xm_defines=POSIX
992         ;;
993 i[34567]86-ncr-sysv4*)          # NCR 3000 - ix86 running system V.4
994         xm_defines="POSIX SMALL_ARG_MAX"
995         if test x$stabs = xyes -a x$gas = xyes
996         then
997                 tm_file=i386/sysv4gdb.h
998         else
999                 tm_file=i386/sysv4.h
1000         fi
1001         extra_parts="crtbegin.o crtend.o"
1002         tmake_file=i386/t-crtpic
1003         ;;
1004 i[34567]86-next-*)
1005         tm_file=i386/next.h
1006         tmake_file=i386/t-next
1007         extra_objs=nextstep.o
1008         extra_parts="crtbegin.o crtend.o"
1009         if test x$enable_threads = xyes; then
1010                 thread_file='mach'
1011         fi
1012         ;;
1013 i[34567]86-*-netware)           # Intel 80386's running netware
1014         tm_file=i386/netware.h
1015         tmake_file=i386/t-netware
1016         ;;
1017 i[34567]86-sequent-bsd*)                # 80386 from Sequent
1018         use_collect2=yes
1019         if test x$gas = xyes
1020         then
1021                 tm_file=i386/seq-gas.h
1022         else
1023                 tm_file=i386/sequent.h
1024         fi
1025         ;;
1026 i[34567]86-sequent-ptx1*)
1027         xm_defines=POSIX
1028         tm_file=i386/seq-sysv3.h
1029         tmake_file=i386/t-crtstuff
1030         extra_parts="crtbegin.o crtend.o"
1031         install_headers_dir=install-headers-cpio
1032         ;;
1033 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1034         xm_defines=POSIX
1035         tm_file=i386/seq2-sysv3.h
1036         tmake_file=i386/t-crtstuff
1037         extra_parts="crtbegin.o crtend.o"
1038         install_headers_dir=install-headers-cpio
1039         ;;
1040 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1041         if test x$gas = xyes
1042         then
1043                 tm_file="${tm_file} usegas.h"
1044         fi
1045         xm_defines="POSIX SMALL_ARG_MAX"
1046         xmake_file=x-svr4
1047         tm_file=i386/ptx4-i.h
1048         tmake_file=t-svr4
1049         extra_parts="crtbegin.o crtend.o"
1050         install_headers_dir=install-headers-cpio
1051         ;;
1052 i386-sun-sunos*)                # Sun i386 roadrunner
1053         xm_defines=POSIX
1054         tm_file=i386/sun.h
1055         use_collect2=yes
1056         ;;
1057 i[34567]86-wrs-vxworks*)
1058         tm_file=i386/vxi386.h
1059         thread_file='vxworks'
1060         ;;
1061 i[34567]86-*-aout*)
1062         tm_file=i386/i386-aout.h
1063         ;;
1064 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1065         xm_defines=POSIX
1066         tmake_file='i386/t-beos i386/t-crtpic'
1067         tm_file=i386/beos-elf.h
1068         xmake_file=i386/x-beos
1069         extra_parts='crtbegin.o crtend.o'
1070         ;;
1071 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1072         tm_file="i386/386bsd.h i386/bsd386.h"
1073 #       tmake_file=t-libc-ok
1074         ;;
1075 i[34567]86-*-bsd*)
1076         tm_file=i386/386bsd.h
1077 #       tmake_file=t-libc-ok
1078 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1079 #       use_collect2=yes
1080         ;;
1081 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1082         tm_file=i386/freebsd-aout.h
1083         tmake_file=t-freebsd
1084         ;;
1085 i[34567]86-*-freebsd*)
1086         tm_file="${tm_file} i386/att.h svr4.h ${fbsd_tm_file} i386/freebsd.h"
1087         ;;
1088 i[34567]86-*-netbsdelf*)
1089         xm_defines=POSIX
1090         tm_file="${tm_file} i386/att.h svr4.h i386/netbsd-elf.h"
1091         tmake_file=t-netbsd
1092         gnu_ld=yes
1093         float_format=i386
1094         ;;
1095 i[34567]86-*-netbsd*)
1096         tm_file=i386/netbsd.h
1097         tmake_file=t-netbsd
1098         use_collect2=yes
1099         ;;
1100 i[34567]86-*-openbsd*)
1101         # needed to unconfuse gdb
1102         tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1103         # we need collect2 until our bug is fixed...
1104         use_collect2=yes
1105         ;;
1106 i[34567]86-*-coff*)
1107         tm_file=i386/i386-coff.h
1108         ;;
1109 i[34567]86-*-isc*)              # 80386 running ISC system
1110         xm_defines=POSIX
1111         if test x$gas = xyes -a x$stabs = xyes
1112         then
1113                 tm_file=i386/iscdbx.h
1114                 tmake_file=i386/t-svr3dbx
1115                 extra_parts="svr3.ifile svr3z.ifile"
1116         else
1117                 tm_file=i386/isccoff.h
1118                 tmake_file=i386/t-crtstuff
1119                 extra_parts="crtbegin.o crtend.o"
1120         fi
1121         install_headers_dir=install-headers-cpio
1122         ;;
1123 i[34567]86-*-linux*oldld*)      # Intel 80386's running GNU/Linux
1124                                 # with a.out format using
1125                                 # pre BFD linkers
1126         tmake_file="t-linux-aout i386/t-crtstuff"
1127         tm_file=i386/linux-oldld.h
1128         gnu_ld=yes
1129         float_format=i386
1130         ;;
1131 i[34567]86-*-linux*aout*)       # Intel 80386's running GNU/Linux
1132                                 # with a.out format
1133         tmake_file="t-linux-aout i386/t-crtstuff"
1134         tm_file=i386/linux-aout.h
1135         gnu_ld=yes
1136         float_format=i386
1137         ;;
1138 i[34567]86-*-linux*libc1)       # Intel 80386's running GNU/Linux
1139                                 # with ELF format using the
1140                                 # GNU/Linux C library 5
1141         xmake_file=x-linux
1142         tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1143         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1144         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1145         gnu_ld=yes
1146         float_format=i386
1147         if test x$enable_threads = xyes; then
1148                 thread_file='single'
1149         fi
1150         ;;
1151 i[34567]86-*-linux*)    # Intel 80386's running GNU/Linux
1152                         # with ELF format using glibc 2
1153                         # aka GNU/Linux C library 6
1154         xmake_file=x-linux
1155         tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1156         tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1157         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1158         gnu_ld=yes
1159         float_format=i386
1160         if test x$enable_threads = xyes; then
1161                 thread_file='posix'
1162         fi
1163         ;;
1164 x86_64-*-linux*)
1165         xmake_file=x-linux
1166         tm_file="i386/biarch64.h i386/i386.h i386/att.h linux.h i386/x86-64.h \
1167                  i386/linux64.h"
1168         tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1169         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1170         gnu_ld=yes
1171         float_format=i386
1172         if test x$enable_threads = xyes; then
1173                 thread_file='posix'
1174         fi
1175         ;;
1176 i[34567]86-*-gnu*)
1177         float_format=i386
1178         ;;
1179 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1180         echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1181         exit 1
1182         ;;
1183 i[34567]86-pc-msdosdjgpp*)
1184         xm_file=i386/xm-djgpp.h
1185         tm_file=i386/djgpp.h
1186         xmake_file=i386/x-djgpp
1187         gnu_ld=yes
1188         gas=yes
1189         exeext=.exe
1190         float_format=none
1191         case $host in *pc-msdosdjgpp*)
1192                 target_alias=djgpp
1193                 ;;
1194         esac
1195         ;;
1196 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1197         tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h"
1198         tmake_file=t-libc-ok
1199         gnu_ld=yes
1200         gas=yes
1201         ;;
1202 i[34567]86-*-lynxos*)
1203         if test x$gas = xyes
1204         then
1205                 tm_file=i386/lynx.h
1206         else
1207                 tm_file=i386/lynx-ng.h
1208         fi
1209         ;;
1210 i[34567]86-*-mach*)
1211         tm_file=i386/mach.h
1212 #       tmake_file=t-libc-ok
1213         use_collect2=yes
1214         ;;
1215 i[34567]86-*-osfrose*)          # 386 using OSF/rose
1216         if test x$elf = xyes
1217         then
1218                 tm_file=i386/osfelf.h
1219                 use_collect2=
1220         else
1221                 tm_file=i386/osfrose.h
1222                 use_collect2=yes
1223         fi
1224         tmake_file=i386/t-osf
1225         extra_objs=halfpic.o
1226         ;;
1227 i[34567]86-go32-rtems*)
1228         cpu_type=i386
1229         tm_file=i386/go32-rtems.h
1230         tmake_file=t-rtems
1231         if test x$enable_threads = xyes; then
1232           thread_file='rtems'
1233         fi
1234         ;;
1235 i[34567]86-*-rtemscoff*)
1236         cpu_type=i386
1237         tm_file=i386/rtems.h
1238         tmake_file=t-rtems
1239         if test x$enable_threads = xyes; then
1240           thread_file='rtems'
1241         fi
1242         ;;
1243 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1244         cpu_type=i386
1245         tm_file=i386/rtemself.h
1246         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1247         tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1248         if test x$enable_threads = xyes; then
1249           thread_file='rtems'
1250         fi
1251         ;;
1252 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1253         xm_defines=POSIX
1254         xmake_file=i386/x-sco5
1255         install_headers_dir=install-headers-cpio
1256         tm_file=i386/sco5.h
1257         if test x$gas = xyes
1258         then
1259                 tm_file="usegas.h ${tm_file}"
1260                 tmake_file=i386/t-sco5gas
1261         else
1262                 tmake_file=i386/t-sco5
1263         fi
1264         extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1265         ;;
1266 i[34567]86-*-solaris2*)
1267         xm_defines="POSIX SMALL_ARG_MAX"
1268         tm_file=i386/sol2.h
1269         if test x$gas = xyes; then
1270                 # Only needed if gas does not support -s
1271                 tm_file="i386/sol2gas.h ${tm_file}"
1272         fi
1273         tmake_file=i386/t-sol2
1274         if test x$gnu_ld = xyes; then
1275                 tmake_file="$tmake_file t-slibgcc-elf-ver"
1276         else
1277                 tmake_file="$tmake_file t-slibgcc-sld"
1278         fi
1279         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1280         xmake_file=x-svr4
1281         if test x${enable_threads} = x; then
1282             enable_threads=$have_pthread_h
1283             if test x${enable_threads} = x; then
1284                 enable_threads=$have_thread_h
1285             fi
1286         fi
1287         if test x${enable_threads} = xyes; then
1288             if test x${have_pthread_h} = xyes; then
1289                 thread_file='posix'
1290             else
1291                 thread_file='solaris'
1292             fi
1293         fi
1294         ;;
1295 i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
1296        xm_defines=POSIX
1297        tm_file=i386/sysv5.h
1298        if test x$stabs = xyes
1299        then
1300                tm_file="${tm_file} dbx.h"
1301        fi
1302        tmake_file=i386/t-crtpic
1303        xmake_file=x-svr4
1304        extra_parts="crtbegin.o crtend.o"
1305        if test x$enable_threads = xyes; then
1306                thread_file='posix'
1307        fi
1308        ;;
1309 i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
1310         xm_defines="POSIX SMALL_ARG_MAX"
1311         tm_file=i386/sysv4.h
1312         if test x$stabs = xyes
1313         then
1314                 tm_file="${tm_file} dbx.h"
1315         fi
1316         tmake_file=i386/t-crtpic
1317         xmake_file=x-svr4
1318         extra_parts="crtbegin.o crtend.o"
1319         ;;
1320 i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
1321         xm_defines=POSIX
1322         tm_file=i386/udk.h
1323         tmake_file="i386/t-crtpic i386/t-udk"
1324         xmake_file=x-svr4
1325         extra_parts="crtbegin.o crtend.o"
1326         install_headers_dir=install-headers-cpio
1327         ;;
1328 i[34567]86-*-osf1*)             # Intel 80386's running OSF/1 1.3+
1329         cpu_type=i386
1330         xm_file=i386/xm-osf1elf.h
1331         xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1332         if test x$stabs = xyes
1333         then
1334                 tm_file=i386/osf1elfgdb.h
1335         else
1336                 tm_file=i386/osf1elf.h
1337         fi
1338         tmake_file=i386/t-osf1elf
1339         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1340         ;;
1341 i[34567]86-*-sysv*)             # Intel 80386's running system V
1342         xm_defines=POSIX
1343         if test x$gas = xyes
1344         then
1345                 if test x$stabs = xyes
1346                 then
1347                         tm_file=i386/svr3dbx.h
1348                         tmake_file=i386/t-svr3dbx
1349                         extra_parts="svr3.ifile svr3z.rfile"
1350                 else
1351                         tm_file=i386/svr3gas.h
1352                         extra_parts="crtbegin.o crtend.o"
1353                         tmake_file=i386/t-crtstuff
1354                 fi
1355         else
1356                 tm_file=i386/sysv3.h
1357                 extra_parts="crtbegin.o crtend.o"
1358                 tmake_file=i386/t-crtstuff
1359         fi
1360         tmake_file="$tmake_file i386/t-crtpic"
1361         ;;
1362 i386-*-vsta)                    # Intel 80386's running VSTa kernel
1363         xm_file=i386/xm-vsta.h
1364         tm_file=i386/vsta.h
1365         ;;
1366 i[34567]86-*-win32)
1367         xm_defines=POSIX
1368         xm_file=i386/xm-cygwin.h
1369         float_format=i386
1370         tmake_file=i386/t-cygwin
1371         tm_file=i386/win32.h
1372         xmake_file=i386/x-cygwin
1373         extra_objs=winnt.o
1374         if test x$enable_threads = xyes; then
1375                 thread_file='win32'
1376         fi
1377         exeext=.exe
1378         ;;
1379 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1380         xm_defines=POSIX
1381         xm_file=i386/xm-cygwin.h
1382         float_format=i386
1383         tmake_file=i386/t-cygwin
1384         tm_file=i386/cygwin.h
1385         xmake_file=i386/x-cygwin
1386         extra_objs=winnt.o
1387         if test x$enable_threads = xyes; then
1388                 thread_file='win32'
1389         fi
1390         exeext=.exe
1391         ;;
1392 i[34567]86-*-mingw32*)
1393         tm_file=i386/mingw32.h
1394         float_format=i386
1395         xm_defines=POSIX
1396         xm_file=i386/xm-mingw32.h
1397         tmake_file="i386/t-cygwin i386/t-mingw32"
1398         extra_objs=winnt.o
1399         xmake_file=i386/x-cygwin
1400         if test x$enable_threads = xyes; then
1401                 thread_file='win32'
1402         fi
1403         exeext=.exe
1404         case $machine in
1405                 *mingw32crt*)
1406                         tm_file="${tm_file} i386/crtdll.h"
1407                         ;;
1408                 *minwg32msv* | *mingw32*)
1409                         ;;
1410         esac
1411         ;;
1412 i[34567]86-*-uwin*)
1413         tm_file=i386/uwin.h
1414         tmake_file="i386/t-cygwin i386/t-uwin"
1415         extra_objs=winnt.o
1416         xmake_file=i386/x-cygwin
1417         if test x$enable_threads = xyes; then
1418                 thread_file='win32'
1419         fi
1420         exeext=.exe
1421         ;;
1422 i[34567]86-*-interix*)
1423         tm_file="i386/i386-interix.h interix.h"
1424         xm_file="i386/xm-i386-interix.h xm-interix.h"
1425         xm_defines=POSIX
1426         tmake_file="i386/t-interix"
1427         extra_objs=interix.o
1428         xmake_file=x-interix
1429         if test x$enable_threads = xyes ; then
1430                 thread_file='posix'
1431         fi
1432         if test x$stabs = xyes ; then
1433                 tm_file="${tm_file} dbxcoff.h"
1434         fi
1435         ;;
1436 i[34567]86-dg-dgux*)
1437         xm_defines=POSIX
1438         out_file=i386/dgux.c
1439         tm_file=i386/dgux.h
1440         tmake_file=i386/t-dgux
1441         xmake_file=i386/x-dgux
1442         install_headers_dir=install-headers-cpio
1443       ;;
1444 i860-alliant-*)         # Alliant FX/2800
1445         tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1446         tmake_file=i860/t-fx2800
1447         extra_parts="crtbegin.o crtend.o"
1448         ;;
1449 i860-*-bsd*)
1450         tm_file="${tm_file} i860/bsd.h"
1451         if test x$gas = xyes
1452         then
1453                 tm_file="${tm_file} i860/bsd-gas.h"
1454         fi
1455         use_collect2=yes
1456         ;;
1457 i860-*-mach*)
1458         tm_file="${tm_file} i860/mach.h"
1459         tmake_file=t-libc-ok
1460         ;;
1461 i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
1462         tm_file="${tm_file} svr3.h i860/paragon.h"
1463         xm_defines=POSIX
1464         ;;
1465 i860-*-sysv3*)
1466         tm_file="${tm_file} svr3.h i860/sysv3.h"
1467         xm_defines=POSIX
1468         extra_parts="crtbegin.o crtend.o"
1469         ;;
1470 i860-*-sysv4*)
1471         tm_file="${tm_file} svr4.h i860/sysv4.h"
1472         xm_defines=POSIX
1473         tmake_file=t-svr4
1474         extra_parts="crtbegin.o crtend.o"
1475         ;;
1476 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1477         tm_file="${tm_file} i960/vx960.h"
1478         tmake_file=i960/t-vxworks960
1479         use_collect2=yes
1480         thread_file='vxworks'
1481         c_target_objs="i960-c.o"
1482         cxx_target_objs="i960-c.o"
1483         ;;
1484 i960-wrs-vxworks5* | i960-wrs-vxworks)
1485         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1486         tmake_file=i960/t-vxworks960
1487         use_collect2=yes
1488         thread_file='vxworks'
1489         c_target_objs="i960-c.o"
1490         cxx_target_objs="i960-c.o"
1491         ;;
1492 i960-wrs-vxworks*)
1493         tm_file="${tm_file} i960/vx960.h"
1494         tmake_file=i960/t-vxworks960
1495         use_collect2=yes
1496         thread_file='vxworks'
1497         c_target_objs="i960-c.o"
1498         cxx_target_objs="i960-c.o"
1499         ;;
1500 i960-*-coff*)
1501         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1502         tmake_file=i960/t-960bare
1503         c_target_objs="i960-c.o"
1504         cxx_target_objs="i960-c.o"
1505         ;;
1506 i960-*-rtems)
1507         tmake_file="i960/t-960bare t-rtems"
1508         tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1509         if test x$enable_threads = xyes; then
1510           thread_file='rtems'
1511         fi
1512         c_target_objs="i960-c.o"
1513         cxx_target_objs="i960-c.o"
1514         ;;
1515 i960-*-*)                       # Default i960 environment.
1516         use_collect2=yes
1517         c_target_objs="i960-c.o"
1518         cxx_target_objs="i960-c.o"
1519         ;;
1520 ia64*-*-aix*)
1521         tm_file="${tm_file} svr4.h ia64/sysv4.h ia64/aix.h"
1522         tmake_file="ia64/t-ia64 ia64/t-aix"
1523         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1524         ;;
1525 ia64*-*-elf*)
1526         tm_file=ia64/elf.h
1527         tmake_file="ia64/t-ia64"
1528         target_cpu_default="0"
1529         if test x$gas = xyes
1530         then
1531                 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1532         fi
1533         if test x$gnu_ld = xyes
1534         then
1535                 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1536         fi
1537         float_format=i386
1538         ;;
1539 ia64*-*-linux*)
1540         tm_file=ia64/linux.h
1541         tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1542         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1543         if test x$enable_threads = xyes; then
1544                 thread_file='posix'
1545         fi
1546         float_format=i386
1547         ;;
1548 ia64*-*-hpux*)
1549         tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1550         tmake_file="ia64/t-ia64 ia64/t-hpux"
1551         target_cpu_default="MASK_GNU_AS"
1552         if test x$enable_threads = xyes; then
1553                 thread_file='posix'
1554         fi
1555         float_format=i386
1556         ;;
1557 m32r-*-elf*)
1558         extra_parts="crtinit.o crtfini.o"
1559         ;;
1560 # m68hc11 and m68hc12 share the same machine description.
1561 m68hc11-*-*|m6811-*-*)
1562         tm_file="elfos.h m68hc11/m68hc11.h"
1563         tm_p_file="m68hc11/m68hc11-protos.h"
1564         md_file="m68hc11/m68hc11.md"
1565         out_file="m68hc11/m68hc11.c"
1566         tmake_file="m68hc11/t-m68hc11-gas"
1567         ;;
1568 m68hc12-*-*|m6812-*-*)
1569         tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1570         tm_p_file="m68hc11/m68hc11-protos.h"
1571         md_file="m68hc11/m68hc11.md"
1572         out_file="m68hc11/m68hc11.c"
1573         tmake_file="m68hc11/t-m68hc11-gas"
1574         ;;
1575 m68000-convergent-sysv*)
1576         tm_file=m68k/ctix.h
1577         xm_defines=POSIX
1578         use_collect2=yes
1579         extra_headers=math-68881.h
1580         ;;
1581 m68000-hp-bsd*)                 # HP 9000/200 running BSD
1582         tm_file=m68k/hp2bsd.h
1583         use_collect2=yes
1584         extra_headers=math-68881.h
1585         ;;
1586 m68000-hp-hpux*)                # HP 9000 series 300
1587         xm_defines=POSIX
1588         if test x$gas = xyes
1589         then
1590                 xmake_file=m68k/x-hp320g
1591                 tm_file=m68k/hp310g.h
1592         else
1593                 xmake_file=m68k/x-hp320
1594                 tm_file=m68k/hp310.h
1595         fi
1596         install_headers_dir=install-headers-cpio
1597         use_collect2=yes
1598         extra_headers=math-68881.h
1599         ;;
1600 m68000-sun-sunos3*)
1601         tm_file=m68k/sun2.h
1602         use_collect2=yes
1603         extra_headers=math-68881.h
1604         ;;
1605 m68000-sun-sunos4*)
1606         tm_file=m68k/sun2o4.h
1607         use_collect2=yes
1608         extra_headers=math-68881.h
1609         ;;
1610 m68000-att-sysv*)
1611         xm_defines=POSIX
1612         if test x$gas = xyes
1613         then
1614                 tm_file=m68k/3b1g.h
1615         else
1616                 tm_file=m68k/3b1.h
1617         fi
1618         use_collect2=yes
1619         extra_headers=math-68881.h
1620         ;;
1621 m68k-apple-aux*)                # Apple Macintosh running A/UX
1622         xm_defines=POSIX
1623         tmake_file=m68k/t-aux
1624         install_headers_dir=install-headers-cpio
1625         extra_headers=math-68881.h
1626         extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1627         tm_file=
1628         if test "$gnu_ld" = yes
1629         then
1630                 tm_file="${tm_file} m68k/auxgld.h"
1631         else
1632                 tm_file="${tm_file} m68k/auxld.h"
1633         fi
1634         if test "$gas" = yes
1635         then
1636                 tm_file="${tm_file} m68k/auxgas.h"
1637         else
1638                 tm_file="${tm_file} m68k/auxas.h"
1639         fi
1640         tm_file="${tm_file} m68k/a-ux.h"
1641         float_format=m68k
1642         ;;
1643 m68k-apollo-*)
1644         tm_file=m68k/apollo68.h
1645         use_collect2=yes
1646         extra_headers=math-68881.h
1647         float_format=m68k
1648         ;;
1649 m68k-altos-sysv*)                  # Altos 3068
1650         if test x$gas = xyes
1651         then
1652                 tm_file=m68k/altos3068.h
1653                 xm_defines=POSIX
1654         else
1655                 echo "The Altos is supported only with the GNU assembler" 1>&2
1656                 exit 1
1657         fi
1658         extra_headers=math-68881.h
1659         ;;
1660 m68k-bull-sysv*)                # Bull DPX/2
1661         if test x$gas = xyes
1662         then
1663                 if test x$stabs = xyes
1664                 then
1665                         tm_file=m68k/dpx2cdbx.h
1666                 else
1667                         tm_file=m68k/dpx2g.h
1668                 fi
1669         else
1670                 tm_file=m68k/dpx2.h
1671         fi
1672         xm_defines=POSIX
1673         use_collect2=yes
1674         extra_headers=math-68881.h
1675         ;;
1676 m68k-atari-sysv4*)              # Atari variant of V.4.
1677         tm_file=m68k/atari.h
1678         xm_defines=POSIX
1679         tmake_file=t-svr4
1680         extra_parts="crtbegin.o crtend.o"
1681         extra_headers=math-68881.h
1682         float_format=m68k
1683         ;;
1684 m68k-motorola-sysv*)
1685         tm_file=m68k/mot3300.h
1686         xm_defines=POSIX
1687         if test x$gas = xyes
1688         then
1689                 if test x$gnu_ld = xyes
1690                 then
1691                         tmake_file=m68k/t-mot3300-gald
1692                 else
1693                         tmake_file=m68k/t-mot3300-gas
1694                         use_collect2=yes
1695                 fi
1696         else
1697                 if test x$gnu_ld = xyes
1698                 then
1699                         tmake_file=m68k/t-mot3300-gld
1700                 else
1701                         tmake_file=m68k/t-mot3300
1702                         use_collect2=yes
1703                 fi
1704         fi
1705         gdb_needs_out_file_path=yes
1706         extra_parts="crt0.o mcrt0.o"
1707         extra_headers=math-68881.h
1708         float_format=m68k
1709         ;;
1710 m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
1711         tm_file=m68k/tower-as.h
1712         xm_defines=POSIX
1713         extra_parts="crtbegin.o crtend.o"
1714         extra_headers=math-68881.h
1715         ;;
1716 m68k-plexus-sysv*)
1717         tm_file=m68k/plexus.h
1718         xm_defines=POSIX
1719         use_collect2=yes
1720         extra_headers=math-68881.h
1721         ;;
1722 m68k-tti-*)
1723         tm_file=m68k/pbb.h
1724         xm_defines=POSIX
1725         extra_headers=math-68881.h
1726         ;;
1727 m68k-crds-unos*)
1728         xm_defines=POSIX
1729         tm_file=m68k/crds.h
1730         use_collect2=yes
1731         extra_headers=math-68881.h
1732         ;;
1733 m68k-cbm-sysv4*)                # Commodore variant of V.4.
1734         tm_file=m68k/amix.h
1735         xm_defines=POSIX
1736         tmake_file=t-svr4
1737         extra_parts="crtbegin.o crtend.o"
1738         extra_headers=math-68881.h
1739         float_format=m68k
1740         ;;
1741 m68k-ccur-rtu)
1742         tm_file=m68k/ccur-GAS.h
1743         extra_headers=math-68881.h
1744         use_collect2=yes
1745         float_format=m68k
1746         ;;
1747 m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
1748         tm_file=m68k/hp3bsd44.h
1749         use_collect2=yes
1750         extra_headers=math-68881.h
1751         float_format=m68k
1752         ;;
1753 m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
1754         tm_file=m68k/hp3bsd.h
1755         use_collect2=yes
1756         extra_headers=math-68881.h
1757         float_format=m68k
1758         ;;
1759 m68k-isi-bsd*)
1760         if test x$with_fp = xno
1761         then
1762                 tm_file=m68k/isi-nfp.h
1763         else
1764                 tm_file=m68k/isi.h
1765                 float_format=m68k
1766         fi
1767         use_collect2=yes
1768         extra_headers=math-68881.h
1769         ;;
1770 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1771         xm_defines=POSIX
1772         if test x$gas = xyes
1773         then
1774                 xmake_file=m68k/x-hp320g
1775                 tm_file=m68k/hp320g.h
1776         else
1777                 xmake_file=m68k/x-hp320
1778                 tm_file=m68k/hpux7.h
1779         fi
1780         install_headers_dir=install-headers-cpio
1781         use_collect2=yes
1782         extra_headers=math-68881.h
1783         float_format=m68k
1784         ;;
1785 m68k-hp-hpux*)  # HP 9000 series 300
1786         xm_defines=POSIX
1787         if test x$gas = xyes
1788         then
1789                 xmake_file=m68k/x-hp320g
1790                 tm_file=m68k/hp320g.h
1791         else
1792                 xmake_file=m68k/x-hp320
1793                 tm_file=m68k/hp320.h
1794         fi
1795         install_headers_dir=install-headers-cpio
1796         use_collect2=yes
1797         extra_headers=math-68881.h
1798         float_format=m68k
1799         ;;
1800 m68k-sun-mach*)
1801         tm_file=m68k/sun3mach.h
1802         use_collect2=yes
1803         extra_headers=math-68881.h
1804         float_format=m68k
1805         ;;
1806 m68k-sony-newsos3*)
1807         if test x$gas = xyes
1808         then
1809                 tm_file=m68k/news3gas.h
1810         else
1811                 tm_file=m68k/news3.h
1812         fi
1813         use_collect2=yes
1814         extra_headers=math-68881.h
1815         float_format=m68k
1816         ;;
1817 m68k-sony-bsd* | m68k-sony-newsos*)
1818         if test x$gas = xyes
1819         then
1820                 tm_file=m68k/newsgas.h
1821         else
1822                 tm_file=m68k/news.h
1823         fi
1824         use_collect2=yes
1825         extra_headers=math-68881.h
1826         float_format=m68k
1827         ;;
1828 m68k-next-nextstep2*)
1829         tm_file=m68k/next21.h
1830         tmake_file=m68k/t-next
1831         xmake_file=m68k/x-next
1832         extra_objs=nextstep.o
1833         extra_headers=math-68881.h
1834         use_collect2=yes
1835         float_format=m68k
1836         ;;
1837 m68k-next-nextstep[34]*)
1838         tm_file=m68k/next.h
1839         tmake_file=m68k/t-next
1840         xmake_file=m68k/x-next
1841         extra_objs=nextstep.o
1842         extra_parts="crtbegin.o crtend.o"
1843         extra_headers=math-68881.h
1844         float_format=m68k
1845         if test x$enable_threads = xyes; then
1846                 thread_file='mach'
1847         fi
1848         ;;
1849 m68k-sun-sunos3*)
1850         if test x$with_fp = xno
1851         then
1852                 tm_file=m68k/sun3n3.h
1853         else
1854                 tm_file=m68k/sun3o3.h
1855                 float_format=m68k
1856         fi
1857         use_collect2=yes
1858         extra_headers=math-68881.h
1859         ;;
1860 m68k-sun-sunos*)                        # For SunOS 4 (the default).
1861         if test x$with_fp = xno
1862         then
1863                 tm_file=m68k/sun3n.h
1864         else
1865                 tm_file=m68k/sun3.h
1866                 float_format=m68k
1867         fi
1868         use_collect2=yes
1869         extra_headers=math-68881.h
1870         ;;
1871 m68k-wrs-vxworks*)
1872         tm_file=m68k/vxm68k.h
1873         tmake_file=m68k/t-vxworks68
1874         extra_headers=math-68881.h
1875         thread_file='vxworks'
1876         float_format=m68k
1877         ;;
1878 m68k-*-aout*)
1879         tmake_file=m68k/t-m68kbare
1880         tm_file="m68k/m68k-aout.h libgloss.h"
1881         extra_headers=math-68881.h
1882         float_format=m68k
1883         ;;
1884 m68k-*-coff*)
1885         tmake_file=m68k/t-m68kbare
1886         tm_file="m68k/m68k-coff.h dbx.h"
1887         extra_headers=math-68881.h
1888         float_format=m68k
1889         ;;
1890 m68020-*-elf* | m68k-*-elf*)
1891         tm_file="m68k/m68020-elf.h"
1892         xm_defines=POSIX
1893         tmake_file=m68k/t-m68kelf
1894         header_files=math-68881.h
1895         extra_parts="crtbegin.o crtend.o"
1896         ;;
1897 m68k-*-lynxos*)
1898         if test x$gas = xyes
1899         then
1900                 tm_file=m68k/lynx.h
1901         else
1902                 tm_file=m68k/lynx-ng.h
1903         fi
1904         tmake_file=m68k/t-lynx
1905         extra_headers=math-68881.h
1906         float_format=m68k
1907         ;;
1908 m68k*-*-netbsd*)
1909         tm_file=m68k/netbsd.h
1910         tmake_file=t-netbsd
1911         float_format=m68k
1912         use_collect2=yes
1913         ;;
1914 m68k*-*-openbsd*)
1915         # needed to unconfuse gdb
1916         tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1917         float_format=m68k
1918         # we need collect2 until our bug is fixed...
1919         use_collect2=yes
1920         ;;
1921 m68k-*-sysv3*)                  # Motorola m68k's running system V.3
1922         xm_defines=POSIX
1923         extra_parts="crtbegin.o crtend.o"
1924         extra_headers=math-68881.h
1925         float_format=m68k
1926         ;;
1927 m68k-*-sysv4*)                  # Motorola m68k's running system V.4
1928         tm_file=m68k/m68kv4.h
1929         xm_defines=POSIX
1930         tmake_file=t-svr4
1931         extra_parts="crtbegin.o crtend.o"
1932         extra_headers=math-68881.h
1933         float_format=m68k
1934         ;;
1935 m68k-*-linux*aout*)             # Motorola m68k's running GNU/Linux
1936                                 # with a.out format
1937         xmake_file=x-linux
1938         tm_file=m68k/linux-aout.h
1939         tmake_file="t-linux-aout m68k/t-linux-aout"
1940         extra_headers=math-68881.h
1941         float_format=m68k
1942         gnu_ld=yes
1943         ;;
1944 m68k-*-linux*libc1)             # Motorola m68k's running GNU/Linux
1945                                 # with ELF format using the
1946                                 # GNU/Linux C library 5
1947         xmake_file=x-linux
1948         tm_file=m68k/linux.h
1949         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
1950         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1951         extra_headers=math-68881.h
1952         float_format=m68k
1953         gnu_ld=yes
1954         ;;
1955 m68k-*-linux*)          # Motorola m68k's running GNU/Linux
1956                                 # with ELF format using glibc 2
1957                                 # aka the GNU/Linux C library 6.
1958         xmake_file=x-linux
1959         tm_file=m68k/linux.h
1960         tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
1961         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1962         extra_headers=math-68881.h
1963         float_format=m68k
1964         gnu_ld=yes
1965         if test x$enable_threads = xyes; then
1966                 thread_file='posix'
1967         fi
1968         ;;
1969 m68k-*-psos*)
1970         tmake_file=m68k/t-m68kbare
1971         tm_file=m68k/m68k-psos.h
1972         extra_headers=math-68881.h
1973         float_format=m68k
1974         ;;
1975 m68k-*-rtemscoff*)
1976         tmake_file="m68k/t-m68kbare t-rtems"
1977         tm_file=m68k/rtems.h
1978         extra_headers=math-68881.h
1979         float_format=m68k
1980         if test x$enable_threads = xyes; then
1981           thread_file='rtems'
1982         fi
1983         ;;
1984 m68k-*-rtemself*|m68k-*-rtems*)
1985         tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1986         tm_file=m68k/rtemself.h
1987         extra_headers=math-68881.h
1988         float_format=m68k
1989         extra_parts="crtbegin.o crtend.o"
1990         if test x$enable_threads = xyes; then
1991           thread_file='rtems'
1992         fi
1993         ;;
1994 m88k-dg-dgux*)
1995         xm_defines=POSIX
1996         case $machine in
1997           m88k-dg-dguxbcs*)
1998             tm_file=m88k/dguxbcs.h
1999             tmake_file=m88k/t-dguxbcs
2000             ;;
2001           *)
2002             tm_file=m88k/dgux.h
2003             tmake_file=m88k/t-dgux
2004             ;;
2005         esac
2006         extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2007         xmake_file=m88k/x-dgux
2008         if test x$gas = xyes
2009         then
2010                 tmake_file=m88k/t-dgux-gas
2011         fi
2012         ;;
2013 m88k-dolphin-sysv3*)
2014         xm_defines=POSIX
2015         tm_file=m88k/dolph.h
2016         extra_parts="crtbegin.o crtend.o"
2017         xmake_file=m88k/x-dolph
2018         if test x$gas = xyes
2019         then
2020                 tmake_file=m88k/t-m88k-gas
2021         fi
2022         ;;
2023 m88k-tektronix-sysv3)
2024         xm_defines=POSIX
2025         tm_file=m88k/tekXD88.h
2026         extra_parts="crtbegin.o crtend.o"
2027         xmake_file=m88k/x-tekXD88
2028         if test x$gas = xyes
2029         then
2030                 tmake_file=m88k/t-m88k-gas
2031         fi
2032         ;;
2033 m88k-*-aout*)
2034         xm_defines=POSIX
2035         tm_file=m88k/m88k-aout.h
2036         ;;
2037 m88k-*-coff*)
2038         xm_defines=POSIX
2039         tm_file=m88k/m88k-coff.h
2040         tmake_file=m88k/t-bug
2041         ;;
2042 m88k-*-luna*)
2043         tm_file=m88k/luna.h
2044         extra_parts="crtbegin.o crtend.o"
2045         if test x$gas = xyes
2046         then
2047                 tmake_file=m88k/t-luna-gas
2048         else
2049                 tmake_file=m88k/t-luna
2050         fi
2051         ;;
2052 m88k-*-openbsd*)
2053         tmake_file="${tmake_file} m88k/t-luna-gas"
2054         tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2055         ;;
2056 m88k-*-sysv3*)
2057         xm_defines=POSIX
2058         tm_file=m88k/sysv3.h
2059         extra_parts="crtbegin.o crtend.o"
2060         if test x$gas = xyes
2061         then
2062                 tmake_file=m88k/t-m88k-gas
2063         fi
2064         ;;
2065 m88k-*-sysv4*)
2066         xm_defines=POSIX
2067         tm_file=m88k/sysv4.h
2068         extra_parts="crtbegin.o crtend.o"
2069         tmake_file=m88k/t-sysv4
2070         ;;
2071 mcore-*-elf)
2072         tm_file=mcore/mcore-elf.h
2073         tmake_file=mcore/t-mcore
2074         ;;
2075 mcore-*-pe*)
2076         tm_file=mcore/mcore-pe.h
2077         tmake_file=mcore/t-mcore-pe
2078         ;;
2079 mips-sgi-irix6*)                # SGI System V.4., IRIX 6
2080         if test "x$gnu_ld" = xyes
2081         then
2082                 tm_file="mips/iris6.h mips/iris6gld.h"
2083         else
2084                 tm_file=mips/iris6.h
2085         fi
2086         tmake_file=mips/t-iris6
2087         xm_defines=POSIX
2088         xmake_file=mips/x-iris6
2089 #       if test x$enable_threads = xyes; then
2090 #               thread_file='irix'
2091 #       fi
2092         ;;
2093 mips-wrs-vxworks)
2094         tm_file="mips/elf.h mips/vxworks.h"
2095         tmake_file=mips/t-ecoff
2096         gas=yes
2097         gnu_ld=yes
2098         extra_parts="crtbegin.o crtend.o"
2099         thread_file='vxworks'
2100         ;;
2101 mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
2102         tm_file="mips/iris6.h mips/cross64.h"
2103         xm_defines=POSIX
2104         xm_file=mips/xm-iris5.h
2105         xmake_file=mips/x-iris
2106         tmake_file=mips/t-cross64
2107         # See comment in mips/iris[56].h files.
2108         use_collect2=yes
2109 #       if test x$enable_threads = xyes; then
2110 #               thread_file='irix'
2111 #       fi
2112         ;;
2113 mips-sni-sysv4)
2114         if test x$gas = xyes
2115         then
2116                 if test x$stabs = xyes
2117                 then
2118                         tm_file=mips/iris5gdb.h
2119                 else
2120                         tm_file="mips/sni-svr4.h mips/sni-gas.h"
2121                 fi
2122         else
2123                 tm_file=mips/sni-svr4.h
2124         fi
2125         xm_defines=POSIX
2126         if test x$gnu_ld != xyes
2127         then
2128                 use_collect2=yes
2129         fi
2130         ;;
2131 mips-sgi-irix5*)                # SGI System V.4., IRIX 5
2132         if test x$gas = xyes
2133         then
2134                 tm_file="mips/iris5.h mips/iris5gas.h"
2135                 if test x$stabs = xyes
2136                 then
2137                         tm_file="${tm_file} dbx.h"
2138                 fi
2139         else
2140                 tm_file=mips/iris5.h
2141         fi
2142         xm_defines=POSIX
2143         xm_file=mips/xm-iris5.h
2144         xmake_file=mips/x-iris
2145         # mips-tfile doesn't work yet
2146         # See comment in mips/iris5.h file.
2147         use_collect2=yes
2148 #       if test x$enable_threads = xyes; then
2149 #               thread_file='irix'
2150 #       fi
2151         ;;
2152 mips-sgi-irix4loser*)           # Mostly like a MIPS.
2153         tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2154         if test x$stabs = xyes; then
2155                 tm_file="${tm_file} dbx.h"
2156         fi
2157         xm_defines=POSIX
2158         xmake_file=mips/x-iris
2159         if test x$gas = xyes
2160         then    :
2161         else
2162                 extra_passes="mips-tfile mips-tdump"
2163         fi
2164         if test x$gnu_ld != xyes
2165         then
2166                 use_collect2=yes
2167         fi
2168 #       if test x$enable_threads = xyes; then
2169 #               thread_file='irix'
2170 #       fi
2171         ;;
2172 mips-sgi-irix4*)                # Mostly like a MIPS.
2173         tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2174         if test x$stabs = xyes; then
2175                 tm_file="${tm_file} dbx.h"
2176         fi
2177         xm_defines=POSIX
2178         xmake_file=mips/x-iris
2179         if test x$gas = xyes
2180         then    :
2181         else
2182                 extra_passes="mips-tfile mips-tdump"
2183         fi
2184         if test x$gnu_ld != xyes
2185         then
2186                 use_collect2=yes
2187         fi
2188 #       if test x$enable_threads = xyes; then
2189 #               thread_file='irix'
2190 #       fi
2191         ;;
2192 mips-sgi-*)                     # Mostly like a MIPS.
2193         tm_file="mips/iris3.h ${tm_file}"
2194         if test x$stabs = xyes; then
2195                 tm_file="${tm_file} dbx.h"
2196         fi
2197         xm_defines=POSIX
2198         if test x$gas = xyes
2199         then    :
2200         else
2201                 extra_passes="mips-tfile mips-tdump"
2202         fi
2203         if test x$gnu_ld != xyes
2204         then
2205                 use_collect2=yes
2206         fi
2207         ;;
2208 mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
2209         tm_file="mips/osfrose.h ${tm_file}"
2210         extra_objs=halfpic.o
2211         use_collect2=yes
2212         ;;
2213 mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
2214         tm_file=mips/dec-osf1.h
2215         if test x$stabs = xyes; then
2216                 tm_file="${tm_file} dbx.h"
2217         fi
2218         if test x$gas = xyes
2219         then    :
2220         else
2221                 tmake_file=mips/t-ultrix
2222                 extra_passes="mips-tfile mips-tdump"
2223         fi
2224         if test x$gnu_ld != xyes
2225         then
2226                 use_collect2=yes
2227         fi
2228         ;;
2229 mips-dec-bsd*)                  # Decstation running 4.4 BSD
2230       tm_file=mips/dec-bsd.h
2231       if test x$gas = xyes
2232       then      :
2233       else
2234                 tmake_file=mips/t-ultrix
2235                 extra_passes="mips-tfile mips-tdump"
2236       fi
2237       if test x$gnu_ld != xyes
2238       then
2239                 use_collect2=yes
2240       fi
2241       ;;
2242 mipsel-*-netbsd* | mips-dec-netbsd*)    # Decstation running NetBSD
2243         tm_file=mips/netbsd.h
2244         # On NetBSD, the headers are already okay, except for math.h.
2245         tmake_file=t-netbsd
2246         ;;
2247 mips*-*-linux*)                         # Linux MIPS, either endian.
2248         xmake_file=x-linux
2249         case $machine in
2250                 mipsisa32el-*)
2251                         tm_file="elfos.h mips/elfl.h mips/linux.h mips/isa32-linux.h"
2252                         target_cpu_default="MASK_SOFT_FLOAT"
2253                         ;;
2254                 mipsisa32-*)
2255                         tm_file="elfos.h mips/elf.h mips/linux.h mips/isa32-linux.h"
2256                         target_cpu_default="MASK_SOFT_FLOAT"
2257                         ;;
2258                 mips*el-*)  tm_file="elfos.h mips/elfl.h mips/linux.h" ;;
2259                 *) tm_file="elfos.h mips/elf.h mips/linux.h"
2260         esac
2261         tmake_file="t-slibgcc-elf-ver t-linux"
2262         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2263         gnu_ld=yes
2264         gas=yes
2265         if test x$enable_threads = xyes; then
2266                 thread_file='posix'
2267         fi
2268         ;;
2269 mips*el-*-openbsd*)     # mips little endian
2270         target_cpu_default="MASK_GAS|MASK_ABICALLS"
2271         ;;
2272 mips*-*-openbsd*)               # mips big endian
2273         target_cpu_default="MASK_GAS|MASK_ABICALLS"
2274         tm_file="mips/openbsd-be.h ${tm_file}"
2275         ;;
2276 mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
2277         tm_file="mips/news4.h ${tm_file}"
2278         if test x$stabs = xyes; then
2279                 tm_file="${tm_file} dbx.h"
2280         fi
2281         if test x$gas = xyes
2282         then    :
2283         else
2284                 extra_passes="mips-tfile mips-tdump"
2285         fi
2286         if test x$gnu_ld != xyes
2287         then
2288                 use_collect2=yes
2289         fi
2290         ;;
2291 mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
2292                                 # That is based on svr4.
2293         # t-svr4 is not right because this system doesn't use ELF.
2294         tm_file="mips/news5.h ${tm_file}"
2295         if test x$stabs = xyes; then
2296                 tm_file="${tm_file} dbx.h"
2297         fi
2298         xm_defines=POSIX
2299         if test x$gas = xyes
2300         then    :
2301         else
2302                 extra_passes="mips-tfile mips-tdump"
2303         fi
2304         if test x$gnu_ld != xyes
2305         then
2306                 use_collect2=yes
2307         fi
2308         ;;
2309 mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
2310         tm_file="mips/svr4-5.h mips/svr4-t.h"
2311         if test x$stabs = xyes; then
2312                 tm_file="${tm_file} dbx.h"
2313         fi
2314         xm_defines=POSIX
2315         if test x$gas = xyes
2316         then
2317                 extra_parts="crtbegin.o crtend.o"
2318         else
2319                 extra_passes="mips-tfile mips-tdump"
2320         fi
2321         if test x$gnu_ld != xyes
2322         then
2323                 use_collect2=yes
2324         fi
2325         ;;
2326 mips-*-ultrix* | mips-dec-mach3)        # Decstation.
2327         tm_file="mips/ultrix.h ${tm_file}"
2328         if test x$stabs = xyes; then
2329                 tm_file="${tm_file} dbx.h"
2330         fi
2331         if test x$gas = xyes
2332         then    :
2333         else
2334                 tmake_file=mips/t-ultrix
2335                 extra_passes="mips-tfile mips-tdump"
2336         fi
2337         if test x$gnu_ld != xyes
2338         then
2339                 use_collect2=yes
2340         fi
2341         ;;
2342 mips-*-riscos[56789]bsd*)
2343         tm_file=mips/bsd-5.h    # MIPS BSD 4.3, RISC-OS 5.0
2344         if test x$stabs = xyes; then
2345                 tm_file="${tm_file} dbx.h"
2346         fi
2347         if test x$gas = xyes
2348         then
2349                 tmake_file=mips/t-bsd-gas
2350         else
2351                 tmake_file=mips/t-bsd
2352                 extra_passes="mips-tfile mips-tdump"
2353         fi
2354         if test x$gnu_ld != xyes
2355         then
2356                 use_collect2=yes
2357         fi
2358         ;;
2359 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2360         tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2361         if test x$stabs = xyes; then
2362                 tm_file="${tm_file} dbx.h"
2363         fi
2364         if test x$gas = xyes
2365         then
2366                 tmake_file=mips/t-bsd-gas
2367         else
2368                 tmake_file=mips/t-bsd
2369                 extra_passes="mips-tfile mips-tdump"
2370         fi
2371         if test x$gnu_ld != xyes
2372         then
2373                 use_collect2=yes
2374         fi
2375         ;;
2376 mips-*-riscos[56789]sysv4*)
2377         tm_file=mips/svr4-5.h   # MIPS System V.4., RISC-OS 5.0
2378         if test x$stabs = xyes; then
2379                 tm_file="${tm_file} dbx.h"
2380         fi
2381         if test x$gas = xyes
2382         then
2383                 tmake_file=mips/t-svr4-gas
2384         else
2385                 tmake_file=mips/t-svr4
2386                 extra_passes="mips-tfile mips-tdump"
2387         fi
2388         if test x$gnu_ld != xyes
2389         then
2390                 use_collect2=yes
2391         fi
2392         ;;
2393 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2394         tm_file="mips/svr4-4.h ${tm_file}"
2395         if test x$stabs = xyes; then
2396                 tm_file="${tm_file} dbx.h"
2397         fi
2398         xm_defines=POSIX
2399         if test x$gas = xyes
2400         then
2401                 tmake_file=mips/t-svr4-gas
2402         else
2403                 tmake_file=mips/t-svr4
2404                 extra_passes="mips-tfile mips-tdump"
2405         fi
2406         if test x$gnu_ld != xyes
2407         then
2408                 use_collect2=yes
2409         fi
2410         ;;
2411 mips-*-riscos[56789]sysv*)
2412         tm_file=mips/svr3-5.h   # MIPS System V.3, RISC-OS 5.0
2413         if test x$stabs = xyes; then
2414                 tm_file="${tm_file} dbx.h"
2415         fi
2416         xm_defines=POSIX
2417         if test x$gas = xyes
2418         then
2419                 tmake_file=mips/t-svr3-gas
2420         else
2421                 tmake_file=mips/t-svr3
2422                 extra_passes="mips-tfile mips-tdump"
2423         fi
2424         if test x$gnu_ld != xyes
2425         then
2426                 use_collect2=yes
2427         fi
2428         ;;
2429 mips-*-sysv* | mips-*-riscos*sysv*)
2430         tm_file="mips/svr3-4.h ${tm_file}"
2431         if test x$stabs = xyes; then
2432                 tm_file="${tm_file} dbx.h"
2433         fi
2434         xm_defines=POSIX
2435         if test x$gas = xyes
2436         then
2437                 tmake_file=mips/t-svr3-gas
2438         else
2439                 tmake_file=mips/t-svr3
2440                 extra_passes="mips-tfile mips-tdump"
2441         fi
2442         if test x$gnu_ld != xyes
2443         then
2444                 use_collect2=yes
2445         fi
2446         ;;
2447 mips-*-riscos[56789]*)          # Default MIPS RISC-OS 5.0.
2448         tm_file=mips/mips-5.h
2449         if test x$stabs = xyes; then
2450                 tm_file="${tm_file} dbx.h"
2451         fi
2452         if test x$gas = xyes
2453         then    :
2454         else
2455                 extra_passes="mips-tfile mips-tdump"
2456         fi
2457         if test x$gnu_ld != xyes
2458         then
2459                 use_collect2=yes
2460         fi
2461         ;;
2462 mipsel-*-ecoff*)
2463         tm_file=mips/ecoffl.h
2464         if test x$stabs = xyes; then
2465                 tm_file="${tm_file} dbx.h"
2466         fi
2467         tmake_file=mips/t-ecoff
2468         ;;
2469 mips-*-ecoff*)
2470         tm_file="gofast.h mips/ecoff.h"
2471         if test x$stabs = xyes; then
2472                 tm_file="${tm_file} dbx.h"
2473         fi
2474         tmake_file=mips/t-ecoff
2475         ;;
2476 mipsisa32-*-elf*)
2477         tm_file="mips/isa3264.h mips/abi64.h"
2478         tmake_file=mips/t-isa3264
2479         target_cpu_default="MASK_SOFT_FLOAT"
2480         ;;
2481 mipsel-*-elf*)
2482         tm_file="mips/elfl.h"
2483         tmake_file=mips/t-elf
2484         ;;
2485 mips-*-elf*)
2486         tm_file="mips/elf.h"
2487         tmake_file=mips/t-elf
2488         ;;
2489 mips64el-*-elf*)
2490         tm_file="mips/elfl64.h"
2491         tmake_file=mips/t-elf
2492         ;;
2493 mips64orionel-*-elf*)
2494         tm_file="mips/elforion.h mips/elfl64.h"
2495         tmake_file=mips/t-elf
2496         ;;
2497 mips64-*-elf*)
2498         tm_file="mips/elf64.h"
2499         tmake_file=mips/t-elf
2500         ;;
2501 mips64orion-*-elf*)
2502         tm_file="mips/elforion.h mips/elf64.h"
2503         tmake_file=mips/t-elf
2504         ;;
2505 mips64orion-*-rtems*)
2506         tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2507         tmake_file="mips/t-elf t-rtems"
2508         if test x$enable_threads = xyes; then
2509           thread_file='rtems'
2510         fi
2511         ;;
2512 mips*-*-rtems*)
2513         tm_file="mips/elf.h mips/rtems.h"
2514         tmake_file="mips/t-elf t-rtems"
2515         if test x$enable_threads = xyes; then
2516           thread_file='rtems'
2517         fi
2518         ;;
2519 mipstx39el-*-elf*)
2520         tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2521         tmake_file=mips/t-r3900
2522         target_cpu_default="MASK_SOFT_FLOAT"
2523         ;;
2524 mipstx39-*-elf*)
2525         tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2526         tmake_file=mips/t-r3900
2527         ;;
2528 mips-*-*)                               # Default MIPS RISC-OS 4.0.
2529         if test x$stabs = xyes; then
2530                 tm_file="${tm_file} dbx.h"
2531         fi
2532         if test x$gas = xyes
2533         then    :
2534         else
2535                 extra_passes="mips-tfile mips-tdump"
2536         fi
2537         if test x$gnu_ld != xyes
2538         then
2539                 use_collect2=yes
2540         fi
2541         ;;
2542 mn10200-*-*)
2543         float_format=i32
2544         cpu_type=mn10200
2545         tm_file="mn10200/mn10200.h"
2546         if test x$stabs = xyes
2547         then
2548                 tm_file="${tm_file} dbx.h"
2549         fi
2550         use_collect2=no
2551         ;;
2552 mn10300-*-*)
2553         cpu_type=mn10300
2554         tm_file="mn10300/mn10300.h"
2555         if test x$stabs = xyes
2556         then
2557                 tm_file="${tm_file} dbx.h"
2558         fi
2559         use_collect2=no
2560         ;;
2561 ns32k-encore-bsd*)
2562         tm_file=ns32k/encore.h
2563         use_collect2=yes
2564         ;;
2565 ns32k-sequent-bsd*)
2566         tm_file=ns32k/sequent.h
2567         use_collect2=yes
2568         ;;
2569 ns32k-tek6100-bsd*)
2570         tm_file=ns32k/tek6100.h
2571         use_collect2=yes
2572         ;;
2573 ns32k-tek6200-bsd*)
2574         tm_file=ns32k/tek6200.h
2575         use_collect2=yes
2576         ;;
2577 ns32k-merlin-*)
2578         tm_file=ns32k/merlin.h
2579         use_collect2=yes
2580         ;;
2581 ns32k-pc532-mach*)
2582         tm_file=ns32k/pc532-mach.h
2583         use_collect2=yes
2584         ;;
2585 ns32k-pc532-minix*)
2586         tm_file=ns32k/pc532-min.h
2587         xm_defines='POSIX HZ=60'
2588         use_collect2=yes
2589         ;;
2590 ns32k-*-netbsd*)
2591         tm_file=ns32k/netbsd.h
2592         # On NetBSD, the headers are already okay, except for math.h.
2593         tmake_file=t-netbsd
2594         use_collect2=yes
2595         ;;
2596 pdp11-*-bsd)
2597         tm_file="${tm_file} pdp11/2bsd.h"
2598         ;;
2599 pdp11-*-*)
2600         ;;
2601 avr-*-*)
2602         ;;
2603 ns32k-*-openbsd*)
2604         # Nothing special
2605         ;;
2606 pj*-linux*)
2607         tm_file="svr4.h pj/linux.h ${tm_file}"
2608         ;;
2609 pj-*)
2610         ;;
2611 pjl-*)
2612         tm_file="svr4.h pj/pjl.h ${tm_file}"
2613         ;;
2614
2615 romp-*-aos*)
2616         use_collect2=yes
2617         ;;
2618 romp-*-mach*)
2619         use_collect2=yes
2620         ;;
2621 romp-*-openbsd*)
2622         # Nothing special
2623         ;;
2624 powerpc-*-openbsd*)
2625         tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2626         ;;
2627 powerpc64-*-linux*)
2628         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux64.h"
2629         out_file=rs6000/rs6000.c
2630         tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2631         xmake_file=x-linux
2632         extra_headers=ppc-asm.h
2633         ;;
2634 powerpc-*-beos*)
2635         cpu_type=rs6000
2636         tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
2637         xm_defines=POSIX
2638         xm_file=rs6000/xm-beos.h
2639         tmake_file=rs6000/t-beos
2640         ;;
2641 powerpc-*-darwin*)
2642         cpu_type=rs6000
2643         tm_file="${tm_file} darwin.h rs6000/darwin.h"
2644         tm_p_file="${tm_p_file} darwin-protos.h"
2645         tmake_file=rs6000/t-darwin
2646         xmake_file=rs6000/x-darwin
2647         # Override the usual setting, since Apple's GCC has lame bugs
2648         # and can't handle the initializers.  Someday the bugs will be
2649         # fixed and we can get rid of this silliness.
2650         xm_defines="HAVE_DESIGNATED_INITIALIZERS=0"
2651         extra_objs="darwin.o"
2652         c_target_objs="darwin-c.o"
2653         cxx_target_objs="darwin-c.o"
2654         # Darwin linker does collect2 functionality
2655         use_collect2=no
2656         ;;
2657 powerpc-*-sysv*)
2658         tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2659         xm_defines=POSIX
2660         extra_headers=ppc-asm.h
2661         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2662         ;;
2663 powerpc-*-netbsd*)
2664         xm_defines=POSIX
2665         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/netbsd.h"
2666         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2667         extra_headers=ppc-asm.h
2668         ;;
2669 powerpc-*-chorusos*)
2670         xm_defines=POSIX
2671         tm_file="${tm_file} svr4.h rs6000/sysv4.h chorus.h"
2672         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2673         extra_headers=ppc-asm.h
2674         case x${enable_threads} in
2675           xyes | xpthreads | xposix)
2676                 thread_file='posix'
2677                 ;;
2678         esac
2679         ;;
2680 powerpc-*-eabiaix*)
2681         xm_defines=POSIX
2682         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2683         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2684         extra_headers=ppc-asm.h
2685         ;;
2686 powerpc-*-eabisim*)
2687         xm_defines=POSIX
2688         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2689         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2690         extra_headers=ppc-asm.h
2691         ;;
2692 powerpc-*-elf*)
2693         xm_defines=POSIX
2694         tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2695         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2696         extra_headers=ppc-asm.h
2697         ;;
2698 powerpc-*-eabi*)
2699         xm_defines=POSIX
2700         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2701         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2702         extra_headers=ppc-asm.h
2703         ;;
2704 powerpc-*-rtems*)
2705         xm_defines=POSIX
2706         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2707         tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2708         extra_headers=ppc-asm.h
2709         if test x$enable_threads = xyes; then
2710           thread_file='rtems'
2711         fi
2712         ;;
2713 powerpc-*-linux*libc1)
2714         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2715         out_file=rs6000/rs6000.c
2716         tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2717         xmake_file=x-linux
2718         extra_headers=ppc-asm.h
2719         if test x$enable_threads = xyes; then
2720                 thread_file='posix'
2721         fi
2722         ;;
2723 powerpc-*-linux*)
2724         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2725         out_file=rs6000/rs6000.c
2726         tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2727         xmake_file=x-linux
2728         extra_headers=ppc-asm.h
2729         if test x$enable_threads = xyes; then
2730                 thread_file='posix'
2731         fi
2732         ;;
2733 powerpc-wrs-vxworks*)
2734         cpu_type=rs6000
2735         xm_defines=POSIX
2736         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2737         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2738         extra_headers=ppc-asm.h
2739         thread_file='vxworks'
2740         ;;
2741 powerpcle-wrs-vxworks*)
2742         cpu_type=rs6000
2743         xm_defines=POSIX
2744         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2745         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2746         extra_headers=ppc-asm.h
2747         thread_file='vxworks'
2748         ;;
2749 powerpcle-*-sysv*)
2750         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2751         xm_defines=POSIX
2752         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2753         extra_headers=ppc-asm.h
2754         ;;
2755 powerpcle-*-elf*)
2756         xm_defines=POSIX
2757         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2758         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2759         extra_headers=ppc-asm.h
2760         ;;
2761 powerpcle-*-eabisim*)
2762         xm_defines=POSIX
2763         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2764         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2765         extra_headers=ppc-asm.h
2766         ;;
2767 powerpcle-*-eabi*)
2768         xm_defines=POSIX
2769         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2770         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2771         extra_headers=ppc-asm.h
2772         ;;
2773 powerpcle-*-solaris2*)
2774         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2775         xm_defines=POSIX
2776         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2777         extra_headers=ppc-asm.h
2778         ;;
2779 rs6000-ibm-aix3.[01]*)
2780         xm_defines=POSIX
2781         tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h"
2782         float_format=none
2783         use_collect2=yes
2784         ;;
2785 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2786         xm_defines=POSIX
2787         tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h"
2788         tmake_file=rs6000/t-newas
2789         float_format=none
2790         use_collect2=yes
2791         ;;
2792 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2793         xm_defines=POSIX
2794         tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
2795         tmake_file=rs6000/t-newas
2796         float_format=none
2797         use_collect2=yes
2798         ;;
2799 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2800         xm_defines=POSIX
2801         tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
2802         tmake_file=rs6000/t-aix43
2803         float_format=none
2804         use_collect2=yes
2805         thread_file='aix'
2806         ;;
2807 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2808         xm_defines=POSIX
2809         tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
2810         tmake_file=rs6000/t-aix43
2811         float_format=none
2812         use_collect2=yes
2813         thread_file='aix'
2814         ;;
2815 rs6000-ibm-aix*)
2816         xm_defines=POSIX
2817         tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2818         float_format=none
2819         use_collect2=yes
2820         ;;
2821 rs6000-bull-bosx)
2822         xm_defines=POSIX
2823         tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2824         float_format=none
2825         use_collect2=yes
2826         ;;
2827 rs6000-*-mach*)
2828         tm_file="rs6000/rs6000.h rs6000/mach.h"
2829         xm_defines=POSIX
2830         use_collect2=yes
2831         ;;
2832 rs6000-*-lynxos*)
2833         tm_file=rs6000/lynx.h
2834         tmake_file=rs6000/t-rs6000
2835         use_collect2=yes
2836         ;;
2837 s390-*-linux*)
2838         xmake_file=x-linux
2839         tm_file="s390/s390.h linux.h s390/linux.h"
2840         tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2841         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2842         if test x$enable_threads = xyes; then
2843                 thread_file='posix'
2844         fi
2845         ;;
2846 s390x-*-linux*)
2847         xmake_file=x-linux
2848         tm_file="s390/s390.h linux.h s390/linux.h s390/linux64.h"
2849         tm_p_file=s390/s390-protos.h
2850         md_file=s390/s390.md
2851         out_file=s390/s390.c
2852         tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2853         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2854         if test x$enable_threads = xyes; then
2855                 thread_file='posix'
2856         fi
2857         ;;
2858 sh-*-elf*)
2859         tmake_file="sh/t-sh sh/t-elf"
2860         tm_file="sh/sh.h sh/elf.h"
2861         float_format=sh
2862         ;;
2863 sh-*-rtemself*)
2864         tmake_file="sh/t-sh sh/t-elf t-rtems"
2865         tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2866         float_format=sh
2867         if test x$enable_threads = xyes; then
2868           thread_file='rtems'
2869         fi
2870         ;;
2871 sh-*-rtems*)
2872         tmake_file="sh/t-sh t-rtems"
2873         tm_file="sh/sh.h sh/rtems.h"
2874         float_format=sh
2875         if test x$enable_threads = xyes; then
2876           thread_file='rtems'
2877         fi
2878         ;;
2879 sh-*-linux*)
2880         tm_file="sh/sh.h sh/elf.h sh/linux.h"
2881         tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2882         xmake_file=x-linux
2883         gas=yes gnu_ld=yes
2884         if test x$enable_threads = xyes; then
2885                 thread_file='posix'
2886         fi
2887         float_format=sh
2888         ;;
2889 sh-*-*)
2890         float_format=sh
2891         ;;
2892 sparc-tti-*)
2893         tm_file=sparc/pbd.h
2894         xm_defines=POSIX
2895         ;;
2896 sparc64-wrs-vxworks*)
2897         tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2898         tmake_file=sparc/t-vxsparc64
2899         use_collect2=yes
2900         ;;
2901 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2902         tm_file=sparc/vxsparc.h
2903         tmake_file=sparc/t-vxsparc
2904         use_collect2=yes
2905         thread_file='vxworks'
2906         ;;
2907 sparc-*-aout*)
2908         tmake_file=sparc/t-sparcbare
2909         tm_file="sparc/aout.h libgloss.h"
2910         ;;
2911 sparc-*-netbsd*)
2912         tm_file=sparc/netbsd.h
2913         tmake_file=t-netbsd
2914         use_collect2=yes
2915         ;;
2916 sparc-*-openbsd*)
2917         # needed to unconfuse gdb
2918         tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
2919         # we need collect2 until our bug is fixed...
2920         use_collect2=yes
2921         ;;
2922 sparc-*-bsd*)
2923         tm_file="${tm_file} sparc/bsd.h"
2924         ;;
2925 sparc-*-chorusos*)
2926         tm_file="sparc/sol2.h sparc/elf.h chorus.h"
2927         tmake_file=sparc/t-chorus-elf
2928         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2929         float_format=i64
2930         case x${enable_threads} in
2931           xyes | xpthreads | xposix)
2932                 thread_file='posix'
2933                 ;;
2934         esac
2935         ;;
2936 sparc-*-elf*)
2937         tm_file="sparc/sol2.h sparc/elf.h"
2938         tmake_file=sparc/t-elf
2939         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2940         #float_format=i128
2941         float_format=i64
2942         ;;
2943 sparc-*-linux*aout*)            # Sparc's running GNU/Linux, a.out
2944         tm_file=sparc/linux-aout.h
2945         xmake_file=x-linux
2946         gnu_ld=yes
2947         ;;
2948 sparc-*-linux*libc1*)   # Sparc's running GNU/Linux, libc5
2949         xmake_file=x-linux
2950         tm_file=sparc/linux.h
2951         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
2952         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2953         gnu_ld=yes
2954         float_format=sparc
2955         ;;
2956 sparc-*-linux*)         # Sparc's running GNU/Linux, libc6
2957         xmake_file=x-linux
2958         tm_file=sparc/linux.h
2959         tmake_file="t-slibgcc-elf-ver t-linux"
2960         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2961         gnu_ld=yes
2962         if test x$enable_threads = xyes; then
2963                 thread_file='posix'
2964         fi
2965         float_format=sparc
2966         ;;
2967 sparc-*-lynxos*)
2968         if test x$gas = xyes
2969         then
2970                 tm_file=sparc/lynx.h
2971         else
2972                 tm_file=sparc/lynx-ng.h
2973         fi
2974         tmake_file=sparc/t-sunos41
2975         ;;
2976 sparc-*-rtemsaout*)
2977         tmake_file="sparc/t-sparcbare t-rtems"
2978         tm_file=sparc/rtems.h
2979         if test x$enable_threads = xyes; then
2980           thread_file='rtems'
2981         fi
2982         ;;
2983 sparc-*-rtems*|sparc-*-rtemself*)
2984         tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
2985         tmake_file="sparc/t-elf t-rtems"
2986         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2987         #float_format=i128
2988         float_format=i64
2989         if test x$enable_threads = xyes; then
2990           thread_file='rtems'
2991         fi
2992         ;;
2993 sparcv9-*-solaris2* | sparc64-*-solaris2*)
2994         if test x$gnu_ld = xyes
2995         then
2996                 tm_file=sparc/sol2-64.h
2997         else
2998                 tm_file=sparc/sol2-sld-64.h
2999         fi
3000         xm_defines=POSIX
3001         tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3002         if test x$gnu_ld = xyes; then
3003                 tmake_file="$tmake_file t-slibgcc-elf-ver"
3004         else
3005                 tmake_file="$tmake_file t-slibgcc-sld"
3006         fi
3007         extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3008         float_format=none
3009         if test x${enable_threads} = x ; then
3010             enable_threads=$have_pthread_h
3011             if test x${enable_threads} = x ; then
3012                 enable_threads=$have_thread_h
3013             fi
3014         fi
3015         if test x${enable_threads} = xyes ; then
3016             if test x${have_pthread_h} = xyes ; then
3017                 thread_file='posix'
3018             else
3019                 thread_file='solaris'
3020             fi
3021         fi
3022         ;;
3023 sparc-hal-solaris2*)
3024         xm_defines=POSIX
3025         tm_file="sparc/sol2.h sparc/hal.h"
3026         tmake_file="sparc/t-halos sparc/t-sol2"
3027         if test x$gnu_ld = xyes; then
3028                 tmake_file="$tmake_file t-slibgcc-elf-ver"
3029         else
3030                 tmake_file="$tmake_file t-slibgcc-sld"
3031         fi
3032         extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3033         case $machine in
3034         *-*-solaris2.[0-4])
3035                 float_format=i128
3036         ;;
3037         *)
3038                 float_format=none
3039                 ;;
3040         esac
3041         thread_file='solaris'
3042         ;;
3043 sparc-*-solaris2*)
3044         if test x$gnu_ld = xyes
3045         then
3046                 tm_file=sparc/sol2.h
3047         else
3048                 tm_file=sparc/sol2-sld.h
3049         fi
3050         xm_defines=POSIX
3051         tmake_file=sparc/t-sol2
3052         if test x$gnu_ld = xyes; then
3053                 tmake_file="$tmake_file t-slibgcc-elf-ver"
3054         else
3055                 tmake_file="$tmake_file t-slibgcc-sld"
3056         fi
3057         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3058         case $machine in
3059         *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3060         *-*-solaris2*)
3061                 if test x$gnu_ld = xyes
3062                 then
3063                         tm_file=sparc/sol2-64.h
3064                 else
3065                         tm_file=sparc/sol2-sld-64.h
3066                 fi
3067                 tmake_file="$tmake_file sparc/t-sol2-64"
3068                 ;;
3069         esac
3070         case $machine in
3071         *-*-solaris2.[0-4])
3072                 float_format=i128
3073                 ;;
3074         *)
3075                 float_format=none
3076                 ;;
3077         esac
3078         if test x${enable_threads} = x; then
3079             enable_threads=$have_pthread_h
3080             if test x${enable_threads} = x; then
3081                 enable_threads=$have_thread_h
3082             fi
3083         fi
3084         if test x${enable_threads} = xyes; then
3085             if test x${have_pthread_h} = xyes; then
3086                 thread_file='posix'
3087             else
3088                 thread_file='solaris'
3089             fi
3090         fi
3091         ;;
3092 sparc-*-sunos4.0*)
3093         tm_file=sparc/sunos4.h
3094         use_collect2=yes
3095         ;;
3096 sparc-*-sunos4*)
3097         tm_file=sparc/sunos4.h
3098         tmake_file=sparc/t-sunos41
3099         use_collect2=yes
3100         if test x$gas = xyes; then
3101                 tm_file="${tm_file} sparc/sun4gas.h"
3102         fi
3103         ;;
3104 sparc-*-sunos3*)
3105         tm_file=sparc/sun4o3.h
3106         use_collect2=yes
3107         ;;
3108 sparc-*-sysv4*)
3109         tm_file=sparc/sysv4.h
3110         xm_defines=POSIX
3111         tmake_file=t-svr4
3112         extra_parts="crtbegin.o crtend.o"
3113         ;;
3114 sparc-*-vxsim*)
3115         xm_defines=POSIX
3116         tm_file=sparc/vxsim.h
3117         tmake_file=sparc/t-vxsparc
3118         ;;
3119 sparclet-*-aout*)
3120         tm_file="sparc/splet.h libgloss.h"
3121         tmake_file=sparc/t-splet
3122         ;;
3123 sparclite-*-coff*)
3124         tm_file="sparc/litecoff.h libgloss.h"
3125         tmake_file=sparc/t-sparclite
3126         ;;
3127 sparclite-*-aout*)
3128         tm_file="sparc/lite.h aoutos.h libgloss.h"
3129         tmake_file=sparc/t-sparclite
3130         ;;
3131 sparclite-*-elf*)
3132         tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3133         tmake_file=sparc/t-sparclite
3134         extra_parts="crtbegin.o crtend.o"
3135         ;;
3136 sparc86x-*-aout*)
3137         tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3138         tmake_file=sparc/t-sp86x
3139         ;;
3140 sparc86x-*-elf*)
3141         tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3142         tmake_file=sparc/t-sp86x
3143         extra_parts="crtbegin.o crtend.o"
3144         ;;
3145 sparc64-*-aout*)
3146         tm_file=sparc/sp64-aout.h
3147         ;;
3148 sparc64-*-elf*)
3149         tm_file=sparc/sp64-elf.h
3150         extra_parts="crtbegin.o crtend.o"
3151         ;;
3152 sparc64-*-linux*)               # 64-bit Sparc's running GNU/Linux
3153         tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64"
3154         tm_file=sparc/linux64.h
3155         xmake_file=x-linux
3156         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3157         gnu_ld=yes
3158         if test x$enable_threads = xyes; then
3159                 thread_file='posix'
3160         fi
3161         float_format=sparc
3162         ;;
3163 stormy16-*-elf)
3164         tmake_file="stormy16/t-stormy16"
3165         extra_parts="crtbegin.o crtend.o"
3166         ;;
3167 strongarm-*-elf*)
3168         tm_file="arm/strongarm-elf.h elfos.h arm/unknown-elf.h arm/elf.h"
3169         tmake_file=arm/t-strongarm-elf
3170         out_file=arm/arm.c
3171         md_file=arm/arm.md
3172         ;;
3173 strongarm-*-coff*)
3174         tm_file=arm/strongarm-coff.h
3175         tmake_file=arm/t-strongarm-coff
3176         out_file=arm/arm.c
3177         md_file=arm/arm.md
3178         ;;
3179 strongarm-*-pe)
3180         tm_file=arm/strongarm-pe.h
3181         tmake_file=arm/t-strongarm-pe
3182         out_file=arm/arm.c
3183         md_file=arm/arm.md
3184         extra_objs=pe.o
3185         ;;
3186 thumb*-*-*)
3187         { echo "config.gcc: error:
3188 *** The Thumb targets have been deprecated.  The equivalent
3189 *** ARM based toolchain can now generate Thumb instructions
3190 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3191         ;;
3192 v850-*-rtems*)
3193         cpu_type=v850
3194         tm_file="v850/rtems.h"
3195         tmake_file="v850/t-v850 t-rtems"
3196         if test x$stabs = xyes
3197         then
3198                 tm_file="${tm_file} dbx.h"
3199         fi
3200         use_collect2=no
3201         c_target_objs="v850-c.o"
3202         cxx_target_objs="v850-c.o"
3203         ;;
3204 v850-*-*)
3205         target_cpu_default="TARGET_CPU_generic"
3206         cpu_type=v850
3207         tm_file="v850/v850.h"
3208         tmake_file=v850/t-v850
3209         if test x$stabs = xyes
3210         then
3211                 tm_file="${tm_file} dbx.h"
3212         fi
3213         use_collect2=no
3214         c_target_objs="v850-c.o"
3215         cxx_target_objs="v850-c.o"
3216         ;;
3217 vax-*-bsd*)                     # VAXen running BSD
3218         use_collect2=yes
3219         float_format=vax
3220         ;;
3221 vax-*-sysv*)                    # VAXen running system V
3222         tm_file="${tm_file} vax/vaxv.h"
3223         xm_defines=POSIX
3224         float_format=vax
3225         ;;
3226 vax-*-netbsd*)
3227         tm_file="${tm_file} netbsd.h vax/netbsd.h"
3228         tmake_file=t-netbsd
3229         float_format=vax
3230         use_collect2=yes
3231         ;;
3232 vax-*-openbsd*)
3233         tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3234         float_format=vax
3235         use_collect2=yes
3236         ;;
3237 vax-*-ultrix*)                  # VAXen running ultrix
3238         tm_file="${tm_file} vax/ultrix.h"
3239         float_format=vax
3240         ;;
3241 vax-*-vms*)                     # VAXen running VMS
3242         xm_file=vax/xm-vms.h
3243         tm_file=vax/vms.h
3244         float_format=vax
3245         ;;
3246 vax-*-*)                        # VAX default entry
3247         float_format=vax
3248         ;;
3249 we32k-att-sysv*)
3250         xm_defines=POSIX
3251         use_collect2=yes
3252         ;;
3253 xscale-*-elf)
3254         tm_file="arm/xscale-elf.h elfos.h arm/unknown-elf.h arm/elf.h"
3255         tmake_file=arm/t-xscale-elf
3256         out_file=arm/arm.c
3257         md_file=arm/arm.md
3258         ;;
3259 xscale-*-coff)
3260         tm_file=arm/xscale-coff.h
3261         tmake_file=arm/t-xscale-coff
3262         out_file=arm/arm.c
3263         md_file=arm/arm.md
3264         ;;
3265 *)
3266         echo "Configuration $machine not supported" 1>&2
3267         exit 1
3268         ;;
3269 esac
3270
3271 case $machine in
3272 *-*-sysv*)
3273         install_headers_dir=install-headers-cpio
3274         ;;
3275 esac
3276
3277 # Distinguish i[34567]86
3278 # Also, do not run mips-tfile on MIPS if using gas.
3279 # Process --with-cpu= for PowerPC/rs6000
3280 target_cpu_default2=
3281 case $machine in
3282 i486-*-*)
3283         target_cpu_default2=1
3284         ;;
3285 i586-*-*)
3286         case $target_alias in
3287                 k6-*)
3288                         target_cpu_default2=4
3289                         ;;
3290                 *)
3291                         target_cpu_default2=2
3292                         ;;
3293         esac
3294         ;;
3295 i686-*-* | i786-*-*)
3296         case $target_alias in
3297                 athlon-*)
3298                         target_cpu_default2=5
3299                         ;;
3300                 *)
3301                         target_cpu_default2=3
3302                         ;;
3303         esac
3304         ;;
3305 alpha*-*-*)
3306         case $machine in
3307                 alphaev6[78]*)
3308                         target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3309                         ;;
3310                 alphaev6*)
3311                         target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3312                         ;;
3313                 alphapca56*)
3314                         target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3315                         ;;
3316                 alphaev56*)
3317                         target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3318                         ;;
3319                 alphaev5*)
3320                         target_cpu_default2="MASK_CPU_EV5"
3321                         ;;
3322         esac
3323
3324         if test x$gas = xyes
3325         then
3326                 if test "$target_cpu_default2" = ""
3327                 then
3328                         target_cpu_default2="MASK_GAS"
3329                 else
3330                         target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3331                 fi
3332         fi
3333         ;;
3334 arm*-*-*)
3335         case "x$with_cpu" in
3336                 x)
3337                         # The most generic
3338                         target_cpu_default2="TARGET_CPU_generic"
3339                         ;;
3340
3341                 # Distinguish cores, and major variants
3342                 # arm7m doesn't exist, but D & I don't affect code
3343                 xarm[236789] | xarm250 | xarm[67][01]0 \
3344                 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3345                 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3346                 | xxscale \
3347                 | xstrongarm | xstrongarm110 | xstrongarm1100)
3348                         target_cpu_default2="TARGET_CPU_$with_cpu"
3349                         ;;
3350
3351                 xyes | xno)
3352                         echo "--with-cpu must be passed a value" 1>&2
3353                         exit 1
3354                         ;;
3355
3356                 *)
3357                         if test x$pass2done = xyes
3358                         then
3359                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3360                                 exit 1
3361                         fi
3362                         ;;
3363         esac
3364         ;;
3365
3366 hppa*-*-* | parisc*-*-*)
3367         if test x$gas = xyes
3368         then
3369                 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3370         fi
3371         ;;
3372
3373 mips*-*-ecoff* | mips*-*-elf*)
3374         if test x$gas = xyes
3375         then
3376                 if test x$gnu_ld = xyes
3377                 then
3378                         target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3379                 else
3380                         target_cpu_default2="MASK_GAS"
3381                 fi
3382         fi
3383         ;;
3384 mips*-*-*)
3385         if test x$gas = xyes
3386         then
3387                 target_cpu_default2="MASK_GAS"
3388         fi
3389         ;;
3390 powerpc*-*-* | rs6000-*-*)
3391         case "x$with_cpu" in
3392                 x)
3393                         ;;
3394
3395                 xcommon | xpower | xpower2 | xpowerpc | xrios \
3396                   | xrios1 | xrios2 | xrsc | xrsc1 \
3397                   | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3398                   | xec603e | x740 | x750 | x401 \
3399                   | x403 | x505 | x801 | x821 | x823 | x860)
3400                         target_cpu_default2="\\\"$with_cpu\\\""
3401                         ;;
3402
3403                 xyes | xno)
3404                         echo "--with-cpu must be passed a value" 1>&2
3405                         exit 1
3406                         ;;
3407
3408                 *)
3409                         if test x$pass2done = xyes
3410                         then
3411                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3412                                 exit 1
3413                         fi
3414                         ;;
3415         esac
3416         ;;
3417 sparc*-*-*)
3418         case ".$with_cpu" in
3419                 .)
3420                         target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3421                         ;;
3422                 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3423                         target_cpu_default2="TARGET_CPU_$with_cpu"
3424                         ;;
3425                 *)
3426                         if test x$pass2done = xyes
3427                         then
3428                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3429                                 exit 1
3430                         fi
3431                         ;;
3432         esac
3433         ;;
3434 esac
3435
3436 if test "$target_cpu_default2" != ""
3437 then
3438         if test "$target_cpu_default" != ""
3439         then
3440                 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3441         else
3442                 target_cpu_default=$target_cpu_default2
3443         fi
3444 fi
3445
3446 # Save data on machine being used to compile GCC in build_xm_file.
3447 # Save data on host machine in vars host_xm_file and host_xmake_file.
3448 if test x$pass1done = x
3449 then
3450         if test x$xm_file != x
3451         then build_xm_file=$xm_file
3452         fi
3453         build_xm_defines=$xm_defines
3454         build_install_headers_dir=$install_headers_dir
3455         build_exeext=$exeext
3456         pass1done=yes
3457 else
3458         if test x$pass2done = x
3459         then
3460                 if test x$xm_file != x
3461                 then host_xm_file=$xm_file
3462                 fi
3463                 host_xm_defines=$xm_defines
3464                 host_xmake_file="$xmake_file"
3465                 host_truncate_target=$truncate_target
3466                 host_extra_gcc_objs=$extra_gcc_objs
3467                 host_extra_objs=$extra_host_objs
3468                 host_exeext=$exeext
3469                 pass2done=yes
3470         fi
3471 fi