OSDN Git Service

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