OSDN Git Service

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