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