OSDN Git Service

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