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