OSDN Git Service

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