OSDN Git Service

2002-02-06 Aldy Hernandez <aldyh@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3
4 #This file is part of GCC.
5
6 #GCC is free software; you can redistribute it and/or modify it under
7 #the terms of the GNU General Public License as published by the Free
8 #Software Foundation; either version 2, or (at your option) any later
9 #version.
10
11 #GCC is distributed in the hope that it will be useful, but WITHOUT
12 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 #for more details.
15
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING.  If not, write to the Free
18 #Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19 #02111-1307, USA.
20
21 # This is the GCC build-, host- and target-specific configuration file
22 # where a configuration type, as recognized and generated by config.bfd,
23 # is mapped to different system-specific definitions and files.  This is
24 # invoked by the autoconf-generated configure script, called for build,
25 # host and target in that order, setting ${machine} to each.  Putting it
26 # in a separate shell file lets us skip running autoconf when modifying
27 # build-, host- and target-specific information.
28
29 # This file switches on the shell variable ${machine}, and also uses the
30 # following shell variables:
31 #
32 #  with_*               Various variables as set by configure.
33 #
34 #  enable_threads_flag  Either the name, yes or no depending on whether
35 #                       threads support was requested.
36 #
37 #  gas_flag             Either yes or no depending on whether GNU as was
38 #                       requested.
39 #
40 #  gnu_ld_flag          Either yes or no depending on whether GNU ld was
41 #                       requested.
42
43 # This file sets the following shell variables for use by the
44 # autoconf-generated configure script:
45 #
46 #  cpu_type             The name of the cpu, if different from machine.
47 #
48 #  tm_file              A list of target macro files, if different from
49 #                       "$cpu_type/$cpu_type.h". Usually it's constructed
50 #                       per target in a way like this:
51 #                       tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
52 #                       Note that the preferred order is:
53 #                       - specific target header "${cpu_type}/${cpu_type.h}"
54 #                       - generic headers like dbxelf.h elfos.h, netware.h, etc.
55 #                       - specializing target headers like ${cpu_type.h}/elf.h
56 #                       This helps to keep OS specific stuff out of the CPU
57 #                       defining header ${cpu_type}/${cpu_type.h}.
58 #
59 #  tm_p_file            Location of file with declarations for functions
60 #                       in $out_file.
61 #
62 #  out_file             The name of the machine description C support
63 #                       file, if different from "$cpu_type/$cpu_type.c".
64 #
65 #  md_file              The name of the machine-description file, if
66 #                       different from "$cpu_type/$cpu_type.md".
67 #
68 #  tmake_file           A list of machine-description-specific
69 #                       makefile-fragments, if different from
70 #                       "$cpu_type/t-$cpu_type".
71 #
72 #  float_format         Set to the symbolic name for the floating-point
73 #                       formats used for this machine, if different from
74 #                       "i64".  Used to derive a header file name to
75 #                       include, like "vax" for "float-vax.h".  If no such
76 #                       file is wanted, set to "none".
77 #
78 #  extra_objs           List of extra objects that should be linked into
79 #                       the compiler proper (cc1, cc1obj, cc1plus)
80 #                       depending on target.
81 #
82 #  extra_headers        List of used header files from the directory
83 #                       config/${cpu_type}.
84 #
85 #  host_xmake_file      List of host-specific makefile-fragments.
86 #
87 #  extra_passes         List of extra executables compiled for this target
88 #                       machine, used for compiling from source to object.
89 #
90 #  extra_parts          List of extra object files that should be compiled
91 #                       for this target machine.
92 #
93 #  extra_programs       Like extra_passes, but these are used when linking.
94 #
95 #  host_extra_objs      List of extra host-dependent objects that should
96 #                       be linked into the compiler proper.
97 #
98 #  host_extra_gcc_objs  List of extra host-dependent objects that should
99 #                       be linked into the gcc driver.
100 #
101 #  c_target_objs        List of extra target-dependent objects that be
102 #                       linked into the C compiler only.
103 #
104 #  cxx_target_objs      List of extra target-dependent objects that be
105 #                       linked into the C++ compiler only.
106 #
107 #  build_xm_defines     List of macros to define when compiling for the
108 #                       build machine.
109 #
110 #  build_xm_file        List of files to include when compiling for the
111 #                       build machine.
112 #
113 #  host_xm_defines      List of macros to define when compiling for the
114 #                       host machine.
115 #
116 #  host_xm_file         List of files to include when compiling for the
117 #                       host machine.
118 #
119 #  xm_defines           List of macros to define when compiling for the
120 #                       target machine.
121 #
122 #  xm_file              List of files to include when compiling for the
123 #                       target machine.
124 #
125 #  use_collect2         Set to yes or no, depending on whether collect2
126 #                       will be used.
127 #
128 #  target_cpu_default   Set to override the default target model.
129 #
130 #  build_install_headers_dir
131 #                       Target to use when installing header files.
132 #
133 #  host_truncate_target
134 #                       Non-empty if the target name should be truncated
135 #                       on this host, due to filename length issues.
136 #
137 #  gdb_needs_out_file_path
138 #                       Set to yes if gdb needs a dir command with
139 #                       `dirname $out_file`.
140 #
141 #  build_exeext         Set to the suffix, if the build machine requires
142 #                       executables to have a file name suffix.
143 #
144 #  host_exeext          Set to the suffix, if the host machine requires
145 #                       executables to have a file name suffix.
146 #
147 #  thread_file          Set to control which thread package to use.
148 #
149 #  gas                  Set to yes or no depending on whether the target
150 #                       system normally uses GNU as.
151
152 # The following variables are used in each case-construct to build up the
153 # outgoing variables:
154 #
155 #  xmake_file           Makefile-fragment when this system is as a host,
156 #                       for host_xmake_file.
157 #
158 #  extra_host_objs      List of extra objects that should be linked into
159 #                       the compiler proper when this system is a host,
160 #                       for host_extra_objs.
161 #
162 #  install_headers_dir  Makefile-target for how the header file directory
163 #                       is installed, when this system is a build system,
164 #                       for build_install_headers_dir.
165 #
166 #  truncate_target      Non-empty if the target name should be truncated
167 #                       when this system is a host, due to filename length
168 #                       issues.  For host_truncate_target.
169 #
170 #  exeext               The suffix for executables on this system.
171 #
172 #  gnu_ld               Set to yes or no depending on whether the target
173 #                       system normally uses GNU ld.
174
175 out_file=
176 xmake_file=
177 tmake_file=
178 extra_headers=
179 extra_passes=
180 extra_parts=
181 extra_programs=
182 extra_objs=
183 extra_host_objs=
184 extra_gcc_objs=
185 c_target_objs=
186 cxx_target_objs=
187 xm_defines=
188 float_format=
189 # Set this to force installation and use of collect2.
190 use_collect2=
191 # Set this to override the default target model.
192 target_cpu_default=
193 # Set this to control how the header file directory is installed.
194 install_headers_dir=install-headers-tar
195 # Set this if directory names should be truncated to 14 characters.
196 truncate_target=
197 # Set this if gdb needs a dir command with `dirname $out_file`
198 gdb_needs_out_file_path=
199 # Set this if the build machine requires executables to have a
200 # file name suffix.
201 exeext=
202 # Set this to control which thread package will be used.
203 thread_file=
204 # Reinitialize these from the flag values every loop pass, since some
205 # configure entries modify them.
206 gas="$gas_flag"
207 gnu_ld="$gnu_ld_flag"
208 enable_threads=$enable_threads_flag
209
210 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
211 # updated in each machine entry.  Also set default extra_headers for some
212 # machines.
213 tm_p_file=
214 cpu_type=`echo $machine | sed 's/-.*$//'`
215 case $machine in
216 alpha*-*-*)
217         cpu_type=alpha
218         ;;
219 strongarm*-*-*)
220         cpu_type=arm
221         ;;
222 arm*-*-*)
223         cpu_type=arm
224         ;;
225 xscale-*-*)
226         cpu_type=arm
227         ;;
228 c*-convex-*)
229         cpu_type=convex
230         extra_headers=proto.h
231         ;;
232 i[34567]86-*-*)
233         cpu_type=i386
234         ;;
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 xm-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         xmake_file=pa/x-pa-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         xmake_file=i386/x-beos
1107         extra_parts='crtbegin.o crtend.o'
1108         ;;
1109 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1110         tm_file="i386/386bsd.h i386/bsd386.h"
1111 #       tmake_file=t-libc-ok
1112         ;;
1113 i[34567]86-*-bsd*)
1114         tm_file=i386/386bsd.h
1115 #       tmake_file=t-libc-ok
1116 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1117 #       use_collect2=yes
1118         ;;
1119 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1120         tm_file=i386/freebsd-aout.h
1121         tmake_file=t-freebsd
1122         ;;
1123 i[34567]86-*-freebsd*)
1124         tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h ${fbsd_tm_file} i386/freebsd.h"
1125         ;;
1126 i[34567]86-*-netbsdelf*)
1127         xm_defines=POSIX
1128         tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/netbsd-elf.h"
1129         tmake_file=t-netbsd
1130         gnu_ld=yes
1131         float_format=i386
1132         ;;
1133 i[34567]86-*-netbsd*)
1134         tm_file=i386/netbsd.h
1135         tmake_file=t-netbsd
1136         use_collect2=yes
1137         ;;
1138 i[34567]86-*-openbsd*)
1139         # needed to unconfuse gdb
1140         tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1141         # we need collect2 until our bug is fixed...
1142         use_collect2=yes
1143         ;;
1144 i[34567]86-*-coff*)
1145         tm_file=i386/i386-coff.h
1146         ;;
1147 i[34567]86-*-isc*)              # 80386 running ISC system
1148         xm_defines=POSIX
1149         if test x$gas = xyes -a x$stabs = xyes
1150         then
1151                 tm_file=i386/iscdbx.h
1152                 tmake_file=i386/t-svr3dbx
1153                 extra_parts="svr3.ifile svr3z.ifile"
1154         else
1155                 tm_file=i386/isccoff.h
1156                 tmake_file=i386/t-crtstuff
1157                 extra_parts="crtbegin.o crtend.o"
1158         fi
1159         install_headers_dir=install-headers-cpio
1160         ;;
1161 i[34567]86-*-linux*oldld*)      # Intel 80386's running GNU/Linux
1162                                 # with a.out format using
1163                                 # pre BFD linkers
1164         tmake_file="t-linux-aout i386/t-crtstuff"
1165         tm_file=i386/linux-oldld.h
1166         gnu_ld=yes
1167         float_format=i386
1168         ;;
1169 i[34567]86-*-linux*aout*)       # Intel 80386's running GNU/Linux
1170                                 # with a.out format
1171         tmake_file="t-linux-aout i386/t-crtstuff"
1172         tm_file=i386/linux-aout.h
1173         gnu_ld=yes
1174         float_format=i386
1175         ;;
1176 i[34567]86-*-linux*libc1)       # Intel 80386's running GNU/Linux
1177                                 # with ELF format using the
1178                                 # GNU/Linux C library 5
1179         tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1180         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1181         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1182         gnu_ld=yes
1183         float_format=i386
1184         if test x$enable_threads = xyes; then
1185                 thread_file='single'
1186         fi
1187         ;;
1188 i[34567]86-*-linux*)    # Intel 80386's running GNU/Linux
1189                         # with ELF format using glibc 2
1190                         # aka GNU/Linux C library 6
1191         tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1192         tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1193         extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1194         gnu_ld=yes
1195         float_format=i386
1196         if test x$enable_threads = xyes; then
1197                 thread_file='posix'
1198         fi
1199         ;;
1200 x86_64-*-linux*)
1201         tm_file="i386/biarch64.h i386/i386.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1202                  i386/x86-64.h i386/linux64.h"
1203         tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1204         extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1205         gnu_ld=yes
1206         float_format=i386
1207         if test x$enable_threads = xyes; then
1208                 thread_file='posix'
1209         fi
1210         ;;
1211 i[34567]86-*-gnu*)
1212         float_format=i386
1213         ;;
1214 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1215         echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1216         exit 1
1217         ;;
1218 i[34567]86-pc-msdosdjgpp*)
1219         xm_file=i386/xm-djgpp.h
1220         tm_file=i386/djgpp.h
1221         xmake_file=i386/x-djgpp
1222         gnu_ld=yes
1223         gas=yes
1224         exeext=.exe
1225         float_format=none
1226         case $host in *pc-msdosdjgpp*)
1227                 target_alias=djgpp
1228                 ;;
1229         esac
1230         ;;
1231 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1232         tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1233         tmake_file=t-libc-ok
1234         gnu_ld=yes
1235         gas=yes
1236         ;;
1237 i[34567]86-*-lynxos*)
1238         if test x$gas = xyes
1239         then
1240                 tm_file=i386/lynx.h
1241         else
1242                 tm_file=i386/lynx-ng.h
1243         fi
1244         ;;
1245 i[34567]86-*-mach*)
1246         tm_file=i386/mach.h
1247 #       tmake_file=t-libc-ok
1248         use_collect2=yes
1249         ;;
1250 i[34567]86-*-osfrose*)          # 386 using OSF/rose
1251         if test x$elf = xyes
1252         then
1253                 tm_file=i386/osfelf.h
1254                 use_collect2=
1255         else
1256                 tm_file=i386/osfrose.h
1257                 use_collect2=yes
1258         fi
1259         tmake_file=i386/t-osf
1260         extra_objs=halfpic.o
1261         ;;
1262 i[34567]86-go32-rtems*)
1263         tm_file=i386/djgpp-rtems.h
1264         tmake_file=t-rtems
1265         if test x$enable_threads = xyes; then
1266           thread_file='rtems'
1267         fi
1268         ;;
1269 i[34567]86-*-rtemscoff*)
1270         tm_file=i386/rtems.h
1271         tmake_file=t-rtems
1272         if test x$enable_threads = xyes; then
1273           thread_file='rtems'
1274         fi
1275         ;;
1276 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1277         tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/rtemself.h rtems.h"
1278         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1279         tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1280         if test x$enable_threads = xyes; then
1281           thread_file='rtems'
1282         fi
1283         ;;
1284 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1285         xm_defines=POSIX
1286         install_headers_dir=install-headers-cpio
1287         tm_file=i386/sco5.h
1288         if test x$gas = xyes
1289         then
1290                 tm_file="usegas.h ${tm_file}"
1291                 tmake_file=i386/t-sco5gas
1292         else
1293                 tmake_file=i386/t-sco5
1294         fi
1295         extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1296         ;;
1297 i[34567]86-*-solaris2*)
1298         xm_defines="POSIX SMALL_ARG_MAX"
1299         tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sol2.h"
1300         if test x$gas = xyes; then
1301                 # Only needed if gas does not support -s
1302                 tm_file="i386/sol2gas.h ${tm_file}"
1303         fi
1304         tmake_file="i386/t-sol2 t-svr4"
1305         if test x$gnu_ld = xyes; then
1306                 tmake_file="$tmake_file t-slibgcc-elf-ver"
1307         else
1308                 tmake_file="$tmake_file t-slibgcc-sld"
1309         fi
1310         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1311         if test x${enable_threads} = x; then
1312             enable_threads=$have_pthread_h
1313             if test x${enable_threads} = x; then
1314                 enable_threads=$have_thread_h
1315             fi
1316         fi
1317         if test x${enable_threads} = xyes; then
1318             if test x${have_pthread_h} = xyes; then
1319                 thread_file='posix'
1320             else
1321                 thread_file='solaris'
1322             fi
1323         fi
1324         ;;
1325 i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
1326        xm_defines=POSIX
1327        tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1328        if test x$stabs = xyes
1329        then
1330                tm_file="${tm_file} dbx.h"
1331        fi
1332        tmake_file="i386/t-crtpic t-svr4"
1333        extra_parts="crtbegin.o crtend.o"
1334        if test x$enable_threads = xyes; then
1335                thread_file='posix'
1336        fi
1337        ;;
1338 i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
1339         xm_defines="POSIX SMALL_ARG_MAX"
1340         tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h"
1341         if test x$stabs = xyes
1342         then
1343                 tm_file="${tm_file} dbx.h"
1344         fi
1345         tmake_file="i386/t-crtpic t-svr4"
1346         extra_parts="crtbegin.o crtend.o"
1347         ;;
1348 i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
1349         xm_defines=POSIX
1350         tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h i386/udk.h"
1351         tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1352         extra_parts="crtbegin.o crtend.o"
1353         install_headers_dir=install-headers-cpio
1354         ;;
1355 i[34567]86-*-osf1*)             # Intel 80386's running OSF/1 1.3+
1356         xm_file=i386/xm-osf1elf.h
1357         xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1358         if test x$stabs = xyes
1359         then
1360                 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/osf1elf.h i386/osf1elfgdb.h"
1361         else
1362                 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/osf1elf.h"
1363         fi
1364         tmake_file=i386/t-osf1elf
1365         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1366         ;;
1367 i[34567]86-*-sysv*)             # Intel 80386's running system V
1368         xm_defines=POSIX
1369         if test x$gas = xyes
1370         then
1371                 if test x$stabs = xyes
1372                 then
1373                         tm_file=i386/svr3dbx.h
1374                         tmake_file=i386/t-svr3dbx
1375                         extra_parts="svr3.ifile svr3z.rfile"
1376                 else
1377                         tm_file=i386/svr3gas.h
1378                         extra_parts="crtbegin.o crtend.o"
1379                         tmake_file=i386/t-crtstuff
1380                 fi
1381         else
1382                 tm_file=i386/sysv3.h
1383                 extra_parts="crtbegin.o crtend.o"
1384                 tmake_file=i386/t-crtstuff
1385         fi
1386         tmake_file="$tmake_file i386/t-crtpic"
1387         ;;
1388 i386-*-vsta)                    # Intel 80386's running VSTa kernel
1389         xm_file=i386/xm-vsta.h
1390         tm_file=i386/vsta.h
1391         ;;
1392 i[34567]86-*-win32)
1393         xm_defines=POSIX
1394         xm_file=i386/xm-cygwin.h
1395         float_format=i386
1396         tmake_file=i386/t-cygwin
1397         tm_file=i386/win32.h
1398         extra_objs=winnt.o
1399         if test x$enable_threads = xyes; then
1400                 thread_file='win32'
1401         fi
1402         exeext=.exe
1403         ;;
1404 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1405         xm_defines=POSIX
1406         xm_file=i386/xm-cygwin.h
1407         float_format=i386
1408         tmake_file=i386/t-cygwin
1409         tm_file=i386/cygwin.h
1410         extra_objs=winnt.o
1411         if test x$enable_threads = xyes; then
1412                 thread_file='win32'
1413         fi
1414         exeext=.exe
1415         ;;
1416 i[34567]86-*-mingw32*)
1417         tm_file=i386/mingw32.h
1418         float_format=i386
1419         xm_defines=POSIX
1420         xm_file=i386/xm-mingw32.h
1421         tmake_file="i386/t-cygwin i386/t-mingw32"
1422         extra_objs=winnt.o
1423         if test x$enable_threads = xyes; then
1424                 thread_file='win32'
1425         fi
1426         exeext=.exe
1427         case $machine in
1428                 *mingw32crt*)
1429                         tm_file="${tm_file} i386/crtdll.h"
1430                         ;;
1431                 *minwg32msv* | *mingw32*)
1432                         ;;
1433         esac
1434         ;;
1435 i[34567]86-*-uwin*)
1436         tm_file=i386/uwin.h
1437         tmake_file="i386/t-cygwin i386/t-uwin"
1438         extra_objs=winnt.o
1439         if test x$enable_threads = xyes; then
1440                 thread_file='win32'
1441         fi
1442         exeext=.exe
1443         ;;
1444 i[34567]86-*-interix3*)
1445         tm_file="i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h"
1446         xm_file="i386/xm-i386-interix.h xm-interix.h"
1447         xm_defines=POSIX
1448         tmake_file="i386/t-interix"
1449         extra_objs=interix.o
1450         xmake_file="x-interix x-interix3"
1451         if test x$enable_threads = xyes ; then
1452                 thread_file='posix'
1453         fi
1454         if test x$stabs = xyes ; then
1455                 tm_file="${tm_file} dbxcoff.h"
1456         fi
1457         ;;
1458 i[34567]86-*-interix*)
1459         tm_file="i386/i386-interix.h interix.h"
1460         xm_file="i386/xm-i386-interix.h xm-interix.h"
1461         xm_defines=POSIX
1462         tmake_file="t-interix i386/t-interix"
1463         extra_objs=interix.o
1464         if test x$enable_threads = xyes ; then
1465                 thread_file='posix'
1466         fi
1467         if test x$stabs = xyes ; then
1468                 tm_file="${tm_file} dbxcoff.h"
1469         fi
1470         ;;
1471 i[34567]86-dg-dgux*)
1472         xm_defines=POSIX
1473         tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/dgux.h"
1474         tmake_file=i386/t-dgux
1475         install_headers_dir=install-headers-cpio
1476       ;;
1477 i860-alliant-*)         # Alliant FX/2800
1478         tm_file="${tm_file} dbxelf.h elfos.h svr4.h i860/sysv4.h i860/fx2800.h"
1479         tmake_file=i860/t-fx2800
1480         extra_parts="crtbegin.o crtend.o"
1481         ;;
1482 i860-*-bsd*)
1483         tm_file="${tm_file} i860/bsd.h"
1484         if test x$gas = xyes
1485         then
1486                 tm_file="${tm_file} i860/bsd-gas.h"
1487         fi
1488         use_collect2=yes
1489         ;;
1490 i860-*-mach*)
1491         tm_file="${tm_file} i860/mach.h"
1492         tmake_file=t-libc-ok
1493         ;;
1494 i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
1495         tm_file="${tm_file} svr3.h i860/paragon.h"
1496         xm_defines=POSIX
1497         ;;
1498 i860-*-sysv3*)
1499         tm_file="${tm_file} svr3.h i860/sysv3.h"
1500         xm_defines=POSIX
1501         extra_parts="crtbegin.o crtend.o"
1502         ;;
1503 i860-*-sysv4*)
1504         tm_file="${tm_file} dbxelf.h elfos.h svr4.h i860/sysv4.h"
1505         xm_defines=POSIX
1506         tmake_file=t-svr4
1507         extra_parts="crtbegin.o crtend.o"
1508         ;;
1509 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1510         tm_file="${tm_file} i960/vx960.h"
1511         tmake_file=i960/t-vxworks960
1512         use_collect2=yes
1513         thread_file='vxworks'
1514         c_target_objs="i960-c.o"
1515         cxx_target_objs="i960-c.o"
1516         ;;
1517 i960-wrs-vxworks5* | i960-wrs-vxworks)
1518         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1519         tmake_file=i960/t-vxworks960
1520         use_collect2=yes
1521         thread_file='vxworks'
1522         c_target_objs="i960-c.o"
1523         cxx_target_objs="i960-c.o"
1524         ;;
1525 i960-wrs-vxworks*)
1526         tm_file="${tm_file} i960/vx960.h"
1527         tmake_file=i960/t-vxworks960
1528         use_collect2=yes
1529         thread_file='vxworks'
1530         c_target_objs="i960-c.o"
1531         cxx_target_objs="i960-c.o"
1532         ;;
1533 i960-*-coff*)
1534         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1535         tmake_file=i960/t-960bare
1536         c_target_objs="i960-c.o"
1537         cxx_target_objs="i960-c.o"
1538         ;;
1539 i960-*-rtems)
1540         tmake_file="i960/t-960bare t-rtems"
1541         tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1542         if test x$enable_threads = xyes; then
1543           thread_file='rtems'
1544         fi
1545         c_target_objs="i960-c.o"
1546         cxx_target_objs="i960-c.o"
1547         ;;
1548 i960-*-*)                       # Default i960 environment.
1549         use_collect2=yes
1550         tmake_file=i960/t-960bare
1551         c_target_objs="i960-c.o"
1552         cxx_target_objs="i960-c.o"
1553         ;;
1554 ia64*-*-aix*)
1555         tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/aix.h"
1556         tmake_file="ia64/t-ia64 ia64/t-aix"
1557         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1558         ;;
1559 ia64*-*-elf*)
1560         tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1561         tmake_file="ia64/t-ia64"
1562         target_cpu_default="0"
1563         if test x$gas = xyes
1564         then
1565                 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1566         fi
1567         if test x$gnu_ld = xyes
1568         then
1569                 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1570         fi
1571         float_format=i386
1572         ;;
1573 ia64*-*-freebsd*)
1574         tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/freebsd.h"
1575         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1576         tmake_file="${tmake_file} ia64/t-ia64"
1577         float_format=i386
1578         ;;
1579 ia64*-*-linux*)
1580         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1581         tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1582         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1583         if test x$enable_threads = xyes; then
1584                 thread_file='posix'
1585         fi
1586         float_format=i386
1587         ;;
1588 ia64*-*-hpux*)
1589         tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1590         tmake_file="ia64/t-ia64 ia64/t-hpux"
1591         target_cpu_default="MASK_GNU_AS"
1592         if test x$enable_threads = xyes; then
1593                 thread_file='posix'
1594         fi
1595         float_format=i386
1596         ;;
1597 m32r-*-elf*)
1598         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1599         extra_parts="crtinit.o crtfini.o"
1600         ;;
1601 # m68hc11 and m68hc12 share the same machine description.
1602 m68hc11-*-*|m6811-*-*)
1603         tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1604         tm_p_file="m68hc11/m68hc11-protos.h"
1605         md_file="m68hc11/m68hc11.md"
1606         out_file="m68hc11/m68hc11.c"
1607         tmake_file="m68hc11/t-m68hc11-gas"
1608         ;;
1609 m68hc12-*-*|m6812-*-*)
1610         tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1611         tm_p_file="m68hc11/m68hc11-protos.h"
1612         md_file="m68hc11/m68hc11.md"
1613         out_file="m68hc11/m68hc11.c"
1614         tmake_file="m68hc11/t-m68hc11-gas"
1615         ;;
1616 m68000-convergent-sysv*)
1617         tm_file=m68k/ctix.h
1618         xm_defines=POSIX
1619         use_collect2=yes
1620         ;;
1621 m68000-hp-bsd*)                 # HP 9000/200 running BSD
1622         tm_file=m68k/hp2bsd.h
1623         use_collect2=yes
1624         ;;
1625 m68000-hp-hpux*)                # HP 9000 series 300
1626         xm_defines=POSIX
1627         if test x$gas = xyes
1628         then
1629                 tm_file=m68k/hp310g.h
1630         else
1631                 tm_file=m68k/hp310.h
1632         fi
1633         tmake_file=m68k/t-hp320
1634         install_headers_dir=install-headers-cpio
1635         use_collect2=yes
1636         ;;
1637 m68000-sun-sunos3*)
1638         tm_file=m68k/sun2.h
1639         use_collect2=yes
1640         ;;
1641 m68000-sun-sunos4*)
1642         tm_file=m68k/sun2o4.h
1643         use_collect2=yes
1644         ;;
1645 m68000-att-sysv*)
1646         xm_defines=POSIX
1647         if test x$gas = xyes
1648         then
1649                 tm_file=m68k/3b1g.h
1650         else
1651                 tm_file=m68k/3b1.h
1652         fi
1653         use_collect2=yes
1654         ;;
1655 m68k-apple-aux*)                # Apple Macintosh running A/UX
1656         xm_defines=POSIX
1657         tmake_file=m68k/t-aux
1658         install_headers_dir=install-headers-cpio
1659         extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1660         tm_file=
1661         if test "$gnu_ld" = yes
1662         then
1663                 tm_file="${tm_file} m68k/auxgld.h"
1664         else
1665                 tm_file="${tm_file} m68k/auxld.h"
1666         fi
1667         if test "$gas" = yes
1668         then
1669                 tm_file="${tm_file} m68k/auxgas.h"
1670         else
1671                 tm_file="${tm_file} m68k/auxas.h"
1672         fi
1673         tm_file="${tm_file} m68k/a-ux.h"
1674         float_format=m68k
1675         ;;
1676 m68k-apollo-*)
1677         tm_file=m68k/apollo68.h
1678         use_collect2=yes
1679         float_format=m68k
1680         ;;
1681 m68k-altos-sysv*)                  # Altos 3068
1682         if test x$gas = xyes
1683         then
1684                 tm_file=m68k/altos3068.h
1685                 xm_defines=POSIX
1686         else
1687                 echo "The Altos is supported only with the GNU assembler" 1>&2
1688                 exit 1
1689         fi
1690         ;;
1691 m68k-bull-sysv*)                # Bull DPX/2
1692         if test x$gas = xyes
1693         then
1694                 if test x$stabs = xyes
1695                 then
1696                         tm_file=m68k/dpx2cdbx.h
1697                 else
1698                         tm_file=m68k/dpx2g.h
1699                 fi
1700         else
1701                 tm_file=m68k/dpx2.h
1702         fi
1703         xm_defines=POSIX
1704         use_collect2=yes
1705         ;;
1706 m68k-atari-sysv4*)              # Atari variant of V.4.
1707         tm_file=m68k/atari.h
1708         xm_defines=POSIX
1709         tmake_file=t-svr4
1710         extra_parts="crtbegin.o crtend.o"
1711         float_format=m68k
1712         ;;
1713 m68k-motorola-sysv*)
1714         tm_file=m68k/mot3300.h
1715         xm_defines=POSIX
1716         if test x$gas = xyes
1717         then
1718                 if test x$gnu_ld = xyes
1719                 then
1720                         tmake_file=m68k/t-mot3300-gald
1721                 else
1722                         tmake_file=m68k/t-mot3300-gas
1723                         use_collect2=yes
1724                 fi
1725         else
1726                 if test x$gnu_ld = xyes
1727                 then
1728                         tmake_file=m68k/t-mot3300-gld
1729                 else
1730                         tmake_file=m68k/t-mot3300
1731                         use_collect2=yes
1732                 fi
1733         fi
1734         gdb_needs_out_file_path=yes
1735         extra_parts="crt0.o mcrt0.o"
1736         float_format=m68k
1737         ;;
1738 m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
1739         tm_file=m68k/tower-as.h
1740         xm_defines=POSIX
1741         extra_parts="crtbegin.o crtend.o"
1742         ;;
1743 m68k-plexus-sysv*)
1744         tm_file=m68k/plexus.h
1745         xm_defines=POSIX
1746         use_collect2=yes
1747         ;;
1748 m68k-tti-*)
1749         tm_file=m68k/pbb.h
1750         xm_defines=POSIX
1751         ;;
1752 m68k-crds-unos*)
1753         xm_defines=POSIX
1754         tm_file=m68k/crds.h
1755         use_collect2=yes
1756         ;;
1757 m68k-cbm-sysv4*)                # Commodore variant of V.4.
1758         tm_file=m68k/amix.h
1759         xm_defines=POSIX
1760         tmake_file=t-svr4
1761         extra_parts="crtbegin.o crtend.o"
1762         float_format=m68k
1763         ;;
1764 m68k-ccur-rtu)
1765         tm_file=m68k/ccur-GAS.h
1766         use_collect2=yes
1767         float_format=m68k
1768         ;;
1769 m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
1770         tm_file=m68k/hp3bsd44.h
1771         use_collect2=yes
1772         float_format=m68k
1773         ;;
1774 m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
1775         tm_file=m68k/hp3bsd.h
1776         use_collect2=yes
1777         float_format=m68k
1778         ;;
1779 m68k-isi-bsd*)
1780         if test x$with_fp = xno
1781         then
1782                 tm_file=m68k/isi-nfp.h
1783         else
1784                 tm_file=m68k/isi.h
1785                 float_format=m68k
1786         fi
1787         use_collect2=yes
1788         ;;
1789 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1790         xm_defines=POSIX
1791         if test x$gas = xyes
1792         then
1793                 xmake_file=m68k/x-hp320g
1794                 tm_file=m68k/hp320g.h
1795         else
1796                 xmake_file=m68k/x-hp320
1797                 tm_file=m68k/hpux7.h
1798         fi
1799         install_headers_dir=install-headers-cpio
1800         use_collect2=yes
1801         float_format=m68k
1802         ;;
1803 m68k-hp-hpux*)  # HP 9000 series 300
1804         xm_defines=POSIX
1805         if test x$gas = xyes
1806         then
1807                 xmake_file=m68k/x-hp320g
1808                 tm_file=m68k/hp320g.h
1809         else
1810                 xmake_file=m68k/x-hp320
1811                 tm_file=m68k/hp320.h
1812         fi
1813         install_headers_dir=install-headers-cpio
1814         use_collect2=yes
1815         float_format=m68k
1816         ;;
1817 m68k-sun-mach*)
1818         tm_file=m68k/sun3mach.h
1819         use_collect2=yes
1820         float_format=m68k
1821         ;;
1822 m68k-sony-newsos3*)
1823         if test x$gas = xyes
1824         then
1825                 tm_file=m68k/news3gas.h
1826         else
1827                 tm_file=m68k/news3.h
1828         fi
1829         use_collect2=yes
1830         float_format=m68k
1831         ;;
1832 m68k-sony-bsd* | m68k-sony-newsos*)
1833         if test x$gas = xyes
1834         then
1835                 tm_file=m68k/newsgas.h
1836         else
1837                 tm_file=m68k/news.h
1838         fi
1839         use_collect2=yes
1840         float_format=m68k
1841         ;;
1842 m68k-next-nextstep2*)
1843         tm_p_file="${tm_p_file} nextstep-protos.h"
1844         tm_file=m68k/next21.h
1845         tmake_file=m68k/t-next
1846         xmake_file=m68k/x-next
1847         extra_objs=nextstep.o
1848         use_collect2=yes
1849         float_format=m68k
1850         ;;
1851 m68k-next-nextstep[34]*)
1852         tm_p_file="${tm_p_file} nextstep-protos.h"
1853         tm_file=m68k/next.h
1854         tmake_file=m68k/t-next
1855         xmake_file=m68k/x-next
1856         extra_objs=nextstep.o
1857         extra_parts="crtbegin.o crtend.o"
1858         float_format=m68k
1859         if test x$enable_threads = xyes; then
1860                 thread_file='mach'
1861         fi
1862         ;;
1863 m68k-sun-sunos3*)
1864         if test x$with_fp = xno
1865         then
1866                 tm_file=m68k/sun3n3.h
1867         else
1868                 tm_file=m68k/sun3o3.h
1869                 float_format=m68k
1870         fi
1871         use_collect2=yes
1872         ;;
1873 m68k-sun-sunos*)                        # For SunOS 4 (the default).
1874         if test x$with_fp = xno
1875         then
1876                 tm_file=m68k/sun3n.h
1877         else
1878                 tm_file=m68k/sun3.h
1879                 float_format=m68k
1880         fi
1881         use_collect2=yes
1882         ;;
1883 m68k-wrs-vxworks*)
1884         tm_file=m68k/vxm68k.h
1885         tmake_file=m68k/t-vxworks68
1886         thread_file='vxworks'
1887         float_format=m68k
1888         ;;
1889 m68k-*-aout*)
1890         tmake_file=m68k/t-m68kbare
1891         tm_file="m68k/m68k-aout.h libgloss.h"
1892         float_format=m68k
1893         ;;
1894 m68k-*-coff*)
1895         tmake_file=m68k/t-m68kbare
1896         tm_file="m68k/m68k-coff.h dbx.h"
1897         float_format=m68k
1898         ;;
1899 m68020-*-elf* | m68k-*-elf*)
1900         tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1901         xm_defines=POSIX
1902         tmake_file=m68k/t-m68kelf
1903         extra_parts="crtbegin.o crtend.o"
1904         ;;
1905 m68k-*-lynxos*)
1906         if test x$gas = xyes
1907         then
1908                 tm_file=m68k/lynx.h
1909         else
1910                 tm_file=m68k/lynx-ng.h
1911         fi
1912         tmake_file=m68k/t-lynx
1913         float_format=m68k
1914         ;;
1915 m68k*-*-netbsd*)
1916         tm_file=m68k/netbsd.h
1917         tmake_file=t-netbsd
1918         float_format=m68k
1919         use_collect2=yes
1920         ;;
1921 m68k*-*-openbsd*)
1922         # needed to unconfuse gdb
1923         tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1924         float_format=m68k
1925         # we need collect2 until our bug is fixed...
1926         use_collect2=yes
1927         ;;
1928 m68k-*-sysv3*)                  # Motorola m68k's running system V.3
1929         xm_defines=POSIX
1930         extra_parts="crtbegin.o crtend.o"
1931         float_format=m68k
1932         ;;
1933 m68k-*-sysv4*)                  # Motorola m68k's running system V.4
1934         tm_file=m68k/m68kv4.h
1935         xm_defines=POSIX
1936         tmake_file=t-svr4
1937         extra_parts="crtbegin.o crtend.o"
1938         float_format=m68k
1939         ;;
1940 m68k-*-linux*aout*)             # Motorola m68k's running GNU/Linux
1941                                 # with a.out format
1942         tm_file=m68k/linux-aout.h
1943         tmake_file="t-linux-aout m68k/t-linux-aout"
1944         float_format=m68k
1945         gnu_ld=yes
1946         ;;
1947 m68k-*-linux*libc1)             # Motorola m68k's running GNU/Linux
1948                                 # with ELF format using the
1949                                 # GNU/Linux C library 5
1950         tm_file=m68k/linux.h
1951         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
1952         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1953         float_format=m68k
1954         gnu_ld=yes
1955         ;;
1956 m68k-*-linux*)          # Motorola m68k's running GNU/Linux
1957                                 # with ELF format using glibc 2
1958                                 # aka the GNU/Linux C library 6.
1959         tm_file=m68k/linux.h
1960         tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
1961         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1962         float_format=m68k
1963         gnu_ld=yes
1964         if test x$enable_threads = xyes; then
1965                 thread_file='posix'
1966         fi
1967         ;;
1968 m68k-*-psos*)
1969         tmake_file=m68k/t-m68kbare
1970         tm_file=m68k/m68k-psos.h
1971         float_format=m68k
1972         ;;
1973 m68k-*-rtemscoff*)
1974         tmake_file="m68k/t-m68kbare t-rtems"
1975         tm_file=m68k/rtems.h
1976         float_format=m68k
1977         if test x$enable_threads = xyes; then
1978           thread_file='rtems'
1979         fi
1980         ;;
1981 m68k-*-rtemself*|m68k-*-rtems*)
1982         tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1983         tm_file=m68k/rtemself.h
1984         float_format=m68k
1985         extra_parts="crtbegin.o crtend.o"
1986         if test x$enable_threads = xyes; then
1987           thread_file='rtems'
1988         fi
1989         ;;
1990 m88k-dg-dgux*)
1991         xm_defines=POSIX
1992         case $machine in
1993           m88k-dg-dguxbcs*)
1994             tm_file="dbxelf.h elfos.h svr4.h m88k/dgux.h m88k/dguxbcs.h"
1995             tmake_file="m88k/t-dgux m88k/t-dguxbcs"
1996             ;;
1997           *)
1998             tm_file="dbxelf.h elfos.h svr4.h m88k/dgux.h"
1999             tmake_file=m88k/t-dgux
2000             ;;
2001         esac
2002         extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2003         if test x$gas = xyes
2004         then
2005                 tmake_file=m88k/t-dgux-gas
2006         fi
2007         ;;
2008 m88k-dolphin-sysv3*)
2009         xm_defines=POSIX
2010         tm_file=m88k/dolph.h
2011         extra_parts="crtbegin.o crtend.o"
2012         xmake_file=m88k/x-dolph
2013         if test x$gas = xyes
2014         then
2015                 tmake_file=m88k/t-m88k-gas
2016         fi
2017         ;;
2018 m88k-tektronix-sysv3)
2019         xm_defines=POSIX
2020         tm_file=m88k/tekXD88.h
2021         extra_parts="crtbegin.o crtend.o"
2022         xmake_file=m88k/x-tekXD88
2023         if test x$gas = xyes
2024         then
2025                 tmake_file=m88k/t-m88k-gas
2026         fi
2027         ;;
2028 m88k-*-aout*)
2029         xm_defines=POSIX
2030         tm_file=m88k/m88k-aout.h
2031         ;;
2032 m88k-*-coff*)
2033         xm_defines=POSIX
2034         tm_file=m88k/m88k-coff.h
2035         tmake_file=m88k/t-bug
2036         ;;
2037 m88k-*-luna*)
2038         tm_file=m88k/luna.h
2039         extra_parts="crtbegin.o crtend.o"
2040         if test x$gas = xyes
2041         then
2042                 tmake_file=m88k/t-luna-gas
2043         else
2044                 tmake_file=m88k/t-luna
2045         fi
2046         ;;
2047 m88k-*-openbsd*)
2048         tmake_file="${tmake_file} m88k/t-luna-gas"
2049         tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2050         ;;
2051 m88k-*-sysv3*)
2052         xm_defines=POSIX
2053         tm_file=m88k/sysv3.h
2054         extra_parts="crtbegin.o crtend.o"
2055         if test x$gas = xyes
2056         then
2057                 tmake_file=m88k/t-m88k-gas
2058         fi
2059         ;;
2060 m88k-*-sysv4*)
2061         xm_defines=POSIX
2062         tm_file="dbxelf.h elfos.h svr4.h m88k/sysv4.h"
2063         extra_parts="crtbegin.o crtend.o"
2064         tmake_file=m88k/t-sysv4
2065         ;;
2066 mcore-*-elf)
2067         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
2068         tmake_file=mcore/t-mcore
2069         ;;
2070 mcore-*-pe*)
2071         tm_file=mcore/mcore-pe.h
2072         tmake_file=mcore/t-mcore-pe
2073         ;;
2074 mips-sgi-irix6*)                # SGI System V.4., IRIX 6
2075         if test "x$gnu_ld" = xyes
2076         then
2077                 tm_file="mips/iris6.h mips/iris6gld.h"
2078         else
2079                 tm_file=mips/iris6.h
2080         fi
2081         tmake_file="mips/t-iris mips/t-iris6"
2082         xm_defines=POSIX
2083 #       if test x$enable_threads = xyes; then
2084 #               thread_file='irix'
2085 #       fi
2086         ;;
2087 mips-wrs-vxworks)
2088         tm_file="mips/elf.h mips/vxworks.h"
2089         tmake_file=mips/t-ecoff
2090         gas=yes
2091         gnu_ld=yes
2092         extra_parts="crtbegin.o crtend.o"
2093         thread_file='vxworks'
2094         ;;
2095 mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
2096         tm_file="mips/iris6.h mips/cross64.h"
2097         xm_defines=POSIX
2098         xm_file=mips/xm-iris5.h
2099         tmake_file="mips/t-iris mips/t-cross64"
2100         # See comment in mips/iris[56].h files.
2101         use_collect2=yes
2102 #       if test x$enable_threads = xyes; then
2103 #               thread_file='irix'
2104 #       fi
2105         ;;
2106 mips-sni-sysv4)
2107         if test x$gas = xyes
2108         then
2109                 if test x$stabs = xyes
2110                 then
2111                         tm_file=mips/iris5gdb.h
2112                 else
2113                         tm_file="mips/sni-svr4.h mips/sni-gas.h"
2114                 fi
2115         else
2116                 tm_file=mips/sni-svr4.h
2117         fi
2118         xm_defines=POSIX
2119         if test x$gnu_ld != xyes
2120         then
2121                 use_collect2=yes
2122         fi
2123         ;;
2124 mips-sgi-irix5*)                # SGI System V.4., IRIX 5
2125         if test x$gas = xyes
2126         then
2127                 tm_file="mips/iris5.h mips/iris5gas.h"
2128                 if test x$stabs = xyes
2129                 then
2130                         tm_file="${tm_file} dbx.h"
2131                 fi
2132         else
2133                 tm_file=mips/iris5.h
2134         fi
2135         tmake_file=mips/t-iris
2136         xm_defines=POSIX
2137         xm_file=mips/xm-iris5.h
2138         # mips-tfile doesn't work yet
2139         # See comment in mips/iris5.h file.
2140         use_collect2=yes
2141 #       if test x$enable_threads = xyes; then
2142 #               thread_file='irix'
2143 #       fi
2144         ;;
2145 mips-sgi-irix4loser*)           # Mostly like a MIPS.
2146         tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2147         if test x$stabs = xyes; then
2148                 tm_file="${tm_file} dbx.h"
2149         fi
2150         tmake_file=mips/t-iris
2151         xm_defines=POSIX
2152         if test x$gas = xyes
2153         then    :
2154         else
2155                 extra_passes="mips-tfile mips-tdump"
2156         fi
2157         if test x$gnu_ld != xyes
2158         then
2159                 use_collect2=yes
2160         fi
2161 #       if test x$enable_threads = xyes; then
2162 #               thread_file='irix'
2163 #       fi
2164         ;;
2165 mips-sgi-irix4*)                # Mostly like a MIPS.
2166         tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2167         if test x$stabs = xyes; then
2168                 tm_file="${tm_file} dbx.h"
2169         fi
2170         tmake_file=mips/t-iris
2171         xm_defines=POSIX
2172         if test x$gas = xyes
2173         then    :
2174         else
2175                 extra_passes="mips-tfile mips-tdump"
2176         fi
2177         if test x$gnu_ld != xyes
2178         then
2179                 use_collect2=yes
2180         fi
2181 #       if test x$enable_threads = xyes; then
2182 #               thread_file='irix'
2183 #       fi
2184         ;;
2185 mips-sgi-*)                     # Mostly like a MIPS.
2186         tm_file="mips/iris3.h ${tm_file}"
2187         if test x$stabs = xyes; then
2188                 tm_file="${tm_file} dbx.h"
2189         fi
2190         xm_defines=POSIX
2191         if test x$gas = xyes
2192         then    :
2193         else
2194                 extra_passes="mips-tfile mips-tdump"
2195         fi
2196         if test x$gnu_ld != xyes
2197         then
2198                 use_collect2=yes
2199         fi
2200         ;;
2201 mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
2202         tm_file="mips/osfrose.h ${tm_file}"
2203         extra_objs=halfpic.o
2204         use_collect2=yes
2205         ;;
2206 mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
2207         tm_file=mips/dec-osf1.h
2208         if test x$stabs = xyes; then
2209                 tm_file="${tm_file} dbx.h"
2210         fi
2211         if test x$gas = xyes
2212         then    :
2213         else
2214                 tmake_file=mips/t-ultrix
2215                 extra_passes="mips-tfile mips-tdump"
2216         fi
2217         if test x$gnu_ld != xyes
2218         then
2219                 use_collect2=yes
2220         fi
2221         ;;
2222 mips-dec-bsd*)                  # Decstation running 4.4 BSD
2223       tm_file=mips/dec-bsd.h
2224       if test x$gas = xyes
2225       then      :
2226       else
2227                 tmake_file=mips/t-ultrix
2228                 extra_passes="mips-tfile mips-tdump"
2229       fi
2230       if test x$gnu_ld != xyes
2231       then
2232                 use_collect2=yes
2233       fi
2234       ;;
2235 mipsel-*-netbsd* | mips-dec-netbsd*)    # Decstation running NetBSD
2236         tm_file=mips/netbsd.h
2237         # On NetBSD, the headers are already okay, except for math.h.
2238         tmake_file=t-netbsd
2239         ;;
2240 mips*-*-linux*)                         # Linux MIPS, either endian.
2241         tm_file="dbxelf.h elfos.h svr4.h linux.h mips/linux.h"
2242         case $machine in
2243         mipsisa32*-*)
2244                 tm_file="$tm_file mips/isa32-linux.h"
2245                 target_cpu_default="MASK_SOFT_FLOAT"
2246                 ;;
2247         esac
2248         case $machine in
2249         mips*el-*)
2250                 tm_file="mips/little.h $tm_file"
2251                 ;;
2252         esac
2253         tmake_file="t-slibgcc-elf-ver t-linux"
2254         extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
2255         gnu_ld=yes
2256         gas=yes
2257         if test x$enable_threads = xyes; then
2258                 thread_file='posix'
2259         fi
2260         ;;
2261 mips*el-*-openbsd*)     # mips little endian
2262         target_cpu_default="MASK_GAS|MASK_ABICALLS"
2263         ;;
2264 mips*-*-openbsd*)               # mips big endian
2265         target_cpu_default="MASK_GAS|MASK_ABICALLS"
2266         tm_file="mips/openbsd-be.h ${tm_file}"
2267         ;;
2268 mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
2269         tm_file="mips/news4.h ${tm_file}"
2270         if test x$stabs = xyes; then
2271                 tm_file="${tm_file} dbx.h"
2272         fi
2273         if test x$gas = xyes
2274         then    :
2275         else
2276                 extra_passes="mips-tfile mips-tdump"
2277         fi
2278         if test x$gnu_ld != xyes
2279         then
2280                 use_collect2=yes
2281         fi
2282         ;;
2283 mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
2284                                 # That is based on svr4.
2285         # t-svr4 is not right because this system doesn't use ELF.
2286         tm_file="mips/news5.h ${tm_file}"
2287         if test x$stabs = xyes; then
2288                 tm_file="${tm_file} dbx.h"
2289         fi
2290         xm_defines=POSIX
2291         if test x$gas = xyes
2292         then    :
2293         else
2294                 extra_passes="mips-tfile mips-tdump"
2295         fi
2296         if test x$gnu_ld != xyes
2297         then
2298                 use_collect2=yes
2299         fi
2300         ;;
2301 mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
2302         tm_file="mips/svr4-5.h mips/svr4-t.h"
2303         if test x$stabs = xyes; then
2304                 tm_file="${tm_file} dbx.h"
2305         fi
2306         xm_defines=POSIX
2307         if test x$gas = xyes
2308         then
2309                 extra_parts="crtbegin.o crtend.o"
2310         else
2311                 extra_passes="mips-tfile mips-tdump"
2312         fi
2313         if test x$gnu_ld != xyes
2314         then
2315                 use_collect2=yes
2316         fi
2317         ;;
2318 mips-*-ultrix* | mips-dec-mach3)        # Decstation.
2319         tm_file="mips/ultrix.h ${tm_file}"
2320         if test x$stabs = xyes; then
2321                 tm_file="${tm_file} dbx.h"
2322         fi
2323         if test x$gas = xyes
2324         then    :
2325         else
2326                 tmake_file=mips/t-ultrix
2327                 extra_passes="mips-tfile mips-tdump"
2328         fi
2329         if test x$gnu_ld != xyes
2330         then
2331                 use_collect2=yes
2332         fi
2333         ;;
2334 mips-*-riscos[56789]bsd*)
2335         tm_file=mips/bsd-5.h    # MIPS BSD 4.3, RISC-OS 5.0
2336         if test x$stabs = xyes; then
2337                 tm_file="${tm_file} dbx.h"
2338         fi
2339         if test x$gas = xyes
2340         then
2341                 tmake_file=mips/t-bsd-gas
2342         else
2343                 tmake_file=mips/t-bsd
2344                 extra_passes="mips-tfile mips-tdump"
2345         fi
2346         if test x$gnu_ld != xyes
2347         then
2348                 use_collect2=yes
2349         fi
2350         ;;
2351 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2352         tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2353         if test x$stabs = xyes; then
2354                 tm_file="${tm_file} dbx.h"
2355         fi
2356         if test x$gas = xyes
2357         then
2358                 tmake_file=mips/t-bsd-gas
2359         else
2360                 tmake_file=mips/t-bsd
2361                 extra_passes="mips-tfile mips-tdump"
2362         fi
2363         if test x$gnu_ld != xyes
2364         then
2365                 use_collect2=yes
2366         fi
2367         ;;
2368 mips-*-riscos[56789]sysv4*)
2369         tm_file=mips/svr4-5.h   # MIPS System V.4., RISC-OS 5.0
2370         if test x$stabs = xyes; then
2371                 tm_file="${tm_file} dbx.h"
2372         fi
2373         if test x$gas = xyes
2374         then
2375                 tmake_file=mips/t-svr4-gas
2376         else
2377                 tmake_file=mips/t-svr4
2378                 extra_passes="mips-tfile mips-tdump"
2379         fi
2380         if test x$gnu_ld != xyes
2381         then
2382                 use_collect2=yes
2383         fi
2384         ;;
2385 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2386         tm_file="mips/svr4-4.h ${tm_file}"
2387         if test x$stabs = xyes; then
2388                 tm_file="${tm_file} dbx.h"
2389         fi
2390         xm_defines=POSIX
2391         if test x$gas = xyes
2392         then
2393                 tmake_file=mips/t-svr4-gas
2394         else
2395                 tmake_file=mips/t-svr4
2396                 extra_passes="mips-tfile mips-tdump"
2397         fi
2398         if test x$gnu_ld != xyes
2399         then
2400                 use_collect2=yes
2401         fi
2402         ;;
2403 mips-*-riscos[56789]sysv*)
2404         tm_file=mips/svr3-5.h   # MIPS System V.3, RISC-OS 5.0
2405         if test x$stabs = xyes; then
2406                 tm_file="${tm_file} dbx.h"
2407         fi
2408         xm_defines=POSIX
2409         if test x$gas = xyes
2410         then
2411                 tmake_file=mips/t-svr3-gas
2412         else
2413                 tmake_file=mips/t-svr3
2414                 extra_passes="mips-tfile mips-tdump"
2415         fi
2416         if test x$gnu_ld != xyes
2417         then
2418                 use_collect2=yes
2419         fi
2420         ;;
2421 mips-*-sysv* | mips-*-riscos*sysv*)
2422         tm_file="mips/svr3-4.h ${tm_file}"
2423         if test x$stabs = xyes; then
2424                 tm_file="${tm_file} dbx.h"
2425         fi
2426         xm_defines=POSIX
2427         if test x$gas = xyes
2428         then
2429                 tmake_file=mips/t-svr3-gas
2430         else
2431                 tmake_file=mips/t-svr3
2432                 extra_passes="mips-tfile mips-tdump"
2433         fi
2434         if test x$gnu_ld != xyes
2435         then
2436                 use_collect2=yes
2437         fi
2438         ;;
2439 mips-*-riscos[56789]*)          # Default MIPS RISC-OS 5.0.
2440         tm_file=mips/mips-5.h
2441         if test x$stabs = xyes; then
2442                 tm_file="${tm_file} dbx.h"
2443         fi
2444         if test x$gas = xyes
2445         then    :
2446         else
2447                 extra_passes="mips-tfile mips-tdump"
2448         fi
2449         if test x$gnu_ld != xyes
2450         then
2451                 use_collect2=yes
2452         fi
2453         ;;
2454 mipsel-*-ecoff*)
2455         tm_file=mips/ecoffl.h
2456         if test x$stabs = xyes; then
2457                 tm_file="${tm_file} dbx.h"
2458         fi
2459         tmake_file=mips/t-ecoff
2460         ;;
2461 mips-*-ecoff*)
2462         tm_file="gofast.h mips/ecoff.h"
2463         if test x$stabs = xyes; then
2464                 tm_file="${tm_file} dbx.h"
2465         fi
2466         tmake_file=mips/t-ecoff
2467         ;;
2468 mipsisa32-*-elf*)
2469         tm_file="mips/isa3264.h mips/abi64.h"
2470         tmake_file=mips/t-isa3264
2471         target_cpu_default="MASK_SOFT_FLOAT"
2472         ;;
2473 mipsel-*-elf*)
2474         tm_file="mips/elfl.h"
2475         tmake_file=mips/t-elf
2476         ;;
2477 mips-*-elf*)
2478         tm_file="mips/elf.h"
2479         tmake_file=mips/t-elf
2480         ;;
2481 mips64el-*-elf*)
2482         tm_file="mips/elfl64.h"
2483         tmake_file=mips/t-elf
2484         ;;
2485 mips64orionel-*-elf*)
2486         tm_file="mips/elforion.h mips/elfl64.h"
2487         tmake_file=mips/t-elf
2488         ;;
2489 mips64-*-elf*)
2490         tm_file="mips/elf64.h"
2491         tmake_file=mips/t-elf
2492         ;;
2493 mips64orion-*-elf*)
2494         tm_file="mips/elforion.h mips/elf64.h"
2495         tmake_file=mips/t-elf
2496         ;;
2497 mips64orion-*-rtems*)
2498         tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2499         tmake_file="mips/t-elf t-rtems"
2500         if test x$enable_threads = xyes; then
2501           thread_file='rtems'
2502         fi
2503         ;;
2504 mips*-*-rtems*)
2505         tm_file="mips/elf.h mips/rtems.h"
2506         tmake_file="mips/t-elf t-rtems"
2507         if test x$enable_threads = xyes; then
2508           thread_file='rtems'
2509         fi
2510         ;;
2511 mipstx39el-*-elf*)
2512         tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2513         tmake_file=mips/t-r3900
2514         target_cpu_default="MASK_SOFT_FLOAT"
2515         ;;
2516 mipstx39-*-elf*)
2517         tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2518         tmake_file=mips/t-r3900
2519         ;;
2520 mips-*-*)                               # Default MIPS RISC-OS 4.0.
2521         if test x$stabs = xyes; then
2522                 tm_file="${tm_file} dbx.h"
2523         fi
2524         if test x$gas = xyes
2525         then    :
2526         else
2527                 extra_passes="mips-tfile mips-tdump"
2528         fi
2529         if test x$gnu_ld != xyes
2530         then
2531                 use_collect2=yes
2532         fi
2533         ;;
2534 mmix-knuth-mmixware)
2535         ;;
2536 mn10200-*-*)
2537         float_format=i32
2538         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2539         if test x$stabs = xyes
2540         then
2541                 tm_file="${tm_file} dbx.h"
2542         fi
2543         use_collect2=no
2544         ;;
2545 mn10300-*-*)
2546         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2547         if test x$stabs = xyes
2548         then
2549                 tm_file="${tm_file} dbx.h"
2550         fi
2551         use_collect2=no
2552         ;;
2553 ns32k-encore-bsd*)
2554         tm_file=ns32k/encore.h
2555         use_collect2=yes
2556         ;;
2557 ns32k-sequent-bsd*)
2558         tm_file=ns32k/sequent.h
2559         use_collect2=yes
2560         ;;
2561 ns32k-tek6100-bsd*)
2562         tm_file=ns32k/tek6100.h
2563         use_collect2=yes
2564         ;;
2565 ns32k-tek6200-bsd*)
2566         tm_file=ns32k/tek6200.h
2567         use_collect2=yes
2568         ;;
2569 ns32k-merlin-*)
2570         tm_file=ns32k/merlin.h
2571         use_collect2=yes
2572         ;;
2573 ns32k-pc532-mach*)
2574         tm_file=ns32k/pc532-mach.h
2575         use_collect2=yes
2576         ;;
2577 ns32k-pc532-minix*)
2578         tm_file=ns32k/pc532-min.h
2579         xm_defines='POSIX HZ=60'
2580         use_collect2=yes
2581         ;;
2582 ns32k-*-netbsd*)
2583         tm_file=ns32k/netbsd.h
2584         # On NetBSD, the headers are already okay, except for math.h.
2585         tmake_file=t-netbsd
2586         use_collect2=yes
2587         ;;
2588 pdp11-*-bsd)
2589         tm_file="${tm_file} pdp11/2bsd.h"
2590         ;;
2591 pdp11-*-*)
2592         ;;
2593 avr-*-*)
2594         ;;
2595 ns32k-*-openbsd*)
2596         # Nothing special
2597         ;;
2598 pj*-linux*)
2599         tm_file="dbxelf.h elfos.h svr4.h pj/linux.h ${tm_file}"
2600         ;;
2601 pj-*)
2602         ;;
2603 pjl-*)
2604         tm_file="dbxelf.h elfos.h svr4.h pj/pjl.h ${tm_file}"
2605         ;;
2606
2607 romp-*-aos*)
2608         use_collect2=yes
2609         ;;
2610 romp-*-mach*)
2611         use_collect2=yes
2612         ;;
2613 romp-*-openbsd*)
2614         # Nothing special
2615         ;;
2616 powerpc-*-openbsd*)
2617         tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2618         extra_headers=
2619         ;;
2620 powerpc64-*-linux*)
2621         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h"
2622         out_file=rs6000/rs6000.c
2623         tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2624         ;;
2625 powerpc-*-beos*)
2626         tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
2627         xm_defines=POSIX
2628         xm_file=rs6000/xm-beos.h
2629         tmake_file=rs6000/t-beos
2630         extra_headers=
2631         ;;
2632 powerpc-*-darwin*)
2633         tm_file="${tm_file} darwin.h rs6000/darwin.h"
2634         tm_p_file="${tm_p_file} darwin-protos.h"
2635         tmake_file=rs6000/t-darwin
2636         xmake_file=rs6000/x-darwin
2637         # Override the usual setting, since Apple's GCC has lame bugs
2638         # and can't handle the initializers.  Someday the bugs will be
2639         # fixed and we can get rid of this silliness.
2640         xm_defines="HAVE_DESIGNATED_INITIALIZERS=0"
2641         extra_objs="darwin.o"
2642         c_target_objs="darwin-c.o"
2643         cxx_target_objs="darwin-c.o"
2644         # Darwin linker does collect2 functionality
2645         use_collect2=no
2646         extra_headers=
2647         ;;
2648 powerpc*-*-freebsd*)
2649         tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
2650         xm_file=rs6000/xm-sysv4.h
2651         out_file=rs6000/rs6000.c
2652         tmake_file="rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
2653         ;;
2654 powerpc-*-sysv*)
2655         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2656         xm_defines=POSIX
2657         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2658         ;;
2659 powerpc-*-netbsd*)
2660         xm_defines=POSIX
2661         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
2662         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2663         ;;
2664 powerpc-*-chorusos*)
2665         xm_defines=POSIX
2666         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
2667         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2668         case x${enable_threads} in
2669           xyes | xpthreads | xposix)
2670                 thread_file='posix'
2671                 ;;
2672         esac
2673         ;;
2674 powerpc-*-eabiaix*)
2675         xm_defines=POSIX
2676         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2677         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2678         ;;
2679 powerpc-*-eabisimaltivec*)
2680         xm_defines=POSIX
2681         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"
2682         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2683         ;;
2684 powerpc-*-eabisim*)
2685         xm_defines=POSIX
2686         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2687         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2688         ;;
2689 powerpc-*-elf*)
2690         xm_defines=POSIX
2691         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2692         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2693         ;;
2694 powerpc-*-eabialtivec*)
2695         xm_defines=POSIX
2696         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
2697         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2698         ;;
2699 powerpc-*-eabi*)
2700         xm_defines=POSIX
2701         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
2702         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2703         ;;
2704 powerpc-*-rtems*)
2705         xm_defines=POSIX
2706         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2707         tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2708         if test x$enable_threads = xyes; then
2709           thread_file='rtems'
2710         fi
2711         ;;
2712 powerpc-*-linux*libc1)
2713         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2714         out_file=rs6000/rs6000.c
2715         tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2716         if test x$enable_threads = xyes; then
2717                 thread_file='posix'
2718         fi
2719         ;;
2720 powerpc-*-linux-gnualtivec*)
2721         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.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-*-linux*)
2729         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2730         out_file=rs6000/rs6000.c
2731         tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2732         if test x$enable_threads = xyes; then
2733                 thread_file='posix'
2734         fi
2735         ;;
2736 powerpc-wrs-vxworks*)
2737         xm_defines=POSIX
2738         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/vxppc.h"
2739         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2740         thread_file='vxworks'
2741         ;;
2742 powerpcle-wrs-vxworks*)
2743         xm_defines=POSIX
2744         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2745         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2746         thread_file='vxworks'
2747         ;;
2748 powerpcle-*-sysv*)
2749         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2750         xm_defines=POSIX
2751         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2752         ;;
2753 powerpcle-*-elf*)
2754         xm_defines=POSIX
2755         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2756         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2757         ;;
2758 powerpcle-*-eabisim*)
2759         xm_defines=POSIX
2760         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"
2761         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2762         ;;
2763 powerpcle-*-eabi*)
2764         xm_defines=POSIX
2765         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2766         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2767         ;;
2768 rs6000-ibm-aix3.[01]*)
2769         xm_defines=POSIX
2770         tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h"
2771         float_format=none
2772         use_collect2=yes
2773         ;;
2774 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2775         xm_defines=POSIX
2776         tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.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.[12]* | powerpc-ibm-aix4.[12]*)
2783         xm_defines=POSIX
2784         tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
2785         tmake_file=rs6000/t-newas
2786         float_format=none
2787         use_collect2=yes
2788         extra_headers=
2789         ;;
2790 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2791         xm_defines=POSIX
2792         tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
2793         tmake_file=rs6000/t-aix43
2794         float_format=none
2795         use_collect2=yes
2796         thread_file='aix'
2797         extra_headers=
2798         ;;
2799 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2800         xm_defines=POSIX
2801         tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
2802         tmake_file=rs6000/t-aix43
2803         float_format=none
2804         use_collect2=yes
2805         thread_file='aix'
2806         extra_headers=
2807         ;;
2808 rs6000-ibm-aix*)
2809         xm_defines=POSIX
2810         tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2811         float_format=none
2812         use_collect2=yes
2813         ;;
2814 rs6000-bull-bosx)
2815         xm_defines=POSIX
2816         tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2817         float_format=none
2818         use_collect2=yes
2819         ;;
2820 rs6000-*-mach*)
2821         tm_file="${tm_file} rs6000/mach.h"
2822         xm_defines=POSIX
2823         use_collect2=yes
2824         ;;
2825 rs6000-*-lynxos*)
2826         tm_file="lynx.h rs6000/lynx.h"
2827         tmake_file=rs6000/t-rs6000
2828         use_collect2=yes
2829         ;;
2830 s390-*-linux*)
2831         tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
2832         tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2833         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
2834         if test x$enable_threads = xyes; then
2835                 thread_file='posix'
2836         fi
2837         ;;
2838 s390x-*-linux*)
2839         tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h s390/linux64.h"
2840         tm_p_file=s390/s390-protos.h
2841         md_file=s390/s390.md
2842         out_file=s390/s390.c
2843         tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2844         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
2845         if test x$enable_threads = xyes; then
2846                 thread_file='posix'
2847         fi
2848         ;;
2849 sh-*-elf*)
2850         tmake_file="sh/t-sh sh/t-elf"
2851         tm_file="${tm_file} sh/elf.h"
2852         float_format=sh
2853         ;;
2854 sh-*-rtemself*)
2855         tmake_file="sh/t-sh sh/t-elf t-rtems"
2856         tm_file="${tm_file} sh/elf.h sh/rtemself.h"
2857         float_format=sh
2858         if test x$enable_threads = xyes; then
2859           thread_file='rtems'
2860         fi
2861         ;;
2862 sh-*-rtems*)
2863         tmake_file="sh/t-sh t-rtems"
2864         tm_file="${tm_file} sh/rtems.h"
2865         float_format=sh
2866         if test x$enable_threads = xyes; then
2867           thread_file='rtems'
2868         fi
2869         ;;
2870 sh-*-linux*)
2871         tm_file="${tm_file} sh/elf.h sh/linux.h"
2872         tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2873         gas=yes gnu_ld=yes
2874         if test x$enable_threads = xyes; then
2875                 thread_file='posix'
2876         fi
2877         float_format=sh
2878         ;;
2879 sh-*-*)
2880         float_format=sh
2881         ;;
2882 sparc-tti-*)
2883         tm_file="${tm_file} sparc/pbd.h"
2884         xm_defines=POSIX
2885         ;;
2886 sparc64-wrs-vxworks*)
2887         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"
2888         tmake_file=sparc/t-vxsparc64
2889         use_collect2=yes
2890         ;;
2891 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2892         tm_file="${tm_file} aoutos.h sparc/aout.h gofast.h sparc/vxsparc.h"
2893         tmake_file=sparc/t-vxsparc
2894         use_collect2=yes
2895         thread_file='vxworks'
2896         ;;
2897 sparc-*-aout*)
2898         tmake_file=sparc/t-sparcbare
2899         tm_file="sparc/sparc.h aoutos.h sparc/aout.h libgloss.h"
2900         ;;
2901 sparc-*-netbsd*)
2902         tm_file="${tm_file} sparc/aout.h netbsd.h sparc/netbsd.h"
2903         tmake_file=t-netbsd
2904         use_collect2=yes
2905         ;;
2906 sparc-*-openbsd*)
2907         tm_file="sparc/sparc.h ${tm_file}"
2908         # needed to unconfuse gdb
2909         tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
2910         # we need collect2 until our bug is fixed...
2911         use_collect2=yes
2912         ;;
2913 sparc-*-bsd*)
2914         tm_file="${tm_file} sparc/bsd.h"
2915         ;;
2916 sparc-*-chorusos*)
2917         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h chorus.h"
2918         tmake_file=sparc/t-chorus-elf
2919         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2920         float_format=i64
2921         case x${enable_threads} in
2922           xyes | xpthreads | xposix)
2923                 thread_file='posix'
2924                 ;;
2925         esac
2926         ;;
2927 sparc-*-elf*)
2928         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h"
2929         tmake_file=sparc/t-elf
2930         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2931         #float_format=i128
2932         float_format=i64
2933         ;;
2934 sparc-*-linux*aout*)            # Sparc's running GNU/Linux, a.out
2935         tm_file="aoutos.h sparc/sparc.h sparc/aout.h sparc/linux-aout.h"
2936         gnu_ld=yes
2937         ;;
2938 sparc-*-linux*libc1*)   # Sparc's running GNU/Linux, libc5
2939         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
2940         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
2941         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2942         gnu_ld=yes
2943         float_format=sparc
2944         ;;
2945 sparc-*-linux*)         # Sparc's running GNU/Linux, libc6
2946         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
2947         tmake_file="t-slibgcc-elf-ver t-linux"
2948         extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
2949         gnu_ld=yes
2950         if test x$enable_threads = xyes; then
2951                 thread_file='posix'
2952         fi
2953         float_format=sparc
2954         ;;
2955 sparc-*-lynxos*)
2956         if test x$gas = xyes
2957         then
2958                 tm_file="${tm_file} lynx.h sparc/aout.h sparc/lynx.h"
2959         else
2960                 tm_file="${tm_file} lynx-ng.h sparc/aout.h sparc/lynx-ng.h"
2961         fi
2962         tmake_file=sparc/t-sunos41
2963         ;;
2964 sparc-*-rtemsaout*)
2965         tmake_file="sparc/t-sparcbare t-rtems"
2966         tm_file="${tm_file} aoutos.h sparc/aout.h sparc/rtems.h rtems.h"
2967         if test x$enable_threads = xyes; then
2968           thread_file='rtems'
2969         fi
2970         ;;
2971 sparc-*-rtems*|sparc-*-rtemself*)
2972         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
2973         tmake_file="sparc/t-elf t-rtems"
2974         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2975         #float_format=i128
2976         float_format=i64
2977         if test x$enable_threads = xyes; then
2978           thread_file='rtems'
2979         fi
2980         ;;
2981 sparcv9-*-solaris2* | sparc64-*-solaris2*)
2982         if test x$gnu_ld = xyes
2983         then
2984                 tm_file="sparc/sol2-sld-64.h sparc/sol2-64.h"
2985         else
2986                 tm_file=sparc/sol2-sld-64.h
2987         fi
2988         xm_defines=POSIX
2989         tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2990         if test x$gnu_ld = xyes; then
2991                 tmake_file="$tmake_file t-slibgcc-elf-ver"
2992         else
2993                 tmake_file="$tmake_file t-slibgcc-sld"
2994         fi
2995         extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2996         float_format=none
2997         if test x${enable_threads} = x ; then
2998             enable_threads=$have_pthread_h
2999             if test x${enable_threads} = x ; then
3000                 enable_threads=$have_thread_h
3001             fi
3002         fi
3003         if test x${enable_threads} = xyes ; then
3004             if test x${have_pthread_h} = xyes ; then
3005                 thread_file='posix'
3006             else
3007                 thread_file='solaris'
3008             fi
3009         fi
3010         ;;
3011 sparc-hal-solaris2*)
3012         xm_defines=POSIX
3013         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/hal.h"
3014         tmake_file="sparc/t-halos sparc/t-sol2"
3015         if test x$gnu_ld = xyes; then
3016                 tmake_file="$tmake_file t-slibgcc-elf-ver"
3017         else
3018                 tmake_file="$tmake_file t-slibgcc-sld"
3019         fi
3020         extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3021         case $machine in
3022         *-*-solaris2.[0-4])
3023                 float_format=i128
3024         ;;
3025         *)
3026                 float_format=none
3027                 ;;
3028         esac
3029         thread_file='solaris'
3030         ;;
3031 sparc-*-solaris2*)
3032         if test x$gnu_ld = xyes
3033         then
3034                 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h"
3035         else
3036                 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sol2-sld.h"
3037         fi
3038         xm_defines=POSIX
3039         tmake_file=sparc/t-sol2
3040         if test x$gnu_ld = xyes; then
3041                 tmake_file="$tmake_file t-slibgcc-elf-ver"
3042         else
3043                 tmake_file="$tmake_file t-slibgcc-sld"
3044         fi
3045         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3046         case $machine in
3047         *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3048         *-*-solaris2*)
3049                 if test x$gnu_ld = xyes
3050                 then
3051                         tm_file="sparc/sol2-sld-64.h sparc/sol2-64.h"
3052                 else
3053                         tm_file="sparc/sol2-sld-64.h"
3054                 fi
3055                 tmake_file="$tmake_file sparc/t-sol2-64"
3056                 ;;
3057         esac
3058         case $machine in
3059         *-*-solaris2.[0-4])
3060                 float_format=i128
3061                 ;;
3062         *)
3063                 float_format=none
3064                 ;;
3065         esac
3066         if test x${enable_threads} = x; then
3067             enable_threads=$have_pthread_h
3068             if test x${enable_threads} = x; then
3069                 enable_threads=$have_thread_h
3070             fi
3071         fi
3072         if test x${enable_threads} = xyes; then
3073             if test x${have_pthread_h} = xyes; then
3074                 thread_file='posix'
3075             else
3076                 thread_file='solaris'
3077             fi
3078         fi
3079         ;;
3080 sparc-*-sunos4.0*)
3081         tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
3082         use_collect2=yes
3083         ;;
3084 sparc-*-sunos4*)
3085         tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
3086         tmake_file=sparc/t-sunos41
3087         use_collect2=yes
3088         if test x$gas = xyes; then
3089                 tm_file="${tm_file} sparc/sun4gas.h"
3090         fi
3091         ;;
3092 sparc-*-sunos3*)
3093         tm_file="${tm_file} sparc/aout.h sparc/sun4o3.h"
3094         use_collect2=yes
3095         ;;
3096 sparc-*-sysv4*)
3097         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h"
3098         xm_defines=POSIX
3099         tmake_file=t-svr4
3100         extra_parts="crtbegin.o crtend.o"
3101         ;;
3102 sparc-*-vxsim*)
3103         xm_defines=POSIX
3104         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/vxsim.h"
3105         tmake_file=sparc/t-vxsparc
3106         ;;
3107 sparclet-*-aout*)
3108         tm_file="${tm_file} aoutos.h sparc/aout.h sparc/splet.h libgloss.h"
3109         tmake_file=sparc/t-splet
3110         ;;
3111 sparclite-*-coff*)
3112         tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
3113         tmake_file=sparc/t-sparclite
3114         ;;
3115 sparclite-*-aout*)
3116         tm_file="${tm_file} gofast.h sparc/aout.h sparc/lite.h aoutos.h libgloss.h"
3117         tmake_file=sparc/t-sparclite
3118         ;;
3119 sparclite-*-elf*)
3120         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h"
3121         tmake_file=sparc/t-sparclite
3122         extra_parts="crtbegin.o crtend.o"
3123         ;;
3124 sparc86x-*-aout*)
3125         tm_file="${tm_file} gofast.h sparc/aout.h sparc/sp86x-aout.h aoutos.h libgloss.h"
3126         tmake_file=sparc/t-sp86x
3127         ;;
3128 sparc86x-*-elf*)
3129         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"
3130         tmake_file=sparc/t-sp86x
3131         extra_parts="crtbegin.o crtend.o"
3132         ;;
3133 sparc64-*-aout*)
3134         tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h"
3135         ;;
3136 sparc64-*-elf*)
3137         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h"
3138         extra_parts="crtbegin.o crtend.o"
3139         ;;
3140 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
3141         tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
3142         xmake_file=none
3143         case "x$with_cpu" in
3144                 x) with_cpu=ultrasparc ;;
3145                 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
3146         esac
3147         ;;
3148 sparc64-*-linux*)               # 64-bit Sparc's running GNU/Linux
3149         tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64"
3150         tm_file="sparc/sparc_bi.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
3151         extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
3152         gnu_ld=yes
3153         if test x$enable_threads = xyes; then
3154                 thread_file='posix'
3155         fi
3156         float_format=sparc
3157         ;;
3158 strongarm-*-elf*)
3159         tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
3160         tmake_file=arm/t-strongarm-elf
3161         out_file=arm/arm.c
3162         md_file=arm/arm.md
3163         ;;
3164 strongarm-*-coff*)
3165         tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h"
3166         tmake_file=arm/t-strongarm-coff
3167         out_file=arm/arm.c
3168         md_file=arm/arm.md
3169         ;;
3170 strongarm-*-pe)
3171         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"
3172         tmake_file=arm/t-strongarm-pe
3173         out_file=arm/arm.c
3174         md_file=arm/arm.md
3175         extra_objs=pe.o
3176         ;;
3177 thumb*-*-*)
3178         { echo "config.gcc: error:
3179 *** The Thumb targets have been deprecated.  The equivalent
3180 *** ARM based toolchain can now generate Thumb instructions
3181 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3182         ;;
3183 v850-*-rtems*)
3184         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} v850/rtems.h"
3185         tmake_file="v850/t-v850 t-rtems"
3186         if test x$stabs = xyes
3187         then
3188                 tm_file="${tm_file} dbx.h"
3189         fi
3190         use_collect2=no
3191         c_target_objs="v850-c.o"
3192         cxx_target_objs="v850-c.o"
3193         ;;
3194 v850-*-*)
3195         target_cpu_default="TARGET_CPU_generic"
3196         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
3197         tmake_file=v850/t-v850
3198         if test x$stabs = xyes
3199         then
3200                 tm_file="${tm_file} dbx.h"
3201         fi
3202         use_collect2=no
3203         c_target_objs="v850-c.o"
3204         cxx_target_objs="v850-c.o"
3205         ;;
3206 vax-*-bsd*)                     # VAXen running BSD
3207         use_collect2=yes
3208         float_format=vax
3209         ;;
3210 vax-*-sysv*)                    # VAXen running system V
3211         tm_file="${tm_file} vax/vaxv.h"
3212         xm_defines=POSIX
3213         float_format=vax
3214         ;;
3215 vax-*-netbsd*)
3216         tm_file="${tm_file} netbsd.h vax/netbsd.h"
3217         tmake_file=t-netbsd
3218         float_format=vax
3219         use_collect2=yes
3220         ;;
3221 vax-*-openbsd*)
3222         tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3223         float_format=vax
3224         use_collect2=yes
3225         ;;
3226 vax-*-ultrix*)                  # VAXen running ultrix
3227         tm_file="${tm_file} vax/ultrix.h"
3228         float_format=vax
3229         ;;
3230 vax-*-vms*)                     # VAXen running VMS
3231         xm_file=vax/xm-vms.h
3232         tm_file=vax/vms.h
3233         float_format=vax
3234         ;;
3235 vax-*-*)                        # VAX default entry
3236         float_format=vax
3237         ;;
3238 we32k-att-sysv*)
3239         xm_defines=POSIX
3240         use_collect2=yes
3241         ;;
3242 xscale-*-elf)
3243         tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
3244         tmake_file=arm/t-xscale-elf
3245         out_file=arm/arm.c
3246         md_file=arm/arm.md
3247         ;;
3248 xscale-*-coff)
3249         tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
3250         tmake_file=arm/t-xscale-coff
3251         out_file=arm/arm.c
3252         md_file=arm/arm.md
3253         ;;
3254 xstormy16-*-elf)
3255         # For historical reasons, the target files omit the 'x'.
3256         tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
3257         tm_p_file=stormy16/stormy16-protos.h
3258         md_file=stormy16/stormy16.md
3259         out_file=stormy16/stormy16.c
3260         tmake_file="stormy16/t-stormy16"
3261         extra_parts="crtbegin.o crtend.o"
3262         ;;
3263 *)
3264         echo "Configuration $machine not supported" 1>&2
3265         exit 1
3266         ;;
3267 esac
3268
3269 case $machine in
3270 *-*-sysv*)
3271         install_headers_dir=install-headers-cpio
3272         ;;
3273 esac
3274
3275 # Distinguish i[34567]86
3276 # Also, do not run mips-tfile on MIPS if using gas.
3277 # Process --with-cpu= for PowerPC/rs6000
3278 target_cpu_default2=
3279 case $machine in
3280 i486-*-*)
3281         target_cpu_default2=TARGET_CPU_DEFAULT_i486
3282         ;;
3283 i586-*-*)
3284         case $target_alias in
3285                 k6_2-*)
3286                         target_cpu_default2=TARGET_CPU_DEFAULT_k6_2
3287                         ;;
3288                 k6_3-*)
3289                         target_cpu_default2=TARGET_CPU_DEFAULT_k6_3
3290                         ;;
3291                 k6-*)
3292                         target_cpu_default2=TARGET_CPU_DEFAULT_k6
3293                         ;;
3294                 pentium_mmx-*)
3295                         target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx
3296                         ;;
3297                 *)
3298                         target_cpu_default2=TARGET_CPU_DEFAULT_pentium
3299                         ;;
3300         esac
3301         ;;
3302 i686-*-* | i786-*-*)
3303         case $target_alias in
3304                 athlon_xp-*|athlon_mp-*|athlon_4-*)
3305                         target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
3306                         ;;
3307                 athlon_tbird-*|athlon-*)
3308                         target_cpu_default2=TARGET_CPU_DEFAULT_athlon
3309                         ;;
3310                 pentium2-*)
3311                         target_cpu_default2=TARGET_CPU_DEFAULT_pentium2
3312                         ;;
3313                 pentium3-*)
3314                         target_cpu_default2=TARGET_CPU_DEFAULT_pentium3
3315                         ;;
3316                 pentium4-*)
3317                         target_cpu_default2=TARGET_CPU_DEFAULT_pentium4
3318                         ;;
3319                 *)
3320                         target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro
3321                         ;;
3322         esac
3323         ;;
3324 x86_64-*-*)
3325         # We should have hammer chip here, but it does not exist yet and
3326         # thus it is not supported.  Athlon_SSE is probably equivalent feature
3327         # wise to hammer from our point of view except for 64bit mode.
3328         target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
3329         ;;
3330 alpha*-*-*)
3331         case $machine in
3332                 alphaev6[78]*)
3333                         target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3334                         ;;
3335                 alphaev6*)
3336                         target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3337                         ;;
3338                 alphapca56*)
3339                         target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3340                         ;;
3341                 alphaev56*)
3342                         target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3343                         ;;
3344                 alphaev5*)
3345                         target_cpu_default2="MASK_CPU_EV5"
3346                         ;;
3347         esac
3348
3349         if test x$gas = xyes
3350         then
3351                 if test "$target_cpu_default2" = ""
3352                 then
3353                         target_cpu_default2="MASK_GAS"
3354                 else
3355                         target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3356                 fi
3357         fi
3358         ;;
3359 arm*-*-*)
3360         case "x$with_cpu" in
3361                 x)
3362                         # The most generic
3363                         target_cpu_default2="TARGET_CPU_generic"
3364                         ;;
3365
3366                 # Distinguish cores, and major variants
3367                 # arm7m doesn't exist, but D & I don't affect code
3368                 xarm[236789] | xarm250 | xarm[67][01]0 \
3369                 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3370                 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3371                 | xxscale \
3372                 | xstrongarm | xstrongarm110 | xstrongarm1100)
3373                         target_cpu_default2="TARGET_CPU_$with_cpu"
3374                         ;;
3375
3376                 xyes | xno)
3377                         echo "--with-cpu must be passed a value" 1>&2
3378                         exit 1
3379                         ;;
3380
3381                 *)
3382                         if test x$pass2done = xyes
3383                         then
3384                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3385                                 exit 1
3386                         fi
3387                         ;;
3388         esac
3389         ;;
3390
3391 hppa*-*-* | parisc*-*-*)
3392         if test x$gas = xyes
3393         then
3394                 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3395         fi
3396         ;;
3397
3398 mips*-*-ecoff* | mips*-*-elf*)
3399         if test x$gas = xyes
3400         then
3401                 if test x$gnu_ld = xyes
3402                 then
3403                         target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3404                 else
3405                         target_cpu_default2="MASK_GAS"
3406                 fi
3407         fi
3408         ;;
3409 mips*-*-*)
3410         if test x$gas = xyes
3411         then
3412                 target_cpu_default2="MASK_GAS"
3413         fi
3414         ;;
3415 powerpc*-*-* | rs6000-*-*)
3416         if test x$enable_altivec = xyes
3417         then
3418                 tm_file="$tm_file rs6000/altivec.h"
3419         fi
3420         case "x$with_cpu" in
3421                 x)
3422                         ;;
3423
3424                 xcommon | xpower | xpower2 | xpowerpc | xrios \
3425                   | xrios1 | xrios2 | xrsc | xrsc1 \
3426                   | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3427                   | x740 | x750 | x505)
3428                         target_cpu_default2="\\\"$with_cpu\\\""
3429                         ;;
3430
3431                 x401 | x403 | xec603e | x801 | x821 | x823 | x860)
3432                         target_cpu_default2="\\\"$with_cpu\\\""
3433                         tm_file="$tm_file rs6000/softfloat.h"
3434                         ;;
3435
3436                 xyes | xno)
3437                         echo "--with-cpu must be passed a value" 1>&2
3438                         exit 1
3439                         ;;
3440
3441                 *)
3442                         if test x$pass2done = xyes
3443                         then
3444                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3445                                 exit 1
3446                         fi
3447                         ;;
3448         esac
3449         ;;
3450 sparc*-*-*)
3451         case ".$with_cpu" in
3452                 .)
3453                         target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3454                         ;;
3455                 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3456                         target_cpu_default2="TARGET_CPU_$with_cpu"
3457                         ;;
3458                 *)
3459                         if test x$pass2done = xyes
3460                         then
3461                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3462                                 exit 1
3463                         fi
3464                         ;;
3465         esac
3466         ;;
3467 esac
3468
3469 if test "$target_cpu_default2" != ""
3470 then
3471         if test "$target_cpu_default" != ""
3472         then
3473                 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3474         else
3475                 target_cpu_default=$target_cpu_default2
3476         fi
3477 fi
3478
3479 # Save data on machine being used to compile GCC in build_xm_file.
3480 # Save data on host machine in vars host_xm_file and host_xmake_file.
3481 if test x$pass1done = x
3482 then
3483         if test x$xm_file != x
3484         then build_xm_file=$xm_file
3485         fi
3486         build_xm_defines=$xm_defines
3487         build_install_headers_dir=$install_headers_dir
3488         build_exeext=$exeext
3489         pass1done=yes
3490 else
3491         if test x$pass2done = x
3492         then
3493                 if test x$xm_file != x
3494                 then host_xm_file=$xm_file
3495                 fi
3496                 host_xm_defines=$xm_defines
3497                 host_xmake_file="$xmake_file"
3498                 host_truncate_target=$truncate_target
3499                 host_extra_gcc_objs=$extra_gcc_objs
3500                 host_extra_objs=$extra_host_objs
3501                 host_exeext=$exeext
3502                 pass2done=yes
3503         fi
3504 fi