OSDN Git Service

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