OSDN Git Service

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