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