OSDN Git Service

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