OSDN Git Service

4b4779c3771e52251ce3ab3826dcdb05cdbb7a47
[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 hppa*-*-* | parisc*-*-*)
226         cpu_type=pa
227         ;;
228 m68000-*-*)
229         cpu_type=m68k
230         ;;
231 mips*-*-*)
232         cpu_type=mips
233         ;;
234 pj*-*-*)
235         cpu_type=pj
236         ;;
237 powerpc*-*-*)
238         cpu_type=rs6000
239         ;;
240 sparc*-*-*)
241         cpu_type=sparc
242         ;;
243 esac
244
245 tm_file=${cpu_type}/${cpu_type}.h
246 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
247 then
248         tm_p_file=${cpu_type}/${cpu_type}-protos.h
249 fi
250 # On a.out targets, we need to use collect2.
251 case $machine in
252 *-*-*aout*)
253         use_collect2=yes
254         ;;
255 esac
256
257 # Common parts for GNU/Linux, GNU/Hurd, OpenBSD and FreeBSD systems.
258 case $machine in
259 *-*-linux*)
260         xm_defines=POSIX
261         ;;
262 *-*-gnu*)
263         # On the Hurd, the setup is just about the same on
264         # each different CPU.  The specific machines that we
265         # support are matched above and just set $cpu_type.
266         xm_defines=POSIX
267         tm_file="${cpu_type}/gnu.h"
268         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
269         # GNU always uses ELF.
270         elf=yes
271         # GNU tools are the only tools.
272         gnu_ld=yes
273         gas=yes
274         # These details are the same as for Linux.
275         xmake_file=x-linux
276         # But here we need a little extra magic.
277         tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
278         case $machine in
279         i[34567]86-*-*)
280                 tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}"
281                 ;;
282         mips*-*-*)
283                 tm_file="svr4.h ${cpu_type}/${cpu_type}.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 d30v-*)
661         float_format=i64
662         ;;
663 dsp16xx-*)
664         ;;
665 elxsi-elxsi-*)
666         use_collect2=yes
667         ;;
668 fr30-*-elf)
669         tm_file="fr30/fr30.h"
670         tmake_file=fr30/t-fr30
671         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
672         ;;
673 h8300-*-rtems*)
674         tmake_file="h8300/t-h8300 t-rtems"
675         tm_file=h8300/rtems.h
676         if test x$enable_threads = xyes; then
677           thread_file='rtems'
678         fi
679         float_format=i32
680         ;;
681 h8300-*-elf*)
682         tmake_file="h8300/t-h8300 h8300/t-elf"
683         tm_file="h8300/h8300.h h8300/elf.h"
684         float_format=i32
685         ;;
686 h8300-*-*)
687         float_format=i32
688         ;;
689 hppa*64*-*-linux* | parisc*64*-*-linux*)
690         target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
691         tm_file="pa/pa64-start.h ${tm_file} linux.h pa/pa-linux.h \
692                  pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
693         tmake_file=pa/t-linux64
694         gas=yes gnu_ld=yes
695         ;;
696 hppa*-*-linux* | parisc*-*-linux*)
697         target_cpu_default="MASK_PA_11"
698         tm_file="${tm_file} linux.h pa/pa-linux.h \
699                  pa/pa32-regs.h pa/pa32-linux.h"
700         tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
701         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
702         gas=yes gnu_ld=yes
703         if test x$enable_threads = xyes; then
704                 thread_file='posix'
705         fi
706         ;;
707 hppa*-*-openbsd*)
708         target_cpu_default="MASK_PA_11"
709         tmake_file=pa/t-openbsd
710         ;;
711 hppa1.1-*-rtems*)
712         tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
713         tmake_file="pa/t-pro t-rtems"
714         if test x$enable_threads = xyes; then
715           thread_file='rtems'
716         fi
717         ;;
718 hppa1.1-*-pro*)
719         target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
720         tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
721         tmake_file=pa/t-pro
722         ;;
723 hppa1.1-*-osf*)
724         target_cpu_default="MASK_PA_11"
725         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
726         use_collect2=yes
727         ;;
728 hppa1.1-*-rtems*)
729         target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
730         tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
731         tmake_file=pa/t-pro
732         ;;
733 hppa1.0-*-osf*)
734         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
735         use_collect2=yes
736         ;;
737 hppa1.1-*-bsd*)
738         tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
739         target_cpu_default="MASK_PA_11"
740         use_collect2=yes
741         ;;
742 hppa1.0-*-bsd*)
743         tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
744         use_collect2=yes
745         ;;
746 hppa1.0-*-hpux7*)
747         tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
748         xm_defines=POSIX
749         xmake_file=pa/x-pa-hpux
750         install_headers_dir=install-headers-cpio
751         use_collect2=yes
752         ;;
753 hppa1.0-*-hpux8.0[0-2]*)
754         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
755         xm_defines=POSIX
756         xmake_file=pa/x-pa-hpux
757         if test x$gas != xyes
758         then
759                 tm_file="pa/pa-oldas.h ${tm_file}"
760         fi
761         install_headers_dir=install-headers-cpio
762         use_collect2=yes
763         ;;
764 hppa1.1-*-hpux8.0[0-2]*)
765         target_cpu_default="MASK_PA_11"
766         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
767         xm_defines=POSIX
768         xmake_file=pa/x-pa-hpux
769         if test x$gas != xyes
770         then
771                 tm_file="pa/pa-oldas.h ${tm_file}"
772         fi
773         install_headers_dir=install-headers-cpio
774         use_collect2=yes
775         ;;
776 hppa1.1-*-hpux8*)
777         target_cpu_default="MASK_PA_11"
778         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
779         xm_defines=POSIX
780         xmake_file=pa/x-pa-hpux
781         install_headers_dir=install-headers-cpio
782         use_collect2=yes
783         ;;
784 hppa1.0-*-hpux8*)
785         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
786         xm_defines=POSIX
787         xmake_file=pa/x-pa-hpux
788         install_headers_dir=install-headers-cpio
789         use_collect2=yes
790         ;;
791 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
792         target_cpu_default="MASK_PA_11"
793         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
794         float_format=i128
795         xm_defines=POSIX
796         xmake_file=pa/x-pa-hpux
797         tmake_file=pa/t-pa
798         if test x$enable_threads = x; then
799             enable_threads=$have_pthread_h
800         fi
801         case x${enable_threads} in
802         xyes | xdce)
803                 tmake_file="${tmake_file} pa/t-dce-thr"
804                 ;;
805         esac
806         install_headers_dir=install-headers-cpio
807         use_collect2=yes
808         ;;
809 hppa1.0-*-hpux10*)
810         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
811         float_format=i128
812         xm_defines=POSIX
813         xmake_file=pa/x-pa-hpux
814         tmake_file=pa/t-pa
815         if test x$enable_threads = x; then
816             enable_threads=$have_pthread_h
817         fi
818         case x${enable_threads} in
819         xyes | xdce)
820                 tmake_file="${tmake_file} pa/t-dce-thr"
821                 ;;
822         esac
823         install_headers_dir=install-headers-cpio
824         use_collect2=yes
825         ;;
826 hppa*64*-*-hpux11*)
827         xm_defines=POSIX
828         xmake_file=pa/x-pa-hpux
829         tmake_file=pa/t-pa
830         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"
831         float_format=i128
832         tmake_file=pa/t-pa64
833         target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
834
835 #       if [ x$enable_threads = x ]; then
836 #           enable_threads=$have_pthread_h
837 #       fi
838 #       if [ x$enable_threads = xyes ]; then
839 #               thread_file='dce'
840 #               tmake_file="${tmake_file} pa/t-dce-thr"
841 #       fi
842         install_headers_dir=install-headers-cpio
843         use_collect2=yes
844         ;;
845 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
846         target_cpu_default="MASK_PA_11"
847         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
848         float_format=i128
849         xm_defines=POSIX
850         xmake_file=pa/x-pa-hpux
851         tmake_file=pa/t-pa
852 #       if test x$enable_threads = x; then
853 #           enable_threads=$have_pthread_h
854 #       fi
855 #       if test x$enable_threads = xyes; then
856 #               thread_file='dce'
857 #               tmake_file="${tmake_file} pa/t-dce-thr"
858 #       fi
859         install_headers_dir=install-headers-cpio
860         use_collect2=yes
861         ;;
862 hppa1.0-*-hpux11*)
863         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
864         float_format=i128
865         xm_defines=POSIX
866         xmake_file=pa/x-pa-hpux
867 #       if test x$enable_threads = x; then
868 #           enable_threads=$have_pthread_h
869 #       fi
870 #       if test x$enable_threads = xyes; then
871 #               thread_file='dce'
872 #               tmake_file="${tmake_file} pa/t-dce-thr"
873 #       fi
874         install_headers_dir=install-headers-cpio
875         use_collect2=yes
876         ;;
877 hppa1.1-*-hpux* | hppa2*-*-hpux*)
878         target_cpu_default="MASK_PA_11"
879         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
880         xm_defines=POSIX
881         xmake_file=pa/x-pa-hpux
882         install_headers_dir=install-headers-cpio
883         use_collect2=yes
884         ;;
885 hppa1.0-*-hpux*)
886         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
887         xm_defines=POSIX
888         xmake_file=pa/x-pa-hpux
889         install_headers_dir=install-headers-cpio
890         use_collect2=yes
891         ;;
892 hppa1.1-*-hiux* | hppa2*-*-hiux*)
893         target_cpu_default="MASK_PA_11"
894         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
895         xm_defines=POSIX
896         xmake_file=pa/x-pa-hpux
897         install_headers_dir=install-headers-cpio
898         use_collect2=yes
899         ;;
900 hppa1.0-*-hiux*)
901         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
902         xm_defines=POSIX
903         xmake_file=pa/x-pa-hpux
904         install_headers_dir=install-headers-cpio
905         use_collect2=yes
906         ;;
907 hppa*-*-lites*)
908         tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
909         target_cpu_default="MASK_PA_11"
910         use_collect2=yes
911         ;;
912 hppa*-*-mpeix*)
913         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
914         xmake_file=pa/x-pa-mpeix
915         echo "You must use gas. Assuming it is already installed."
916         gas=yes
917         install_headers_dir=install-headers-tar
918         use_collect2=yes
919         ;;
920 i370-*-opened*)                  # IBM 360/370/390 Architecture
921         xm_defines='POSIX FATAL_EXIT_CODE=12'
922         tm_file=i370/oe.h
923         xmake_file=i370/x-oe
924         ;;
925 i370-*-mvs*)
926         xm_defines='POSIX FATAL_EXIT_CODE=12'
927         tm_file=i370/mvs.h
928         ;;
929 i370-*-linux*)
930         xmake_file=x-linux
931         tm_file="i370/linux.h ${tm_file}"
932         tmake_file="t-slibgcc-elf-ver t-linux"
933         # broken_install=yes
934         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
935         # extra_parts="crtbegin.o crtend.o"
936         gnu_ld=yes
937         gas=yes
938         elf=yes
939         if test x$enable_threads = xyes; then
940                 thread_file='posix'
941         fi
942         ;;
943 i[34567]86-*-chorusos*)
944         xm_defines=POSIX
945         tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h chorus.h"
946         tmake_file=i386/t-i386elf
947         xmake_file=x-svr4
948         case x${enable_threads} in
949           xyes | xpthreads | xposix)
950                 thread_file='posix'
951                 ;;
952         esac
953         ;;
954 i[34567]86-*-elf*)
955         xm_defines=POSIX
956         tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h"
957         tmake_file=i386/t-i386elf
958         xmake_file=x-svr4
959         ;;
960 i[34567]86-ibm-aix*)            # IBM PS/2 running AIX
961         if test x$gas = xyes
962         then
963                 tm_file=i386/aix386.h
964                 extra_parts="crtbegin.o crtend.o"
965                 tmake_file=i386/t-crtstuff
966         else
967                 tm_file=i386/aix386ng.h
968                 use_collect2=yes
969         fi
970         xm_defines=POSIX
971         ;;
972 i[34567]86-ncr-sysv4*)          # NCR 3000 - ix86 running system V.4
973         xm_defines="POSIX SMALL_ARG_MAX"
974         if test x$stabs = xyes -a x$gas = xyes
975         then
976                 tm_file=i386/sysv4gdb.h
977         else
978                 tm_file=i386/sysv4.h
979         fi
980         extra_parts="crtbegin.o crtend.o"
981         tmake_file=i386/t-crtpic
982         ;;
983 i[34567]86-next-*)
984         tm_file=i386/next.h
985         tmake_file=i386/t-next
986         extra_objs=nextstep.o
987         extra_parts="crtbegin.o crtend.o"
988         if test x$enable_threads = xyes; then
989                 thread_file='mach'
990         fi
991         ;;
992 i[34567]86-*-netware)           # Intel 80386's running netware
993         tm_file=i386/netware.h
994         tmake_file=i386/t-netware
995         ;;
996 i[34567]86-sequent-bsd*)                # 80386 from Sequent
997         use_collect2=yes
998         if test x$gas = xyes
999         then
1000                 tm_file=i386/seq-gas.h
1001         else
1002                 tm_file=i386/sequent.h
1003         fi
1004         ;;
1005 i[34567]86-sequent-ptx1*)
1006         xm_defines=POSIX
1007         tm_file=i386/seq-sysv3.h
1008         tmake_file=i386/t-crtstuff
1009         extra_parts="crtbegin.o crtend.o"
1010         install_headers_dir=install-headers-cpio
1011         ;;
1012 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1013         xm_defines=POSIX
1014         tm_file=i386/seq2-sysv3.h
1015         tmake_file=i386/t-crtstuff
1016         extra_parts="crtbegin.o crtend.o"
1017         install_headers_dir=install-headers-cpio
1018         ;;
1019 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1020         if test x$gas = xyes
1021         then
1022                 tm_file="${tm_file} usegas.h"
1023         fi
1024         xm_defines="POSIX SMALL_ARG_MAX"
1025         xmake_file=x-svr4
1026         tm_file=i386/ptx4-i.h
1027         tmake_file=t-svr4
1028         extra_parts="crtbegin.o crtend.o"
1029         install_headers_dir=install-headers-cpio
1030         ;;
1031 i386-sun-sunos*)                # Sun i386 roadrunner
1032         xm_defines=POSIX
1033         tm_file=i386/sun.h
1034         use_collect2=yes
1035         ;;
1036 i[34567]86-wrs-vxworks*)
1037         tm_file=i386/vxi386.h
1038         thread_file='vxworks'
1039         ;;
1040 i[34567]86-*-aout*)
1041         tm_file=i386/i386-aout.h
1042         ;;
1043 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1044         xm_defines=POSIX
1045         tmake_file='i386/t-beos i386/t-crtpic'
1046         tm_file=i386/beos-elf.h
1047         xmake_file=i386/x-beos
1048         extra_parts='crtbegin.o crtend.o'
1049         ;;
1050 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1051         tm_file="i386/386bsd.h i386/bsd386.h"
1052 #       tmake_file=t-libc-ok
1053         ;;
1054 i[34567]86-*-bsd*)
1055         tm_file=i386/386bsd.h
1056 #       tmake_file=t-libc-ok
1057 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1058 #       use_collect2=yes
1059         ;;
1060 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1061         tm_file=i386/freebsd-aout.h
1062         tmake_file=t-freebsd
1063         ;;
1064 i[34567]86-*-freebsd*)
1065         tm_file="${tm_file} i386/att.h svr4.h ${fbsd_tm_file} i386/freebsd.h"
1066         ;;
1067 i[34567]86-*-netbsdelf*)
1068         xm_defines=POSIX
1069         tm_file="${tm_file} i386/att.h svr4.h i386/netbsd-elf.h"
1070         tmake_file=t-netbsd
1071         gnu_ld=yes
1072         float_format=i386
1073         ;;
1074 i[34567]86-*-netbsd*)
1075         tm_file=i386/netbsd.h
1076         tmake_file=t-netbsd
1077         use_collect2=yes
1078         ;;
1079 i[34567]86-*-openbsd*)
1080         # needed to unconfuse gdb
1081         tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1082         # we need collect2 until our bug is fixed...
1083         use_collect2=yes
1084         ;;
1085 i[34567]86-*-coff*)
1086         tm_file=i386/i386-coff.h
1087         ;;
1088 i[34567]86-*-isc*)              # 80386 running ISC system
1089         xm_defines=POSIX
1090         if test x$gas = xyes -a x$stabs = xyes
1091         then
1092                 tm_file=i386/iscdbx.h
1093                 tmake_file=i386/t-svr3dbx
1094                 extra_parts="svr3.ifile svr3z.ifile"
1095         else
1096                 tm_file=i386/isccoff.h
1097                 tmake_file=i386/t-crtstuff
1098                 extra_parts="crtbegin.o crtend.o"
1099         fi
1100         install_headers_dir=install-headers-cpio
1101         ;;
1102 i[34567]86-*-linux*oldld*)      # Intel 80386's running GNU/Linux
1103                                 # with a.out format using
1104                                 # pre BFD linkers
1105         tmake_file="t-linux-aout i386/t-crtstuff"
1106         tm_file=i386/linux-oldld.h
1107         gnu_ld=yes
1108         float_format=i386
1109         ;;
1110 i[34567]86-*-linux*aout*)       # Intel 80386's running GNU/Linux
1111                                 # with a.out format
1112         tmake_file="t-linux-aout i386/t-crtstuff"
1113         tm_file=i386/linux-aout.h
1114         gnu_ld=yes
1115         float_format=i386
1116         ;;
1117 i[34567]86-*-linux*libc1)       # Intel 80386's running GNU/Linux
1118                                 # with ELF format using the
1119                                 # GNU/Linux C library 5
1120         xmake_file=x-linux
1121         tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1122         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1123         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1124         gnu_ld=yes
1125         float_format=i386
1126         if test x$enable_threads = xyes; then
1127                 thread_file='single'
1128         fi
1129         ;;
1130 i[34567]86-*-linux*)    # Intel 80386's running GNU/Linux
1131                         # with ELF format using glibc 2
1132                         # aka GNU/Linux C library 6
1133         xmake_file=x-linux
1134         tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1135         tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1136         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1137         gnu_ld=yes
1138         float_format=i386
1139         if test x$enable_threads = xyes; then
1140                 thread_file='posix'
1141         fi
1142         ;;
1143 i[34567]86-*-gnu*)
1144         float_format=i386
1145         ;;
1146 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1147         echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1148         exit 1
1149         ;;
1150 i[34567]86-pc-msdosdjgpp*)
1151         xm_file=i386/xm-djgpp.h
1152         tm_file=i386/djgpp.h
1153         xmake_file=i386/x-djgpp
1154         gnu_ld=yes
1155         gas=yes
1156         exeext=.exe
1157         float_format=none
1158         case $host in *pc-msdosdjgpp*)
1159                 target_alias=djgpp
1160                 ;;
1161         esac
1162         ;;
1163 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1164         tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h"
1165         tmake_file=t-libc-ok
1166         gnu_ld=yes
1167         gas=yes
1168         ;;
1169 i[34567]86-*-lynxos*)
1170         if test x$gas = xyes
1171         then
1172                 tm_file=i386/lynx.h
1173         else
1174                 tm_file=i386/lynx-ng.h
1175         fi
1176         ;;
1177 i[34567]86-*-mach*)
1178         tm_file=i386/mach.h
1179 #       tmake_file=t-libc-ok
1180         use_collect2=yes
1181         ;;
1182 i[34567]86-*-osfrose*)          # 386 using OSF/rose
1183         if test x$elf = xyes
1184         then
1185                 tm_file=i386/osfelf.h
1186                 use_collect2=
1187         else
1188                 tm_file=i386/osfrose.h
1189                 use_collect2=yes
1190         fi
1191         tmake_file=i386/t-osf
1192         extra_objs=halfpic.o
1193         ;;
1194 i[34567]86-go32-rtems*)
1195         cpu_type=i386
1196         tm_file=i386/go32-rtems.h
1197         tmake_file=t-rtems
1198         if test x$enable_threads = xyes; then
1199           thread_file='rtems'
1200         fi
1201         ;;
1202 i[34567]86-*-rtemscoff*)
1203         cpu_type=i386
1204         tm_file=i386/rtems.h
1205         tmake_file=t-rtems
1206         if test x$enable_threads = xyes; then
1207           thread_file='rtems'
1208         fi
1209         ;;
1210 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1211         cpu_type=i386
1212         tm_file=i386/rtemself.h
1213         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1214         tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1215         if test x$enable_threads = xyes; then
1216           thread_file='rtems'
1217         fi
1218         ;;
1219 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1220         xm_defines=POSIX
1221         xmake_file=i386/x-sco5
1222         install_headers_dir=install-headers-cpio
1223         tm_file=i386/sco5.h
1224         if test x$gas = xyes
1225         then
1226                 tm_file="usegas.h ${tm_file}"
1227                 tmake_file=i386/t-sco5gas
1228         else
1229                 tmake_file=i386/t-sco5
1230         fi
1231         extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1232         ;;
1233 i[34567]86-*-solaris2*)
1234         xm_defines="POSIX SMALL_ARG_MAX"
1235         tm_file=i386/sol2.h
1236         if test x$gas = xyes; then
1237                 # Only needed if gas does not support -s
1238                 tm_file="i386/sol2gas.h ${tm_file}"
1239         fi
1240         tmake_file=i386/t-sol2
1241         if test x$gnu_ld = xyes; then
1242                 tmake_file="$tmake_file t-slibgcc-elf-ver"
1243         else
1244                 tmake_file="$tmake_file t-slibgcc-sld"
1245         fi
1246         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1247         xmake_file=x-svr4
1248         if test x${enable_threads} = x; then
1249             enable_threads=$have_pthread_h
1250             if test x${enable_threads} = x; then
1251                 enable_threads=$have_thread_h
1252             fi
1253         fi
1254         if test x${enable_threads} = xyes; then
1255             if test x${have_pthread_h} = xyes; then
1256                 thread_file='posix'
1257             else
1258                 thread_file='solaris'
1259             fi
1260         fi
1261         ;;
1262 i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
1263        xm_defines=POSIX
1264        tm_file=i386/sysv5.h
1265        if test x$stabs = xyes
1266        then
1267                tm_file="${tm_file} dbx.h"
1268        fi
1269        tmake_file=i386/t-crtpic
1270        xmake_file=x-svr4
1271        extra_parts="crtbegin.o crtend.o"
1272        if test x$enable_threads = xyes; then
1273                thread_file='posix'
1274        fi
1275        ;;
1276 i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
1277         xm_defines="POSIX SMALL_ARG_MAX"
1278         tm_file=i386/sysv4.h
1279         if test x$stabs = xyes
1280         then
1281                 tm_file="${tm_file} dbx.h"
1282         fi
1283         tmake_file=i386/t-crtpic
1284         xmake_file=x-svr4
1285         extra_parts="crtbegin.o crtend.o"
1286         ;;
1287 i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
1288         xm_defines=POSIX
1289         tm_file=i386/udk.h
1290         tmake_file="i386/t-crtpic i386/t-udk"
1291         xmake_file=x-svr4
1292         extra_parts="crtbegin.o crtend.o"
1293         install_headers_dir=install-headers-cpio
1294         ;;
1295 i[34567]86-*-osf1*)             # Intel 80386's running OSF/1 1.3+
1296         cpu_type=i386
1297         xm_file=i386/xm-osf1elf.h
1298         xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1299         if test x$stabs = xyes
1300         then
1301                 tm_file=i386/osf1elfgdb.h
1302         else
1303                 tm_file=i386/osf1elf.h
1304         fi
1305         tmake_file=i386/t-osf1elf
1306         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1307         ;;
1308 i[34567]86-*-sysv*)             # Intel 80386's running system V
1309         xm_defines=POSIX
1310         if test x$gas = xyes
1311         then
1312                 if test x$stabs = xyes
1313                 then
1314                         tm_file=i386/svr3dbx.h
1315                         tmake_file=i386/t-svr3dbx
1316                         extra_parts="svr3.ifile svr3z.rfile"
1317                 else
1318                         tm_file=i386/svr3gas.h
1319                         extra_parts="crtbegin.o crtend.o"
1320                         tmake_file=i386/t-crtstuff
1321                 fi
1322         else
1323                 tm_file=i386/sysv3.h
1324                 extra_parts="crtbegin.o crtend.o"
1325                 tmake_file=i386/t-crtstuff
1326         fi
1327         tmake_file="$tmake_file i386/t-crtpic"
1328         ;;
1329 i386-*-vsta)                    # Intel 80386's running VSTa kernel
1330         xm_file=i386/xm-vsta.h
1331         tm_file=i386/vsta.h
1332         ;;
1333 i[34567]86-*-win32)
1334         xm_defines=POSIX
1335         xm_file=i386/xm-cygwin.h
1336         float_format=i386
1337         tmake_file=i386/t-cygwin
1338         tm_file=i386/win32.h
1339         xmake_file=i386/x-cygwin
1340         extra_objs=winnt.o
1341         if test x$enable_threads = xyes; then
1342                 thread_file='win32'
1343         fi
1344         exeext=.exe
1345         ;;
1346 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1347         xm_defines=POSIX
1348         xm_file=i386/xm-cygwin.h
1349         float_format=i386
1350         tmake_file=i386/t-cygwin
1351         tm_file=i386/cygwin.h
1352         xmake_file=i386/x-cygwin
1353         extra_objs=winnt.o
1354         if test x$enable_threads = xyes; then
1355                 thread_file='win32'
1356         fi
1357         exeext=.exe
1358         ;;
1359 i[34567]86-*-mingw32*)
1360         tm_file=i386/mingw32.h
1361         float_format=i386
1362         xm_defines=POSIX
1363         xm_file=i386/xm-mingw32.h
1364         tmake_file="i386/t-cygwin i386/t-mingw32"
1365         extra_objs=winnt.o
1366         xmake_file=i386/x-cygwin
1367         if test x$enable_threads = xyes; then
1368                 thread_file='win32'
1369         fi
1370         exeext=.exe
1371         case $machine in
1372                 *mingw32msv*)
1373                         ;;
1374                 *minwg32crt* | *mingw32*)
1375                         tm_file="${tm_file} i386/crtdll.h"
1376                         ;;
1377         esac
1378         ;;
1379 i[34567]86-*-uwin*)
1380         tm_file=i386/uwin.h
1381         tmake_file="i386/t-cygwin i386/t-uwin"
1382         extra_objs=winnt.o
1383         xmake_file=i386/x-cygwin
1384         if test x$enable_threads = xyes; then
1385                 thread_file='win32'
1386         fi
1387         exeext=.exe
1388         ;;
1389 i[34567]86-*-interix*)
1390         tm_file="i386/i386-interix.h interix.h"
1391         xm_file="i386/xm-i386-interix.h xm-interix.h"
1392         xm_defines=POSIX
1393         tmake_file="i386/t-interix"
1394         extra_objs=interix.o
1395         xmake_file=x-interix
1396         if test x$enable_threads = xyes ; then
1397                 thread_file='posix'
1398         fi
1399         if test x$stabs = xyes ; then
1400                 tm_file="${tm_file} dbxcoff.h"
1401         fi
1402         ;;
1403 i[34567]86-dg-dgux*)
1404         xm_defines=POSIX
1405         out_file=i386/dgux.c
1406         tm_file=i386/dgux.h
1407         tmake_file=i386/t-dgux
1408         xmake_file=i386/x-dgux
1409         install_headers_dir=install-headers-cpio
1410       ;;
1411 i860-alliant-*)         # Alliant FX/2800
1412         tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1413         tmake_file=i860/t-fx2800
1414         extra_parts="crtbegin.o crtend.o"
1415         ;;
1416 i860-*-bsd*)
1417         tm_file="${tm_file} i860/bsd.h"
1418         if test x$gas = xyes
1419         then
1420                 tm_file="${tm_file} i860/bsd-gas.h"
1421         fi
1422         use_collect2=yes
1423         ;;
1424 i860-*-mach*)
1425         tm_file="${tm_file} i860/mach.h"
1426         tmake_file=t-libc-ok
1427         ;;
1428 i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
1429         tm_file="${tm_file} svr3.h i860/paragon.h"
1430         xm_defines=POSIX
1431         ;;
1432 i860-*-sysv3*)
1433         tm_file="${tm_file} svr3.h i860/sysv3.h"
1434         xm_defines=POSIX
1435         extra_parts="crtbegin.o crtend.o"
1436         ;;
1437 i860-*-sysv4*)
1438         tm_file="${tm_file} svr4.h i860/sysv4.h"
1439         xm_defines=POSIX
1440         tmake_file=t-svr4
1441         extra_parts="crtbegin.o crtend.o"
1442         ;;
1443 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1444         tm_file="${tm_file} i960/vx960.h"
1445         tmake_file=i960/t-vxworks960
1446         use_collect2=yes
1447         thread_file='vxworks'
1448         c_target_objs="i960-c.o"
1449         cxx_target_objs="i960-c.o"
1450         ;;
1451 i960-wrs-vxworks5* | i960-wrs-vxworks)
1452         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1453         tmake_file=i960/t-vxworks960
1454         use_collect2=yes
1455         thread_file='vxworks'
1456         c_target_objs="i960-c.o"
1457         cxx_target_objs="i960-c.o"
1458         ;;
1459 i960-wrs-vxworks*)
1460         tm_file="${tm_file} i960/vx960.h"
1461         tmake_file=i960/t-vxworks960
1462         use_collect2=yes
1463         thread_file='vxworks'
1464         c_target_objs="i960-c.o"
1465         cxx_target_objs="i960-c.o"
1466         ;;
1467 i960-*-coff*)
1468         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1469         tmake_file=i960/t-960bare
1470         c_target_objs="i960-c.o"
1471         cxx_target_objs="i960-c.o"
1472         ;;
1473 i960-*-rtems)
1474         tmake_file="i960/t-960bare t-rtems"
1475         tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1476         if test x$enable_threads = xyes; then
1477           thread_file='rtems'
1478         fi
1479         c_target_objs="i960-c.o"
1480         cxx_target_objs="i960-c.o"
1481         ;;
1482 i960-*-*)                       # Default i960 environment.
1483         use_collect2=yes
1484         c_target_objs="i960-c.o"
1485         cxx_target_objs="i960-c.o"
1486         ;;
1487 ia64*-*-aix*)
1488         tm_file="${tm_file} svr4.h ia64/sysv4.h ia64/aix.h"
1489         tmake_file="ia64/t-ia64 ia64/t-aix"
1490         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1491         ;;
1492 ia64*-*-elf*)
1493         tm_file=ia64/elf.h
1494         tmake_file="ia64/t-ia64"
1495         target_cpu_default="0"
1496         if test x$gas = xyes
1497         then
1498                 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1499         fi
1500         if test x$gnu_ld = xyes
1501         then
1502                 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1503         fi
1504         float_format=i386
1505         ;;
1506 ia64*-*-linux*)
1507         tm_file=ia64/linux.h
1508         tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1509         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1510         if test x$enable_threads = xyes; then
1511                 thread_file='posix'
1512         fi
1513         float_format=i386
1514         ;;
1515 ia64*-*-hpux*)
1516         tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1517         tmake_file="ia64/t-ia64 ia64/t-hpux"
1518         target_cpu_default="MASK_GNU_AS"
1519         if test x$enable_threads = xyes; then
1520                 thread_file='posix'
1521         fi
1522         float_format=i386
1523         ;;
1524 m32r-*-elf*)
1525         extra_parts="crtinit.o crtfini.o"
1526         ;;
1527 # m68hc11 and m68hc12 share the same machine description.
1528 m68hc11-*-*|m6811-*-*)
1529         tm_file="elfos.h m68hc11/m68hc11.h"
1530         tm_p_file="m68hc11/m68hc11-protos.h"
1531         md_file="m68hc11/m68hc11.md"
1532         out_file="m68hc11/m68hc11.c"
1533         tmake_file="m68hc11/t-m68hc11-gas"
1534         ;;
1535 m68hc12-*-*|m6812-*-*)
1536         tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1537         tm_p_file="m68hc11/m68hc11-protos.h"
1538         md_file="m68hc11/m68hc11.md"
1539         out_file="m68hc11/m68hc11.c"
1540         tmake_file="m68hc11/t-m68hc11-gas"
1541         ;;
1542 m68000-convergent-sysv*)
1543         tm_file=m68k/ctix.h
1544         xm_defines=POSIX
1545         use_collect2=yes
1546         extra_headers=math-68881.h
1547         ;;
1548 m68000-hp-bsd*)                 # HP 9000/200 running BSD
1549         tm_file=m68k/hp2bsd.h
1550         use_collect2=yes
1551         extra_headers=math-68881.h
1552         ;;
1553 m68000-hp-hpux*)                # HP 9000 series 300
1554         xm_defines=POSIX
1555         if test x$gas = xyes
1556         then
1557                 xmake_file=m68k/x-hp320g
1558                 tm_file=m68k/hp310g.h
1559         else
1560                 xmake_file=m68k/x-hp320
1561                 tm_file=m68k/hp310.h
1562         fi
1563         install_headers_dir=install-headers-cpio
1564         use_collect2=yes
1565         extra_headers=math-68881.h
1566         ;;
1567 m68000-sun-sunos3*)
1568         tm_file=m68k/sun2.h
1569         use_collect2=yes
1570         extra_headers=math-68881.h
1571         ;;
1572 m68000-sun-sunos4*)
1573         tm_file=m68k/sun2o4.h
1574         use_collect2=yes
1575         extra_headers=math-68881.h
1576         ;;
1577 m68000-att-sysv*)
1578         xm_defines=POSIX
1579         if test x$gas = xyes
1580         then
1581                 tm_file=m68k/3b1g.h
1582         else
1583                 tm_file=m68k/3b1.h
1584         fi
1585         use_collect2=yes
1586         extra_headers=math-68881.h
1587         ;;
1588 m68k-apple-aux*)                # Apple Macintosh running A/UX
1589         xm_defines=POSIX
1590         tmake_file=m68k/t-aux
1591         install_headers_dir=install-headers-cpio
1592         extra_headers=math-68881.h
1593         extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1594         tm_file=
1595         if test "$gnu_ld" = yes
1596         then
1597                 tm_file="${tm_file} m68k/auxgld.h"
1598         else
1599                 tm_file="${tm_file} m68k/auxld.h"
1600         fi
1601         if test "$gas" = yes
1602         then
1603                 tm_file="${tm_file} m68k/auxgas.h"
1604         else
1605                 tm_file="${tm_file} m68k/auxas.h"
1606         fi
1607         tm_file="${tm_file} m68k/a-ux.h"
1608         float_format=m68k
1609         ;;
1610 m68k-apollo-*)
1611         tm_file=m68k/apollo68.h
1612         use_collect2=yes
1613         extra_headers=math-68881.h
1614         float_format=m68k
1615         ;;
1616 m68k-altos-sysv*)                  # Altos 3068
1617         if test x$gas = xyes
1618         then
1619                 tm_file=m68k/altos3068.h
1620                 xm_defines=POSIX
1621         else
1622                 echo "The Altos is supported only with the GNU assembler" 1>&2
1623                 exit 1
1624         fi
1625         extra_headers=math-68881.h
1626         ;;
1627 m68k-bull-sysv*)                # Bull DPX/2
1628         if test x$gas = xyes
1629         then
1630                 if test x$stabs = xyes
1631                 then
1632                         tm_file=m68k/dpx2cdbx.h
1633                 else
1634                         tm_file=m68k/dpx2g.h
1635                 fi
1636         else
1637                 tm_file=m68k/dpx2.h
1638         fi
1639         xm_defines=POSIX
1640         use_collect2=yes
1641         extra_headers=math-68881.h
1642         ;;
1643 m68k-atari-sysv4*)              # Atari variant of V.4.
1644         tm_file=m68k/atari.h
1645         xm_defines=POSIX
1646         tmake_file=t-svr4
1647         extra_parts="crtbegin.o crtend.o"
1648         extra_headers=math-68881.h
1649         float_format=m68k
1650         ;;
1651 m68k-motorola-sysv*)
1652         tm_file=m68k/mot3300.h
1653         xm_defines=POSIX
1654         if test x$gas = xyes
1655         then
1656                 if test x$gnu_ld = xyes
1657                 then
1658                         tmake_file=m68k/t-mot3300-gald
1659                 else
1660                         tmake_file=m68k/t-mot3300-gas
1661                         use_collect2=yes
1662                 fi
1663         else
1664                 if test x$gnu_ld = xyes
1665                 then
1666                         tmake_file=m68k/t-mot3300-gld
1667                 else
1668                         tmake_file=m68k/t-mot3300
1669                         use_collect2=yes
1670                 fi
1671         fi
1672         gdb_needs_out_file_path=yes
1673         extra_parts="crt0.o mcrt0.o"
1674         extra_headers=math-68881.h
1675         float_format=m68k
1676         ;;
1677 m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
1678         tm_file=m68k/tower-as.h
1679         xm_defines=POSIX
1680         extra_parts="crtbegin.o crtend.o"
1681         extra_headers=math-68881.h
1682         ;;
1683 m68k-plexus-sysv*)
1684         tm_file=m68k/plexus.h
1685         xm_defines=POSIX
1686         use_collect2=yes
1687         extra_headers=math-68881.h
1688         ;;
1689 m68k-tti-*)
1690         tm_file=m68k/pbb.h
1691         xm_defines=POSIX
1692         extra_headers=math-68881.h
1693         ;;
1694 m68k-crds-unos*)
1695         xm_defines=POSIX
1696         tm_file=m68k/crds.h
1697         use_collect2=yes
1698         extra_headers=math-68881.h
1699         ;;
1700 m68k-cbm-sysv4*)                # Commodore variant of V.4.
1701         tm_file=m68k/amix.h
1702         xm_defines=POSIX
1703         tmake_file=t-svr4
1704         extra_parts="crtbegin.o crtend.o"
1705         extra_headers=math-68881.h
1706         float_format=m68k
1707         ;;
1708 m68k-ccur-rtu)
1709         tm_file=m68k/ccur-GAS.h
1710         extra_headers=math-68881.h
1711         use_collect2=yes
1712         float_format=m68k
1713         ;;
1714 m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
1715         tm_file=m68k/hp3bsd44.h
1716         use_collect2=yes
1717         extra_headers=math-68881.h
1718         float_format=m68k
1719         ;;
1720 m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
1721         tm_file=m68k/hp3bsd.h
1722         use_collect2=yes
1723         extra_headers=math-68881.h
1724         float_format=m68k
1725         ;;
1726 m68k-isi-bsd*)
1727         if test x$with_fp = xno
1728         then
1729                 tm_file=m68k/isi-nfp.h
1730         else
1731                 tm_file=m68k/isi.h
1732                 float_format=m68k
1733         fi
1734         use_collect2=yes
1735         extra_headers=math-68881.h
1736         ;;
1737 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1738         xm_defines=POSIX
1739         if test x$gas = xyes
1740         then
1741                 xmake_file=m68k/x-hp320g
1742                 tm_file=m68k/hp320g.h
1743         else
1744                 xmake_file=m68k/x-hp320
1745                 tm_file=m68k/hpux7.h
1746         fi
1747         install_headers_dir=install-headers-cpio
1748         use_collect2=yes
1749         extra_headers=math-68881.h
1750         float_format=m68k
1751         ;;
1752 m68k-hp-hpux*)  # HP 9000 series 300
1753         xm_defines=POSIX
1754         if test x$gas = xyes
1755         then
1756                 xmake_file=m68k/x-hp320g
1757                 tm_file=m68k/hp320g.h
1758         else
1759                 xmake_file=m68k/x-hp320
1760                 tm_file=m68k/hp320.h
1761         fi
1762         install_headers_dir=install-headers-cpio
1763         use_collect2=yes
1764         extra_headers=math-68881.h
1765         float_format=m68k
1766         ;;
1767 m68k-sun-mach*)
1768         tm_file=m68k/sun3mach.h
1769         use_collect2=yes
1770         extra_headers=math-68881.h
1771         float_format=m68k
1772         ;;
1773 m68k-sony-newsos3*)
1774         if test x$gas = xyes
1775         then
1776                 tm_file=m68k/news3gas.h
1777         else
1778                 tm_file=m68k/news3.h
1779         fi
1780         use_collect2=yes
1781         extra_headers=math-68881.h
1782         float_format=m68k
1783         ;;
1784 m68k-sony-bsd* | m68k-sony-newsos*)
1785         if test x$gas = xyes
1786         then
1787                 tm_file=m68k/newsgas.h
1788         else
1789                 tm_file=m68k/news.h
1790         fi
1791         use_collect2=yes
1792         extra_headers=math-68881.h
1793         float_format=m68k
1794         ;;
1795 m68k-next-nextstep2*)
1796         tm_file=m68k/next21.h
1797         tmake_file=m68k/t-next
1798         xmake_file=m68k/x-next
1799         extra_objs=nextstep.o
1800         extra_headers=math-68881.h
1801         use_collect2=yes
1802         float_format=m68k
1803         ;;
1804 m68k-next-nextstep[34]*)
1805         tm_file=m68k/next.h
1806         tmake_file=m68k/t-next
1807         xmake_file=m68k/x-next
1808         extra_objs=nextstep.o
1809         extra_parts="crtbegin.o crtend.o"
1810         extra_headers=math-68881.h
1811         float_format=m68k
1812         if test x$enable_threads = xyes; then
1813                 thread_file='mach'
1814         fi
1815         ;;
1816 m68k-sun-sunos3*)
1817         if test x$with_fp = xno
1818         then
1819                 tm_file=m68k/sun3n3.h
1820         else
1821                 tm_file=m68k/sun3o3.h
1822                 float_format=m68k
1823         fi
1824         use_collect2=yes
1825         extra_headers=math-68881.h
1826         ;;
1827 m68k-sun-sunos*)                        # For SunOS 4 (the default).
1828         if test x$with_fp = xno
1829         then
1830                 tm_file=m68k/sun3n.h
1831         else
1832                 tm_file=m68k/sun3.h
1833                 float_format=m68k
1834         fi
1835         use_collect2=yes
1836         extra_headers=math-68881.h
1837         ;;
1838 m68k-wrs-vxworks*)
1839         tm_file=m68k/vxm68k.h
1840         tmake_file=m68k/t-vxworks68
1841         extra_headers=math-68881.h
1842         thread_file='vxworks'
1843         float_format=m68k
1844         ;;
1845 m68k-*-aout*)
1846         tmake_file=m68k/t-m68kbare
1847         tm_file="m68k/m68k-aout.h libgloss.h"
1848         extra_headers=math-68881.h
1849         float_format=m68k
1850         ;;
1851 m68k-*-coff*)
1852         tmake_file=m68k/t-m68kbare
1853         tm_file="m68k/m68k-coff.h dbx.h"
1854         extra_headers=math-68881.h
1855         float_format=m68k
1856         ;;
1857 m68020-*-elf* | m68k-*-elf*)
1858         tm_file="m68k/m68020-elf.h"
1859         xm_defines=POSIX
1860         tmake_file=m68k/t-m68kelf
1861         header_files=math-68881.h
1862         extra_parts="crtbegin.o crtend.o"
1863         ;;
1864 m68k-*-lynxos*)
1865         if test x$gas = xyes
1866         then
1867                 tm_file=m68k/lynx.h
1868         else
1869                 tm_file=m68k/lynx-ng.h
1870         fi
1871         tmake_file=m68k/t-lynx
1872         extra_headers=math-68881.h
1873         float_format=m68k
1874         ;;
1875 m68k*-*-netbsd*)
1876         tm_file=m68k/netbsd.h
1877         tmake_file=t-netbsd
1878         float_format=m68k
1879         use_collect2=yes
1880         ;;
1881 m68k*-*-openbsd*)
1882         # needed to unconfuse gdb
1883         tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1884         float_format=m68k
1885         # we need collect2 until our bug is fixed...
1886         use_collect2=yes
1887         ;;
1888 m68k-*-sysv3*)                  # Motorola m68k's running system V.3
1889         xm_defines=POSIX
1890         extra_parts="crtbegin.o crtend.o"
1891         extra_headers=math-68881.h
1892         float_format=m68k
1893         ;;
1894 m68k-*-sysv4*)                  # Motorola m68k's running system V.4
1895         tm_file=m68k/m68kv4.h
1896         xm_defines=POSIX
1897         tmake_file=t-svr4
1898         extra_parts="crtbegin.o crtend.o"
1899         extra_headers=math-68881.h
1900         float_format=m68k
1901         ;;
1902 m68k-*-linux*aout*)             # Motorola m68k's running GNU/Linux
1903                                 # with a.out format
1904         xmake_file=x-linux
1905         tm_file=m68k/linux-aout.h
1906         tmake_file="t-linux-aout m68k/t-linux-aout"
1907         extra_headers=math-68881.h
1908         float_format=m68k
1909         gnu_ld=yes
1910         ;;
1911 m68k-*-linux*libc1)             # Motorola m68k's running GNU/Linux
1912                                 # with ELF format using the
1913                                 # GNU/Linux C library 5
1914         xmake_file=x-linux
1915         tm_file=m68k/linux.h
1916         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
1917         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1918         extra_headers=math-68881.h
1919         float_format=m68k
1920         gnu_ld=yes
1921         ;;
1922 m68k-*-linux*)          # Motorola m68k's running GNU/Linux
1923                                 # with ELF format using glibc 2
1924                                 # aka the GNU/Linux C library 6.
1925         xmake_file=x-linux
1926         tm_file=m68k/linux.h
1927         tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
1928         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1929         extra_headers=math-68881.h
1930         float_format=m68k
1931         gnu_ld=yes
1932         if test x$enable_threads = xyes; then
1933                 thread_file='posix'
1934         fi
1935         ;;
1936 m68k-*-psos*)
1937         tmake_file=m68k/t-m68kbare
1938         tm_file=m68k/m68k-psos.h
1939         extra_headers=math-68881.h
1940         float_format=m68k
1941         ;;
1942 m68k-*-rtemscoff*)
1943         tmake_file="m68k/t-m68kbare t-rtems"
1944         tm_file=m68k/rtems.h
1945         extra_headers=math-68881.h
1946         float_format=m68k
1947         if test x$enable_threads = xyes; then
1948           thread_file='rtems'
1949         fi
1950         ;;
1951 m68k-*-rtemself*|m68k-*-rtems*)
1952         tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1953         tm_file=m68k/rtemself.h
1954         extra_headers=math-68881.h
1955         float_format=m68k
1956         extra_parts="crtbegin.o crtend.o"
1957         if test x$enable_threads = xyes; then
1958           thread_file='rtems'
1959         fi
1960         ;;
1961 m88k-dg-dgux*)
1962         xm_defines=POSIX
1963         case $machine in
1964           m88k-dg-dguxbcs*)
1965             tm_file=m88k/dguxbcs.h
1966             tmake_file=m88k/t-dguxbcs
1967             ;;
1968           *)
1969             tm_file=m88k/dgux.h
1970             tmake_file=m88k/t-dgux
1971             ;;
1972         esac
1973         extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1974         xmake_file=m88k/x-dgux
1975         if test x$gas = xyes
1976         then
1977                 tmake_file=m88k/t-dgux-gas
1978         fi
1979         ;;
1980 m88k-dolphin-sysv3*)
1981         xm_defines=POSIX
1982         tm_file=m88k/dolph.h
1983         extra_parts="crtbegin.o crtend.o"
1984         xmake_file=m88k/x-dolph
1985         if test x$gas = xyes
1986         then
1987                 tmake_file=m88k/t-m88k-gas
1988         fi
1989         ;;
1990 m88k-tektronix-sysv3)
1991         xm_defines=POSIX
1992         tm_file=m88k/tekXD88.h
1993         extra_parts="crtbegin.o crtend.o"
1994         xmake_file=m88k/x-tekXD88
1995         if test x$gas = xyes
1996         then
1997                 tmake_file=m88k/t-m88k-gas
1998         fi
1999         ;;
2000 m88k-*-aout*)
2001         xm_defines=POSIX
2002         tm_file=m88k/m88k-aout.h
2003         ;;
2004 m88k-*-coff*)
2005         xm_defines=POSIX
2006         tm_file=m88k/m88k-coff.h
2007         tmake_file=m88k/t-bug
2008         ;;
2009 m88k-*-luna*)
2010         tm_file=m88k/luna.h
2011         extra_parts="crtbegin.o crtend.o"
2012         if test x$gas = xyes
2013         then
2014                 tmake_file=m88k/t-luna-gas
2015         else
2016                 tmake_file=m88k/t-luna
2017         fi
2018         ;;
2019 m88k-*-openbsd*)
2020         tmake_file="${tmake_file} m88k/t-luna-gas"
2021         tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2022         ;;
2023 m88k-*-sysv3*)
2024         xm_defines=POSIX
2025         tm_file=m88k/sysv3.h
2026         extra_parts="crtbegin.o crtend.o"
2027         if test x$gas = xyes
2028         then
2029                 tmake_file=m88k/t-m88k-gas
2030         fi
2031         ;;
2032 m88k-*-sysv4*)
2033         xm_defines=POSIX
2034         tm_file=m88k/sysv4.h
2035         extra_parts="crtbegin.o crtend.o"
2036         tmake_file=m88k/t-sysv4
2037         ;;
2038 mcore-*-elf)
2039         tm_file=mcore/mcore-elf.h
2040         tmake_file=mcore/t-mcore
2041         ;;
2042 mcore-*-pe*)
2043         tm_file=mcore/mcore-pe.h
2044         tmake_file=mcore/t-mcore-pe
2045         ;;
2046 mips-sgi-irix6*)                # SGI System V.4., IRIX 6
2047         if test "x$gnu_ld" = xyes
2048         then
2049                 tm_file="mips/iris6.h mips/iris6gld.h"
2050         else
2051                 tm_file=mips/iris6.h
2052         fi
2053         tmake_file=mips/t-iris6
2054         xm_defines=POSIX
2055         xmake_file=mips/x-iris6
2056 #       if test x$enable_threads = xyes; then
2057 #               thread_file='irix'
2058 #       fi
2059         ;;
2060 mips-wrs-vxworks)
2061         tm_file="mips/elf.h mips/vxworks.h"
2062         tmake_file=mips/t-ecoff
2063         gas=yes
2064         gnu_ld=yes
2065         extra_parts="crtbegin.o crtend.o"
2066         thread_file='vxworks'
2067         ;;
2068 mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
2069         tm_file="mips/iris6.h mips/cross64.h"
2070         xm_defines=POSIX
2071         xm_file=mips/xm-iris5.h
2072         xmake_file=mips/x-iris
2073         tmake_file=mips/t-cross64
2074         # See comment in mips/iris[56].h files.
2075         use_collect2=yes
2076 #       if test x$enable_threads = xyes; then
2077 #               thread_file='irix'
2078 #       fi
2079         ;;
2080 mips-sni-sysv4)
2081         if test x$gas = xyes
2082         then
2083                 if test x$stabs = xyes
2084                 then
2085                         tm_file=mips/iris5gdb.h
2086                 else
2087                         tm_file="mips/sni-svr4.h mips/sni-gas.h"
2088                 fi
2089         else
2090                 tm_file=mips/sni-svr4.h
2091         fi
2092         xm_defines=POSIX
2093         if test x$gnu_ld != xyes
2094         then
2095                 use_collect2=yes
2096         fi
2097         ;;
2098 mips-sgi-irix5*)                # SGI System V.4., IRIX 5
2099         if test x$gas = xyes
2100         then
2101                 tm_file="mips/iris5.h mips/iris5gas.h"
2102                 if test x$stabs = xyes
2103                 then
2104                         tm_file="${tm_file} dbx.h"
2105                 fi
2106         else
2107                 tm_file=mips/iris5.h
2108         fi
2109         xm_defines=POSIX
2110         xm_file=mips/xm-iris5.h
2111         xmake_file=mips/x-iris
2112         # mips-tfile doesn't work yet
2113         # See comment in mips/iris5.h file.
2114         use_collect2=yes
2115 #       if test x$enable_threads = xyes; then
2116 #               thread_file='irix'
2117 #       fi
2118         ;;
2119 mips-sgi-irix4loser*)           # Mostly like a MIPS.
2120         tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2121         if test x$stabs = xyes; then
2122                 tm_file="${tm_file} dbx.h"
2123         fi
2124         xm_defines=POSIX
2125         xmake_file=mips/x-iris
2126         if test x$gas = xyes
2127         then    :
2128         else
2129                 extra_passes="mips-tfile mips-tdump"
2130         fi
2131         if test x$gnu_ld != xyes
2132         then
2133                 use_collect2=yes
2134         fi
2135 #       if test x$enable_threads = xyes; then
2136 #               thread_file='irix'
2137 #       fi
2138         ;;
2139 mips-sgi-irix4*)                # Mostly like a MIPS.
2140         tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2141         if test x$stabs = xyes; then
2142                 tm_file="${tm_file} dbx.h"
2143         fi
2144         xm_defines=POSIX
2145         xmake_file=mips/x-iris
2146         if test x$gas = xyes
2147         then    :
2148         else
2149                 extra_passes="mips-tfile mips-tdump"
2150         fi
2151         if test x$gnu_ld != xyes
2152         then
2153                 use_collect2=yes
2154         fi
2155 #       if test x$enable_threads = xyes; then
2156 #               thread_file='irix'
2157 #       fi
2158         ;;
2159 mips-sgi-*)                     # Mostly like a MIPS.
2160         tm_file="mips/iris3.h ${tm_file}"
2161         if test x$stabs = xyes; then
2162                 tm_file="${tm_file} dbx.h"
2163         fi
2164         xm_defines=POSIX
2165         if test x$gas = xyes
2166         then    :
2167         else
2168                 extra_passes="mips-tfile mips-tdump"
2169         fi
2170         if test x$gnu_ld != xyes
2171         then
2172                 use_collect2=yes
2173         fi
2174         ;;
2175 mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
2176         tm_file="mips/osfrose.h ${tm_file}"
2177         extra_objs=halfpic.o
2178         use_collect2=yes
2179         ;;
2180 mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
2181         tm_file=mips/dec-osf1.h
2182         if test x$stabs = xyes; then
2183                 tm_file="${tm_file} dbx.h"
2184         fi
2185         if test x$gas = xyes
2186         then    :
2187         else
2188                 tmake_file=mips/t-ultrix
2189                 extra_passes="mips-tfile mips-tdump"
2190         fi
2191         if test x$gnu_ld != xyes
2192         then
2193                 use_collect2=yes
2194         fi
2195         ;;
2196 mips-dec-bsd*)                  # Decstation running 4.4 BSD
2197       tm_file=mips/dec-bsd.h
2198       if test x$gas = xyes
2199       then      :
2200       else
2201                 tmake_file=mips/t-ultrix
2202                 extra_passes="mips-tfile mips-tdump"
2203       fi
2204       if test x$gnu_ld != xyes
2205       then
2206                 use_collect2=yes
2207       fi
2208       ;;
2209 mipsel-*-netbsd* | mips-dec-netbsd*)    # Decstation running NetBSD
2210         tm_file=mips/netbsd.h
2211         # On NetBSD, the headers are already okay, except for math.h.
2212         tmake_file=t-netbsd
2213         ;;
2214 mips*-*-linux*)                         # Linux MIPS, either endian.
2215         xmake_file=x-linux
2216         tm_file="linux.h mips/linux.h"
2217         case $machine in
2218                 mipsisa32el-*)
2219                         tm_file="mips/little.h $tm_file mips/isa32-linux.h";;
2220                 mipsisa32-*)
2221                         tm_file="$tm_file mips/isa32-linux.h";;
2222                 mips*el-*)  tm_file="mips/little.h $tm_file" ;;
2223         esac
2224         tmake_file="t-slibgcc-elf-ver t-linux"
2225         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2226         gnu_ld=yes
2227         gas=yes
2228         if test x$enable_threads = xyes; then
2229                 thread_file='posix'
2230         fi
2231         ;;
2232 mips*el-*-openbsd*)     # mips little endian
2233         target_cpu_default="MASK_GAS|MASK_ABICALLS"
2234         ;;
2235 mips*-*-openbsd*)               # mips big endian
2236         target_cpu_default="MASK_GAS|MASK_ABICALLS"
2237         tm_file="mips/openbsd-be.h ${tm_file}"
2238         ;;
2239 mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
2240         tm_file="mips/news4.h ${tm_file}"
2241         if test x$stabs = xyes; then
2242                 tm_file="${tm_file} dbx.h"
2243         fi
2244         if test x$gas = xyes
2245         then    :
2246         else
2247                 extra_passes="mips-tfile mips-tdump"
2248         fi
2249         if test x$gnu_ld != xyes
2250         then
2251                 use_collect2=yes
2252         fi
2253         ;;
2254 mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
2255                                 # That is based on svr4.
2256         # t-svr4 is not right because this system doesn't use ELF.
2257         tm_file="mips/news5.h ${tm_file}"
2258         if test x$stabs = xyes; then
2259                 tm_file="${tm_file} dbx.h"
2260         fi
2261         xm_defines=POSIX
2262         if test x$gas = xyes
2263         then    :
2264         else
2265                 extra_passes="mips-tfile mips-tdump"
2266         fi
2267         if test x$gnu_ld != xyes
2268         then
2269                 use_collect2=yes
2270         fi
2271         ;;
2272 mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
2273         tm_file="mips/svr4-5.h mips/svr4-t.h"
2274         if test x$stabs = xyes; then
2275                 tm_file="${tm_file} dbx.h"
2276         fi
2277         xm_defines=POSIX
2278         if test x$gas = xyes
2279         then
2280                 extra_parts="crtbegin.o crtend.o"
2281         else
2282                 extra_passes="mips-tfile mips-tdump"
2283         fi
2284         if test x$gnu_ld != xyes
2285         then
2286                 use_collect2=yes
2287         fi
2288         ;;
2289 mips-*-ultrix* | mips-dec-mach3)        # Decstation.
2290         tm_file="mips/ultrix.h ${tm_file}"
2291         if test x$stabs = xyes; then
2292                 tm_file="${tm_file} dbx.h"
2293         fi
2294         if test x$gas = xyes
2295         then    :
2296         else
2297                 tmake_file=mips/t-ultrix
2298                 extra_passes="mips-tfile mips-tdump"
2299         fi
2300         if test x$gnu_ld != xyes
2301         then
2302                 use_collect2=yes
2303         fi
2304         ;;
2305 mips-*-riscos[56789]bsd*)
2306         tm_file=mips/bsd-5.h    # MIPS BSD 4.3, RISC-OS 5.0
2307         if test x$stabs = xyes; then
2308                 tm_file="${tm_file} dbx.h"
2309         fi
2310         if test x$gas = xyes
2311         then
2312                 tmake_file=mips/t-bsd-gas
2313         else
2314                 tmake_file=mips/t-bsd
2315                 extra_passes="mips-tfile mips-tdump"
2316         fi
2317         if test x$gnu_ld != xyes
2318         then
2319                 use_collect2=yes
2320         fi
2321         ;;
2322 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2323         tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2324         if test x$stabs = xyes; then
2325                 tm_file="${tm_file} dbx.h"
2326         fi
2327         if test x$gas = xyes
2328         then
2329                 tmake_file=mips/t-bsd-gas
2330         else
2331                 tmake_file=mips/t-bsd
2332                 extra_passes="mips-tfile mips-tdump"
2333         fi
2334         if test x$gnu_ld != xyes
2335         then
2336                 use_collect2=yes
2337         fi
2338         ;;
2339 mips-*-riscos[56789]sysv4*)
2340         tm_file=mips/svr4-5.h   # MIPS System V.4., RISC-OS 5.0
2341         if test x$stabs = xyes; then
2342                 tm_file="${tm_file} dbx.h"
2343         fi
2344         if test x$gas = xyes
2345         then
2346                 tmake_file=mips/t-svr4-gas
2347         else
2348                 tmake_file=mips/t-svr4
2349                 extra_passes="mips-tfile mips-tdump"
2350         fi
2351         if test x$gnu_ld != xyes
2352         then
2353                 use_collect2=yes
2354         fi
2355         ;;
2356 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2357         tm_file="mips/svr4-4.h ${tm_file}"
2358         if test x$stabs = xyes; then
2359                 tm_file="${tm_file} dbx.h"
2360         fi
2361         xm_defines=POSIX
2362         if test x$gas = xyes
2363         then
2364                 tmake_file=mips/t-svr4-gas
2365         else
2366                 tmake_file=mips/t-svr4
2367                 extra_passes="mips-tfile mips-tdump"
2368         fi
2369         if test x$gnu_ld != xyes
2370         then
2371                 use_collect2=yes
2372         fi
2373         ;;
2374 mips-*-riscos[56789]sysv*)
2375         tm_file=mips/svr3-5.h   # MIPS System V.3, RISC-OS 5.0
2376         if test x$stabs = xyes; then
2377                 tm_file="${tm_file} dbx.h"
2378         fi
2379         xm_defines=POSIX
2380         if test x$gas = xyes
2381         then
2382                 tmake_file=mips/t-svr3-gas
2383         else
2384                 tmake_file=mips/t-svr3
2385                 extra_passes="mips-tfile mips-tdump"
2386         fi
2387         if test x$gnu_ld != xyes
2388         then
2389                 use_collect2=yes
2390         fi
2391         ;;
2392 mips-*-sysv* | mips-*-riscos*sysv*)
2393         tm_file="mips/svr3-4.h ${tm_file}"
2394         if test x$stabs = xyes; then
2395                 tm_file="${tm_file} dbx.h"
2396         fi
2397         xm_defines=POSIX
2398         if test x$gas = xyes
2399         then
2400                 tmake_file=mips/t-svr3-gas
2401         else
2402                 tmake_file=mips/t-svr3
2403                 extra_passes="mips-tfile mips-tdump"
2404         fi
2405         if test x$gnu_ld != xyes
2406         then
2407                 use_collect2=yes
2408         fi
2409         ;;
2410 mips-*-riscos[56789]*)          # Default MIPS RISC-OS 5.0.
2411         tm_file=mips/mips-5.h
2412         if test x$stabs = xyes; then
2413                 tm_file="${tm_file} dbx.h"
2414         fi
2415         if test x$gas = xyes
2416         then    :
2417         else
2418                 extra_passes="mips-tfile mips-tdump"
2419         fi
2420         if test x$gnu_ld != xyes
2421         then
2422                 use_collect2=yes
2423         fi
2424         ;;
2425 mips-*-gnu*)
2426         ;;
2427 mipsel-*-ecoff*)
2428         tm_file=mips/ecoffl.h
2429         if test x$stabs = xyes; then
2430                 tm_file="${tm_file} dbx.h"
2431         fi
2432         tmake_file=mips/t-ecoff
2433         ;;
2434 mips-*-ecoff*)
2435         tm_file="gofast.h mips/ecoff.h"
2436         if test x$stabs = xyes; then
2437                 tm_file="${tm_file} dbx.h"
2438         fi
2439         tmake_file=mips/t-ecoff
2440         ;;
2441 mipsisa32-*-elf*)
2442         tm_file="mips/isa3264.h mips/abi64.h"
2443         tmake_file=mips/t-isa3264
2444         ;;
2445 mipsel-*-elf*)
2446         tm_file="mips/elfl.h"
2447         tmake_file=mips/t-elf
2448         ;;
2449 mips-*-elf*)
2450         tm_file="mips/elf.h"
2451         tmake_file=mips/t-elf
2452         ;;
2453 mips64el-*-elf*)
2454         tm_file="mips/elfl64.h"
2455         tmake_file=mips/t-elf
2456         ;;
2457 mips64orionel-*-elf*)
2458         tm_file="mips/elforion.h mips/elfl64.h"
2459         tmake_file=mips/t-elf
2460         ;;
2461 mips64-*-elf*)
2462         tm_file="mips/elf64.h"
2463         tmake_file=mips/t-elf
2464         ;;
2465 mips64orion-*-elf*)
2466         tm_file="mips/elforion.h mips/elf64.h"
2467         tmake_file=mips/t-elf
2468         ;;
2469 mips64orion-*-rtems*)
2470         tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2471         tmake_file="mips/t-elf t-rtems"
2472         if test x$enable_threads = xyes; then
2473           thread_file='rtems'
2474         fi
2475         ;;
2476 mips*-*-rtems*)
2477         tm_file="mips/elf.h mips/rtems.h"
2478         tmake_file="mips/t-elf t-rtems"
2479         if test x$enable_threads = xyes; then
2480           thread_file='rtems'
2481         fi
2482         ;;
2483 mipstx39el-*-elf*)
2484         tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2485         tmake_file=mips/t-r3900
2486         ;;
2487 mipstx39-*-elf*)
2488         tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2489         tmake_file=mips/t-r3900
2490         ;;
2491 mips-*-*)                               # Default MIPS RISC-OS 4.0.
2492         if test x$stabs = xyes; then
2493                 tm_file="${tm_file} dbx.h"
2494         fi
2495         if test x$gas = xyes
2496         then    :
2497         else
2498                 extra_passes="mips-tfile mips-tdump"
2499         fi
2500         if test x$gnu_ld != xyes
2501         then
2502                 use_collect2=yes
2503         fi
2504         ;;
2505 mn10200-*-*)
2506         float_format=i32
2507         cpu_type=mn10200
2508         tm_file="mn10200/mn10200.h"
2509         if test x$stabs = xyes
2510         then
2511                 tm_file="${tm_file} dbx.h"
2512         fi
2513         use_collect2=no
2514         ;;
2515 mn10300-*-*)
2516         cpu_type=mn10300
2517         tm_file="mn10300/mn10300.h"
2518         if test x$stabs = xyes
2519         then
2520                 tm_file="${tm_file} dbx.h"
2521         fi
2522         use_collect2=no
2523         ;;
2524 ns32k-encore-bsd*)
2525         tm_file=ns32k/encore.h
2526         use_collect2=yes
2527         ;;
2528 ns32k-sequent-bsd*)
2529         tm_file=ns32k/sequent.h
2530         use_collect2=yes
2531         ;;
2532 ns32k-tek6100-bsd*)
2533         tm_file=ns32k/tek6100.h
2534         use_collect2=yes
2535         ;;
2536 ns32k-tek6200-bsd*)
2537         tm_file=ns32k/tek6200.h
2538         use_collect2=yes
2539         ;;
2540 ns32k-merlin-*)
2541         tm_file=ns32k/merlin.h
2542         use_collect2=yes
2543         ;;
2544 ns32k-pc532-mach*)
2545         tm_file=ns32k/pc532-mach.h
2546         use_collect2=yes
2547         ;;
2548 ns32k-pc532-minix*)
2549         tm_file=ns32k/pc532-min.h
2550         xm_defines='POSIX HZ=60'
2551         use_collect2=yes
2552         ;;
2553 ns32k-*-netbsd*)
2554         tm_file=ns32k/netbsd.h
2555         # On NetBSD, the headers are already okay, except for math.h.
2556         tmake_file=t-netbsd
2557         use_collect2=yes
2558         ;;
2559 pdp11-*-bsd)
2560         tm_file="${tm_file} pdp11/2bsd.h"
2561         ;;
2562 pdp11-*-*)
2563         ;;
2564 avr-*-*)
2565         ;;
2566 ns32k-*-openbsd*)
2567         # Nothing special
2568         ;;
2569 pj*-linux*)
2570         tm_file="svr4.h pj/linux.h ${tm_file}"
2571         ;;
2572 pj-*)
2573         ;;
2574 pjl-*)
2575         tm_file="svr4.h pj/pjl.h ${tm_file}"
2576         ;;
2577
2578 romp-*-aos*)
2579         use_collect2=yes
2580         ;;
2581 romp-*-mach*)
2582         use_collect2=yes
2583         ;;
2584 romp-*-openbsd*)
2585         # Nothing special
2586         ;;
2587 powerpc-*-openbsd*)
2588         tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2589         ;;
2590 powerpc64-*-linux*)
2591         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux64.h"
2592         out_file=rs6000/rs6000.c
2593         tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2594         xmake_file=x-linux
2595         extra_headers=ppc-asm.h
2596         ;;
2597 powerpc-*-beos*)
2598         cpu_type=rs6000
2599         tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
2600         xm_defines=POSIX
2601         xm_file=rs6000/xm-beos.h
2602         tmake_file=rs6000/t-beos
2603         ;;
2604 powerpc-*-darwin*)
2605         cpu_type=rs6000
2606         tm_file="${tm_file} darwin.h rs6000/darwin.h"
2607         tm_p_file="${tm_p_file} darwin-protos.h"
2608         tmake_file=rs6000/t-darwin
2609         xmake_file=rs6000/x-darwin
2610         # Override the usual setting, since Apple's GCC has lame bugs
2611         # and can't handle the initializers.  Someday the bugs will be
2612         # fixed and we can get rid of this silliness.
2613         xm_defines="HAVE_DESIGNATED_INITIALIZERS=0"
2614         extra_objs="darwin.o"
2615         c_target_objs="darwin-c.o"
2616         cxx_target_objs="darwin-c.o"
2617         # Darwin linker does collect2 functionality
2618         use_collect2=no
2619         ;;
2620 powerpc-*-sysv*)
2621         tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2622         xm_defines=POSIX
2623         extra_headers=ppc-asm.h
2624         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2625         ;;
2626 powerpc-*-netbsd*)
2627         xm_defines=POSIX
2628         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/netbsd.h"
2629         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2630         extra_headers=ppc-asm.h
2631         ;;
2632 powerpc-*-chorusos*)
2633         xm_defines=POSIX
2634         tm_file="${tm_file} svr4.h rs6000/sysv4.h chorus.h"
2635         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2636         extra_headers=ppc-asm.h
2637         case x${enable_threads} in
2638           xyes | xpthreads | xposix)
2639                 thread_file='posix'
2640                 ;;
2641         esac
2642         ;;
2643 powerpc-*-eabiaix*)
2644         xm_defines=POSIX
2645         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2646         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2647         extra_headers=ppc-asm.h
2648         ;;
2649 powerpc-*-eabisim*)
2650         xm_defines=POSIX
2651         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2652         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2653         extra_headers=ppc-asm.h
2654         ;;
2655 powerpc-*-elf*)
2656         xm_defines=POSIX
2657         tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2658         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2659         extra_headers=ppc-asm.h
2660         ;;
2661 powerpc-*-eabi*)
2662         xm_defines=POSIX
2663         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2664         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2665         extra_headers=ppc-asm.h
2666         ;;
2667 powerpc-*-rtems*)
2668         xm_defines=POSIX
2669         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2670         tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2671         extra_headers=ppc-asm.h
2672         if test x$enable_threads = xyes; then
2673           thread_file='rtems'
2674         fi
2675         ;;
2676 powerpc-*-linux*libc1)
2677         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2678         out_file=rs6000/rs6000.c
2679         tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2680         xmake_file=x-linux
2681         extra_headers=ppc-asm.h
2682         if test x$enable_threads = xyes; then
2683                 thread_file='posix'
2684         fi
2685         ;;
2686 powerpc-*-linux*)
2687         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2688         out_file=rs6000/rs6000.c
2689         tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2690         xmake_file=x-linux
2691         extra_headers=ppc-asm.h
2692         if test x$enable_threads = xyes; then
2693                 thread_file='posix'
2694         fi
2695         ;;
2696 powerpc-wrs-vxworks*)
2697         cpu_type=rs6000
2698         xm_defines=POSIX
2699         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2700         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2701         extra_headers=ppc-asm.h
2702         thread_file='vxworks'
2703         ;;
2704 powerpcle-wrs-vxworks*)
2705         cpu_type=rs6000
2706         xm_defines=POSIX
2707         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2708         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2709         extra_headers=ppc-asm.h
2710         thread_file='vxworks'
2711         ;;
2712 powerpcle-*-sysv*)
2713         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2714         xm_defines=POSIX
2715         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2716         extra_headers=ppc-asm.h
2717         ;;
2718 powerpcle-*-elf*)
2719         xm_defines=POSIX
2720         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2721         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2722         extra_headers=ppc-asm.h
2723         ;;
2724 powerpcle-*-eabisim*)
2725         xm_defines=POSIX
2726         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2727         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2728         extra_headers=ppc-asm.h
2729         ;;
2730 powerpcle-*-eabi*)
2731         xm_defines=POSIX
2732         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2733         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2734         extra_headers=ppc-asm.h
2735         ;;
2736 powerpcle-*-solaris2*)
2737         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2738         xm_defines=POSIX
2739         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2740         extra_headers=ppc-asm.h
2741         ;;
2742 rs6000-ibm-aix3.[01]*)
2743         xm_defines=POSIX
2744         tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h"
2745         float_format=none
2746         use_collect2=yes
2747         ;;
2748 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2749         xm_defines=POSIX
2750         tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h"
2751         tmake_file=rs6000/t-newas
2752         float_format=none
2753         use_collect2=yes
2754         ;;
2755 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2756         xm_defines=POSIX
2757         tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
2758         tmake_file=rs6000/t-newas
2759         float_format=none
2760         use_collect2=yes
2761         ;;
2762 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2763         xm_defines=POSIX
2764         tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
2765         tmake_file=rs6000/t-aix43
2766         float_format=none
2767         use_collect2=yes
2768         thread_file='aix'
2769         ;;
2770 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2771         xm_defines=POSIX
2772         tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
2773         tmake_file=rs6000/t-aix43
2774         float_format=none
2775         use_collect2=yes
2776         thread_file='aix'
2777         ;;
2778 rs6000-ibm-aix*)
2779         xm_defines=POSIX
2780         tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2781         float_format=none
2782         use_collect2=yes
2783         ;;
2784 rs6000-bull-bosx)
2785         xm_defines=POSIX
2786         tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2787         float_format=none
2788         use_collect2=yes
2789         ;;
2790 rs6000-*-mach*)
2791         tm_file="rs6000/rs6000.h rs6000/mach.h"
2792         xm_defines=POSIX
2793         use_collect2=yes
2794         ;;
2795 rs6000-*-lynxos*)
2796         tm_file=rs6000/lynx.h
2797         tmake_file=rs6000/t-rs6000
2798         use_collect2=yes
2799         ;;
2800 s390-*-linux*)
2801         xmake_file=x-linux
2802         tm_file=s390/linux.h
2803         tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2804         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2805         if test x$enable_threads = xyes; then
2806                 thread_file='posix'
2807         fi
2808         ;;
2809 s390x-*-linux*)
2810         xmake_file=x-linux
2811         tm_file=s390/linux64.h
2812         tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2813         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2814         if test x$enable_threads = xyes; then
2815                 thread_file='posix'
2816         fi
2817         ;;
2818 sh-*-elf*)
2819         tmake_file="sh/t-sh sh/t-elf"
2820         tm_file="sh/sh.h sh/elf.h"
2821         float_format=sh
2822         ;;
2823 sh-*-rtemself*)
2824         tmake_file="sh/t-sh sh/t-elf t-rtems"
2825         tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2826         float_format=sh
2827         if test x$enable_threads = xyes; then
2828           thread_file='rtems'
2829         fi
2830         ;;
2831 sh-*-rtems*)
2832         tmake_file="sh/t-sh t-rtems"
2833         tm_file="sh/sh.h sh/rtems.h"
2834         float_format=sh
2835         if test x$enable_threads = xyes; then
2836           thread_file='rtems'
2837         fi
2838         ;;
2839 sh-*-linux*)
2840         tm_file="sh/sh.h sh/elf.h sh/linux.h"
2841         tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2842         xmake_file=x-linux
2843         gas=yes gnu_ld=yes
2844         if test x$enable_threads = xyes; then
2845                 thread_file='posix'
2846         fi
2847         float_format=sh
2848         ;;
2849 sh-*-*)
2850         float_format=sh
2851         ;;
2852 sparc-tti-*)
2853         tm_file=sparc/pbd.h
2854         xm_defines=POSIX
2855         ;;
2856 sparc64-wrs-vxworks*)
2857         tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2858         tmake_file=sparc/t-vxsparc64
2859         use_collect2=yes
2860         ;;
2861 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2862         tm_file=sparc/vxsparc.h
2863         tmake_file=sparc/t-vxsparc
2864         use_collect2=yes
2865         thread_file='vxworks'
2866         ;;
2867 sparc-*-aout*)
2868         tmake_file=sparc/t-sparcbare
2869         tm_file="sparc/aout.h libgloss.h"
2870         ;;
2871 sparc-*-netbsd*)
2872         tm_file=sparc/netbsd.h
2873         tmake_file=t-netbsd
2874         use_collect2=yes
2875         ;;
2876 sparc-*-openbsd*)
2877         # needed to unconfuse gdb
2878         tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
2879         # we need collect2 until our bug is fixed...
2880         use_collect2=yes
2881         ;;
2882 sparc-*-bsd*)
2883         tm_file="${tm_file} sparc/bsd.h"
2884         ;;
2885 sparc-*-chorusos*)
2886         tm_file="sparc/sol2.h sparc/elf.h chorus.h"
2887         tmake_file=sparc/t-chorus-elf
2888         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2889         float_format=i64
2890         case x${enable_threads} in
2891           xyes | xpthreads | xposix)
2892                 thread_file='posix'
2893                 ;;
2894         esac
2895         ;;
2896 sparc-*-elf*)
2897         tm_file="sparc/sol2.h sparc/elf.h"
2898         tmake_file=sparc/t-elf
2899         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2900         #float_format=i128
2901         float_format=i64
2902         ;;
2903 sparc-*-linux*aout*)            # Sparc's running GNU/Linux, a.out
2904         tm_file=sparc/linux-aout.h
2905         xmake_file=x-linux
2906         gnu_ld=yes
2907         ;;
2908 sparc-*-linux*libc1*)   # Sparc's running GNU/Linux, libc5
2909         xmake_file=x-linux
2910         tm_file=sparc/linux.h
2911         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
2912         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2913         gnu_ld=yes
2914         float_format=sparc
2915         ;;
2916 sparc-*-linux*)         # Sparc's running GNU/Linux, libc6
2917         xmake_file=x-linux
2918         tm_file=sparc/linux.h
2919         tmake_file="t-slibgcc-elf-ver t-linux"
2920         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2921         gnu_ld=yes
2922         if test x$enable_threads = xyes; then
2923                 thread_file='posix'
2924         fi
2925         float_format=sparc
2926         ;;
2927 sparc-*-lynxos*)
2928         if test x$gas = xyes
2929         then
2930                 tm_file=sparc/lynx.h
2931         else
2932                 tm_file=sparc/lynx-ng.h
2933         fi
2934         tmake_file=sparc/t-sunos41
2935         ;;
2936 sparc-*-rtemsaout*)
2937         tmake_file="sparc/t-sparcbare t-rtems"
2938         tm_file=sparc/rtems.h
2939         if test x$enable_threads = xyes; then
2940           thread_file='rtems'
2941         fi
2942         ;;
2943 sparc-*-rtems*|sparc-*-rtemself*)
2944         tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
2945         tmake_file="sparc/t-elf t-rtems"
2946         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2947         #float_format=i128
2948         float_format=i64
2949         if test x$enable_threads = xyes; then
2950           thread_file='rtems'
2951         fi
2952         ;;
2953 sparcv9-*-solaris2* | sparc64-*-solaris2*)
2954         if test x$gnu_ld = xyes
2955         then
2956                 tm_file=sparc/sol2-64.h
2957         else
2958                 tm_file=sparc/sol2-sld-64.h
2959         fi
2960         xm_defines=POSIX
2961         tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2962         if test x$gnu_ld = xyes; then
2963                 tmake_file="$tmake_file t-slibgcc-elf-ver"
2964         else
2965                 tmake_file="$tmake_file t-slibgcc-sld"
2966         fi
2967         extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2968         float_format=none
2969         if test x${enable_threads} = x ; then
2970             enable_threads=$have_pthread_h
2971             if test x${enable_threads} = x ; then
2972                 enable_threads=$have_thread_h
2973             fi
2974         fi
2975         if test x${enable_threads} = xyes ; then
2976             if test x${have_pthread_h} = xyes ; then
2977                 thread_file='posix'
2978             else
2979                 thread_file='solaris'
2980             fi
2981         fi
2982         ;;
2983 sparc-hal-solaris2*)
2984         xm_defines=POSIX
2985         tm_file="sparc/sol2.h sparc/hal.h"
2986         tmake_file="sparc/t-halos sparc/t-sol2"
2987         if test x$gnu_ld = xyes; then
2988                 tmake_file="$tmake_file t-slibgcc-elf-ver"
2989         else
2990                 tmake_file="$tmake_file t-slibgcc-sld"
2991         fi
2992         extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2993         case $machine in
2994         *-*-solaris2.[0-4])
2995                 float_format=i128
2996         ;;
2997         *)
2998                 float_format=none
2999                 ;;
3000         esac
3001         thread_file='solaris'
3002         ;;
3003 sparc-*-solaris2*)
3004         if test x$gnu_ld = xyes
3005         then
3006                 tm_file=sparc/sol2.h
3007         else
3008                 tm_file=sparc/sol2-sld.h
3009         fi
3010         xm_defines=POSIX
3011         tmake_file=sparc/t-sol2
3012         if test x$gnu_ld = xyes; then
3013                 tmake_file="$tmake_file t-slibgcc-elf-ver"
3014         else
3015                 tmake_file="$tmake_file t-slibgcc-sld"
3016         fi
3017         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3018         case $machine in
3019         *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3020         *-*-solaris2*)
3021                 if test x$gnu_ld = xyes
3022                 then
3023                         tm_file=sparc/sol2-64.h
3024                 else
3025                         tm_file=sparc/sol2-sld-64.h
3026                 fi
3027                 tmake_file="$tmake_file sparc/t-sol2-64"
3028                 ;;
3029         esac
3030         case $machine in
3031         *-*-solaris2.[0-4])
3032                 float_format=i128
3033                 ;;
3034         *)
3035                 float_format=none
3036                 ;;
3037         esac
3038         if test x${enable_threads} = x; then
3039             enable_threads=$have_pthread_h
3040             if test x${enable_threads} = x; then
3041                 enable_threads=$have_thread_h
3042             fi
3043         fi
3044         if test x${enable_threads} = xyes; then
3045             if test x${have_pthread_h} = xyes; then
3046                 thread_file='posix'
3047             else
3048                 thread_file='solaris'
3049             fi
3050         fi
3051         ;;
3052 sparc-*-sunos4.0*)
3053         tm_file=sparc/sunos4.h
3054         use_collect2=yes
3055         ;;
3056 sparc-*-sunos4*)
3057         tm_file=sparc/sunos4.h
3058         tmake_file=sparc/t-sunos41
3059         use_collect2=yes
3060         if test x$gas = xyes; then
3061                 tm_file="${tm_file} sparc/sun4gas.h"
3062         fi
3063         ;;
3064 sparc-*-sunos3*)
3065         tm_file=sparc/sun4o3.h
3066         use_collect2=yes
3067         ;;
3068 sparc-*-sysv4*)
3069         tm_file=sparc/sysv4.h
3070         xm_defines=POSIX
3071         tmake_file=t-svr4
3072         extra_parts="crtbegin.o crtend.o"
3073         ;;
3074 sparc-*-vxsim*)
3075         xm_defines=POSIX
3076         tm_file=sparc/vxsim.h
3077         tmake_file=sparc/t-vxsparc
3078         ;;
3079 sparclet-*-aout*)
3080         tm_file="sparc/splet.h libgloss.h"
3081         tmake_file=sparc/t-splet
3082         ;;
3083 sparclite-*-coff*)
3084         tm_file="sparc/litecoff.h libgloss.h"
3085         tmake_file=sparc/t-sparclite
3086         ;;
3087 sparclite-*-aout*)
3088         tm_file="sparc/lite.h aoutos.h libgloss.h"
3089         tmake_file=sparc/t-sparclite
3090         ;;
3091 sparclite-*-elf*)
3092         tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3093         tmake_file=sparc/t-sparclite
3094         extra_parts="crtbegin.o crtend.o"
3095         ;;
3096 sparc86x-*-aout*)
3097         tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3098         tmake_file=sparc/t-sp86x
3099         ;;
3100 sparc86x-*-elf*)
3101         tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3102         tmake_file=sparc/t-sp86x
3103         extra_parts="crtbegin.o crtend.o"
3104         ;;
3105 sparc64-*-aout*)
3106         tm_file=sparc/sp64-aout.h
3107         ;;
3108 sparc64-*-elf*)
3109         tm_file=sparc/sp64-elf.h
3110         extra_parts="crtbegin.o crtend.o"
3111         ;;
3112 sparc64-*-linux*)               # 64-bit Sparc's running GNU/Linux
3113         tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64"
3114         tm_file=sparc/linux64.h
3115         xmake_file=x-linux
3116         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3117         gnu_ld=yes
3118         if test x$enable_threads = xyes; then
3119                 thread_file='posix'
3120         fi
3121         float_format=sparc
3122         ;;
3123 stormy16-*-elf)
3124         tmake_file="stormy16/t-stormy16"
3125         extra_parts="crtbegin.o crtend.o"
3126         ;;
3127 strongarm-*-elf*)
3128         tm_file="arm/strongarm-elf.h elfos.h arm/unknown-elf.h arm/elf.h"
3129         tmake_file=arm/t-strongarm-elf
3130         out_file=arm/arm.c
3131         md_file=arm/arm.md
3132         ;;
3133 strongarm-*-coff*)
3134         tm_file=arm/strongarm-coff.h
3135         tmake_file=arm/t-strongarm-coff
3136         out_file=arm/arm.c
3137         md_file=arm/arm.md
3138         ;;
3139 strongarm-*-pe)
3140         tm_file=arm/strongarm-pe.h
3141         tmake_file=arm/t-strongarm-pe
3142         out_file=arm/arm.c
3143         md_file=arm/arm.md
3144         extra_objs=pe.o
3145         ;;
3146 thumb*-*-*)
3147         { echo "config.gcc: error:
3148 *** The Thumb targets have been deprecated.  The equivalent
3149 *** ARM based toolchain can now generate Thumb instructions
3150 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3151         ;;
3152 v850-*-rtems*)
3153         cpu_type=v850
3154         tm_file="v850/rtems.h"
3155         tmake_file="v850/t-v850 t-rtems"
3156         if test x$stabs = xyes
3157         then
3158                 tm_file="${tm_file} dbx.h"
3159         fi
3160         use_collect2=no
3161         c_target_objs="v850-c.o"
3162         cxx_target_objs="v850-c.o"
3163         ;;
3164 v850-*-*)
3165         target_cpu_default="TARGET_CPU_generic"
3166         cpu_type=v850
3167         tm_file="v850/v850.h"
3168         tmake_file=v850/t-v850
3169         if test x$stabs = xyes
3170         then
3171                 tm_file="${tm_file} dbx.h"
3172         fi
3173         use_collect2=no
3174         c_target_objs="v850-c.o"
3175         cxx_target_objs="v850-c.o"
3176         ;;
3177 vax-*-bsd*)                     # VAXen running BSD
3178         use_collect2=yes
3179         float_format=vax
3180         ;;
3181 vax-*-sysv*)                    # VAXen running system V
3182         tm_file="${tm_file} vax/vaxv.h"
3183         xm_defines=POSIX
3184         float_format=vax
3185         ;;
3186 vax-*-netbsd*)
3187         tm_file="${tm_file} netbsd.h vax/netbsd.h"
3188         tmake_file=t-netbsd
3189         float_format=vax
3190         use_collect2=yes
3191         ;;
3192 vax-*-openbsd*)
3193         tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3194         float_format=vax
3195         use_collect2=yes
3196         ;;
3197 vax-*-ultrix*)                  # VAXen running ultrix
3198         tm_file="${tm_file} vax/ultrix.h"
3199         float_format=vax
3200         ;;
3201 vax-*-vms*)                     # VAXen running VMS
3202         xm_file=vax/xm-vms.h
3203         tm_file=vax/vms.h
3204         float_format=vax
3205         ;;
3206 vax-*-*)                        # VAX default entry
3207         float_format=vax
3208         ;;
3209 we32k-att-sysv*)
3210         xm_defines=POSIX
3211         use_collect2=yes
3212         ;;
3213 xscale-*-elf)
3214         tm_file="arm/xscale-elf.h elfos.h arm/unknown-elf.h arm/elf.h"
3215         tmake_file=arm/t-xscale-elf
3216         out_file=arm/arm.c
3217         md_file=arm/arm.md
3218         ;;
3219 xscale-*-coff)
3220         tm_file=arm/xscale-coff.h
3221         tmake_file=arm/t-xscale-coff
3222         out_file=arm/arm.c
3223         md_file=arm/arm.md
3224         ;;
3225 *)
3226         echo "Configuration $machine not supported" 1>&2
3227         exit 1
3228         ;;
3229 esac
3230
3231 case $machine in
3232 *-*-sysv*)
3233         install_headers_dir=install-headers-cpio
3234         ;;
3235 esac
3236
3237 # Distinguish i[34567]86
3238 # Also, do not run mips-tfile on MIPS if using gas.
3239 # Process --with-cpu= for PowerPC/rs6000
3240 target_cpu_default2=
3241 case $machine in
3242 i486-*-*)
3243         target_cpu_default2=1
3244         ;;
3245 i586-*-*)
3246         case $target_alias in
3247                 k6-*)
3248                         target_cpu_default2=4
3249                         ;;
3250                 *)
3251                         target_cpu_default2=2
3252                         ;;
3253         esac
3254         ;;
3255 i686-*-* | i786-*-*)
3256         case $target_alias in
3257                 athlon-*)
3258                         target_cpu_default2=5
3259                         ;;
3260                 *)
3261                         target_cpu_default2=3
3262                         ;;
3263         esac
3264         ;;
3265 alpha*-*-*)
3266         case $machine in
3267                 alphaev6[78]*)
3268                         target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3269                         ;;
3270                 alphaev6*)
3271                         target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3272                         ;;
3273                 alphapca56*)
3274                         target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3275                         ;;
3276                 alphaev56*)
3277                         target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3278                         ;;
3279                 alphaev5*)
3280                         target_cpu_default2="MASK_CPU_EV5"
3281                         ;;
3282         esac
3283
3284         if test x$gas = xyes
3285         then
3286                 if test "$target_cpu_default2" = ""
3287                 then
3288                         target_cpu_default2="MASK_GAS"
3289                 else
3290                         target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3291                 fi
3292         fi
3293         ;;
3294 arm*-*-*)
3295         case "x$with_cpu" in
3296                 x)
3297                         # The most generic
3298                         target_cpu_default2="TARGET_CPU_generic"
3299                         ;;
3300
3301                 # Distinguish cores, and major variants
3302                 # arm7m doesn't exist, but D & I don't affect code
3303                 xarm[236789] | xarm250 | xarm[67][01]0 \
3304                 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3305                 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3306                 | xxscale \
3307                 | xstrongarm | xstrongarm110 | xstrongarm1100)
3308                         target_cpu_default2="TARGET_CPU_$with_cpu"
3309                         ;;
3310
3311                 xyes | xno)
3312                         echo "--with-cpu must be passed a value" 1>&2
3313                         exit 1
3314                         ;;
3315
3316                 *)
3317                         if test x$pass2done = xyes
3318                         then
3319                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3320                                 exit 1
3321                         fi
3322                         ;;
3323         esac
3324         ;;
3325
3326 hppa*-*-* | parisc*-*-*)
3327         if test x$gas = xyes
3328         then
3329                 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3330         fi
3331         ;;
3332
3333 mips*-*-ecoff* | mips*-*-elf*)
3334         if test x$gas = xyes
3335         then
3336                 if test x$gnu_ld = xyes
3337                 then
3338                         target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3339                 else
3340                         target_cpu_default2="MASK_GAS"
3341                 fi
3342         fi
3343         ;;
3344 mips*-*-*)
3345         if test x$gas = xyes
3346         then
3347                 target_cpu_default2="MASK_GAS"
3348         fi
3349         ;;
3350 powerpc*-*-* | rs6000-*-*)
3351         case "x$with_cpu" in
3352                 x)
3353                         ;;
3354
3355                 xcommon | xpower | xpower2 | xpowerpc | xrios \
3356                   | xrios1 | xrios2 | xrsc | xrsc1 \
3357                   | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3358                   | xec603e | x740 | x750 | x401 \
3359                   | x403 | x505 | x801 | x821 | x823 | x860)
3360                         target_cpu_default2="\\\"$with_cpu\\\""
3361                         ;;
3362
3363                 xyes | xno)
3364                         echo "--with-cpu must be passed a value" 1>&2
3365                         exit 1
3366                         ;;
3367
3368                 *)
3369                         if test x$pass2done = xyes
3370                         then
3371                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3372                                 exit 1
3373                         fi
3374                         ;;
3375         esac
3376         ;;
3377 sparc*-*-*)
3378         case ".$with_cpu" in
3379                 .)
3380                         target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3381                         ;;
3382                 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3383                         target_cpu_default2="TARGET_CPU_$with_cpu"
3384                         ;;
3385                 *)
3386                         if test x$pass2done = xyes
3387                         then
3388                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3389                                 exit 1
3390                         fi
3391                         ;;
3392         esac
3393         ;;
3394 esac
3395
3396 if test "$target_cpu_default2" != ""
3397 then
3398         if test "$target_cpu_default" != ""
3399         then
3400                 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3401         else
3402                 target_cpu_default=$target_cpu_default2
3403         fi
3404 fi
3405
3406 # Save data on machine being used to compile GCC in build_xm_file.
3407 # Save data on host machine in vars host_xm_file and host_xmake_file.
3408 if test x$pass1done = x
3409 then
3410         if test x$xm_file != x
3411         then build_xm_file=$xm_file
3412         fi
3413         build_xm_defines=$xm_defines
3414         build_install_headers_dir=$install_headers_dir
3415         build_exeext=$exeext
3416         pass1done=yes
3417 else
3418         if test x$pass2done = x
3419         then
3420                 if test x$xm_file != x
3421                 then host_xm_file=$xm_file
3422                 fi
3423                 host_xm_defines=$xm_defines
3424                 host_xmake_file="$xmake_file"
3425                 host_truncate_target=$truncate_target
3426                 host_extra_gcc_objs=$extra_gcc_objs
3427                 host_extra_objs=$extra_host_objs
3428                 host_exeext=$exeext
3429                 pass2done=yes
3430         fi
3431 fi