OSDN Git Service

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