OSDN Git Service

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