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