OSDN Git Service

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