OSDN Git Service

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