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