OSDN Git Service

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