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