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