OSDN Git Service

2001-05-01 Zack Weinberg <zackw@stanford.edu>
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 #This file is part of GNU CC.
5
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.
10
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.
15
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.
20
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.
28
29 # This file switches on the shell variable ${machine}, and also uses the
30 # following shell variables:
31 #
32 #  with_*               Various variables as set by configure.
33 #
34 #  enable_threads_flag  Either the name, yes or no depending on whether
35 #                       threads support was requested.
36 #
37 #  gas_flag             Either yes or no depending on whether GNU as was
38 #                       requested.
39 #
40 #  gnu_ld_flag          Either yes or no depending on whether GNU ld was
41 #                       requested.
42
43 # This file sets the following shell variables for use by the
44 # autoconf-generated configure script:
45 #
46 #  cpu_type             The name of the cpu, if different from machine.
47 #
48 #  tm_file              A list of target macro files, if different from
49 #                       "$cpu_type/$cpu_type.h".
50 #
51 #  tm_p_file            Location of file with declarations for functions
52 #                       in $out_file.
53 #
54 #  out_file             The name of the machine description C support
55 #                       file, if different from "$cpu_type/$cpu_type.c".
56 #
57 #  md_file              The name of the machine-description file, if
58 #                       different from "$cpu_type/$cpu_type.md".
59 #
60 #  tmake_file           A list of machine-description-specific
61 #                       makefile-fragments, if different from
62 #                       "$cpu_type/t-$cpu_type".
63 #
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".
69 #
70 #  extra_objs           List of extra objects that should be linked into
71 #                       the compiler proper (cc1, cc1obj, cc1plus)
72 #                       depending on target.
73 #
74 #  extra_headers        List of used header files from the directory
75 #                       ginclude.
76 #
77 #  host_xmake_file      List of host-specific makefile-fragments.
78 #
79 #  extra_passes         List of extra executables compiled for this target
80 #                       machine, used for compiling from source to object.
81 #
82 #  extra_parts          List of extra object files that should be compiled
83 #                       for this target machine.
84 #
85 #  extra_programs       Like extra_passes, but these are used when linking.
86 #
87 #  host_extra_objs      List of extra host-dependant objects that should
88 #                       be linked into the compiler proper.
89 #
90 #  host_extra_gcc_objs  List of extra host-dependant objects that should
91 #                       be linked into the gcc driver.
92 #
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.
101 #
102 #  build_xm_file        List of files to include when compiling for the
103 #                       build machine.
104 #
105 #  host_xm_defines      List of macros to define when compiling for the
106 #                       host machine.
107 #
108 #  host_xm_file         List of files to include when compiling for the
109 #                       host machine.
110 #
111 #  xm_defines           List of macros to define when compiling for the
112 #                       target machine.
113 #
114 #  xm_file              List of files to include when compiling for the
115 #                       target machine.
116 #
117 #  use_collect2         Set to yes or no, depending on whether collect2
118 #                       will be used.
119 #
120 #  target_cpu_default   Set to override the default target model.
121 #
122 #  build_install_headers_dir
123 #                       Target to use when installing header files.
124 #
125 #  host_truncate_target
126 #                       Non-empty if the target name should be truncated
127 #                       on this host, due to filename length issues.
128 #
129 #  gdb_needs_out_file_path
130 #                       Set to yes if gdb needs a dir command with
131 #                       `dirname $out_file`.
132 #
133 #  build_exeext         Set to the suffix, if the build machine requires
134 #                       executables to have a file name suffix.
135 #
136 #  host_exeext          Set to the suffix, if the host machine requires
137 #                       executables to have a file name suffix.
138 #
139 #  thread_file          Set to control which thread package to use.
140 #
141 #  gas                  Set to yes or no depending on whether the target
142 #                       system normally uses GNU as.
143
144 # The following variables are used in each case-construct to build up the
145 # outgoing variables:
146 #
147 #  xmake_file           Makefile-fragment when this system is as a host,
148 #                       for host_xmake_file.
149 #
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.
153 #
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.
157 #
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.
161 #
162 #  exeext               The suffix for executables on this system.
163 #
164 #  gnu_ld               Set to yes or no depending on whether the target
165 #                       system normally uses GNU ld.
166
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
201
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
244
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
249 fi
250 # On a.out targets, we need to use collect2.
251 case $machine in
252 *-*-*aout*)
253         use_collect2=yes
254         ;;
255 esac    
256
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
297
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"
347
348         # GAS + IEEE_CONFORMANT+IEEE (no inexact);
349         #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
350
351         # GAS + IEEE_CONFORMANT
352         target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
353
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         ;;
417
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)"
779
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-*-sco3.2v4*)         # 80386 running SCO 3.2v4 system
1190         xm_defines="POSIX BROKEN_LDEXP SMALL_ARG_MAX"
1191         xmake_file=i386/x-sco4
1192         install_headers_dir=install-headers-cpio
1193         if test x$stabs = xyes
1194         then
1195                 tm_file=i386/sco4dbx.h
1196                 tmake_file=i386/t-svr3dbx
1197                 extra_parts="svr3.ifile svr3z.rfile"
1198         else
1199                 tm_file=i386/sco4.h
1200                 tmake_file=i386/t-crtstuff
1201                 extra_parts="crtbegin.o crtend.o"
1202         fi
1203         tmake_file="$tmake_file i386/t-i386bare"
1204         # The default EAFS filesystem supports long file names.
1205         # Truncating the target makes $host != $target which
1206         # makes gcc think it is doing a cross-compile.
1207         # truncate_target=yes
1208         ;;
1209 i[34567]86-*-sco*)              # 80386 running SCO system
1210         install_headers_dir=install-headers-cpio
1211         if test x$stabs = xyes
1212         then
1213                 tm_file=i386/scodbx.h
1214                 tmake_file=i386/t-svr3dbx
1215                 extra_parts="svr3.ifile svr3z.rfile"
1216         else
1217                 tm_file=i386/sco.h
1218                 extra_parts="crtbegin.o crtend.o"
1219                 tmake_file=i386/t-crtstuff
1220         fi
1221         tmake_file="$tmake_file i386/t-i386bare"
1222         truncate_target=yes
1223         ;;
1224 i[34567]86-*-solaris2*)
1225         xm_defines="POSIX SMALL_ARG_MAX"
1226         tm_file=i386/sol2.h
1227         if test x$gas = xyes; then
1228                 # Only needed if gas does not support -s
1229                 tm_file="i386/sol2gas.h ${tm_file}"
1230         fi
1231         tmake_file="i386/t-i386bare i386/t-sol2"
1232         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1233         xmake_file=x-svr4
1234         if test x${enable_threads} = x; then
1235             enable_threads=$have_pthread_h
1236             if test x${enable_threads} = x; then
1237                 enable_threads=$have_thread_h
1238             fi
1239         fi
1240         if test x${enable_threads} = xyes; then
1241             if test x${have_pthread_h} = xyes; then
1242                 thread_file='posix'
1243             else
1244                 thread_file='solaris'
1245             fi
1246         fi
1247         ;;
1248 i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
1249        xm_defines=POSIX
1250        tm_file=i386/sysv5.h
1251        if test x$stabs = xyes
1252        then
1253                tm_file="${tm_file} dbx.h"
1254        fi
1255        tmake_file="i386/t-i386bare i386/t-crtpic"
1256        xmake_file=x-svr4
1257        extra_parts="crtbegin.o crtend.o"
1258        if test x$enable_threads = xyes; then
1259                thread_file='posix'
1260        fi
1261        ;;
1262 i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
1263         xm_defines="POSIX SMALL_ARG_MAX"
1264         tm_file=i386/sysv4.h
1265         if test x$stabs = xyes
1266         then
1267                 tm_file="${tm_file} dbx.h"
1268         fi
1269         tmake_file="i386/t-i386bare i386/t-crtpic"
1270         xmake_file=x-svr4
1271         extra_parts="crtbegin.o crtend.o"
1272         ;;
1273 i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
1274         xm_defines=POSIX
1275         tm_file=i386/udk.h
1276         tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1277         xmake_file=x-svr4
1278         extra_parts="crtbegin.o crtend.o"
1279         install_headers_dir=install-headers-cpio
1280         ;;
1281 i[34567]86-*-osf1*)             # Intel 80386's running OSF/1 1.3+
1282         cpu_type=i386
1283         xm_file=i386/xm-osf1elf.h
1284         xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1285         if test x$stabs = xyes
1286         then
1287                 tm_file=i386/osf1elfgdb.h
1288         else
1289                 tm_file=i386/osf1elf.h
1290         fi
1291         tmake_file=i386/t-osf1elf
1292         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1293         ;;
1294 i[34567]86-*-sysv*)             # Intel 80386's running system V
1295         xm_defines=POSIX
1296         if test x$gas = xyes
1297         then
1298                 if test x$stabs = xyes
1299                 then
1300                         tm_file=i386/svr3dbx.h
1301                         tmake_file=i386/t-svr3dbx
1302                         extra_parts="svr3.ifile svr3z.rfile"
1303                 else
1304                         tm_file=i386/svr3gas.h
1305                         extra_parts="crtbegin.o crtend.o"
1306                         tmake_file=i386/t-crtstuff
1307                 fi
1308         else
1309                 tm_file=i386/sysv3.h
1310                 extra_parts="crtbegin.o crtend.o"
1311                 tmake_file=i386/t-crtstuff
1312         fi
1313         tmake_file="$tmake_file i386/t-crtpic"
1314         ;;
1315 i386-*-vsta)                    # Intel 80386's running VSTa kernel
1316         xm_file=i386/xm-vsta.h
1317         tm_file=i386/vsta.h
1318         tmake_file=i386/t-vsta
1319         ;;
1320 i[34567]86-*-win32)
1321         xm_defines=POSIX
1322         xm_file=i386/xm-cygwin.h
1323         float_format=i386
1324         tmake_file=i386/t-cygwin
1325         tm_file=i386/win32.h
1326         xmake_file=i386/x-cygwin
1327         extra_objs=winnt.o
1328         if test x$enable_threads = xyes; then
1329                 thread_file='win32'
1330         fi
1331         exeext=.exe
1332         ;;
1333 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1334         xm_defines=POSIX
1335         xm_file=i386/xm-cygwin.h
1336         float_format=i386
1337         tmake_file=i386/t-cygwin
1338         tm_file=i386/cygwin.h
1339         xmake_file=i386/x-cygwin
1340         extra_objs=winnt.o
1341         if test x$enable_threads = xyes; then
1342                 thread_file='win32'
1343         fi
1344         exeext=.exe
1345         ;;
1346 i[34567]86-*-mingw32*)
1347         tm_file=i386/mingw32.h
1348         float_format=i386
1349         xm_defines=POSIX
1350         xm_file=i386/xm-mingw32.h
1351         tmake_file="i386/t-cygwin i386/t-mingw32"
1352         extra_objs=winnt.o
1353         xmake_file=i386/x-cygwin
1354         if test x$enable_threads = xyes; then
1355                 thread_file='win32'
1356         fi
1357         exeext=.exe
1358         case $machine in
1359                 *mingw32msv*)
1360                         ;;
1361                 *minwg32crt* | *mingw32*)
1362                         tm_file="${tm_file} i386/crtdll.h"
1363                         ;;
1364         esac
1365         ;;
1366 i[34567]86-*-uwin*)
1367         tm_file=i386/uwin.h
1368         tmake_file="i386/t-cygwin i386/t-uwin"
1369         extra_objs=winnt.o
1370         xmake_file=i386/x-cygwin
1371         if test x$enable_threads = xyes; then
1372                 thread_file='win32'
1373         fi
1374         exeext=.exe
1375         ;;
1376 i[34567]86-*-interix*)
1377         tm_file="i386/i386-interix.h interix.h"
1378         xm_file="i386/xm-i386-interix.h xm-interix.h"
1379         xm_defines=POSIX
1380         tmake_file="i386/t-interix"
1381         extra_objs=interix.o
1382         xmake_file=x-interix
1383         if test x$enable_threads = xyes ; then
1384                 thread_file='posix'
1385         fi
1386         if test x$stabs = xyes ; then
1387                 tm_file="${tm_file} dbxcoff.h"
1388         fi
1389         ;;
1390 i[34567]86-dg-dgux*)
1391         xm_defines=POSIX
1392         out_file=i386/dgux.c
1393         tm_file=i386/dgux.h
1394         tmake_file=i386/t-dgux
1395         xmake_file=i386/x-dgux
1396         install_headers_dir=install-headers-cpio
1397       ;;
1398 i860-alliant-*)         # Alliant FX/2800
1399         tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1400         tmake_file=i860/t-fx2800
1401         extra_parts="crtbegin.o crtend.o"
1402         ;;
1403 i860-*-bsd*)
1404         tm_file="${tm_file} i860/bsd.h"
1405         if test x$gas = xyes
1406         then
1407                 tm_file="${tm_file} i860/bsd-gas.h"
1408         fi
1409         use_collect2=yes
1410         ;;
1411 i860-*-mach*)
1412         tm_file="${tm_file} i860/mach.h"
1413         tmake_file=t-libc-ok
1414         ;;
1415 i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
1416         tm_file="${tm_file} svr3.h i860/paragon.h"
1417         xm_defines=POSIX
1418         ;;
1419 i860-*-sysv3*)
1420         tm_file="${tm_file} svr3.h i860/sysv3.h"
1421         xm_defines=POSIX
1422         extra_parts="crtbegin.o crtend.o"
1423         ;;
1424 i860-*-sysv4*)
1425         tm_file="${tm_file} svr4.h i860/sysv4.h"
1426         xm_defines=POSIX
1427         tmake_file=t-svr4
1428         extra_parts="crtbegin.o crtend.o"
1429         ;;
1430 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1431         tm_file="${tm_file} i960/vx960.h"
1432         tmake_file=i960/t-vxworks960
1433         use_collect2=yes
1434         thread_file='vxworks'
1435         c_target_objs="i960-c.o"
1436         cxx_target_objs="i960-c.o"
1437         ;;
1438 i960-wrs-vxworks5* | i960-wrs-vxworks)
1439         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1440         tmake_file=i960/t-vxworks960
1441         use_collect2=yes
1442         thread_file='vxworks'
1443         c_target_objs="i960-c.o"
1444         cxx_target_objs="i960-c.o"
1445         ;;
1446 i960-wrs-vxworks*)
1447         tm_file="${tm_file} i960/vx960.h"
1448         tmake_file=i960/t-vxworks960
1449         use_collect2=yes
1450         thread_file='vxworks'
1451         c_target_objs="i960-c.o"
1452         cxx_target_objs="i960-c.o"
1453         ;;
1454 i960-*-coff*)
1455         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1456         tmake_file=i960/t-960bare
1457         use_collect2=yes
1458         c_target_objs="i960-c.o"
1459         cxx_target_objs="i960-c.o"
1460         ;;
1461 i960-*-rtems)
1462         tmake_file="i960/t-960bare t-rtems"
1463         tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1464         use_collect2=yes
1465         if test x$enable_threads = xyes; then
1466           thread_file='rtems'
1467         fi
1468         c_target_objs="i960-c.o"
1469         cxx_target_objs="i960-c.o"
1470         ;;
1471 i960-*-*)                       # Default i960 environment.
1472         use_collect2=yes
1473         c_target_objs="i960-c.o"
1474         cxx_target_objs="i960-c.o"
1475         ;;
1476 ia64*-*-elf*)
1477         tm_file=ia64/elf.h
1478         tmake_file="ia64/t-ia64"
1479         target_cpu_default="0"
1480         if test x$gas = xyes
1481         then
1482                 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1483         fi
1484         if test x$gnu_ld = xyes
1485         then
1486                 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1487         fi
1488         float_format=i386
1489         ;;
1490 ia64*-*-linux*)
1491         tm_file=ia64/linux.h
1492         tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
1493         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1494         if test x$enable_threads = xyes; then
1495                 thread_file='posix'
1496         fi
1497         float_format=i386
1498         ;;
1499 ia64*-*-hpux*)
1500         tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h"
1501         tmake_file="ia64/t-ia64 ia64/t-hpux"
1502         target_cpu_default="MASK_GNU_AS"
1503         if test x$enable_threads = xyes; then
1504                 thread_file='posix'
1505         fi
1506         float_format=i386
1507         ;;
1508 m32r-*-elf*)
1509         extra_parts="crtinit.o crtfini.o"
1510         ;;
1511 # m68hc11 and m68hc12 share the same machine description.
1512 m68hc11-*-*|m6811-*-*)
1513         tm_file="elfos.h m68hc11/m68hc11.h"
1514         tm_p_file="m68hc11/m68hc11-protos.h"
1515         md_file="m68hc11/m68hc11.md"
1516         out_file="m68hc11/m68hc11.c"
1517         tmake_file="m68hc11/t-m68hc11-gas"
1518         ;;
1519 m68hc12-*-*|m6812-*-*)
1520         tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1521         tm_p_file="m68hc11/m68hc11-protos.h"
1522         md_file="m68hc11/m68hc11.md"
1523         out_file="m68hc11/m68hc11.c"
1524         tmake_file="m68hc11/t-m68hc11-gas"
1525         ;;
1526 m68000-convergent-sysv*)
1527         tm_file=m68k/ctix.h
1528         xm_defines=POSIX
1529         use_collect2=yes
1530         extra_headers=math-68881.h
1531         ;;
1532 m68000-hp-bsd*)                 # HP 9000/200 running BSD
1533         tm_file=m68k/hp2bsd.h
1534         use_collect2=yes
1535         extra_headers=math-68881.h
1536         ;;
1537 m68000-hp-hpux*)                # HP 9000 series 300
1538         xm_defines=POSIX
1539         if test x$gas = xyes
1540         then
1541                 xmake_file=m68k/x-hp320g
1542                 tm_file=m68k/hp310g.h
1543         else
1544                 xmake_file=m68k/x-hp320
1545                 tm_file=m68k/hp310.h
1546         fi
1547         install_headers_dir=install-headers-cpio
1548         use_collect2=yes
1549         extra_headers=math-68881.h
1550         ;;
1551 m68000-sun-sunos3*)
1552         tm_file=m68k/sun2.h
1553         use_collect2=yes
1554         extra_headers=math-68881.h
1555         ;;
1556 m68000-sun-sunos4*)
1557         tm_file=m68k/sun2o4.h
1558         use_collect2=yes
1559         extra_headers=math-68881.h
1560         ;;
1561 m68000-att-sysv*)
1562         xm_defines=POSIX
1563         if test x$gas = xyes
1564         then
1565                 tm_file=m68k/3b1g.h
1566         else
1567                 tm_file=m68k/3b1.h
1568         fi
1569         use_collect2=yes
1570         extra_headers=math-68881.h
1571         ;;
1572 m68k-apple-aux*)                # Apple Macintosh running A/UX
1573         xm_defines=POSIX
1574         tmake_file=m68k/t-aux
1575         install_headers_dir=install-headers-cpio
1576         extra_headers=math-68881.h
1577         extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1578         tm_file=
1579         if test "$gnu_ld" = yes
1580         then
1581                 tm_file="${tm_file} m68k/auxgld.h"
1582         else
1583                 tm_file="${tm_file} m68k/auxld.h"
1584         fi
1585         if test "$gas" = yes
1586         then
1587                 tm_file="${tm_file} m68k/auxgas.h"
1588         else
1589                 tm_file="${tm_file} m68k/auxas.h"
1590         fi
1591         tm_file="${tm_file} m68k/a-ux.h"
1592         float_format=m68k
1593         ;;
1594 m68k-apollo-*)
1595         tm_file=m68k/apollo68.h
1596         use_collect2=yes
1597         extra_headers=math-68881.h
1598         float_format=m68k
1599         ;;
1600 m68k-altos-sysv*)                  # Altos 3068
1601         if test x$gas = xyes
1602         then
1603                 tm_file=m68k/altos3068.h
1604                 xm_defines=POSIX
1605         else
1606                 echo "The Altos is supported only with the GNU assembler" 1>&2
1607                 exit 1
1608         fi
1609         extra_headers=math-68881.h
1610         ;;
1611 m68k-bull-sysv*)                # Bull DPX/2
1612         if test x$gas = xyes
1613         then
1614                 if test x$stabs = xyes
1615                 then
1616                         tm_file=m68k/dpx2cdbx.h
1617                 else
1618                         tm_file=m68k/dpx2g.h
1619                 fi
1620         else
1621                 tm_file=m68k/dpx2.h
1622         fi
1623         xm_defines=POSIX
1624         use_collect2=yes
1625         extra_headers=math-68881.h
1626         ;;
1627 m68k-atari-sysv4*)              # Atari variant of V.4.
1628         tm_file=m68k/atari.h
1629         xm_defines=POSIX
1630         tmake_file=t-svr4
1631         extra_parts="crtbegin.o crtend.o"
1632         extra_headers=math-68881.h
1633         float_format=m68k
1634         ;;
1635 m68k-motorola-sysv*)
1636         tm_file=m68k/mot3300.h
1637         xm_defines=POSIX
1638         if test x$gas = xyes
1639         then
1640                 if test x$gnu_ld = xyes
1641                 then
1642                         tmake_file=m68k/t-mot3300-gald
1643                 else
1644                         tmake_file=m68k/t-mot3300-gas
1645                         use_collect2=yes
1646                 fi
1647         else
1648                 if test x$gnu_ld = xyes
1649                 then
1650                         tmake_file=m68k/t-mot3300-gld
1651                 else
1652                         tmake_file=m68k/t-mot3300
1653                         use_collect2=yes
1654                 fi
1655         fi
1656         gdb_needs_out_file_path=yes
1657         extra_parts="crt0.o mcrt0.o"
1658         extra_headers=math-68881.h
1659         float_format=m68k
1660         ;;
1661 m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
1662         tm_file=m68k/tower-as.h
1663         xm_defines=POSIX
1664         extra_parts="crtbegin.o crtend.o"
1665         extra_headers=math-68881.h
1666         ;;
1667 m68k-plexus-sysv*)
1668         tm_file=m68k/plexus.h
1669         xm_defines=POSIX
1670         use_collect2=yes
1671         extra_headers=math-68881.h
1672         ;;
1673 m68k-tti-*)
1674         tm_file=m68k/pbb.h
1675         xm_defines=POSIX
1676         extra_headers=math-68881.h
1677         ;;
1678 m68k-crds-unos*)
1679         xm_defines=POSIX
1680         tm_file=m68k/crds.h
1681         use_collect2=yes
1682         extra_headers=math-68881.h
1683         ;;
1684 m68k-cbm-sysv4*)                # Commodore variant of V.4.
1685         tm_file=m68k/amix.h
1686         xm_defines=POSIX
1687         tmake_file=t-svr4
1688         extra_parts="crtbegin.o crtend.o"
1689         extra_headers=math-68881.h
1690         float_format=m68k
1691         ;;
1692 m68k-ccur-rtu)
1693         tm_file=m68k/ccur-GAS.h
1694         extra_headers=math-68881.h
1695         use_collect2=yes
1696         float_format=m68k
1697         ;;
1698 m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
1699         tm_file=m68k/hp3bsd44.h
1700         use_collect2=yes
1701         extra_headers=math-68881.h
1702         float_format=m68k
1703         ;;
1704 m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
1705         tm_file=m68k/hp3bsd.h
1706         use_collect2=yes
1707         extra_headers=math-68881.h
1708         float_format=m68k
1709         ;;
1710 m68k-isi-bsd*)
1711         if test x$with_fp = xno
1712         then
1713                 tm_file=m68k/isi-nfp.h
1714         else
1715                 tm_file=m68k/isi.h
1716                 float_format=m68k
1717         fi
1718         use_collect2=yes
1719         extra_headers=math-68881.h
1720         ;;
1721 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1722         xm_defines=POSIX
1723         if test x$gas = xyes
1724         then
1725                 xmake_file=m68k/x-hp320g
1726                 tm_file=m68k/hp320g.h
1727         else
1728                 xmake_file=m68k/x-hp320
1729                 tm_file=m68k/hpux7.h
1730         fi
1731         install_headers_dir=install-headers-cpio
1732         use_collect2=yes
1733         extra_headers=math-68881.h
1734         float_format=m68k
1735         ;;
1736 m68k-hp-hpux*)  # HP 9000 series 300
1737         xm_defines=POSIX
1738         if test x$gas = xyes
1739         then
1740                 xmake_file=m68k/x-hp320g
1741                 tm_file=m68k/hp320g.h
1742         else
1743                 xmake_file=m68k/x-hp320
1744                 tm_file=m68k/hp320.h
1745         fi
1746         install_headers_dir=install-headers-cpio
1747         use_collect2=yes
1748         extra_headers=math-68881.h
1749         float_format=m68k
1750         ;;
1751 m68k-sun-mach*)
1752         tm_file=m68k/sun3mach.h
1753         use_collect2=yes
1754         extra_headers=math-68881.h
1755         float_format=m68k
1756         ;;
1757 m68k-sony-newsos3*)
1758         if test x$gas = xyes
1759         then
1760                 tm_file=m68k/news3gas.h
1761         else
1762                 tm_file=m68k/news3.h
1763         fi
1764         use_collect2=yes
1765         extra_headers=math-68881.h
1766         float_format=m68k
1767         ;;
1768 m68k-sony-bsd* | m68k-sony-newsos*)
1769         if test x$gas = xyes
1770         then
1771                 tm_file=m68k/newsgas.h
1772         else
1773                 tm_file=m68k/news.h
1774         fi
1775         use_collect2=yes
1776         extra_headers=math-68881.h
1777         float_format=m68k
1778         ;;
1779 m68k-next-nextstep2*)
1780         tm_file=m68k/next21.h
1781         tmake_file=m68k/t-next
1782         xmake_file=m68k/x-next
1783         extra_objs=nextstep.o
1784         extra_headers=math-68881.h
1785         use_collect2=yes
1786         float_format=m68k
1787         ;;
1788 m68k-next-nextstep[34]*)
1789         tm_file=m68k/next.h
1790         tmake_file=m68k/t-next
1791         xmake_file=m68k/x-next
1792         extra_objs=nextstep.o
1793         extra_parts="crtbegin.o crtend.o"
1794         extra_headers=math-68881.h
1795         float_format=m68k
1796         if test x$enable_threads = xyes; then
1797                 thread_file='mach'
1798         fi
1799         ;;
1800 m68k-sun-sunos3*)
1801         if test x$with_fp = xno
1802         then
1803                 tm_file=m68k/sun3n3.h
1804         else
1805                 tm_file=m68k/sun3o3.h
1806                 float_format=m68k
1807         fi
1808         use_collect2=yes
1809         extra_headers=math-68881.h
1810         ;;
1811 m68k-sun-sunos*)                        # For SunOS 4 (the default).
1812         if test x$with_fp = xno
1813         then
1814                 tm_file=m68k/sun3n.h
1815         else
1816                 tm_file=m68k/sun3.h
1817                 float_format=m68k
1818         fi
1819         use_collect2=yes
1820         extra_headers=math-68881.h
1821         ;;
1822 m68k-wrs-vxworks*)
1823         tm_file=m68k/vxm68k.h
1824         tmake_file=m68k/t-vxworks68
1825         extra_headers=math-68881.h
1826         thread_file='vxworks'
1827         float_format=m68k
1828         ;;
1829 m68k-*-aout*)
1830         tmake_file=m68k/t-m68kbare
1831         tm_file="m68k/m68k-aout.h libgloss.h"
1832         extra_headers=math-68881.h
1833         float_format=m68k
1834         ;;
1835 m68k-*-coff*)
1836         tmake_file=m68k/t-m68kbare
1837         tm_file="m68k/m68k-coff.h dbx.h"
1838         extra_headers=math-68881.h
1839         float_format=m68k
1840         ;;
1841 m68020-*-elf* | m68k-*-elf*)
1842         tm_file="m68k/m68020-elf.h"
1843         xm_defines=POSIX
1844         tmake_file=m68k/t-m68kelf
1845         header_files=math-68881.h
1846         ;;
1847 m68k-*-lynxos*)
1848         if test x$gas = xyes
1849         then
1850                 tm_file=m68k/lynx.h
1851         else
1852                 tm_file=m68k/lynx-ng.h
1853         fi
1854         tmake_file=m68k/t-lynx
1855         extra_headers=math-68881.h
1856         float_format=m68k
1857         ;;
1858 m68k*-*-netbsd*)
1859         tm_file=m68k/netbsd.h
1860         tmake_file=t-netbsd
1861         float_format=m68k
1862         use_collect2=yes
1863         ;;
1864 m68k*-*-openbsd*)
1865         float_format=m68k
1866         # we need collect2 until our bug is fixed...
1867         use_collect2=yes
1868         ;;
1869 m68k-*-sysv3*)                  # Motorola m68k's running system V.3
1870         xm_defines=POSIX
1871         extra_parts="crtbegin.o crtend.o"
1872         extra_headers=math-68881.h
1873         float_format=m68k
1874         ;;
1875 m68k-*-sysv4*)                  # Motorola m68k's running system V.4
1876         tm_file=m68k/m68kv4.h
1877         xm_defines=POSIX
1878         tmake_file=t-svr4
1879         extra_parts="crtbegin.o crtend.o"
1880         extra_headers=math-68881.h
1881         float_format=m68k
1882         ;;
1883 m68k-*-linux*aout*)             # Motorola m68k's running GNU/Linux
1884                                 # with a.out format
1885         xmake_file=x-linux
1886         tm_file=m68k/linux-aout.h
1887         tmake_file="t-linux-aout m68k/t-linux-aout"
1888         extra_headers=math-68881.h
1889         float_format=m68k
1890         gnu_ld=yes
1891         ;;
1892 m68k-*-linux*libc1)             # Motorola m68k's running GNU/Linux
1893                                 # with ELF format using the
1894                                 # GNU/Linux C library 5
1895         xmake_file=x-linux
1896         tm_file=m68k/linux.h
1897         tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1898         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1899         extra_headers=math-68881.h
1900         float_format=m68k
1901         gnu_ld=yes
1902         ;;
1903 m68k-*-linux*)          # Motorola m68k's running GNU/Linux
1904                                 # with ELF format using glibc 2
1905                                 # aka the GNU/Linux C library 6.
1906         xmake_file=x-linux
1907         tm_file=m68k/linux.h
1908         tmake_file="t-linux m68k/t-linux"
1909         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1910         extra_headers=math-68881.h
1911         float_format=m68k
1912         gnu_ld=yes
1913         if test x$enable_threads = xyes; then
1914                 thread_file='posix'
1915         fi
1916         ;;
1917 m68k-*-psos*)
1918         tmake_file=m68k/t-m68kbare
1919         tm_file=m68k/m68k-psos.h
1920         extra_headers=math-68881.h
1921         float_format=m68k
1922         ;;
1923 m68k-*-rtemscoff*)
1924         tmake_file="m68k/t-m68kbare t-rtems"
1925         tm_file=m68k/rtems.h
1926         extra_headers=math-68881.h
1927         float_format=m68k
1928         if test x$enable_threads = xyes; then
1929           thread_file='rtems'
1930         fi
1931         ;;
1932 m68k-*-rtemself*|m68k-*-rtems*)
1933         tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1934         tm_file=m68k/rtemself.h
1935         extra_headers=math-68881.h
1936         float_format=m68k
1937         if test x$enable_threads = xyes; then
1938           thread_file='rtems'
1939         fi
1940         ;;
1941 m88k-dg-dgux*)
1942         xm_defines=POSIX
1943         case $machine in
1944           m88k-dg-dguxbcs*)
1945             tm_file=m88k/dguxbcs.h
1946             tmake_file=m88k/t-dguxbcs
1947             ;;
1948           *)
1949             tm_file=m88k/dgux.h
1950             tmake_file=m88k/t-dgux
1951             ;;
1952         esac
1953         extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1954         xmake_file=m88k/x-dgux
1955         if test x$gas = xyes
1956         then
1957                 tmake_file=m88k/t-dgux-gas
1958         fi
1959         ;;
1960 m88k-dolphin-sysv3*)
1961         xm_defines=POSIX
1962         tm_file=m88k/dolph.h
1963         extra_parts="crtbegin.o crtend.o"
1964         xmake_file=m88k/x-dolph
1965         if test x$gas = xyes
1966         then
1967                 tmake_file=m88k/t-m88k-gas
1968         fi
1969         ;;
1970 m88k-tektronix-sysv3)
1971         xm_defines=POSIX
1972         tm_file=m88k/tekXD88.h
1973         extra_parts="crtbegin.o crtend.o"
1974         xmake_file=m88k/x-tekXD88
1975         if test x$gas = xyes
1976         then
1977                 tmake_file=m88k/t-m88k-gas
1978         fi
1979         ;;
1980 m88k-*-aout*)
1981         xm_defines=POSIX
1982         tm_file=m88k/m88k-aout.h
1983         ;;
1984 m88k-*-coff*)
1985         xm_defines=POSIX
1986         tm_file=m88k/m88k-coff.h
1987         tmake_file=m88k/t-bug
1988         ;;
1989 m88k-*-luna*)
1990         tm_file=m88k/luna.h
1991         extra_parts="crtbegin.o crtend.o"
1992         if test x$gas = xyes
1993         then
1994                 tmake_file=m88k/t-luna-gas
1995         else
1996                 tmake_file=m88k/t-luna
1997         fi
1998         ;;
1999 m88k-*-openbsd*)
2000         tmake_file="${tmake_file} m88k/t-luna-gas"
2001         tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2002         ;;
2003 m88k-*-sysv3*)
2004         xm_defines=POSIX
2005         tm_file=m88k/sysv3.h
2006         extra_parts="crtbegin.o crtend.o"
2007         if test x$gas = xyes
2008         then
2009                 tmake_file=m88k/t-m88k-gas
2010         fi
2011         ;;
2012 m88k-*-sysv4*)
2013         xm_defines=POSIX
2014         tm_file=m88k/sysv4.h
2015         extra_parts="crtbegin.o crtend.o"
2016         tmake_file=m88k/t-sysv4
2017         ;;
2018 mcore-*-elf)
2019         tm_file=mcore/mcore-elf.h
2020         tmake_file=mcore/t-mcore
2021         ;;
2022 mcore-*-pe*)
2023         tm_file=mcore/mcore-pe.h
2024         tmake_file=mcore/t-mcore-pe
2025         ;;
2026 mips-sgi-irix6*)                # SGI System V.4., IRIX 6
2027         if test "x$gnu_ld" = xyes
2028         then
2029                 tm_file="mips/iris6.h mips/iris6gld.h"
2030         else
2031                 tm_file=mips/iris6.h
2032         fi
2033         tmake_file=mips/t-iris6
2034         xm_defines=POSIX
2035         xmake_file=mips/x-iris6
2036 #       if test x$enable_threads = xyes; then
2037 #               thread_file='irix'
2038 #       fi
2039         ;;
2040 mips-wrs-vxworks)
2041         tm_file="mips/elf.h mips/vxworks.h"
2042         tmake_file=mips/t-ecoff
2043         gas=yes
2044         gnu_ld=yes
2045         extra_parts="crtbegin.o crtend.o"
2046         thread_file='vxworks'
2047         ;;
2048 mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
2049         tm_file="mips/iris6.h mips/cross64.h"
2050         xm_defines=POSIX
2051         xm_file=mips/xm-iris5.h
2052         xmake_file=mips/x-iris
2053         tmake_file=mips/t-cross64
2054         # See comment in mips/iris[56].h files.
2055         use_collect2=yes
2056 #       if test x$enable_threads = xyes; then
2057 #               thread_file='irix'
2058 #       fi
2059         ;;
2060 mips-sni-sysv4)
2061         if test x$gas = xyes
2062         then
2063                 if test x$stabs = xyes
2064                 then
2065                         tm_file=mips/iris5gdb.h
2066                 else
2067                         tm_file="mips/sni-svr4.h mips/sni-gas.h"
2068                 fi
2069         else
2070                 tm_file=mips/sni-svr4.h
2071         fi
2072         xm_defines=POSIX
2073         tmake_file=mips/t-mips-gas
2074         if test x$gnu_ld != xyes
2075         then
2076                 use_collect2=yes
2077         fi
2078         ;;
2079 mips-sgi-irix5*)                # SGI System V.4., IRIX 5
2080         if test x$gas = xyes
2081         then
2082                 tm_file="mips/iris5.h mips/iris5gas.h"
2083                 if test x$stabs = xyes
2084                 then
2085                         tm_file="${tm_file} dbx.h"
2086                 fi
2087         else
2088                 tm_file=mips/iris5.h
2089         fi
2090         xm_defines=POSIX
2091         xm_file=mips/xm-iris5.h
2092         xmake_file=mips/x-iris
2093         # mips-tfile doesn't work yet
2094         tmake_file=mips/t-mips-gas
2095         # See comment in mips/iris5.h file.
2096         use_collect2=yes
2097 #       if test x$enable_threads = xyes; then
2098 #               thread_file='irix'
2099 #       fi
2100         ;;
2101 mips-sgi-irix4loser*)           # Mostly like a MIPS.
2102         tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2103         if test x$stabs = xyes; then
2104                 tm_file="${tm_file} dbx.h"
2105         fi
2106         xm_defines=POSIX
2107         xmake_file=mips/x-iris
2108         if test x$gas = xyes
2109         then
2110                 tmake_file=mips/t-mips-gas
2111         else
2112                 extra_passes="mips-tfile mips-tdump"
2113         fi
2114         if test x$gnu_ld != xyes
2115         then
2116                 use_collect2=yes
2117         fi
2118 #       if test x$enable_threads = xyes; then
2119 #               thread_file='irix'
2120 #       fi
2121         ;;
2122 mips-sgi-irix4*)                # Mostly like a MIPS.
2123         tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2124         if test x$stabs = xyes; then
2125                 tm_file="${tm_file} dbx.h"
2126         fi
2127         xm_defines=POSIX
2128         xmake_file=mips/x-iris
2129         if test x$gas = xyes
2130         then
2131                 tmake_file=mips/t-mips-gas
2132         else
2133                 extra_passes="mips-tfile mips-tdump"
2134         fi
2135         if test x$gnu_ld != xyes
2136         then
2137                 use_collect2=yes
2138         fi
2139 #       if test x$enable_threads = xyes; then
2140 #               thread_file='irix'
2141 #       fi
2142         ;;
2143 mips-sgi-*)                     # Mostly like a MIPS.
2144         tm_file="mips/iris3.h ${tm_file}"
2145         if test x$stabs = xyes; then
2146                 tm_file="${tm_file} dbx.h"
2147         fi
2148         xm_defines=POSIX
2149         if test x$gas = xyes
2150         then
2151                 tmake_file=mips/t-mips-gas
2152         else
2153                 extra_passes="mips-tfile mips-tdump"
2154         fi
2155         if test x$gnu_ld != xyes
2156         then
2157                 use_collect2=yes
2158         fi
2159         ;;
2160 mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
2161         tm_file="mips/osfrose.h ${tm_file}"
2162         tmake_file=mips/t-osfrose
2163         extra_objs=halfpic.o
2164         use_collect2=yes
2165         ;;
2166 mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
2167         tm_file=mips/dec-osf1.h
2168         if test x$stabs = xyes; then
2169                 tm_file="${tm_file} dbx.h"
2170         fi
2171         if test x$gas = xyes
2172         then
2173                 tmake_file=mips/t-mips-gas
2174         else
2175                 tmake_file=mips/t-ultrix
2176                 extra_passes="mips-tfile mips-tdump"
2177         fi
2178         if test x$gnu_ld != xyes
2179         then
2180                 use_collect2=yes
2181         fi
2182         ;;
2183 mips-dec-bsd*)                  # Decstation running 4.4 BSD
2184       tm_file=mips/dec-bsd.h
2185       if test x$gas = xyes
2186       then
2187                 tmake_file=mips/t-mips-gas
2188       else
2189                 tmake_file=mips/t-ultrix
2190                 extra_passes="mips-tfile mips-tdump"
2191       fi
2192       if test x$gnu_ld != xyes
2193       then
2194                 use_collect2=yes
2195       fi
2196       ;;
2197 mipsel-*-netbsd* | mips-dec-netbsd*)    # Decstation running NetBSD
2198         tm_file=mips/netbsd.h
2199         # On NetBSD, the headers are already okay, except for math.h.
2200         tmake_file=t-netbsd
2201         ;;
2202 mips*-*-linux*)                         # Linux MIPS, either endian.
2203         xmake_file=x-linux
2204         case $machine in
2205                mips*el-*)  tm_file="elfos.h mips/elfl.h mips/linux.h" ;;
2206                *)         tm_file="elfos.h mips/elf.h mips/linux.h" ;;
2207         esac
2208         tmake_file=t-linux
2209         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2210         gnu_ld=yes
2211         gas=yes
2212         if test x$enable_threads = xyes; then
2213                 thread_file='posix'
2214         fi
2215         ;;
2216 mips*el-*-openbsd*)     # mips little endian
2217         target_cpu_default="MASK_GAS|MASK_ABICALLS"
2218         ;;
2219 mips*-*-openbsd*)               # mips big endian
2220         target_cpu_default="MASK_GAS|MASK_ABICALLS"
2221         tm_file="mips/openbsd-be.h ${tm_file}"
2222         ;;
2223 mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
2224         tm_file="mips/news4.h ${tm_file}"
2225         if test x$stabs = xyes; then
2226                 tm_file="${tm_file} dbx.h"
2227         fi
2228         if test x$gas = xyes
2229         then
2230                 tmake_file=mips/t-mips-gas
2231         else
2232                 extra_passes="mips-tfile mips-tdump"
2233         fi
2234         if test x$gnu_ld != xyes
2235         then
2236                 use_collect2=yes
2237         fi
2238         ;;
2239 mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
2240                                 # That is based on svr4.
2241         # t-svr4 is not right because this system doesn't use ELF.
2242         tm_file="mips/news5.h ${tm_file}"
2243         if test x$stabs = xyes; then
2244                 tm_file="${tm_file} dbx.h"
2245         fi
2246         xm_defines=POSIX
2247         if test x$gas = xyes
2248         then
2249                 tmake_file=mips/t-mips-gas
2250         else
2251                 extra_passes="mips-tfile mips-tdump"
2252         fi
2253         if test x$gnu_ld != xyes
2254         then
2255                 use_collect2=yes
2256         fi
2257         ;;
2258 mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
2259         tm_file="mips/svr4-5.h mips/svr4-t.h"
2260         if test x$stabs = xyes; then
2261                 tm_file="${tm_file} dbx.h"
2262         fi
2263         xm_defines=POSIX
2264         if test x$gas = xyes
2265         then
2266                 tmake_file=mips/t-mips-gas
2267                 extra_parts="crtbegin.o crtend.o"
2268         else
2269                 tmake_file=mips/t-mips
2270                 extra_passes="mips-tfile mips-tdump"
2271         fi
2272         if test x$gnu_ld != xyes
2273         then
2274                 use_collect2=yes
2275         fi
2276         ;;
2277 mips-*-ultrix* | mips-dec-mach3)        # Decstation.
2278         tm_file="mips/ultrix.h ${tm_file}"
2279         if test x$stabs = xyes; then
2280                 tm_file="${tm_file} dbx.h"
2281         fi
2282         if test x$gas = xyes
2283         then
2284                 tmake_file=mips/t-mips-gas
2285         else
2286                 tmake_file=mips/t-ultrix
2287                 extra_passes="mips-tfile mips-tdump"
2288         fi
2289         if test x$gnu_ld != xyes
2290         then
2291                 use_collect2=yes
2292         fi
2293         ;;
2294 mips-*-riscos[56789]bsd*)
2295         tm_file=mips/bsd-5.h    # MIPS BSD 4.3, RISC-OS 5.0
2296         if test x$stabs = xyes; then
2297                 tm_file="${tm_file} dbx.h"
2298         fi
2299         if test x$gas = xyes
2300         then
2301                 tmake_file=mips/t-bsd-gas
2302         else
2303                 tmake_file=mips/t-bsd
2304                 extra_passes="mips-tfile mips-tdump"
2305         fi
2306         if test x$gnu_ld != xyes
2307         then
2308                 use_collect2=yes
2309         fi
2310         ;;
2311 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2312         tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2313         if test x$stabs = xyes; then
2314                 tm_file="${tm_file} dbx.h"
2315         fi
2316         if test x$gas = xyes
2317         then
2318                 tmake_file=mips/t-bsd-gas
2319         else
2320                 tmake_file=mips/t-bsd
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]sysv4*)
2329         tm_file=mips/svr4-5.h   # MIPS System V.4., RISC-OS 5.0
2330         if test x$stabs = xyes; then
2331                 tm_file="${tm_file} dbx.h"
2332         fi
2333         if test x$gas = xyes
2334         then
2335                 tmake_file=mips/t-svr4-gas
2336         else
2337                 tmake_file=mips/t-svr4
2338                 extra_passes="mips-tfile mips-tdump"
2339         fi
2340         if test x$gnu_ld != xyes
2341         then
2342                 use_collect2=yes
2343         fi
2344         ;;
2345 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2346         tm_file="mips/svr4-4.h ${tm_file}"
2347         if test x$stabs = xyes; then
2348                 tm_file="${tm_file} dbx.h"
2349         fi
2350         xm_defines=POSIX
2351         if test x$gas = xyes
2352         then
2353                 tmake_file=mips/t-svr4-gas
2354         else
2355                 tmake_file=mips/t-svr4
2356                 extra_passes="mips-tfile mips-tdump"
2357         fi
2358         if test x$gnu_ld != xyes
2359         then
2360                 use_collect2=yes
2361         fi
2362         ;;
2363 mips-*-riscos[56789]sysv*)
2364         tm_file=mips/svr3-5.h   # MIPS System V.3, RISC-OS 5.0
2365         if test x$stabs = xyes; then
2366                 tm_file="${tm_file} dbx.h"
2367         fi
2368         xm_defines=POSIX
2369         if test x$gas = xyes
2370         then
2371                 tmake_file=mips/t-svr3-gas
2372         else
2373                 tmake_file=mips/t-svr3
2374                 extra_passes="mips-tfile mips-tdump"
2375         fi
2376         if test x$gnu_ld != xyes
2377         then
2378                 use_collect2=yes
2379         fi
2380         ;;
2381 mips-*-sysv* | mips-*-riscos*sysv*)
2382         tm_file="mips/svr3-4.h ${tm_file}"
2383         if test x$stabs = xyes; then
2384                 tm_file="${tm_file} dbx.h"
2385         fi
2386         xm_defines=POSIX
2387         if test x$gas = xyes
2388         then
2389                 tmake_file=mips/t-svr3-gas
2390         else
2391                 tmake_file=mips/t-svr3
2392                 extra_passes="mips-tfile mips-tdump"
2393         fi
2394         if test x$gnu_ld != xyes
2395         then
2396                 use_collect2=yes
2397         fi
2398         ;;
2399 mips-*-riscos[56789]*)          # Default MIPS RISC-OS 5.0.
2400         tm_file=mips/mips-5.h
2401         if test x$stabs = xyes; then
2402                 tm_file="${tm_file} dbx.h"
2403         fi
2404         if test x$gas = xyes
2405         then
2406                 tmake_file=mips/t-mips-gas
2407         else
2408                 extra_passes="mips-tfile mips-tdump"
2409         fi
2410         if test x$gnu_ld != xyes
2411         then
2412                 use_collect2=yes
2413         fi
2414         ;;
2415 mips-*-gnu*)
2416         ;;
2417 mipsel-*-ecoff*)
2418         tm_file=mips/ecoffl.h
2419         if test x$stabs = xyes; then
2420                 tm_file="${tm_file} dbx.h"
2421         fi
2422         tmake_file=mips/t-ecoff
2423         ;;
2424 mips-*-ecoff*)
2425         tm_file="gofast.h mips/ecoff.h"
2426         if test x$stabs = xyes; then
2427                 tm_file="${tm_file} dbx.h"
2428         fi
2429         tmake_file=mips/t-ecoff
2430         ;;
2431 mipsel-*-elf*)
2432         tm_file="mips/elfl.h"
2433         tmake_file=mips/t-elf
2434         ;;
2435 mips-*-elf*)
2436         tm_file="mips/elf.h"
2437         tmake_file=mips/t-elf
2438         ;;
2439 mips64el-*-elf*)
2440         tm_file="mips/elfl64.h"
2441         tmake_file=mips/t-elf
2442         ;;
2443 mips64orionel-*-elf*)
2444         tm_file="mips/elforion.h mips/elfl64.h"
2445         tmake_file=mips/t-elf
2446         ;;
2447 mips64-*-elf*)
2448         tm_file="mips/elf64.h"
2449         tmake_file=mips/t-elf
2450         ;;
2451 mips64orion-*-elf*)
2452         tm_file="mips/elforion.h mips/elf64.h"
2453         tmake_file=mips/t-elf
2454         ;;
2455 mips64orion-*-rtems*)
2456         tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2457         tmake_file="mips/t-elf t-rtems"
2458         if test x$enable_threads = xyes; then
2459           thread_file='rtems'
2460         fi
2461         ;;
2462 mips*-*-rtems*)
2463         tm_file="mips/elf.h mips/rtems.h"
2464         tmake_file="mips/t-elf t-rtems"
2465         if test x$enable_threads = xyes; then
2466           thread_file='rtems'
2467         fi
2468         ;;
2469 mipstx39el-*-elf*)
2470         tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2471         tmake_file=mips/t-r3900
2472         ;;
2473 mipstx39-*-elf*)
2474         tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2475         tmake_file=mips/t-r3900
2476         ;;
2477 mips-*-*)                               # Default MIPS RISC-OS 4.0.
2478         if test x$stabs = xyes; then
2479                 tm_file="${tm_file} dbx.h"
2480         fi
2481         if test x$gas = xyes
2482         then
2483                 tmake_file=mips/t-mips-gas
2484         else
2485                 extra_passes="mips-tfile mips-tdump"
2486         fi
2487         if test x$gnu_ld != xyes
2488         then
2489                 use_collect2=yes
2490         fi
2491         ;;
2492 mn10200-*-*)
2493         float_format=i32
2494         cpu_type=mn10200
2495         tm_file="mn10200/mn10200.h"
2496         if test x$stabs = xyes
2497         then
2498                 tm_file="${tm_file} dbx.h"
2499         fi
2500         use_collect2=no
2501         ;;
2502 mn10300-*-*)
2503         cpu_type=mn10300
2504         tm_file="mn10300/mn10300.h"
2505         if test x$stabs = xyes
2506         then
2507                 tm_file="${tm_file} dbx.h"
2508         fi
2509         use_collect2=no
2510         ;;
2511 ns32k-encore-bsd*)
2512         tm_file=ns32k/encore.h
2513         use_collect2=yes
2514         ;;
2515 ns32k-sequent-bsd*)
2516         tm_file=ns32k/sequent.h
2517         use_collect2=yes
2518         ;;
2519 ns32k-tek6100-bsd*)
2520         tm_file=ns32k/tek6100.h
2521         use_collect2=yes
2522         ;;
2523 ns32k-tek6200-bsd*)
2524         tm_file=ns32k/tek6200.h
2525         use_collect2=yes
2526         ;;
2527 ns32k-merlin-*)
2528         tm_file=ns32k/merlin.h
2529         use_collect2=yes
2530         ;;
2531 ns32k-pc532-mach*)
2532         tm_file=ns32k/pc532-mach.h
2533         use_collect2=yes
2534         ;;
2535 ns32k-pc532-minix*)
2536         tm_file=ns32k/pc532-min.h
2537         xm_defines='POSIX HZ=60'
2538         use_collect2=yes
2539         ;;
2540 ns32k-*-netbsd*)
2541         tm_file=ns32k/netbsd.h
2542         # On NetBSD, the headers are already okay, except for math.h.
2543         tmake_file=t-netbsd
2544         use_collect2=yes
2545         ;;
2546 pdp11-*-bsd)
2547         tm_file="${tm_file} pdp11/2bsd.h"
2548         ;;
2549 pdp11-*-*)
2550         ;;
2551 avr-*-*)
2552         ;;
2553 ns32k-*-openbsd*)
2554         # Nothing special
2555         ;;
2556 pj*-linux*)
2557         tm_file="svr4.h pj/linux.h ${tm_file}"
2558         ;;
2559 pj-*)
2560         ;;
2561 pjl-*)
2562         tm_file="svr4.h pj/pjl.h ${tm_file}"
2563         ;;
2564
2565 romp-*-aos*)
2566         use_collect2=yes
2567         ;;
2568 romp-*-mach*)
2569         use_collect2=yes
2570         ;;
2571 romp-*-openbsd*)
2572         # Nothing special
2573         ;;
2574 powerpc-*-openbsd*)
2575         tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2576         ;;
2577 powerpc-*-beos*)
2578         cpu_type=rs6000
2579         tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2580         xm_defines=POSIX
2581         xm_file=rs6000/xm-beos.h
2582         tmake_file=rs6000/t-beos
2583         ;;
2584 powerpc-*-darwin*)
2585         cpu_type=rs6000
2586         tm_file="${tm_file} darwin.h rs6000/darwin.h"
2587         tm_p_file="${tm_p_file} darwin-protos.h"
2588         tmake_file=rs6000/t-darwin
2589         xmake_file=rs6000/x-darwin
2590         # Override the usual setting, since Apple's GCC has lame bugs
2591         # and can't handle the initializers.  Someday the bugs will be
2592         # fixed and we can get rid of this silliness.
2593         xm_defines="HAVE_DESIGNATED_INITIALIZERS=0"
2594         extra_objs="darwin.o"
2595         # Darwin linker does collect2 functionality
2596         use_collect2=no
2597         ;;
2598 powerpc-*-sysv*)
2599         tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2600         xm_defines=POSIX
2601         extra_headers=ppc-asm.h
2602         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2603         ;;
2604 powerpc-*-chorusos*)
2605         xm_defines=POSIX
2606         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2607         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2608         extra_headers=ppc-asm.h
2609         case x${enable_threads} in
2610           xyes | xpthreads | xposix)
2611                 thread_file='posix'
2612                 ;;
2613         esac
2614         ;;
2615 powerpc-*-eabiaix*)
2616         xm_defines=POSIX
2617         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2618         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2619         extra_headers=ppc-asm.h
2620         ;;
2621 powerpc-*-eabisim*)
2622         xm_defines=POSIX
2623         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2624         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2625         extra_headers=ppc-asm.h
2626         ;;
2627 powerpc-*-elf*)
2628         xm_defines=POSIX
2629         tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2630         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2631         extra_headers=ppc-asm.h
2632         ;;
2633 powerpc-*-eabi*)
2634         xm_defines=POSIX
2635         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2636         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2637         extra_headers=ppc-asm.h
2638         ;;
2639 powerpc-*-rtems*)
2640         xm_defines=POSIX
2641         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2642         tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2643         extra_headers=ppc-asm.h
2644         if test x$enable_threads = xyes; then
2645           thread_file='rtems'
2646         fi
2647         ;;
2648 powerpc-*-linux*libc1)
2649         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2650         out_file=rs6000/rs6000.c
2651         tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2652         xmake_file=x-linux
2653         extra_headers=ppc-asm.h
2654         if test x$enable_threads = xyes; then
2655                 thread_file='posix'
2656         fi
2657         ;;
2658 powerpc-*-linux*)
2659         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2660         out_file=rs6000/rs6000.c
2661         tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2662         xmake_file=x-linux
2663         extra_headers=ppc-asm.h
2664         if test x$enable_threads = xyes; then
2665                 thread_file='posix'
2666         fi
2667         ;;
2668 powerpc-wrs-vxworks*)
2669         cpu_type=rs6000
2670         xm_defines=POSIX
2671         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2672         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2673         extra_headers=ppc-asm.h
2674         thread_file='vxworks'
2675         ;;
2676 powerpcle-wrs-vxworks*)
2677         cpu_type=rs6000
2678         xm_defines=POSIX
2679         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2680         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2681         extra_headers=ppc-asm.h
2682         thread_file='vxworks'
2683         ;;
2684 powerpcle-*-sysv*)
2685         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2686         xm_defines=POSIX
2687         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2688         extra_headers=ppc-asm.h
2689         ;;
2690 powerpcle-*-elf*)
2691         xm_defines=POSIX
2692         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2693         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2694         extra_headers=ppc-asm.h
2695         ;;
2696 powerpcle-*-eabisim*)
2697         xm_defines=POSIX
2698         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2699         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2700         extra_headers=ppc-asm.h
2701         ;;
2702 powerpcle-*-eabi*)
2703         xm_defines=POSIX
2704         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2705         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2706         extra_headers=ppc-asm.h
2707         ;;
2708 powerpcle-*-solaris2*)
2709         tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2710         xm_defines=POSIX
2711         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2712         extra_headers=ppc-asm.h
2713         ;;
2714 rs6000-ibm-aix3.[01]*)
2715         xm_defines=POSIX
2716         tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2717         float_format=none
2718         use_collect2=yes
2719         ;;
2720 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2721         xm_defines=POSIX
2722         tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2723         tmake_file=rs6000/t-newas
2724         float_format=none
2725         use_collect2=yes
2726         ;;
2727 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2728         xm_defines=POSIX
2729         tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2730         tmake_file=rs6000/t-newas
2731         float_format=none
2732         use_collect2=yes
2733         ;;
2734 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2735         xm_defines=POSIX
2736         tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2737         tmake_file=rs6000/t-aix43
2738         float_format=none
2739         use_collect2=yes
2740         thread_file='aix'
2741         ;;
2742 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2743         xm_defines=POSIX
2744         tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2745         tmake_file=rs6000/t-aix43
2746         float_format=none
2747         use_collect2=yes
2748         thread_file='aix'
2749         ;;
2750 rs6000-ibm-aix*)
2751         xm_defines=POSIX
2752         tm_file="${tm_file} rs6000/aix.h"
2753         float_format=none
2754         use_collect2=yes
2755         ;;
2756 rs6000-bull-bosx)
2757         xm_defines=POSIX
2758         tm_file="${tm_file} rs6000/aix.h"
2759         float_format=none
2760         use_collect2=yes
2761         ;;
2762 rs6000-*-mach*)
2763         tm_file=rs6000/mach.h
2764         xm_defines=POSIX
2765         use_collect2=yes
2766         ;;
2767 rs6000-*-lynxos*)
2768         tm_file=rs6000/lynx.h
2769         tmake_file=rs6000/t-rs6000
2770         use_collect2=yes
2771         ;;
2772 sh-*-elf*)
2773         tmake_file="sh/t-sh sh/t-elf"
2774         tm_file="sh/sh.h sh/elf.h"
2775         float_format=sh
2776         ;;
2777 sh-*-rtemself*)
2778         tmake_file="sh/t-sh sh/t-elf t-rtems"
2779         tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2780         float_format=sh
2781         if test x$enable_threads = xyes; then
2782           thread_file='rtems'
2783         fi
2784         ;;
2785 sh-*-rtems*)
2786         tmake_file="sh/t-sh t-rtems"
2787         tm_file="sh/sh.h sh/rtems.h"
2788         float_format=sh
2789         if test x$enable_threads = xyes; then
2790           thread_file='rtems'
2791         fi
2792         ;;
2793 sh-*-linux*)
2794         tm_file="sh/sh.h sh/elf.h sh/linux.h"
2795         tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2796         xmake_file=x-linux
2797         gas=yes gnu_ld=yes
2798         if test x$enable_threads = xyes; then
2799                 thread_file='posix'
2800         fi
2801         float_format=sh
2802         ;;
2803 sh-*-*)
2804         float_format=sh
2805         ;;
2806 sparc-tti-*)
2807         tm_file=sparc/pbd.h
2808         xm_defines=POSIX
2809         ;;
2810 sparc64-wrs-vxworks*)
2811         tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2812         tmake_file=sparc/t-vxsparc64
2813         use_collect2=yes
2814         ;;
2815 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2816         tm_file=sparc/vxsparc.h
2817         tmake_file=sparc/t-vxsparc
2818         use_collect2=yes
2819         thread_file='vxworks'
2820         ;;
2821 sparc-*-aout*)
2822         tmake_file=sparc/t-sparcbare
2823         tm_file="sparc/aout.h libgloss.h"
2824         ;;
2825 sparc-*-netbsd*)
2826         tm_file=sparc/netbsd.h
2827         tmake_file=t-netbsd
2828         use_collect2=yes
2829         ;;
2830 sparc-*-openbsd*)
2831         # we need collect2 until our bug is fixed...
2832         use_collect2=yes
2833         ;;
2834 sparc-*-bsd*)
2835         tm_file=sparc/bsd.h
2836         ;;
2837 sparc-*-chorusos*)
2838         tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
2839         tmake_file=sparc/t-chorus-elf
2840         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2841         float_format=i64
2842         case x${enable_threads} in
2843           xyes | xpthreads | xposix)
2844                 thread_file='posix'
2845                 ;;
2846         esac
2847         ;;
2848 sparc-*-elf*)
2849         tm_file="sparc/sol2.h sparc/elf.h"
2850         tmake_file=sparc/t-elf
2851         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2852         #float_format=i128
2853         float_format=i64
2854         ;;
2855 sparc-*-linux*aout*)            # Sparc's running GNU/Linux, a.out
2856         tm_file=sparc/linux-aout.h
2857         xmake_file=x-linux
2858         gnu_ld=yes
2859         ;;
2860 sparc-*-linux*libc1*)   # Sparc's running GNU/Linux, libc5
2861         xmake_file=x-linux
2862         tm_file=sparc/linux.h
2863         tmake_file="t-linux t-linux-gnulibc1"
2864         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2865         gnu_ld=yes
2866         float_format=sparc
2867         ;;
2868 sparc-*-linux*)         # Sparc's running GNU/Linux, libc6
2869         xmake_file=x-linux
2870         tm_file=sparc/linux.h
2871         tmake_file="t-linux"
2872         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2873         gnu_ld=yes
2874         if test x$enable_threads = xyes; then
2875                 thread_file='posix'
2876         fi
2877         float_format=sparc
2878         ;;
2879 sparc-*-lynxos*)
2880         if test x$gas = xyes
2881         then
2882                 tm_file=sparc/lynx.h
2883         else
2884                 tm_file=sparc/lynx-ng.h
2885         fi
2886         tmake_file=sparc/t-sunos41
2887         ;;
2888 sparc-*-rtemsaout*)
2889         tmake_file="sparc/t-sparcbare t-rtems"
2890         tm_file=sparc/rtems.h
2891         if test x$enable_threads = xyes; then
2892           thread_file='rtems'
2893         fi
2894         ;;
2895 sparc-*-rtems*|sparc-*-rtemself*)
2896         tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
2897         tmake_file="sparc/t-elf t-rtems"
2898         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2899         #float_format=i128
2900         float_format=i64
2901         if test x$enable_threads = xyes; then
2902           thread_file='rtems'
2903         fi
2904         ;;
2905 sparcv9-*-solaris2*)
2906         if test x$gnu_ld = xyes
2907         then
2908                 tm_file=sparc/sol2-64.h
2909         else
2910                 tm_file=sparc/sol2-sld-64.h
2911         fi
2912         xm_defines=POSIX
2913         tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2914         if test x$gnu_ld = xyes; then
2915                 tmake_file="$tmake_file sparc/t-slibgcc"
2916         else
2917                 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2918         fi
2919         extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2920         float_format=none
2921         if test x${enable_threads} = x ; then
2922             enable_threads=$have_pthread_h
2923             if test x${enable_threads} = x ; then
2924                 enable_threads=$have_thread_h
2925             fi
2926         fi
2927         if test x${enable_threads} = xyes ; then
2928             if test x${have_pthread_h} = xyes ; then
2929                 thread_file='posix'
2930             else
2931                 thread_file='solaris'
2932             fi
2933         fi
2934         ;;
2935 sparc-hal-solaris2*)
2936         xm_defines=POSIX
2937         tm_file="sparc/sol2.h sparc/hal.h"
2938         tmake_file="sparc/t-halos sparc/t-sol2"
2939         if test x$gnu_ld = xyes; then
2940                 tmake_file="$tmake_file sparc/t-slibgcc"
2941         else
2942                 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2943         fi
2944         extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2945         case $machine in
2946         *-*-solaris2.[0-4])
2947                 float_format=i128
2948         ;;
2949         *)
2950                 float_format=none
2951                 ;;
2952         esac
2953         thread_file='solaris'
2954         ;;
2955 sparc-*-solaris2*)
2956         if test x$gnu_ld = xyes
2957         then
2958                 tm_file=sparc/sol2.h
2959         else
2960                 tm_file=sparc/sol2-sld.h
2961         fi
2962         xm_defines=POSIX
2963         tmake_file=sparc/t-sol2
2964         if test x$gnu_ld = xyes; then
2965                 tmake_file="$tmake_file sparc/t-slibgcc"
2966         else
2967                 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2968         fi
2969         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2970 # At the moment, 32-to-64 cross compilation doesn't work.
2971 #       case $machine in
2972 #       *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
2973 #       *-*-solaris2*)
2974 #               if test x$gnu_ld = xyes
2975 #               then
2976 #                       tm_file=sparc/sol2-64.h
2977 #               else
2978 #                       tm_file=sparc/sol2-sld-64.h
2979 #               fi
2980 #               tmake_file="$tmake_file sparc/t-sol2-64"
2981 #               ;;
2982 #       esac
2983         case $machine in
2984         *-*-solaris2.[0-4])
2985                 float_format=i128
2986                 ;;
2987         *)
2988                 float_format=none
2989                 ;;
2990         esac
2991         if test x${enable_threads} = x; then
2992             enable_threads=$have_pthread_h
2993             if test x${enable_threads} = x; then
2994                 enable_threads=$have_thread_h
2995             fi
2996         fi
2997         if test x${enable_threads} = xyes; then
2998             if test x${have_pthread_h} = xyes; then
2999                 thread_file='posix'
3000             else
3001                 thread_file='solaris'
3002             fi
3003         fi
3004         ;;
3005 sparc-*-sunos4.0*)
3006         tm_file=sparc/sunos4.h
3007         tmake_file=sparc/t-sunos40
3008         use_collect2=yes
3009         ;;
3010 sparc-*-sunos4*)
3011         tm_file=sparc/sunos4.h
3012         tmake_file=sparc/t-sunos41
3013         use_collect2=yes
3014         if test x$gas = xyes; then
3015                 tm_file="${tm_file} sparc/sun4gas.h"
3016         fi
3017         ;;
3018 sparc-*-sunos3*)
3019         tm_file=sparc/sun4o3.h
3020         use_collect2=yes
3021         ;;
3022 sparc-*-sysv4*)
3023         tm_file=sparc/sysv4.h
3024         xm_defines=POSIX
3025         tmake_file=t-svr4
3026         extra_parts="crtbegin.o crtend.o"
3027         ;;
3028 sparc-*-vxsim*)
3029         xm_defines=POSIX
3030         tm_file=sparc/vxsim.h
3031         tmake_file=sparc/t-vxsparc
3032         ;;
3033 sparclet-*-aout*)
3034         tm_file="sparc/splet.h libgloss.h"
3035         tmake_file=sparc/t-splet
3036         ;;
3037 sparclite-*-coff*)
3038         tm_file="sparc/litecoff.h libgloss.h"
3039         tmake_file=sparc/t-sparclite
3040         ;;
3041 sparclite-*-aout*)
3042         tm_file="sparc/lite.h aoutos.h libgloss.h"
3043         tmake_file=sparc/t-sparclite
3044         ;;
3045 sparclite-*-elf*)
3046         tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3047         tmake_file=sparc/t-sparclite
3048         extra_parts="crtbegin.o crtend.o"
3049         ;;
3050 sparc86x-*-aout*)
3051         tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3052         tmake_file=sparc/t-sp86x
3053         ;;
3054 sparc86x-*-elf*)        
3055         tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3056         tmake_file=sparc/t-sp86x
3057         extra_parts="crtbegin.o crtend.o"
3058         ;;
3059 sparc64-*-aout*)
3060         tmake_file=sparc/t-sp64
3061         tm_file=sparc/sp64-aout.h
3062         ;;
3063 sparc64-*-elf*)
3064         tmake_file=sparc/t-sp64
3065         tm_file=sparc/sp64-elf.h
3066         extra_parts="crtbegin.o crtend.o"
3067         ;;
3068 sparc64-*-linux*)               # 64-bit Sparc's running GNU/Linux
3069         tmake_file="t-linux sparc/t-linux64"
3070         tm_file=sparc/linux64.h
3071         xmake_file=x-linux
3072         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3073         gnu_ld=yes
3074         if test x$enable_threads = xyes; then
3075                 thread_file='posix'
3076         fi
3077         float_format=sparc
3078         ;;
3079 strongarm-*-elf*)
3080         tm_file=arm/strongarm-elf.h
3081         tmake_file=arm/t-strongarm-elf
3082         out_file=arm/arm.c
3083         md_file=arm/arm.md
3084         ;;
3085 strongarm-*-coff*)
3086         tm_file=arm/strongarm-coff.h
3087         tmake_file=arm/t-strongarm-coff
3088         out_file=arm/arm.c
3089         md_file=arm/arm.md
3090         ;;
3091 strongarm-*-pe)
3092         tm_file=arm/strongarm-pe.h
3093         tmake_file=arm/t-strongarm-pe
3094         out_file=arm/arm.c
3095         md_file=arm/arm.md
3096         extra_objs=pe.o
3097         ;;
3098 thumb*-*-*)
3099         { echo "config.gcc: error:
3100 *** The Thumb targets have been deprecated.  The equivalent
3101 *** ARM based toolchain can now generate Thumb instructions
3102 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3103         ;;
3104 v850-*-rtems*)
3105         cpu_type=v850
3106         tm_file="v850/rtems.h"
3107         tmake_file="v850/t-v850 t-rtems"
3108         if test x$stabs = xyes
3109         then
3110                 tm_file="${tm_file} dbx.h"
3111         fi
3112         use_collect2=no
3113         c_target_objs="v850-c.o"
3114         cxx_target_objs="v850-c.o"
3115         ;;
3116 v850-*-*)
3117         target_cpu_default="TARGET_CPU_generic"
3118         cpu_type=v850
3119         tm_file="v850/v850.h"
3120         tmake_file=v850/t-v850
3121         if test x$stabs = xyes
3122         then
3123                 tm_file="${tm_file} dbx.h"
3124         fi
3125         use_collect2=no
3126         c_target_objs="v850-c.o"
3127         cxx_target_objs="v850-c.o"
3128         ;;
3129 vax-*-bsd*)                     # vaxen running BSD
3130         use_collect2=yes
3131         float_format=vax
3132         ;;
3133 vax-*-sysv*)                    # vaxen running system V
3134         tm_file="${tm_file} vax/vaxv.h"
3135         xm_defines=POSIX
3136         float_format=vax
3137         ;;
3138 vax-*-netbsd*)
3139         tm_file="${tm_file} netbsd.h vax/netbsd.h"
3140         tmake_file=t-netbsd
3141         float_format=vax
3142         use_collect2=yes
3143         ;;
3144 vax-*-openbsd*)
3145         tmake_file="${tmake_file} vax/t-openbsd"
3146         tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3147         float_format=vax
3148         use_collect2=yes
3149         ;;
3150 vax-*-ultrix*)                  # vaxen running ultrix
3151         tm_file="${tm_file} vax/ultrix.h"
3152         float_format=vax
3153         ;;
3154 vax-*-vms*)                     # vaxen running VMS
3155         xm_file=vax/xm-vms.h
3156         tm_file=vax/vms.h
3157         float_format=vax
3158         ;;
3159 vax-*-*)                        # vax default entry
3160         float_format=vax
3161         ;;
3162 we32k-att-sysv*)
3163         xm_defines=POSIX
3164         use_collect2=yes
3165         ;;
3166 xscale-*-elf)
3167         tm_file=arm/xscale-elf.h
3168         tmake_file=arm/t-xscale-elf
3169         out_file=arm/arm.c
3170         md_file=arm/arm.md
3171         ;;
3172 xscale-*-coff)
3173         tm_file=arm/xscale-coff.h
3174         tmake_file=arm/t-xscale-coff
3175         out_file=arm/arm.c
3176         md_file=arm/arm.md
3177         ;;
3178 *)
3179         echo "Configuration $machine not supported" 1>&2
3180         exit 1
3181         ;;
3182 esac
3183
3184 case $machine in
3185 *-*-sysv*)
3186         install_headers_dir=install-headers-cpio
3187         ;;
3188 esac
3189
3190 # Distinguish i[34567]86
3191 # Also, do not run mips-tfile on MIPS if using gas.
3192 # Process --with-cpu= for PowerPC/rs6000
3193 target_cpu_default2=
3194 case $machine in
3195 i486-*-*)
3196         target_cpu_default2=1
3197         ;;
3198 i586-*-*)
3199         case $target_alias in
3200                 k6-*)
3201                         target_cpu_default2=4
3202                         ;;
3203                 *)
3204                         target_cpu_default2=2
3205                         ;;
3206         esac
3207         ;;
3208 i686-*-* | i786-*-*)
3209         target_cpu_default2=3
3210         ;;
3211 alpha*-*-*)
3212         case $machine in
3213                 alphaev6[78]*)
3214                         target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3215                         ;;
3216                 alphaev6*)
3217                         target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3218                         ;;
3219                 alphapca56*)
3220                         target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3221                         ;;
3222                 alphaev56*)
3223                         target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3224                         ;;
3225                 alphaev5*)
3226                         target_cpu_default2="MASK_CPU_EV5"
3227                         ;;
3228         esac
3229                         
3230         if test x$gas = xyes
3231         then
3232                 if test "$target_cpu_default2" = ""
3233                 then
3234                         target_cpu_default2="MASK_GAS"
3235                 else
3236                         target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3237                 fi
3238         fi
3239         ;;
3240 arm*-*-*)
3241         case "x$with_cpu" in
3242                 x)
3243                         # The most generic
3244                         target_cpu_default2="TARGET_CPU_generic"
3245                         ;;
3246
3247                 # Distinguish cores, and major variants
3248                 # arm7m doesn't exist, but D & I don't affect code
3249                 xarm[236789] | xarm250 | xarm[67][01]0 \
3250                 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3251                 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3252                 | xxscale \
3253                 | xstrongarm | xstrongarm110 | xstrongarm1100)
3254                         target_cpu_default2="TARGET_CPU_$with_cpu"
3255                         ;;
3256
3257                 xyes | xno)
3258                         echo "--with-cpu must be passed a value" 1>&2
3259                         exit 1
3260                         ;;
3261
3262                 *)
3263                         if test x$pass2done = xyes
3264                         then
3265                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3266                                 exit 1
3267                         fi
3268                         ;;
3269         esac
3270         ;;
3271
3272 hppa*-*-* | parisc*-*-*)
3273         if test x$gas = xyes
3274         then
3275                 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3276         fi
3277         ;;
3278
3279 mips*-*-ecoff* | mips*-*-elf*)
3280         if test x$gas = xyes
3281         then
3282                 if test x$gnu_ld = xyes
3283                 then
3284                         target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3285                 else
3286                         target_cpu_default2="MASK_GAS"
3287                 fi
3288         fi
3289         ;;
3290 mips*-*-*)
3291         if test x$gas = xyes
3292         then
3293                 target_cpu_default2="MASK_GAS"
3294         fi
3295         ;;
3296 powerpc*-*-* | rs6000-*-*)
3297         case "x$with_cpu" in
3298                 x)
3299                         ;;
3300
3301                 xcommon | xpower | xpower2 | xpowerpc | xrios \
3302                   | xrios1 | xrios2 | xrsc | xrsc1 \
3303                   | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3304                   | xec603e | x740 | x750 | x401 \
3305                   | x403 | x505 | x801 | x821 | x823 | x860)
3306                         target_cpu_default2="\"$with_cpu\""
3307                         ;;
3308
3309                 xyes | xno)
3310                         echo "--with-cpu must be passed a value" 1>&2
3311                         exit 1
3312                         ;;
3313
3314                 *)
3315                         if test x$pass2done = xyes
3316                         then
3317                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3318                                 exit 1
3319                         fi
3320                         ;;
3321         esac
3322         ;;
3323 sparc*-*-*)
3324         case ".$with_cpu" in
3325                 .)
3326                         target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3327                         ;;
3328                 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3329                         target_cpu_default2="TARGET_CPU_$with_cpu"
3330                         ;;
3331                 *)
3332                         if test x$pass2done = xyes
3333                         then
3334                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3335                                 exit 1
3336                         fi
3337                         ;;
3338         esac
3339         ;;
3340 esac
3341
3342 if test "$target_cpu_default2" != ""
3343 then
3344         if test "$target_cpu_default" != ""
3345         then
3346                 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3347         else
3348                 target_cpu_default=$target_cpu_default2
3349         fi
3350 fi
3351
3352 # No need for collect2 if we have the GNU linker.
3353 # Actually, there is now; GNU ld doesn't handle the EH info or
3354 # collecting for shared libraries.
3355 #case x$gnu_ld in
3356 #xyes)
3357 #       use_collect2=
3358 #       ;;
3359 #esac
3360
3361 # Save data on machine being used to compile GCC in build_xm_file.
3362 # Save data on host machine in vars host_xm_file and host_xmake_file.
3363 if test x$pass1done = x
3364 then
3365         if test x$xm_file != x
3366         then build_xm_file=$xm_file
3367         fi
3368         build_xm_defines=$xm_defines
3369         build_install_headers_dir=$install_headers_dir
3370         build_exeext=$exeext
3371         pass1done=yes
3372 else
3373         if test x$pass2done = x
3374         then
3375                 if test x$xm_file != x
3376                 then host_xm_file=$xm_file
3377                 fi
3378                 host_xm_defines=$xm_defines
3379                 host_xmake_file="$xmake_file"
3380                 host_truncate_target=$truncate_target
3381                 host_extra_gcc_objs=$extra_gcc_objs
3382                 host_extra_objs=$extra_host_objs
3383                 host_exeext=$exeext
3384                 pass2done=yes
3385         fi
3386 fi