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