OSDN Git Service

* config.gcc: Delete references to m68k/t-linux and
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
1 # GCC build-, host- and target-specific configuration file.
2 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003
3 # Free Software Foundation, Inc.
4
5 #This file is part of GCC.
6
7 #GCC is free software; you can redistribute it and/or modify it under
8 #the terms of the GNU General Public License as published by the Free
9 #Software Foundation; either version 2, or (at your option) any later
10 #version.
11
12 #GCC is distributed in the hope that it will be useful, but WITHOUT
13 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 #FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 #for more details.
16
17 #You should have received a copy of the GNU General Public License
18 #along with GCC; see the file COPYING.  If not, write to the Free
19 #Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 #02111-1307, USA.
21
22 # This is the GCC build-, host- and target-specific configuration file
23 # where a configuration type, as recognized and generated by config.bfd,
24 # is mapped to different system-specific definitions and files.  This is
25 # invoked by the autoconf-generated configure script, called for build,
26 # host and target in that order, setting ${machine} to each.  Putting it
27 # in a separate shell file lets us skip running autoconf when modifying
28 # build-, host- and target-specific information.
29
30 # This file switches on the shell variable ${machine}, and also uses the
31 # following shell variables:
32 #
33 #  with_*               Various variables as set by configure.
34 #
35 #  enable_threads_flag  Either the name, yes or no depending on whether
36 #                       threads support was requested.
37 #
38 #  gas_flag             Either yes or no depending on whether GNU as was
39 #                       requested.
40 #
41 #  gnu_ld_flag          Either yes or no depending on whether GNU ld was
42 #                       requested.
43
44 # This file sets the following shell variables for use by the
45 # autoconf-generated configure script:
46 #
47 #  cpu_type             The name of the cpu, if different from machine.
48 #
49 #  tm_defines           List of target macros to define for all compilations.
50 #
51 #  tm_file              A list of target macro files, if different from
52 #                       "$cpu_type/$cpu_type.h". Usually it's constructed
53 #                       per target in a way like this:
54 #                       tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
55 #                       Note that the preferred order is:
56 #                       - specific target header "${cpu_type}/${cpu_type.h}"
57 #                       - generic headers like dbxelf.h elfos.h, netware.h, etc.
58 #                       - specializing target headers like ${cpu_type.h}/elf.h
59 #                       This helps to keep OS specific stuff out of the CPU
60 #                       defining header ${cpu_type}/${cpu_type.h}.
61 #
62 #  tm_p_file            Location of file with declarations for functions
63 #                       in $out_file.
64 #
65 #  out_file             The name of the machine description C support
66 #                       file, if different from "$cpu_type/$cpu_type.c".
67 #
68 #  md_file              The name of the machine-description file, if
69 #                       different from "$cpu_type/$cpu_type.md".
70 #
71 #  tmake_file           A list of machine-description-specific
72 #                       makefile-fragments, if different from
73 #                       "$cpu_type/t-$cpu_type".
74 #
75 #  extra_modes          The name of the file containing a list of extra
76 #                       machine modes, if necessary and different from
77 #                       "$cpu_type/$cpu_type-modes.def".
78 #
79 #  extra_objs           List of extra objects that should be linked into
80 #                       the compiler proper (cc1, cc1obj, cc1plus)
81 #                       depending on target.
82 #
83 #  extra_headers        List of used header files from the directory
84 #                       config/${cpu_type}.
85 #
86 #  host_xmake_file      List of host-specific makefile-fragments.
87 #
88 #  extra_passes         List of extra executables compiled for this target
89 #                       machine, used for compiling from source to object.
90 #
91 #  extra_parts          List of extra object files that should be compiled
92 #                       for this target machine.
93 #
94 #  extra_programs       Like extra_passes, but these are used when linking.
95 #
96 #  host_extra_objs      List of extra host-dependent objects that should
97 #                       be linked into the compiler proper.
98 #
99 #  host_extra_gcc_objs  List of extra host-dependent objects that should
100 #                       be linked into the gcc driver.
101 #
102 #  out_host_hook_obj    An object file that provides the host hooks.
103 #
104 #  c_target_objs        List of extra target-dependent objects that be
105 #                       linked into the C compiler only.
106 #
107 #  cxx_target_objs      List of extra target-dependent objects that be
108 #                       linked into the C++ compiler only.
109 #
110 #  target_gtfiles       List of extra source files with type information.
111 #
112 #  build_xm_defines     List of macros to define when compiling for the
113 #                       build machine.
114 #
115 #  build_xm_file        List of files to include when compiling for the
116 #                       build machine.
117 #
118 #  host_xm_defines      List of macros to define when compiling for the
119 #                       host machine.
120 #
121 #  host_xm_file         List of files to include when compiling for the
122 #                       host machine.
123 #
124 #  xm_defines           List of macros to define when compiling for the
125 #                       target machine.
126 #
127 #  xm_file              List of files to include when compiling for the
128 #                       target machine.
129 #
130 #  use_collect2         Set to yes or no, depending on whether collect2
131 #                       will be used.
132 #
133 #  target_cpu_default   Set to override the default target model.
134 #
135 #  build_install_headers_dir
136 #                       Target to use when installing header files.
137 #
138 #  host_truncate_target
139 #                       Non-empty if the target name should be truncated
140 #                       on this host, due to filename length issues.
141 #
142 #  gdb_needs_out_file_path
143 #                       Set to yes if gdb needs a dir command with
144 #                       `dirname $out_file`.
145 #
146 #  build_exeext         Set to the suffix, if the build machine requires
147 #                       executables to have a file name suffix.
148 #
149 #  host_exeext          Set to the suffix, if the host machine requires
150 #                       executables to have a file name suffix.
151 #
152 #  thread_file          Set to control which thread package to use.
153 #
154 #  gas                  Set to yes or no depending on whether the target
155 #                       system normally uses GNU as.
156 #
157 #  need_64bit_hwint     Set to yes if HOST_WIDE_INT must be 64 bits wide
158 #                       for this target.  This is true iff
159 #                       MAX_LONG_TYPE_SIZE is 64.  (The code which
160 #                       determines the underlying integral type for
161 #                       HOST_WIDE_INT cannot see the definition of
162 #                       MAX_LONG_TYPE_SIZE.)
163
164 # The following variables are used in each case-construct to build up the
165 # outgoing variables:
166 #
167 #  xmake_file           Makefile-fragment when this system is as a host,
168 #                       for host_xmake_file.
169 #
170 #  extra_host_objs      List of extra objects that should be linked into
171 #                       the compiler proper when this system is a host,
172 #                       for host_extra_objs.
173 #
174 #  host_hook_obj        An object file that provides the host hooks.
175 #
176 #  install_headers_dir  Makefile-target for how the header file directory
177 #                       is installed, when this system is a build system,
178 #                       for build_install_headers_dir.
179 #
180 #  truncate_target      Non-empty if the target name should be truncated
181 #                       when this system is a host, due to filename length
182 #                       issues.  For host_truncate_target.
183 #
184 #  exeext               The suffix for executables on this system.
185 #
186 #  gnu_ld               Set to yes or no depending on whether the target
187 #                       system normally uses GNU ld.
188
189 out_file=
190 xmake_file=
191 tmake_file=
192 extra_headers=
193 extra_passes=
194 extra_parts=
195 extra_programs=
196 extra_objs=
197 extra_host_objs=
198 extra_gcc_objs=
199 c_target_objs=
200 cxx_target_objs=
201 host_hook_obj=host-default.o
202 tm_defines=
203 xm_defines=
204 # Set this to force installation and use of collect2.
205 use_collect2=
206 # Set this to override the default target model.
207 target_cpu_default=
208 # Set this to control how the header file directory is installed.
209 install_headers_dir=install-headers-tar
210 # Set this if directory names should be truncated to 14 characters.
211 truncate_target=
212 # Set this if gdb needs a dir command with `dirname $out_file`
213 gdb_needs_out_file_path=
214 # Set this if the build machine requires executables to have a
215 # file name suffix.
216 exeext=
217 # Set this to control which thread package will be used.
218 thread_file=
219 # Reinitialize these from the flag values every loop pass, since some
220 # configure entries modify them.
221 gas="$gas_flag"
222 gnu_ld="$gnu_ld_flag"
223 enable_threads=$enable_threads_flag
224 target_gtfiles=
225 need_64bit_hwint=
226
227 # Obsolete configurations.
228 case $machine in
229    m88k-*-aout*     \
230  | m88k-*-openbsd*  \
231  | m88k-*-sysv4*    \
232  | mips-sni-sysv4   \
233  | mn10200-*-*      \
234  | ns32k-*-openbsd* \
235  | romp-*-openbsd*  \
236  )
237     if test "x$enable_obsolete" != xyes; then
238       echo "*** Configuration $machine is obsolete." >&2
239       echo "*** Specify --enable-obsolete to build it anyway." >&2
240       echo "*** Support will be REMOVED in the next major release of GCC," >&2
241       echo "*** unless a maintainer comes forward." >&2
242       exit 1
243     fi;;
244 esac
245
246 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
247 # updated in each machine entry.  Also set default extra_headers for some
248 # machines.
249 tm_p_file=
250 cpu_type=`echo $machine | sed 's/-.*$//'`
251 case $machine in
252 alpha*-*-*)
253         cpu_type=alpha
254         need_64bit_hwint=yes
255         ;;
256 strongarm*-*-*)
257         cpu_type=arm
258         ;;
259 arm*-*-*)
260         cpu_type=arm
261         ;;
262 ep9312*-*-*)
263         cpu_type=arm
264         ;;
265 xscale-*-*)
266         cpu_type=arm
267         ;;
268 i[34567]86-*-*)
269         cpu_type=i386
270         extra_headers="mmintrin.h xmmintrin.h"
271         ;;
272 x86_64-*-*)
273         cpu_type=i386
274         extra_headers="mmintrin.h xmmintrin.h"
275         need_64bit_hwint=yes
276         ;;
277 ia64-*-*)
278         extra_headers=ia64intrin.h
279         need_64bit_hwint=yes
280         ;;
281 hppa*-*-* | parisc*-*-*)
282         cpu_type=pa
283         ;;
284 m680[012]0-*-*)
285         cpu_type=m68k
286         extra_headers=math-68881.h
287         ;;
288 m68k-*-*)
289         extra_headers=math-68881.h
290         ;;
291 mips*-*-*)
292         cpu_type=mips
293         need_64bit_hwint=yes
294         ;;
295 powerpc*-*-*)
296         cpu_type=rs6000
297         extra_headers="ppc-asm.h altivec.h spe.h"
298         need_64bit_hwint=yes
299         ;;
300 rs6000*-*-*)
301         need_64bit_hwint=yes
302         ;;
303 sparc64*-*-*)
304         cpu_type=sparc
305         need_64bit_hwint=yes
306         ;;
307 sparc*-*-*)
308         cpu_type=sparc
309         ;;
310 s390*-*-*)
311         need_64bit_hwint=yes
312         ;;
313 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
314 sh[123456789l]*-*-*)
315         cpu_type=sh
316         need_64bit_hwint=yes
317         ;;
318 tic4x-*-*)
319         cpu_type=c4x
320         ;;
321 esac
322
323 tm_file=${cpu_type}/${cpu_type}.h
324 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
325 then
326         tm_p_file=${cpu_type}/${cpu_type}-protos.h
327 fi
328 extra_modes=
329 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
330 then
331         extra_modes=${cpu_type}/${cpu_type}-modes.def
332 fi
333
334 case $machine in
335 x86_64-*-*)
336         tm_file="i386/biarch64.h ${tm_file}"
337         ;;
338 esac
339
340 # On a.out targets, we need to use collect2.
341 case $machine in
342 *-*-*aout*)
343         use_collect2=yes
344         ;;
345 esac
346
347 # Common parts for widely ported systems.
348 case $machine in
349 *-*-linux*)
350         xm_defines=POSIX
351         case $machine in
352         *-*-linux*ecoff* | *-*-linux*libc1* | *-*-linux*oldld* | *-*-linux*aout*)
353                 ;;
354         *)
355                 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
356                 gas=yes gnu_ld=yes
357                 case x${enable_threads} in
358                         x | xyes | xposix) thread_file='posix'
359                         ;;
360                 esac
361                 ;;
362         esac
363         ;;
364 *-*-gnu*)
365         # On the Hurd, the setup is just about the same on
366         # each different CPU.  The specific machines that we
367         # support are matched above and just set $cpu_type.
368         xm_defines=POSIX
369         tm_file="${cpu_type}/gnu.h"
370         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
371         # GNU always uses ELF.
372         elf=yes
373         # GNU tools are the only tools.
374         gnu_ld=yes
375         gas=yes
376         # These details are the same as for Linux.
377         # But here we need a little extra magic.
378         tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
379         case $machine in
380         alpha*)
381                 tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
382                 ;;
383         i[34567]86-*-*)
384                 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}"
385                 ;;
386         esac
387         ;;
388 *-*-openbsd*)
389         tm_file=${cpu_type}/openbsd.h
390         tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
391         xm_defines=POSIX
392         if test x$enable_threads = xyes; then
393                 thread_file='posix'
394                 tmake_file="${tmake_file} t-openbsd-thread"
395         fi
396         ;;
397 *-*-netbsd*)
398         tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd"
399         xm_defines=POSIX
400         gas=yes
401         gnu_ld=yes
402         case x${enable_threads} in
403         xyes | xposix)
404                 thread_file='posix'
405                 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
406                 ;;
407         esac
408
409         # NetBSD 1.7 and later are set up to use GCC's crtstuff for
410         # ELF configurations.  We will clear extra_parts in the
411         # a.out configurations.
412         case $machine in
413         *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
414                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
415                 ;;
416         esac
417         ;;
418 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
419         # This is the place-holder for the generic a.out configuration
420         # of FreeBSD.  No actual configuration resides here since
421         # there was only ever a bare-bones ix86 configuration for
422         # a.out and it exists solely in the machine-specific section.
423         # This place-holder must exist to avoid dropping into
424         # the generic ELF configuration of FreeBSD (i.e. it must be
425         # ordered before that section).
426         ;;
427 *-*-freebsd*)
428         # This is the generic ELF configuration of FreeBSD.  Later
429         # machine-specific sections may refine and add to this
430         # configuration.
431         #
432         # Due to tm_file entry ordering issues that vary between cpu
433         # architectures, we only define fbsd_tm_file to allow the
434         # machine-specific section to dictate the final order of all
435         # entries of tm_file with the minor exception that components
436         # of the tm_file set here will always be of the form:
437         #
438         # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
439         #
440         # The machine-specific section should not tamper with this
441         # ordering but may order all other entries of tm_file as it
442         # pleases around the provided core setting.
443         gas=yes
444         gnu_ld=yes
445         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
446         case $machine in
447         *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
448         *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
449         *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
450         *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
451         *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
452         esac
453         tmake_file="t-slibgcc-elf-ver t-freebsd"
454         xmake_file=none
455         xm_defines=POSIX
456         case x${enable_threads} in
457         xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
458         x | xyes | xpthreads | xposix)
459                 thread_file='posix'
460                 tmake_file="${tmake_file} t-freebsd-thread"
461                 # Before 5.0, FreeBSD can't bind shared libraries to -lc
462                 # when "optionally" threaded via weak pthread_* checks.
463                 case $machine in
464                 *-*-freebsd[34] | *-*-freebsd[34].*)
465                         tmake_file="${tmake_file} t-slibgcc-nolc-override";;
466                 esac
467                 ;;
468         *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
469         esac
470         fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
471         ;;
472 *-*-darwin*)
473         tm_file="${tm_file} darwin.h"
474         tm_p_file="${tm_p_file} darwin-protos.h"
475         tmake_file="t-darwin"
476         target_gtfiles="\$(srcdir)/config/darwin.c"
477         c_target_objs="darwin-c.o"
478         cxx_target_objs="darwin-c.o"
479         extra_parts="crt2.o"
480         # Darwin linker does collect2 functionality
481         use_collect2=no
482         extra_objs="darwin.o"
483         ;;      
484 *-*-vxworks*)
485         tmake_file=t-vxworks
486         tm_file="${tm_file} elfos.h svr4.h vxworks.h"
487         thread_file='vxworks'
488         use_collect2=yes
489         xm_defines=POSIX
490         ;;
491 esac
492
493 case $machine in
494 # Support site-specific machine types.
495 *local*)
496         rest=`echo $machine | sed -e "s/$cpu_type-//"`
497         tm_file=${cpu_type}/$rest.h
498         if test -f $srcdir/config/${cpu_type}/xm-$rest.h
499         then xm_file=${cpu_type}/xm-$rest.h
500         fi
501         if test -f $srcdir/config/${cpu_type}/x-$rest
502         then xmake_file=${cpu_type}/x-$rest
503         fi
504         if test -f $srcdir/config/${cpu_type}/t-$rest
505         then tmake_file=${cpu_type}/t-$rest
506         fi
507         ;;
508 alpha*-*-unicosmk*)
509         use_collect2=yes
510         tm_file="${tm_file} alpha/unicosmk.h"
511
512         # Don't include t-ieee for now because we don't support that yet
513         # tmake_file="alpha/t-ieee"
514         tmake_file="alpha/t-unicosmk"
515         ;;
516 alpha-*-interix)
517         tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
518
519         # GAS + IEEE_CONFORMANT+IEEE (no inexact);
520         #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
521
522         # GAS + IEEE_CONFORMANT
523         target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
524
525         xm_defines=POSIX
526         tmake_file="alpha/t-alpha t-interix alpha/t-interix alpha/t-ieee"
527         if test x$enable_threads = xyes ; then
528                 thread_file='posix'
529         fi
530         if test x$stabs = xyes ; then
531                 tm_file="${tm_file} dbxcoff.h"
532         fi
533         #prefix='$$INTERIX_ROOT'/usr/contrib
534         #local_prefix='$$INTERIX_ROOT'/usr/contrib
535         ;;
536 alpha*-*-linux*ecoff*)
537         echo "Configuration $machine no longer supported" 1>&2
538         exit 1
539         ;;
540 alpha*-*-linux*libc1*)
541         tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
542         target_cpu_default="MASK_GAS"
543         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtfm alpha/t-ieee"
544         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
545         gas=yes gnu_ld=yes
546         if test x$enable_threads = xyes; then
547                 thread_file='posix'
548         fi
549         ;;
550 alpha*-*-linux*)
551         tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
552         target_cpu_default="MASK_GAS"
553         tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
554         ;;
555 alpha*-*-gnu*)
556         target_cpu_default="MASK_GAS"
557         tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
558         ;;
559 alpha*-*-freebsd*)
560         tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
561         target_cpu_default="MASK_GAS"
562         tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
563         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
564         ;;
565 alpha*-*-netbsd*)
566         tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
567         target_cpu_default="MASK_GAS"
568         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
569         ;;
570
571 alpha*-*-openbsd*)
572         tm_file="${cpu_type}/${cpu_type}.h ${tm_file}"
573         # default x-alpha is only appropriate for dec-osf.
574         target_cpu_default="MASK_GAS"
575         tmake_file="alpha/t-alpha alpha/t-ieee"
576         ;;
577
578 alpha*-dec-osf[45]*)
579         xm_defines=POSIX
580         if test x$stabs = xyes
581         then
582                 tm_file="${tm_file} dbx.h"
583         fi
584         if test x$gas != xyes
585         then
586                 extra_passes="mips-tfile mips-tdump"
587         fi
588         use_collect2=yes
589         tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
590         tm_file="${tm_file} alpha/osf.h"
591         extra_headers=va_list.h
592         case $machine in
593           *-*-osf4*)
594             # Some versions of OSF4 (specifically X4.0-9 296.7) have
595             # a broken tar, so we use cpio instead.
596             install_headers_dir=install-headers-cpio
597             # Set target_cpu_default except on 4.0a.
598             case $machine in
599                 *-*-osf4.0a) ;;
600                 *) target_cpu_default=MASK_SUPPORT_ARCH
601             esac
602             ;;
603           *-*-osf5*)
604             tm_file="${tm_file} alpha/osf5.h"
605             target_cpu_default=MASK_SUPPORT_ARCH
606             ;;
607         esac
608         ;;
609 alpha64-dec-*vms*)
610         xm_defines=POSIX
611         tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
612         xm_file="alpha/xm-vms.h"
613         tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
614         xmake_file=alpha/x-vms
615         exeext=.exe
616         # This removes the cpu type and manufacturer components and
617         #  replaces "." with "_" in the operating system version.
618         case $host in *-*-*vms*)
619                 target_alias=`echo $host \
620                   | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
621                 ;;
622         esac
623         install_headers_dir=install-headers-cp
624         prefix=/gnu
625         local_prefix=/gnu
626         ;;
627 alpha*-dec-*vms*)
628         xm_defines=POSIX
629         tm_file="${tm_file} alpha/vms.h"
630         xm_file=alpha/xm-vms.h
631         tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
632         xmake_file=alpha/x-vms
633         exeext=.exe
634         # This removes the cpu type and manufacturer components and
635         #  replaces "." with "_" in the operating system version.
636         case $host in *-*-*vms*)
637                 target_alias=`echo $host \
638                   | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
639                 ;;
640         esac
641         install_headers_dir=install-headers-cp
642         prefix=/gnu
643         local_prefix=/gnu
644         ;;
645 arc-*-elf*)
646         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
647         extra_parts="crtinit.o crtfini.o"
648         ;;
649 arm-*-coff* | armel-*-coff*)
650         tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h"
651         tmake_file=arm/t-arm-coff
652         ;;
653 arm-semi-aout | armel-semi-aout)
654         tm_file="arm/semi.h arm/aout.h arm/arm.h"
655         tmake_file=arm/t-semi
656         ;;
657 arm-semi-aof | armel-semi-aof)
658         tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
659         tmake_file=arm/t-semi
660         ;;
661 arm*-*-freebsd*|strongarm*-*-freebsd*)
662         tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
663         tmake_file="${tmake_file} arm/t-strongarm-elf"
664         ;;
665 arm*-*-netbsdelf*)
666         tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
667         tmake_file="${tmake_file} arm/t-netbsd"
668         ;;
669 arm*-*-netbsd*)
670         tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
671         tmake_file="t-netbsd arm/t-netbsd"
672         extra_parts=""
673         use_collect2=yes
674         ;;
675 arm*-*-linux*)                  # ARM GNU/Linux with ELF
676         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"
677         tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
678         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
679         gnu_ld=yes
680         case x${enable_threads} in
681         x | xyes | xpthreads | xposix)
682                 thread_file='posix'
683                 ;;
684         esac
685         ;;
686 arm*-*-uclinux*)                # ARM ucLinux
687         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"
688         tmake_file=arm/t-arm-elf
689         ;;
690 arm*-*-aout)
691         tm_file="arm/aout.h arm/arm.h"
692         tmake_file=arm/t-arm-aout
693         ;;
694 arm*-*-ecos-elf)
695         tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
696         tmake_file=arm/t-arm-elf
697         ;;
698 arm*-*-rtems*)
699         xm_defines=POSIX
700         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"
701         tmake_file="arm/t-arm-elf t-rtems"
702         if test x$enable_threads = xyes; then
703           thread_file='rtems'
704         fi
705         ;;
706 arm*-*-elf | ep9312-*-elf)
707         tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
708         tmake_file=arm/t-arm-elf
709         ;;
710 arm*-*-conix*)
711         tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/conix-elf.h arm/aout.h arm/arm.h"
712         tmake_file=arm/t-arm-elf
713         ;;
714 arm*-*-oabi)
715         tm_file="arm/unknown-elf-oabi.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
716         tmake_file=arm/t-arm-elf
717         ;;
718 arm-*-pe*)
719         tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h"
720         tmake_file=arm/t-pe
721         extra_objs="pe.o"
722         ;;
723 avr-*-*)
724         ;;
725 c4x-*-rtems* | tic4x-*-rtems*)
726         xm_defines=POSIX
727         tmake_file="c4x/t-c4x t-rtems"
728         tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
729         if test x$enable_threads = xyes; then
730           thread_file='rtems'
731         fi
732         c_target_objs="c4x-c.o"
733         cxx_target_objs="c4x-c.o"
734         ;;
735 c4x-* | tic4x-*)
736         tmake_file=c4x/t-c4x
737         c_target_objs="c4x-c.o"
738         cxx_target_objs="c4x-c.o"
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         ;;
754 d30v-*)
755         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
756         ;;
757 dsp16xx-*)
758         ;;
759 fr30-*-elf)
760         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
761         tmake_file=fr30/t-fr30
762         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
763         ;;
764 frv-*-elf)
765         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h"
766         tmake_file=frv/t-frv
767         ;;
768 h8300-*-rtems*)
769         xm_defines=POSIX
770         tmake_file="h8300/t-h8300 t-rtems"
771         tm_file="h8300/h8300.h h8300/rtems.h rtems.h"
772         if test x$enable_threads = xyes; then
773           thread_file='rtems'
774         fi
775         ;;
776 h8300-*-elf*)
777         tmake_file="h8300/t-h8300 h8300/t-elf"
778         tm_file="h8300/h8300.h h8300/elf.h"
779         ;;
780 h8300-*-*)
781         ;;
782 hppa*64*-*-linux* | parisc*64*-*-linux*)
783         target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
784         tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
785                  pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
786         tmake_file=pa/t-linux64
787         gas=yes gnu_ld=yes
788         need_64bit_hwint=yes
789         ;;
790 hppa*-*-linux* | parisc*-*-linux*)
791         target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS"
792         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
793                  pa/pa32-regs.h pa/pa32-linux.h"
794         tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
795         ;;
796 hppa*-*-openbsd*)
797         target_cpu_default="MASK_PA_11"
798         tmake_file=pa/t-bsd
799         ;;
800 hppa1.1-*-pro*)
801         target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
802         tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
803         tmake_file="pa/t-bsd pa/t-pro"
804         xmake_file="pa/x-ada"
805         ;;
806 hppa1.1-*-osf*)
807         target_cpu_default="MASK_PA_11"
808         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
809         tmake_file="pa/t-bsd pa/t-pa"
810         xmake_file="pa/x-ada"
811         use_collect2=yes
812         ;;
813 hppa1.1-*-rtems*)
814         xm_defines=POSIX
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 pa/rtems.h rtems.h"
817         tmake_file="pa/t-bsd pa/t-pro t-rtems"
818         xmake_file="pa/x-ada"
819         if test x$enable_threads = xyes; then
820           thread_file='rtems'
821         fi
822         ;;
823 hppa1.0-*-osf*)
824         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
825         tmake_file="pa/t-bsd pa/t-pa"
826         xmake_file="pa/x-ada"
827         use_collect2=yes
828         ;;
829 hppa1.1-*-bsd*)
830         tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
831         target_cpu_default="MASK_PA_11"
832         tmake_file="pa/t-bsd pa/t-pa"
833         xmake_file="pa/x-ada"
834         use_collect2=yes
835         ;;
836 hppa1.0-*-bsd*)
837         tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
838         tmake_file="pa/t-bsd pa/t-pa"
839         xmake_file="pa/x-ada"
840         use_collect2=yes
841         ;;
842 hppa1.0-*-hpux7*)
843         tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
844         xm_defines=POSIX
845         tmake_file=pa/t-pa-hpux
846         install_headers_dir=install-headers-cpio
847         use_collect2=yes
848         ;;
849 hppa1.0-*-hpux8.0[0-2]*)
850         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
851         xm_defines=POSIX
852         tmake_file=pa/t-pa-hpux
853         if test x$gas != xyes
854         then
855                 tm_file="pa/pa-oldas.h ${tm_file}"
856         fi
857         install_headers_dir=install-headers-cpio
858         use_collect2=yes
859         ;;
860 hppa1.1-*-hpux8.0[0-2]*)
861         target_cpu_default="MASK_PA_11"
862         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
863         xm_defines=POSIX
864         tmake_file=pa/t-pa-hpux
865         if test x$gas != xyes
866         then
867                 tm_file="pa/pa-oldas.h ${tm_file}"
868         fi
869         install_headers_dir=install-headers-cpio
870         use_collect2=yes
871         ;;
872 hppa1.1-*-hpux8*)
873         target_cpu_default="MASK_PA_11"
874         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
875         xm_defines=POSIX
876         tmake_file=pa/t-pa-hpux
877         install_headers_dir=install-headers-cpio
878         use_collect2=yes
879         ;;
880 hppa1.0-*-hpux8*)
881         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
882         xm_defines=POSIX
883         tmake_file=pa/t-pa-hpux
884         install_headers_dir=install-headers-cpio
885         use_collect2=yes
886         ;;
887 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
888         target_cpu_default="MASK_PA_11"
889         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
890         xm_defines=POSIX
891         tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
892         xmake_file="pa/x-ada"
893         if test x$enable_threads = x; then
894             enable_threads=$have_pthread_h
895         fi
896         case x${enable_threads} in
897         xyes | xdce)
898                 tmake_file="${tmake_file} pa/t-dce-thr"
899                 ;;
900         esac
901         install_headers_dir=install-headers-cpio
902         use_collect2=yes
903         ;;
904 hppa1.0-*-hpux10*)
905         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
906         xm_defines=POSIX
907         tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
908         xmake_file="pa/x-ada"
909         if test x$enable_threads = x; then
910             enable_threads=$have_pthread_h
911         fi
912         case x${enable_threads} in
913         xyes | xdce)
914                 tmake_file="${tmake_file} pa/t-dce-thr"
915                 ;;
916         esac
917         install_headers_dir=install-headers-cpio
918         use_collect2=yes
919         ;;
920 hppa*64*-*-hpux11*)
921         xm_defines=POSIX
922         if test x$gas = xyes
923         then
924                 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h  \
925                          pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
926                          pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
927         else
928                 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \
929                          pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
930                          pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
931         fi
932         need_64bit_hwint=yes
933         tmake_file="pa/t-pa64 pa/t-pa-hpux"
934         xmake_file="pa/x-ada"
935         target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
936         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
937         if test x$gnu_ld = xyes
938         then
939                 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
940         fi
941 #       if [ x$enable_threads = x ]; then
942 #           enable_threads=$have_pthread_h
943 #       fi
944 #       if [ x$enable_threads = xyes ]; then
945 #               thread_file='dce'
946 #               tmake_file="${tmake_file} pa/t-dce-thr"
947 #       fi
948         install_headers_dir=install-headers-cpio
949         ;;
950 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
951         target_cpu_default="MASK_PA_11"
952         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
953         xm_defines=POSIX
954         tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
955         xmake_file="pa/x-ada"
956 #       if test x$enable_threads = x; then
957 #           enable_threads=$have_pthread_h
958 #       fi
959 #       if test x$enable_threads = xyes; then
960 #               thread_file='dce'
961 #               tmake_file="${tmake_file} pa/t-dce-thr"
962 #       fi
963         install_headers_dir=install-headers-cpio
964         use_collect2=yes
965         ;;
966 hppa1.0-*-hpux11*)
967         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
968         xm_defines=POSIX
969         tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
970         xmake_file="pa/x-ada"
971 #       if test x$enable_threads = x; then
972 #           enable_threads=$have_pthread_h
973 #       fi
974 #       if test x$enable_threads = xyes; then
975 #               thread_file='dce'
976 #               tmake_file="${tmake_file} pa/t-dce-thr"
977 #       fi
978         install_headers_dir=install-headers-cpio
979         use_collect2=yes
980         ;;
981 hppa1.1-*-hpux* | hppa2*-*-hpux*)
982         target_cpu_default="MASK_PA_11"
983         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
984         xm_defines=POSIX
985         tmake_file=pa/t-pa-hpux
986         install_headers_dir=install-headers-cpio
987         use_collect2=yes
988         ;;
989 hppa1.0-*-hpux*)
990         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.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.1-*-hiux* | hppa2*-*-hiux*)
997         target_cpu_default="MASK_PA_11"
998         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
999         xm_defines=POSIX
1000         tmake_file=pa/t-pa-hpux
1001         install_headers_dir=install-headers-cpio
1002         use_collect2=yes
1003         ;;
1004 hppa1.0-*-hiux*)
1005         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1006         xm_defines=POSIX
1007         tmake_file=pa/t-pa-hpux
1008         install_headers_dir=install-headers-cpio
1009         use_collect2=yes
1010         ;;
1011 hppa*-*-lites*)
1012         tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h"
1013         target_cpu_default="MASK_PA_11"
1014         tmake_file="pa/t-bsd pa/t-pa"
1015         xmake_file="pa/x-ada"
1016         use_collect2=yes
1017         ;;
1018 hppa*-*-mpeix*)
1019         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1020         tmake_file=pa/t-mpeix
1021         echo "You must use gas. Assuming it is already installed."
1022         gas=yes
1023         install_headers_dir=install-headers-tar
1024         use_collect2=yes
1025         ;;
1026 i370-*-opened*)                  # IBM 360/370/390 Architecture
1027         xm_defines='POSIX FATAL_EXIT_CODE=12'
1028         tm_file=i370/oe.h
1029         tmake_file="i370/t-oe i370/t-i370"
1030         c_target_objs="i370-c.o"
1031         cxx_target_objs="i370-c.o"
1032         ;;
1033 i370-*-mvs*)
1034         xm_defines='POSIX FATAL_EXIT_CODE=12'
1035         tm_file=i370/mvs.h
1036         tmake_file="i370/t-i370"
1037         c_target_objs="i370-c.o"
1038         cxx_target_objs="i370-c.o"
1039         ;;
1040 i370-*-linux*)
1041         tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}"
1042         tmake_file="t-slibgcc-elf-ver t-linux"
1043         # broken_install=yes
1044         elf=yes
1045         ;;
1046 i[34567]86-*-darwin*)
1047         tm_file="${tm_file} i386/darwin.h"
1048         ;;
1049 i[34567]86-*-elf*)
1050         xm_defines=POSIX
1051         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
1052         tmake_file="i386/t-i386elf t-svr4"
1053         ;;
1054 i[34567]86-ncr-sysv4*)          # NCR 3000 - ix86 running system V.4
1055         xm_defines="POSIX SMALL_ARG_MAX"
1056         if test x$stabs = xyes -a x$gas = xyes
1057         then
1058                 tm_file=i386/sysv4gdb.h
1059         else
1060                 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
1061         fi
1062         extra_parts="crtbegin.o crtend.o"
1063         tmake_file=i386/t-crtpic
1064         ;;
1065 i[34567]86-*-netware)           # Intel 80386's running netware
1066         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
1067         tmake_file=i386/t-netware
1068         ;;
1069 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1070         if test x$gas = xyes
1071         then
1072                 tm_file="${tm_file} usegas.h"
1073         fi
1074         xm_defines="POSIX SMALL_ARG_MAX"
1075         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
1076         tmake_file=t-svr4
1077         extra_parts="crtbegin.o crtend.o"
1078         install_headers_dir=install-headers-cpio
1079         ;;
1080 i[34567]86-sequent-sysv*)       # would otherwise be caught by i?86-*-sysv*
1081         echo "*** Configuration $machine not supported" 1>&2
1082         exit 1
1083         ;;
1084 i[34567]86-*-aout*)
1085         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
1086         ;;
1087 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1088         xm_defines=POSIX
1089         tmake_file='i386/t-beos i386/t-crtpic'
1090         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
1091         extra_parts='crtbegin.o crtend.o'
1092         ;;
1093 i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*)
1094         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
1095         tmake_file=t-freebsd
1096         ;;
1097 i[34567]86-*-freebsd*)
1098         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
1099         ;;
1100 x86_64-*-freebsd*)
1101         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"
1102         ;;
1103 i[34567]86-*-netbsdelf*)
1104         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
1105         ;;
1106 i[34567]86-*-netbsd*)
1107         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
1108         tmake_file=t-netbsd
1109         extra_parts=""
1110         use_collect2=yes
1111         ;;
1112 x86_64-*-netbsd*)
1113         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"
1114         ;;
1115 i[34567]86-*-openbsd*)
1116         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}"
1117         # needed to unconfuse gdb
1118         tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1119         # we need collect2 until our bug is fixed...
1120         use_collect2=yes
1121         ;;
1122 i[34567]86-*-coff*)
1123         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
1124         ;;
1125 i[34567]86-*-linux*oldld*)      # would otherwise be caught by i?86-*-linux*
1126         echo "*** Configuration $machine not supported" 1>&2
1127         exit 1
1128         ;;
1129 i[34567]86-*-linux*aout*)       # Intel 80386's running GNU/Linux
1130                                 # with a.out format
1131         tmake_file="t-linux-aout i386/t-crtstuff"
1132         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
1133         gnu_ld=yes
1134         ;;
1135 i[34567]86-*-linux*libc1)       # Intel 80386's running GNU/Linux
1136                                 # with ELF format using the
1137                                 # GNU/Linux C library 5
1138         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1139         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1140         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1141         gnu_ld=yes
1142         if test x$enable_threads = xyes; then
1143                 thread_file='single'
1144         fi
1145         ;;
1146 i[34567]86-*-linux*)    # Intel 80386's running GNU/Linux
1147                         # with ELF format using glibc 2
1148                         # aka GNU/Linux C library 6
1149         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1150         tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1151         ;;
1152 x86_64-*-linux*)
1153         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1154                  i386/x86-64.h i386/linux64.h"
1155         tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64"
1156         ;;
1157 i[34567]86-*-gnu*)
1158         ;;
1159 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1160         echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1161         exit 1
1162         ;;
1163 i[34567]86-pc-msdosdjgpp*)
1164         xm_file=i386/xm-djgpp.h
1165         tm_file="dbxcoff.h ${tm_file} i386/djgpp.h"
1166         tmake_file=i386/t-djgpp
1167         gnu_ld=yes
1168         gas=yes
1169         exeext=.exe
1170         case $host in *pc-msdosdjgpp*)
1171                 target_alias=djgpp
1172                 ;;
1173         esac
1174         ;;
1175 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1176         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1177         tmake_file=t-libc-ok
1178         gnu_ld=yes
1179         gas=yes
1180         ;;
1181 i[34567]86-*-lynxos*)
1182         if test x$gas = xyes
1183         then
1184                 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx.h i386/lynx.h"
1185         else
1186                 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
1187         fi
1188         ;;
1189 i[34567]86-*-mach*)
1190         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
1191 #       tmake_file=t-libc-ok
1192         use_collect2=yes
1193         ;;
1194 i[34567]86-go32-rtems* | i[34567]86-*-rtemscoff*)
1195         # would otherwise be caught by i?86-*-rtems*
1196         echo "*** Configuration $machine not supported" 1>&2
1197         exit 1
1198         ;;
1199 i[34567]86-*-rtems*)
1200         xm_defines=POSIX
1201         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
1202         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1203         tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1204         if test x$enable_threads = xyes; then
1205           thread_file='rtems'
1206         fi
1207         ;;
1208 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1209         xm_defines=POSIX
1210         install_headers_dir=install-headers-cpio
1211         tm_file="${tm_file} i386/unix.h i386/att.h i386/sco5.h"
1212         if test x$gas = xyes
1213         then
1214                 tm_file="usegas.h ${tm_file}"
1215                 tmake_file=i386/t-sco5gas
1216         else
1217                 tmake_file=i386/t-sco5
1218         fi
1219         extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1220         ;;
1221 i[34567]86-*-solaris2*)
1222         xm_defines="POSIX SMALL_ARG_MAX"
1223         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
1224         tmake_file="i386/t-sol2 t-svr4"
1225         if test x$gnu_ld = xyes; then
1226                 tmake_file="$tmake_file t-slibgcc-elf-ver"
1227         else
1228                 tmake_file="$tmake_file t-slibgcc-sld"
1229         fi
1230         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1231         if test x${enable_threads} = x; then
1232             enable_threads=$have_pthread_h
1233             if test x${enable_threads} = x; then
1234                 enable_threads=$have_thread_h
1235             fi
1236         fi
1237         if test x${enable_threads} = xyes; then
1238             if test x${have_pthread_h} = xyes; then
1239                 thread_file='posix'
1240             else
1241                 thread_file='solaris'
1242             fi
1243         fi
1244         ;;
1245 i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
1246        xm_defines=POSIX
1247        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1248        if test x$stabs = xyes
1249        then
1250                tm_file="${tm_file} dbx.h"
1251        fi
1252        tmake_file="i386/t-crtpic t-svr4"
1253        extra_parts="crtbegin.o crtend.o"
1254        if test x$enable_threads = xyes; then
1255                thread_file='posix'
1256        fi
1257        ;;
1258 i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
1259         xm_defines="POSIX SMALL_ARG_MAX"
1260         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
1261         if test x$stabs = xyes
1262         then
1263                 tm_file="${tm_file} dbx.h"
1264         fi
1265         tmake_file="i386/t-crtpic t-svr4"
1266         extra_parts="crtbegin.o crtend.o"
1267         ;;
1268 i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
1269         xm_defines=POSIX
1270         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"
1271         tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1272         extra_parts="crtbegin.o crtend.o"
1273         install_headers_dir=install-headers-cpio
1274         ;;
1275 i[34567]86-*-sysv*)             # Intel 80386's running system V
1276         xm_defines=POSIX
1277         if test x$gas = xyes
1278         then
1279                 if test x$stabs = xyes
1280                 then
1281                         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
1282                         tmake_file=i386/t-svr3dbx
1283                         extra_parts="svr3.ifile svr3z.ifile"
1284                 else
1285                         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
1286                         extra_parts="crtbegin.o crtend.o"
1287                         tmake_file=i386/t-crtstuff
1288                 fi
1289         else
1290                 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
1291                 extra_parts="crtbegin.o crtend.o"
1292                 tmake_file=i386/t-crtstuff
1293         fi
1294         tmake_file="$tmake_file i386/t-crtpic"
1295         ;;
1296 i386-*-vsta)                    # Intel 80386's running VSTa kernel
1297         xm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/xm-vsta.h"
1298         tm_file="${tm_file} i386/vsta.h"
1299         ;;
1300 i[34567]86-*-win32)
1301         xm_defines=POSIX
1302         xm_file=i386/xm-cygwin.h
1303         tmake_file=i386/t-cygwin
1304         tm_file="${tm_file} i386/win32.h"
1305         extra_objs=winnt.o
1306         if test x$enable_threads = xyes; then
1307                 thread_file='win32'
1308         fi
1309         exeext=.exe
1310         ;;
1311 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1312         xm_defines=POSIX
1313         xm_file=i386/xm-cygwin.h
1314         tmake_file=i386/t-cygwin
1315         tm_file=i386/cygwin.h
1316         extra_objs=winnt.o
1317         if test x$enable_threads = xyes; then
1318                 thread_file='win32'
1319         fi
1320         exeext=.exe
1321         ;;
1322 i[34567]86-*-mingw32*)
1323         tm_file=i386/mingw32.h
1324         xm_defines=POSIX
1325         xm_file=i386/xm-mingw32.h
1326         tmake_file="i386/t-cygwin i386/t-mingw32"
1327         extra_objs=winnt.o
1328         if test x$enable_threads = xyes; then
1329                 thread_file='win32'
1330         fi
1331         exeext=.exe
1332         case $machine in
1333                 *mingw32crt*)
1334                         tm_file="${tm_file} i386/crtdll.h"
1335                         ;;
1336                 *minwg32msv* | *mingw32*)
1337                         ;;
1338         esac
1339         ;;
1340 i[34567]86-*-uwin*)
1341         tm_file="i386/cygwin.h i386/uwin.h"
1342         tmake_file="i386/t-cygwin i386/t-uwin"
1343         extra_objs=winnt.o
1344         if test x$enable_threads = xyes; then
1345                 thread_file='win32'
1346         fi
1347         exeext=.exe
1348         ;;
1349 i[34567]86-*-interix3*)
1350         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"
1351         xm_defines=POSIX
1352         tmake_file="t-interix i386/t-interix"
1353         extra_objs=winnt.o
1354         xmake_file="x-interix"
1355         if test x$enable_threads = xyes ; then
1356                 thread_file='posix'
1357         fi
1358         if test x$stabs = xyes ; then
1359                 tm_file="${tm_file} dbxcoff.h"
1360         fi
1361         ;;
1362 i[34567]86-*-interix*)
1363         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
1364         xm_defines=POSIX
1365         tmake_file="t-interix i386/t-interix"
1366         extra_objs=winnt.o
1367         if test x$enable_threads = xyes ; then
1368                 thread_file='posix'
1369         fi
1370         if test x$stabs = xyes ; then
1371                 tm_file="${tm_file} dbxcoff.h"
1372         fi
1373         ;;
1374 i960-*-coff*)
1375         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1376         tmake_file=i960/t-960bare
1377         c_target_objs="i960-c.o"
1378         cxx_target_objs="i960-c.o"
1379         ;;
1380 i960-*-rtems)
1381         xm_defines=POSIX
1382         tmake_file="i960/t-960bare t-rtems"
1383         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1384         if test x$enable_threads = xyes; then
1385           thread_file='rtems'
1386         fi
1387         c_target_objs="i960-c.o"
1388         cxx_target_objs="i960-c.o"
1389         ;;
1390 i960-*-*)                       # Default i960 environment.
1391         use_collect2=yes
1392         tmake_file=i960/t-960bare
1393         c_target_objs="i960-c.o"
1394         cxx_target_objs="i960-c.o"
1395         ;;
1396 ia64*-*-elf*)
1397         tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1398         tmake_file="ia64/t-ia64"
1399         target_cpu_default="0"
1400         if test x$gas = xyes
1401         then
1402                 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1403         fi
1404         if test x$gnu_ld = xyes
1405         then
1406                 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1407         fi
1408         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1409         ;;
1410 ia64*-*-freebsd*)
1411         tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1412         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1413         tmake_file="${tmake_file} ia64/t-ia64"
1414         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1415         ;;
1416 ia64*-*-linux*)
1417         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1418         tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1419         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1420         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1421         if test x"$use_libunwind_exceptions" = xyes; then
1422           tmake_file="$tmake_file t-libunwind"
1423         fi
1424         ;;
1425 ia64*-*-hpux*)
1426         tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1427         tmake_file="ia64/t-ia64 ia64/t-hpux"
1428         target_cpu_default="MASK_GNU_AS"
1429         if test x$enable_threads = xyes; then
1430                 thread_file='posix'
1431         fi
1432         use_collect2=no
1433         c_target_objs="ia64-c.o"
1434         cxx_target_objs="ia64-c.o"
1435         ;;
1436 ip2k-*-elf)
1437         ;;
1438 m32r-*-elf*)
1439         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1440         extra_parts="crtinit.o crtfini.o"
1441         ;;
1442 # m68hc11 and m68hc12 share the same machine description.
1443 m68hc11-*-*|m6811-*-*)
1444         tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1445         tm_p_file="m68hc11/m68hc11-protos.h"
1446         md_file="m68hc11/m68hc11.md"
1447         out_file="m68hc11/m68hc11.c"
1448         tmake_file="m68hc11/t-m68hc11-gas"
1449         ;;
1450 m68hc12-*-*|m6812-*-*)
1451         tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1452         tm_p_file="m68hc11/m68hc11-protos.h"
1453         md_file="m68hc11/m68hc11.md"
1454         out_file="m68hc11/m68hc11.c"
1455         tmake_file="m68hc11/t-m68hc11-gas"
1456         ;;
1457 m68000-hp-bsd*)                 # HP 9000/200 running BSD
1458         tm_file=m68k/hp2bsd.h
1459         use_collect2=yes
1460         ;;
1461 m68000-hp-hpux*)                # HP 9000 series 300
1462         xm_defines=POSIX
1463         if test x$gas = xyes
1464         then
1465                 tm_file=m68k/hp310g.h
1466         else
1467                 tm_file=m68k/hp310.h
1468         fi
1469         tmake_file=m68k/t-hp320
1470         install_headers_dir=install-headers-cpio
1471         use_collect2=yes
1472         ;;
1473 m68000-sun-sunos3*)
1474         tm_file=m68k/sun2.h
1475         use_collect2=yes
1476         ;;
1477 m68000-sun-sunos4*)
1478         tm_file=m68k/sun2o4.h
1479         use_collect2=yes
1480         ;;
1481 m68000-att-sysv*)
1482         xm_defines=POSIX
1483         if test x$gas = xyes
1484         then
1485                 tm_file=m68k/3b1g.h
1486         else
1487                 tm_file=m68k/3b1.h
1488         fi
1489         use_collect2=yes
1490         ;;
1491 m68k-atari-sysv4*)              # Atari variant of V.4.
1492         tm_file=m68k/atari.h
1493         xm_defines=POSIX
1494         tmake_file=t-svr4
1495         extra_parts="crtbegin.o crtend.o"
1496         ;;
1497 m68k-apollo-sysv* | m68k-bull-sysv*)
1498         # can otherwise be caught by m68k-*-sysv4*
1499         echo "*** Configuration $machine not supported" 1>&2
1500         exit 1
1501         ;;
1502 m68k-motorola-sysv*)
1503         tm_file=m68k/mot3300.h
1504         xm_defines=POSIX
1505         if test x$gas = xyes
1506         then
1507                 if test x$gnu_ld = xyes
1508                 then
1509                         tmake_file=m68k/t-mot3300-gald
1510                 else
1511                         tmake_file=m68k/t-mot3300-gas
1512                         use_collect2=yes
1513                 fi
1514         else
1515                 if test x$gnu_ld = xyes
1516                 then
1517                         tmake_file=m68k/t-mot3300-gld
1518                 else
1519                         tmake_file=m68k/t-mot3300
1520                         use_collect2=yes
1521                 fi
1522         fi
1523         gdb_needs_out_file_path=yes
1524         extra_parts="crt0.o mcrt0.o"
1525         ;;
1526 m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
1527         tm_file=m68k/tower-as.h
1528         xm_defines=POSIX
1529         extra_parts="crtbegin.o crtend.o"
1530         ;;
1531 m68k-plexus-sysv*)
1532         tm_file=m68k/plexus.h
1533         xm_defines=POSIX
1534         use_collect2=yes
1535         ;;
1536 m68k-tti-*)
1537         tm_file=m68k/pbb.h
1538         xm_defines=POSIX
1539         ;;
1540 m68k-crds-unos*)
1541         xm_defines=POSIX
1542         tm_file=m68k/crds.h
1543         use_collect2=yes
1544         ;;
1545 m68k-cbm-sysv4*)                # Commodore variant of V.4.
1546         tm_file=m68k/amix.h
1547         xm_defines=POSIX
1548         tmake_file=t-svr4
1549         extra_parts="crtbegin.o crtend.o"
1550         ;;
1551 m68k-ccur-rtu)
1552         tm_file=m68k/ccur-GAS.h
1553         use_collect2=yes
1554         ;;
1555 m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
1556         tm_file=m68k/hp3bsd44.h
1557         use_collect2=yes
1558         ;;
1559 m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
1560         tm_file=m68k/hp3bsd.h
1561         use_collect2=yes
1562         ;;
1563 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1564         xm_defines=POSIX
1565         if test x$gas = xyes
1566         then
1567                 xmake_file=m68k/x-hp320g
1568                 tm_file=m68k/hp320g.h
1569         else
1570                 xmake_file=m68k/x-hp320
1571                 tm_file=m68k/hpux7.h
1572         fi
1573         install_headers_dir=install-headers-cpio
1574         use_collect2=yes
1575         ;;
1576 m68k-hp-hpux*)  # HP 9000 series 300
1577         xm_defines=POSIX
1578         if test x$gas = xyes
1579         then
1580                 xmake_file=m68k/x-hp320g
1581                 tm_file=m68k/hp320g.h
1582         else
1583                 xmake_file=m68k/x-hp320
1584                 tm_file=m68k/hp320.h
1585         fi
1586         install_headers_dir=install-headers-cpio
1587         use_collect2=yes
1588         ;;
1589 m68k-sun-mach*)
1590         tm_file=m68k/sun3mach.h
1591         use_collect2=yes
1592         ;;
1593 m68k-sun-sunos3*)
1594         if test x$with_fp = xno
1595         then
1596                 tm_file=m68k/sun3n3.h
1597         else
1598                 tm_file=m68k/sun3o3.h
1599         fi
1600         use_collect2=yes
1601         ;;
1602 m68k-sun-sunos*)                        # For SunOS 4 (the default).
1603         if test x$with_fp = xno
1604         then
1605                 tm_file=m68k/sun3n.h
1606         else
1607                 tm_file=m68k/sun3.h
1608         fi
1609         use_collect2=yes
1610         ;;
1611 m68k-*-aout*)
1612         tmake_file=m68k/t-m68kbare
1613         tm_file="m68k/m68k-aout.h libgloss.h"
1614         ;;
1615 m68k-*-coff*)
1616         tmake_file=m68k/t-m68kbare
1617         tm_file="m68k/m68k-coff.h dbx.h"
1618         ;;
1619 m68020-*-elf* | m68k-*-elf*)
1620         tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1621         xm_defines=POSIX
1622         tmake_file=m68k/t-m68kelf
1623         extra_parts="crtbegin.o crtend.o"
1624         ;;
1625 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1626         tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1627         case $machine in
1628         m68010*)
1629                 target_cpu_default="0"
1630                 ;;
1631         *)
1632                 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1633                 ;;
1634         esac
1635         ;;
1636 m68k*-*-netbsd*)
1637         tm_file=m68k/netbsd.h
1638         tmake_file=t-netbsd
1639         extra_parts=""
1640         use_collect2=yes
1641         ;;
1642 m68k*-*-openbsd*)
1643         # needed to unconfuse gdb
1644         tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1645         # we need collect2 until our bug is fixed...
1646         use_collect2=yes
1647         ;;
1648 m68k-*-sysv4*)                  # Motorola m68k's running system V.4
1649         tm_file=m68k/m68kv4.h
1650         xm_defines=POSIX
1651         tmake_file=t-svr4
1652         extra_parts="crtbegin.o crtend.o"
1653         ;;
1654 m68k-*-linux*aout*)             # Motorola m68k's running GNU/Linux
1655                                 # with a.out format
1656         tm_file=m68k/linux-aout.h
1657         tmake_file="t-linux-aout"
1658         gnu_ld=yes
1659         ;;
1660 m68k-*-linux*libc1)             # Motorola m68k's running GNU/Linux
1661                                 # with ELF format using the
1662                                 # GNU/Linux C library 5
1663         tm_file=m68k/linux.h
1664         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
1665         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1666         gnu_ld=yes
1667         ;;
1668 m68k-*-linux*)          # Motorola m68k's running GNU/Linux
1669                                 # with ELF format using glibc 2
1670                                 # aka the GNU/Linux C library 6.
1671         tm_file=m68k/linux.h
1672         tmake_file="t-slibgcc-elf-ver t-linux"
1673         ;;
1674 m68k-*-psos*)
1675         tmake_file=m68k/t-m68kbare
1676         tm_file=m68k/m68k-psos.h
1677         ;;
1678 m68k-*-rtemscoff*)      # would otherwise be caught by m68k-*-rtems*
1679         echo "*** Configuration $machine not supported" 1>&2
1680         exit 1
1681         ;;
1682 m68k-*-rtems*)
1683         xm_defines=POSIX
1684         tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1685         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"
1686         extra_parts="crtbegin.o crtend.o"
1687         if test x$enable_threads = xyes; then
1688           thread_file='rtems'
1689         fi
1690         ;;
1691 m88k-*-aout*)
1692         xm_defines=POSIX
1693         tm_file=m88k/m88k-aout.h
1694         ;;
1695 m88k-*-openbsd*)
1696         tmake_file="${tmake_file} m88k/t-luna-gas"
1697         tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
1698         ;;
1699 m88k-*-sysv4*)
1700         xm_defines=POSIX
1701         tm_file="dbxelf.h elfos.h svr4.h m88k/sysv4.h"
1702         extra_parts="crtbegin.o crtend.o"
1703         tmake_file=m88k/t-sysv4
1704         ;;
1705 mcore-*-elf)
1706         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
1707         tmake_file=mcore/t-mcore
1708         ;;
1709 mcore-*-pe*)
1710         tm_file=mcore/mcore-pe.h
1711         tmake_file=mcore/t-mcore-pe
1712         ;;
1713 mips-sgi-irix6*o32)             # SGI System V.4., IRIX 6, O32 ABI
1714         if test x$gas = xyes
1715         then
1716                 tm_file="mips/iris5.h mips/iris5gas.h mips/iris6-o32-gas.h"
1717                 if test x$stabs = xyes
1718                 then
1719                         tm_file="${tm_file} dbx.h"
1720                 fi
1721                 tmake_file=mips/t-iris5-gas
1722         else
1723                 tm_file="mips/iris5.h mips/iris6-o32-as.h"
1724                 tmake_file=mips/t-iris5-as
1725         fi
1726         tm_file="${tm_file} mips/iris6-o32.h"
1727         tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1728         xm_defines=POSIX
1729         xm_file=mips/xm-iris5.h
1730         # mips-tfile doesn't work yet
1731         # See comment in mips/iris5.h file.
1732         use_collect2=yes
1733 #       if test x$enable_threads = xyes; then
1734 #               thread_file='irix'
1735 #       fi
1736         ;;
1737 mips-sgi-irix6*)                # SGI System V.4., IRIX 6
1738         if test "x$gnu_ld" = xyes
1739         then
1740                 tm_file="mips/iris6.h mips/iris6gld.h"
1741         else
1742                 tm_file=mips/iris6.h
1743         fi
1744         tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
1745         xm_defines=POSIX
1746 #       if test x$enable_threads = xyes; then
1747 #               thread_file='irix'
1748 #       fi
1749         ;;
1750 mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
1751         tm_file="mips/iris6.h mips/cross64.h"
1752         xm_defines=POSIX
1753         xm_file=mips/xm-iris5.h
1754         tmake_file="mips/t-iris mips/t-cross64"
1755         # See comment in mips/iris[56].h files.
1756         use_collect2=yes
1757 #       if test x$enable_threads = xyes; then
1758 #               thread_file='irix'
1759 #       fi
1760         ;;
1761 mips-sni-sysv4)
1762         if test x$gas = xyes
1763         then
1764                 if test x$stabs = xyes
1765                 then
1766                         tm_file=mips/iris5gdb.h
1767                 else
1768                         tm_file="mips/sni-svr4.h mips/sni-gas.h"
1769                 fi
1770         else
1771                 tm_file=mips/sni-svr4.h
1772         fi
1773         xm_defines=POSIX
1774         if test x$gnu_ld != xyes
1775         then
1776                 use_collect2=yes
1777         fi
1778         ;;
1779 mips-sgi-irix5*)                # SGI System V.4., IRIX 5
1780         if test x$gas = xyes
1781         then
1782                 tm_file="mips/iris5.h mips/iris5gas.h"
1783                 if test x$stabs = xyes
1784                 then
1785                         tm_file="${tm_file} dbx.h"
1786                 fi
1787                 tmake_file=mips/t-iris5-gas
1788         else
1789                 tm_file=mips/iris5.h
1790                 tmake_file=mips/t-iris5-as
1791         fi
1792         tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1793         xm_defines=POSIX
1794         xm_file=mips/xm-iris5.h
1795         # mips-tfile doesn't work yet
1796         # See comment in mips/iris5.h file.
1797         use_collect2=yes
1798 #       if test x$enable_threads = xyes; then
1799 #               thread_file='irix'
1800 #       fi
1801         ;;
1802 mips-sgi-*)     # would otherwise be caught by mips-*-elf*
1803         echo "*** Configuration $machine not supported" 1>&2
1804         exit 1
1805         ;;
1806 mips*-*-netbsd*)                        # NetBSD/mips, either endian.
1807         target_cpu_default="MASK_GAS|MASK_ABICALLS"
1808         tm_file="elfos.h ${tm_file} mips/netbsd.h"
1809         tmake_file="${tmake_file}"
1810         ;;
1811 mips64*-*-linux*)
1812         tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h"
1813         tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux mips/t-linux64"
1814
1815         # This default ABI is a partial lie: t-linux64 overrides the
1816         # DRIVER_SELF_SPEC that sets the default abi, in the spec file
1817         # that is installed.  What GCC thinks of as the default must
1818         # remain as ABI_32 such that the SONAMEs of the libgcc shared
1819         # libraries remain compatible with those of mips-linux-gnu.
1820         tm_defines="MIPS_ISA_DEFAULT=1 MIPS_ABI_DEFAULT=ABI_32"
1821         target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1822         extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1823         gnu_ld=yes
1824         gas=yes
1825         if test x$enable_threads = xyes; then
1826                 thread_file='posix'
1827         fi
1828         ;;
1829 mips*-*-linux*)                         # Linux MIPS, either endian.
1830         tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
1831         case $machine in
1832         mipsisa32*-*)
1833                 target_cpu_default="MASK_SOFT_FLOAT"
1834                 tm_defines="MIPS_ISA_DEFAULT=32"
1835                 ;;
1836         esac
1837         tmake_file="t-slibgcc-elf-ver t-linux"
1838         ;;
1839 mips*el-*-openbsd*)     # mips little endian
1840         target_cpu_default="MASK_GAS|MASK_ABICALLS"
1841         ;;
1842 mips*-*-openbsd*)               # mips big endian
1843         target_cpu_default="MASK_GAS|MASK_ABICALLS"
1844         tm_file="mips/openbsd-be.h ${tm_file}"
1845         ;;
1846 mips-*-ecoff* | mipsel-*-ecoff*)
1847         if test x$stabs = xyes; then
1848                 tm_file="${tm_file} dbx.h"
1849         fi
1850         tmake_file=mips/t-ecoff
1851         ;;
1852 mipsisa32-*-elf* | mipsisa32el-*-elf*)
1853         tm_file="${tm_file} mips/elf.h"
1854         tmake_file=mips/t-isa3264
1855         tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
1856         ;;
1857 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
1858         tm_file="${tm_file} mips/elf.h"
1859         tmake_file=mips/t-isa3264
1860         tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
1861         ;;
1862 mipsisa64-*-elf* | mipsisa64el-*-elf*)
1863         tm_file="${tm_file} mips/elf.h"
1864         tmake_file=mips/t-isa3264
1865         target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1866         tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_MEABI"
1867         ;;
1868 mipsisa64sr71k-*-elf*)
1869         tm_file="${tm_file} mips/elf.h"
1870         tmake_file=mips/t-sr71k
1871         target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1872         tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_MEABI"
1873         ;;
1874 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1875         tm_file="${tm_file} mips/elf.h"
1876         tmake_file=mips/t-elf
1877         target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1878         tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1879         ;;
1880 mips-*-elf* | mipsel-*-elf*)
1881         tm_file="${tm_file} mips/elf.h"
1882         tmake_file=mips/t-elf
1883         ;;
1884 mips64-*-elf* | mips64el-*-elf*)
1885         tm_file="${tm_file} mips/elf64.h"
1886         tmake_file=mips/t-elf
1887         target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1888         tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1889         ;;
1890 mips64vr-*-elf* | mips64vrel-*-elf*)
1891         tm_file="mips/vr.h ${tm_file} mips/elf64.h"
1892         tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1"
1893         tmake_file=mips/t-vr
1894         ;;
1895 mips64orion-*-elf* | mips64orionel-*-elf*)
1896         tm_file="${tm_file} mips/elforion.h mips/elf64.h"
1897         tmake_file=mips/t-elf
1898         tmake_file=mips/t-elf
1899         target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1900         tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1901         ;;
1902 mips64orion-*-rtems*)
1903         xm_defines=POSIX
1904         tm_file="${tm_file} mips/elforion.h mips/elf64.h mips/rtems64.h rtems.h"
1905         tmake_file="mips/t-elf t-rtems"
1906         tmake_file=mips/t-elf
1907         target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1908         tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1909         if test x$enable_threads = xyes; then
1910           thread_file='rtems'
1911         fi
1912         ;;
1913 mips*-*-rtems*)
1914         xm_defines=POSIX
1915         tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
1916         tmake_file="mips/t-elf t-rtems"
1917         if test x$enable_threads = xyes; then
1918           thread_file='rtems'
1919         fi
1920         ;;
1921 mipstx39-*-elf* | mipstx39el-*-elf*)
1922         tm_file="${tm_file} mips/r3900.h mips/elf.h"
1923         tmake_file=mips/t-r3900
1924         ;;
1925 mmix-knuth-mmixware)
1926         need_64bit_hwint=yes
1927         ;;
1928 mn10200-*-*)
1929         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1930         if test x$stabs = xyes
1931         then
1932                 tm_file="${tm_file} dbx.h"
1933         fi
1934         use_collect2=no
1935         ;;
1936 mn10300-*-*)
1937         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1938         if test x$stabs = xyes
1939         then
1940                 tm_file="${tm_file} dbx.h"
1941         fi
1942         use_collect2=no
1943         ;;
1944 ns32k-*-netbsdelf*)
1945         echo "GCC does not yet support the ${machine} target"; exit 1
1946         ;;
1947 ns32k-*-netbsd*)
1948         tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1949         # On NetBSD, the headers are already okay, except for math.h.
1950         tmake_file="t-netbsd ns32k/t-ns32k"
1951         extra_parts=""
1952         use_collect2=yes
1953         ;;
1954 pdp11-*-bsd)
1955         tm_file="${tm_file} pdp11/2bsd.h"
1956         ;;
1957 pdp11-*-*)
1958         ;;
1959 avr-*-*)
1960         ;;
1961 ns32k-*-openbsd*)
1962         # Nothing special
1963         ;;
1964 romp-*-openbsd*)
1965         # Nothing special
1966         ;;
1967 powerpc-*-openbsd*)
1968         tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-openbsd"
1969         extra_headers=
1970         ;;
1971 powerpc64-*-linux*)
1972         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h"
1973         tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-linux64"
1974         ;;
1975 powerpc64-*-gnu*)
1976         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"
1977         tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
1978         ;;
1979 powerpc-*-beos*)
1980         tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
1981         xm_defines=POSIX
1982         tmake_file="rs6000/t-fprules rs6000/t-beos"
1983         extra_headers=
1984         ;;
1985 powerpc-*-darwin*)
1986         tm_file="${tm_file} rs6000/darwin.h"
1987         tmake_file="rs6000/t-fprules t-darwin rs6000/t-darwin"
1988         extra_headers=altivec.h
1989         # override ppc default
1990         need_64bit_hwint=
1991         # powerpc-darwin host support.
1992         host_hook_obj=host-darwin.o
1993         xmake_file=rs6000/x-darwin
1994         ;;
1995 powerpc*-*-freebsd*)
1996         tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
1997         tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1998         ;;
1999 powerpc-*-sysv*)
2000         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2001         xm_defines=POSIX
2002         tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
2003         ;;
2004 powerpc-*-netbsd*)
2005         tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
2006         tmake_file="${tmake_file} rs6000/t-netbsd"
2007         ;;
2008 powerpc-*-chorusos*)
2009         xm_defines=POSIX
2010         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
2011         tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
2012         case x${enable_threads} in
2013           xyes | xpthreads | xposix)
2014                 thread_file='posix'
2015                 ;;
2016         esac
2017         ;;
2018 powerpc-*-eabiaix*)
2019         xm_defines=POSIX
2020         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2021         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2022         ;;
2023 powerpc-*-eabispe*)
2024         xm_defines=POSIX
2025         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
2026         tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
2027         ;;
2028 powerpc-*-eabisimaltivec*)
2029         xm_defines=POSIX
2030         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"
2031         tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
2032         ;;
2033 powerpc-*-eabisim*)
2034         xm_defines=POSIX
2035         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2036         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2037         ;;
2038 powerpc-*-elf*)
2039         xm_defines=POSIX
2040         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2041         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2042         ;;
2043 powerpc-*-eabialtivec*)
2044         xm_defines=POSIX
2045         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
2046         tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
2047         ;;
2048 powerpc-*-eabi*)
2049         xm_defines=POSIX
2050         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
2051         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2052         ;;
2053 powerpc-*-rtems*)
2054         xm_defines=POSIX
2055         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
2056         tmake_file="rs6000/t-fprules rs6000/t-rtems t-rtems rs6000/t-ppccomm"
2057         if test x$enable_threads = xyes; then
2058           thread_file='rtems'
2059         fi
2060         ;;
2061 powerpc-*-linux*libc1)
2062         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2063         tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2064         if test x$enable_threads = xyes; then
2065                 thread_file='posix'
2066         fi
2067         ;;
2068 powerpc-*-linux-gnualtivec*)
2069         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
2070         tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2071         ;;
2072 powerpc-*-linux*)
2073         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2074         tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2075         ;;
2076 powerpc-*-gnu-gnualtivec*)
2077         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"
2078         tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
2079         if test x$enable_threads = xyes; then
2080                 thread_file='posix'
2081         fi
2082         ;;
2083 powerpc-*-gnu*)
2084         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"
2085         tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
2086         if test x$enable_threads = xyes; then
2087                 thread_file='posix'
2088         fi
2089         ;;
2090 powerpc-wrs-vxworks*)
2091         # We want vxworks.h after rs6000/sysv4.h, which unfortunately
2092         # means we have to redo the tm_file list from scratch.
2093         tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2094         tm_file="${tm_file} vxworks.h rs6000/vxworks.h"
2095         tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
2096         extra_headers=ppc-asm.h
2097         ;;
2098 powerpc-wrs-windiss*)
2099         xm_defines=POSIX
2100         tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
2101         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2102         thread_file=""
2103         ;;
2104 powerpcle-*-sysv*)
2105         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2106         xm_defines=POSIX
2107         tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
2108         ;;
2109 powerpcle-*-elf*)
2110         xm_defines=POSIX
2111         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2112         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2113         ;;
2114 powerpcle-*-eabisim*)
2115         xm_defines=POSIX
2116         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"
2117         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2118         ;;
2119 powerpcle-*-eabi*)
2120         xm_defines=POSIX
2121         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2122         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2123         ;;
2124 rs6000-ibm-aix3.[01]*)
2125         xm_defines=POSIX
2126         tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h"
2127         use_collect2=yes
2128         ;;
2129 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2130         xm_defines=POSIX
2131         tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h"
2132         tmake_file="rs6000/t-fprules rs6000/t-newas"
2133         use_collect2=yes
2134         extra_headers=
2135         ;;
2136 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2137         xm_defines=POSIX
2138         tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
2139         tmake_file="rs6000/t-fprules rs6000/t-newas"
2140         use_collect2=yes
2141         extra_headers=
2142         ;;
2143 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2144         xm_defines=POSIX
2145         tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
2146         tmake_file=rs6000/t-aix43
2147         use_collect2=yes
2148         thread_file='aix'
2149         extra_headers=
2150         ;;
2151 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
2152         xm_defines=POSIX
2153         tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
2154         tmake_file=rs6000/t-aix43
2155         use_collect2=yes
2156         thread_file='aix'
2157         extra_headers=
2158         ;;
2159 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2160         xm_defines=POSIX
2161         tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
2162         tmake_file=rs6000/t-aix52
2163         use_collect2=yes
2164         thread_file='aix'
2165         extra_headers=
2166         ;;
2167 rs6000-ibm-aix*)
2168         xm_defines=POSIX
2169         tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2170         use_collect2=yes
2171         ;;
2172 rs6000-bull-bosx)
2173         xm_defines=POSIX
2174         tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2175         use_collect2=yes
2176         ;;
2177 rs6000-*-mach*)
2178         tm_file="${tm_file} rs6000/mach.h"
2179         xm_defines=POSIX
2180         use_collect2=yes
2181         ;;
2182 rs6000-*-lynxos*)
2183         tm_file="lynx.h rs6000/lynx.h"
2184         tmake_file=rs6000/t-fprules
2185         use_collect2=yes
2186         ;;
2187 s390-*-linux*)
2188         tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
2189         tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff"
2190         ;;
2191 s390x-*-linux*)
2192         tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
2193         tm_p_file=s390/s390-protos.h
2194         md_file=s390/s390.md
2195         extra_modes=s390/s390-modes.def
2196         out_file=s390/s390.c
2197         tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64"
2198         ;;
2199 sh-*-elf* | sh[2346l]*-*-elf*)
2200         tmake_file="sh/t-sh sh/t-elf"
2201         case $machine in
2202         shl* | sh64l*)
2203                 tm_file="sh/little.h ${tm_file}"
2204                 tmake_file="${tmake_file} sh/t-le"
2205                 ;;
2206         esac
2207         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h"
2208         case $machine in
2209         sh64*)
2210                 tmake_file="${tmake_file} sh/t-sh64"
2211                 tm_file="${tm_file} sh/sh64.h"
2212                 extra_headers="shmedia.h ushmedia.h sshmedia.h"
2213                 ;;
2214         sh4_single*)  target_cpu_default="SELECT_SH4_SINGLE" ;;
2215         sh4*)  target_cpu_default="SELECT_SH4" ;;
2216         sh3e*) target_cpu_default="SELECT_SH3E" ;;
2217         sh3*)  target_cpu_default="SELECT_SH3" ;;
2218         sh2e*) target_cpu_default="SELECT_SH2E" ;;
2219         sh2*)  target_cpu_default="SELECT_SH2" ;;
2220         esac
2221         case $machine in
2222         sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
2223         esac
2224         ;;
2225 sh-*-rtemself*)
2226         xm_defines=POSIX
2227         tmake_file="sh/t-sh sh/t-elf t-rtems"
2228         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/rtemself.h rtems.h"
2229         if test x$enable_threads = xyes; then
2230           thread_file='rtems'
2231         fi
2232         ;;
2233 sh-*-rtems*)
2234         xm_defines=POSIX
2235         tmake_file="sh/t-sh t-rtems"
2236         tm_file="${tm_file} sh/coff.h sh/rtems.h rtems.h"
2237         if test x$enable_threads = xyes; then
2238           thread_file='rtems'
2239         fi
2240         ;;
2241 sh-*-linux* | sh[2346lbe]*-*-linux*)
2242         tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux sh/t-linux"
2243         case $machine in
2244         sh*be-*-* | sh*eb-*-*) ;;
2245         *)
2246                 tm_file="sh/little.h ${tm_file}"
2247                 tmake_file="${tmake_file} sh/t-le"
2248                 ;;
2249         esac
2250         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
2251         case $machine in
2252         sh64*)
2253                 tmake_file="${tmake_file} sh/t-sh64"
2254                 tm_file="${tm_file} sh/sh64.h"
2255                 extra_headers="shmedia.h ushmedia.h sshmedia.h"
2256                 ;;
2257         sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
2258         sh4*) target_cpu_default="SELECT_SH4" ;;
2259         sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;;
2260         sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
2261         sh3e*) target_cpu_default="SELECT_SH3E" ;;
2262         sh3*) target_cpu_default="SELECT_SH3" ;;
2263         sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;;
2264         sh2e[lb]*) target_cpu_default="SELECT_SH2" ;;
2265         sh2e*) target_cpu_default="SELECT_SH2E" ;;
2266         sh2*) target_cpu_default="SELECT_SH2" ;;
2267         esac
2268         case $machine in
2269         sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
2270         esac
2271         ;;
2272 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2273   sh64-*-netbsd* | sh64l*-*-netbsd*)
2274         tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
2275         tmake_file="${tmake_file} sh/t-sh sh/t-elf"
2276         case $machine in
2277         sh*l*-*)
2278                 tm_file="sh/little.h ${tm_file}"
2279                 tmake_file="${tmake_file} sh/t-le"
2280                 ;;
2281         *)
2282                 tmake_file="${tmake_file} sh/t-be"
2283                 ;;
2284         esac
2285         case $machine in
2286         sh5*-*)
2287                 # SHmedia, 32-bit ABI
2288                 target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT"
2289                 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
2290                 ;;
2291         sh64*-*)
2292                 # SHmedia, 64-bit ABI
2293                 target_cpu_default="SH5_BIT|SH4_BIT"
2294                 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
2295                 ;;
2296         *)
2297                 # SH3, software floating point
2298                 target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
2299                 tmake_file="${tmake_file} sh/t-netbsd"
2300                 ;;
2301         esac
2302         ;;
2303 sh-*-*)
2304         tm_file="${tm_file} sh/coff.h"
2305         ;;
2306 sparc-tti-*)
2307         tm_file="${tm_file} sparc/pbd.h"
2308         xm_defines=POSIX
2309         ;;
2310 sparc-*-aout*)
2311         tmake_file=sparc/t-sparcbare
2312         tm_file="sparc/sparc.h aoutos.h sparc/aout.h libgloss.h"
2313         ;;
2314 sparc-*-netbsdelf*)
2315         tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2316         ;;
2317 sparc-*-netbsd*)
2318         tm_file="${tm_file} sparc/aout.h netbsd.h netbsd-aout.h sparc/netbsd.h"
2319         tmake_file=t-netbsd
2320         extra_parts=""
2321         use_collect2=yes
2322         ;;
2323 sparc-*-openbsd*)
2324         tm_file="sparc/sparc.h ${tm_file}"
2325         # needed to unconfuse gdb
2326         tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
2327         # we need collect2 until our bug is fixed...
2328         use_collect2=yes
2329         ;;
2330 sparc64-*-openbsd*)
2331         tm_file="sparc/openbsd1-64.h sparc/sparc.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h"
2332         gas=yes gnu_ld=yes
2333         with_cpu=ultrasparc
2334         ;;
2335 sparc-*-bsd*)
2336         tm_file="${tm_file} sparc/bsd.h"
2337         ;;
2338 sparc-*-chorusos*)
2339         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h chorus.h"
2340         tmake_file="sparc/t-chorus-elf sparc/t-crtfm"
2341         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2342         case x${enable_threads} in
2343           xyes | xpthreads | xposix)
2344                 thread_file='posix'
2345                 ;;
2346         esac
2347         ;;
2348 sparc-*-elf*)
2349         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
2350         tmake_file="sparc/t-elf sparc/t-crtfm"
2351         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2352         ;;
2353 sparc-*-linux*aout*)            # SPARC's running GNU/Linux, a.out
2354         tm_file="aoutos.h sparc/sparc.h sparc/aout.h sparc/linux-aout.h"
2355         gnu_ld=yes
2356         ;;
2357 sparc-*-linux*libc1*)   # SPARC's running GNU/Linux, libc5
2358         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
2359         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 sparc/t-crtfm"
2360         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2361         gnu_ld=yes
2362         ;;
2363 sparc-*-linux*)         # SPARC's running GNU/Linux, libc6
2364         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
2365         tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
2366         ;;
2367 sparc-*-lynxos*)
2368         if test x$gas = xyes
2369         then
2370                 tm_file="${tm_file} lynx.h sparc/aout.h sparc/lynx.h"
2371         else
2372                 tm_file="${tm_file} lynx-ng.h sparc/aout.h sparc/lynx-ng.h"
2373         fi
2374         tmake_file=sparc/t-sunos41
2375         ;;
2376 sparc-*-rtemsaout*)     # would otherwise be caught by sparc-*-rtems*
2377         echo "*** Configuration $machine not supported" 1>&2
2378         exit 1
2379         ;;
2380 sparc-*-rtems*)
2381         xm_defines=POSIX
2382         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
2383         tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
2384         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2385         if test x$enable_threads = xyes; then
2386           thread_file='rtems'
2387         fi
2388         ;;
2389 sparc64-*-solaris2* | sparcv9-*-solaris2*)
2390         tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h"
2391         if test x$gnu_ld = xyes; then
2392                 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
2393         fi
2394         if test x$gas = xyes; then
2395                 tm_file="${tm_file} sparc/sol2-gas-bi.h"
2396         fi
2397         xm_defines=POSIX
2398         tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
2399         if test x$gnu_ld = xyes; then
2400                 tmake_file="$tmake_file t-slibgcc-elf-ver"
2401         else
2402                 tmake_file="$tmake_file t-slibgcc-sld"
2403         fi
2404         extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2405         if test x${enable_threads} = x ; then
2406             enable_threads=$have_pthread_h
2407             if test x${enable_threads} = x ; then
2408                 enable_threads=$have_thread_h
2409             fi
2410         fi
2411         if test x${enable_threads} = xyes ; then
2412             if test x${have_pthread_h} = xyes ; then
2413                 thread_file='posix'
2414             else
2415                 thread_file='solaris'
2416             fi
2417         fi
2418         need_64bit_hwint=yes
2419         ;;
2420 sparc-hal-solaris2*)
2421         xm_defines=POSIX
2422         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/hal.h"
2423         tmake_file="sparc/t-halos sparc/t-sol2 sparc/t-crtfm"
2424         if test x$gnu_ld = xyes; then
2425                 tm_file="${tm_file} sparc/sol2-gld.h"
2426                 tmake_file="$tmake_file t-slibgcc-elf-ver"
2427         else
2428                 tmake_file="$tmake_file t-slibgcc-sld"
2429         fi
2430         extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2431         thread_file='solaris'
2432         ;;
2433 sparc-*-solaris2*)
2434         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
2435         if test x$gnu_ld = xyes; then
2436                 tm_file="${tm_file} sparc/sol2-gld.h"
2437         fi
2438         tmake_file="sparc/t-sol2 sparc/t-crtfm"
2439         if test x$gnu_ld = xyes; then
2440                 tmake_file="$tmake_file t-slibgcc-elf-ver"
2441         else
2442                 tmake_file="$tmake_file t-slibgcc-sld"
2443         fi
2444         case $machine in
2445         *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
2446                 if test x$gnu_ld = xno; then
2447                         tm_file="${tm_file} sparc/sol26-sld.h"
2448                 fi
2449                 ;;
2450         *-*-solaris2.[789])
2451                 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
2452                 if test x$gnu_ld = xyes; then
2453                         tm_file="${tm_file} sparc/sol2-gld-bi.h"
2454                 fi
2455                 if test x$gas = xyes; then
2456                         tm_file="${tm_file} sparc/sol2-gas-bi.h"
2457                 fi
2458                 tmake_file="$tmake_file sparc/t-sol2-64"
2459                 need_64bit_hwint=yes
2460                 ;;
2461         esac
2462         xm_defines=POSIX
2463         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2464         if test x${enable_threads} = x; then
2465             enable_threads=$have_pthread_h
2466             if test x${enable_threads} = x; then
2467                 enable_threads=$have_thread_h
2468             fi
2469         fi
2470         if test x${enable_threads} = xyes; then
2471             if test x${have_pthread_h} = xyes; then
2472                 thread_file='posix'
2473             else
2474                 thread_file='solaris'
2475             fi
2476         fi
2477         ;;
2478 sparc-*-sunos4.0*)
2479         tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
2480         use_collect2=yes
2481         ;;
2482 sparc-*-sunos4*)
2483         tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
2484         tmake_file=sparc/t-sunos41
2485         use_collect2=yes
2486         if test x$gas = xyes; then
2487                 tm_file="${tm_file} sparc/sun4gas.h"
2488         fi
2489         ;;
2490 sparc-*-sunos3*)
2491         tm_file="${tm_file} sparc/aout.h sparc/sun4o3.h"
2492         use_collect2=yes
2493         ;;
2494 sparc-*-sysv4*)
2495         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h"
2496         xm_defines=POSIX
2497         tmake_file=t-svr4
2498         extra_parts="crtbegin.o crtend.o"
2499         ;;
2500 sparclet-*-aout*)
2501         tm_file="${tm_file} aoutos.h sparc/aout.h sparc/splet.h libgloss.h"
2502         tmake_file=sparc/t-splet
2503         ;;
2504 sparclite-*-coff*)
2505         tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
2506         tmake_file=sparc/t-sparclite
2507         ;;
2508 sparclite-*-aout*)
2509         tm_file="${tm_file} gofast.h sparc/aout.h sparc/lite.h aoutos.h libgloss.h"
2510         tmake_file=sparc/t-sparclite
2511         ;;
2512 sparclite-*-elf*)
2513         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h"
2514         tmake_file="sparc/t-sparclite sparc/t-crtfm"
2515         extra_parts="crtbegin.o crtend.o"
2516         ;;
2517 sparc86x-*-aout*)
2518         tm_file="${tm_file} gofast.h sparc/aout.h sparc/sp86x-aout.h aoutos.h libgloss.h"
2519         tmake_file=sparc/t-sp86x
2520         ;;
2521 sparc86x-*-elf*)
2522         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/sp86x-elf.h"
2523         tmake_file="sparc/t-sp86x sparc/t-crtfm"
2524         extra_parts="crtbegin.o crtend.o"
2525         ;;
2526 sparc64-*-aout*)
2527         tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h"
2528         ;;
2529 sparc64-*-elf*)
2530         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h"
2531         tmake_file="${tmake_file} sparc/t-crtfm"
2532         extra_parts="crtbegin.o crtend.o"
2533         ;;
2534 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
2535         tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
2536         tmake_file="${tmake_file} sparc/t-crtfm"
2537         xmake_file=none
2538         case "x$with_cpu" in
2539                 xultrasparc) ;;
2540                 x) with_cpu=ultrasparc ;;
2541                 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
2542         esac
2543         need_64bit_hwint=yes
2544         ;;
2545 sparc64-*-linux*)               # 64-bit SPARC's running GNU/Linux
2546         tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
2547         tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
2548         ;;
2549 sparc64-*-netbsd*)
2550         tmake_file="${tmake_file} sparc/t-netbsd64"
2551         tm_file="sparc/biarch64.h ${tm_file}"
2552         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2553         ;;
2554 strongarm-*-elf*)
2555         tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2556         tmake_file=arm/t-strongarm-elf
2557         out_file=arm/arm.c
2558         md_file=arm/arm.md
2559         extra_modes=arm/arm-modes.def
2560         ;;
2561 strongarm-*-coff*)
2562         tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h"
2563         tmake_file=arm/t-strongarm-coff
2564         out_file=arm/arm.c
2565         md_file=arm/arm.md
2566         extra_modes=arm/arm-modes.def
2567         ;;
2568 strongarm-*-pe)
2569         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"
2570         tmake_file=arm/t-strongarm-pe
2571         out_file=arm/arm.c
2572         md_file=arm/arm.md
2573         extra_modes=arm/arm-modes.def
2574         extra_objs=pe.o
2575         ;;
2576 thumb*-*-*)
2577         { echo "config.gcc: error:
2578 *** The Thumb targets have been deprecated.  The equivalent
2579 *** ARM based toolchain can now generate Thumb instructions
2580 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
2581         ;;
2582 v850-*-rtems*)
2583         xm_defines=POSIX
2584         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} v850/v850.h v850/rtems.h rtems.h"
2585         tmake_file="v850/t-v850 t-rtems"
2586         if test x$stabs = xyes
2587         then
2588                 tm_file="${tm_file} dbx.h"
2589         fi
2590         use_collect2=no
2591         c_target_objs="v850-c.o"
2592         cxx_target_objs="v850-c.o"
2593         ;;
2594 v850e-*-*)
2595         target_cpu_default="TARGET_CPU_v850e"
2596         tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2597         tm_p_file=v850/v850-protos.h
2598         tmake_file=v850/t-v850
2599         md_file=v850/v850.md
2600         out_file=v850/v850.c
2601         if test x$stabs = xyes
2602         then
2603                 tm_file="${tm_file} dbx.h"
2604         fi
2605         use_collect2=no
2606         c_target_objs="v850-c.o"
2607         cxx_target_objs="v850-c.o"
2608         ;;
2609 v850-*-*)
2610         target_cpu_default="TARGET_CPU_generic"
2611         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2612         tmake_file=v850/t-v850
2613         if test x$stabs = xyes
2614         then
2615                 tm_file="${tm_file} dbx.h"
2616         fi
2617         use_collect2=no
2618         c_target_objs="v850-c.o"
2619         cxx_target_objs="v850-c.o"
2620         ;;
2621 vax-*-bsd*)                     # VAXen running BSD
2622         tm_file="${tm_file} vax/bsd.h"
2623         use_collect2=yes
2624         ;;
2625 vax-*-sysv*)                    # VAXen running system V
2626         tm_file="${tm_file} vax/vaxv.h"
2627         xm_defines=POSIX
2628         ;;
2629 vax-*-netbsdelf*)
2630         tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
2631         float_format=vax
2632         ;;
2633 vax-*-netbsd*)
2634         tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
2635         tmake_file=t-netbsd
2636         extra_parts=""
2637         use_collect2=yes
2638         ;;
2639 vax-*-openbsd*)
2640         tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
2641         use_collect2=yes
2642         ;;
2643 vax-*-ultrix*)                  # VAXen running ultrix
2644         tm_file="${tm_file} vax/ultrix.h"
2645         ;;
2646 vax-*-vms*)                     # VAXen running VMS
2647         echo "Configuration $machine no longer supported" 1>&2
2648         exit 1
2649         ;;
2650 vax-*-*)                        # VAX default entry
2651         ;;
2652 xscale-*-elf)
2653         tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2654         tmake_file=arm/t-xscale-elf
2655         out_file=arm/arm.c
2656         md_file=arm/arm.md
2657         extra_modes=arm/arm-modes.def
2658         ;;
2659 xscale-*-coff)
2660         tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
2661         tmake_file=arm/t-xscale-coff
2662         out_file=arm/arm.c
2663         md_file=arm/arm.md
2664         extra_modes=arm/arm-modes.def
2665         ;;
2666 xstormy16-*-elf)
2667         # For historical reasons, the target files omit the 'x'.
2668         tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
2669         tm_p_file=stormy16/stormy16-protos.h
2670         md_file=stormy16/stormy16.md
2671         out_file=stormy16/stormy16.c
2672         tmake_file="stormy16/t-stormy16"
2673         extra_parts="crtbegin.o crtend.o"
2674         ;;
2675 xtensa-*-elf*)
2676         tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
2677         tmake_file="xtensa/t-xtensa xtensa/t-elf"
2678         ;;
2679 xtensa-*-linux*)
2680         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
2681         tmake_file="t-linux xtensa/t-xtensa xtensa/t-linux"
2682         ;;
2683 *)
2684         echo "*** Configuration $machine not supported" 1>&2
2685         exit 1
2686         ;;
2687 esac
2688
2689 case $machine in
2690 *-*-sysv*)
2691         install_headers_dir=install-headers-cpio
2692         ;;
2693 esac
2694
2695 # Distinguish i[34567]86
2696 # Also, do not run mips-tfile on MIPS if using gas.
2697 # Process --with-cpu= for PowerPC/rs6000
2698 target_cpu_default2=
2699 case $machine in
2700 i486-*-*)
2701         target_cpu_default2=TARGET_CPU_DEFAULT_i486
2702         ;;
2703 i586-*-*)
2704         case $target_alias in
2705                 k6_2-*)
2706                         target_cpu_default2=TARGET_CPU_DEFAULT_k6_2
2707                         ;;
2708                 k6_3-*)
2709                         target_cpu_default2=TARGET_CPU_DEFAULT_k6_3
2710                         ;;
2711                 k6-*)
2712                         target_cpu_default2=TARGET_CPU_DEFAULT_k6
2713                         ;;
2714                 pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2715                         target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx
2716                         ;;
2717                 *)
2718                         target_cpu_default2=TARGET_CPU_DEFAULT_pentium
2719                         ;;
2720         esac
2721         ;;
2722 i686-*-* | i786-*-*)
2723         case $target_alias in
2724                 k8-*)
2725                         target_cpu_default2=TARGET_CPU_DEFAULT_k8
2726                         ;;
2727                 athlon_xp-*|athlon_mp-*|athlon_4-*)
2728                         target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
2729                         ;;
2730                 athlon_tbird-*|athlon-*)
2731                         target_cpu_default2=TARGET_CPU_DEFAULT_athlon
2732                         ;;
2733                 pentium2-*)
2734                         target_cpu_default2=TARGET_CPU_DEFAULT_pentium2
2735                         ;;
2736                 pentium3-*)
2737                         target_cpu_default2=TARGET_CPU_DEFAULT_pentium3
2738                         ;;
2739                 pentium4-*)
2740                         target_cpu_default2=TARGET_CPU_DEFAULT_pentium4
2741                         ;;
2742                 *)
2743                         target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro
2744                         ;;
2745         esac
2746         ;;
2747 x86_64-*-*)
2748         # We should have hammer chip here, but it does not exist yet and
2749         # thus it is not supported.  Athlon_SSE is probably equivalent feature
2750         # wise to hammer from our point of view except for 64bit mode.
2751         target_cpu_default2=TARGET_CPU_DEFAULT_k8
2752         ;;
2753 alpha*-*-*)
2754         case $machine in
2755                 alphaev6[78]*)
2756                         target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
2757                         ;;
2758                 alphaev6*)
2759                         target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
2760                         ;;
2761                 alphapca56*)
2762                         target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2763                         ;;
2764                 alphaev56*)
2765                         target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2766                         ;;
2767                 alphaev5*)
2768                         target_cpu_default2="MASK_CPU_EV5"
2769                         ;;
2770         esac
2771
2772         if test x$gas = xyes
2773         then
2774                 if test "$target_cpu_default2" = ""
2775                 then
2776                         target_cpu_default2="MASK_GAS"
2777                 else
2778                         target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2779                 fi
2780         fi
2781         ;;
2782 arm*-*-*)
2783         case "x$with_cpu" in
2784                 x)
2785                         # The most generic
2786                         target_cpu_default2="TARGET_CPU_generic"
2787                         ;;
2788
2789                 # Distinguish cores, and major variants
2790                 # arm7m doesn't exist, but D & I don't affect code
2791                 xarm[236789] | xarm250 | xarm[67][01]0 \
2792                 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
2793                 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2794                 | xxscale \
2795                 | xep9312 \
2796                 | xstrongarm | xstrongarm110 | xstrongarm1100)
2797                         target_cpu_default2="TARGET_CPU_$with_cpu"
2798                         ;;
2799
2800                 xyes | xno)
2801                         echo "--with-cpu must be passed a value" 1>&2
2802                         exit 1
2803                         ;;
2804
2805                 *)
2806                         if test x$pass2done = xyes
2807                         then
2808                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2809                                 exit 1
2810                         fi
2811                         ;;
2812         esac
2813         case $machine in
2814                 9ep9312-*-*)
2815                         target_cpu_default2="TARGET_CPU_9ep9312"
2816                         ;;
2817         esac
2818         ;;
2819
2820 hppa*-*-* | parisc*-*-*)
2821         if test x$gas = xyes
2822         then
2823                 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
2824         fi
2825         case $machine in
2826                 hppa1* | parisc1*)
2827                         tm_defines="TARGET_SCHED_DEFAULT=\\\"7100LC\\\""
2828                         ;;
2829         esac
2830         ;;
2831 mips*-*-*)
2832         case $machine in
2833         mips*-*-ecoff* | mips*-*-elf*)
2834                 if test x$gas = xyes
2835                 then
2836                         if test x$gnu_ld = xyes
2837                         then
2838                                 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
2839                         else
2840                                 target_cpu_default2="MASK_GAS"
2841                         fi
2842                 fi
2843                 ;;
2844         mips*-*-*)
2845                 if test x$gas = xyes
2846                 then
2847                         target_cpu_default2="MASK_GAS"
2848                 fi
2849                 ;;
2850         esac
2851         case $machine in
2852                 mips*el-*-*)
2853                         tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
2854                         ;;
2855         esac
2856         case $tm_file in
2857                 *mips/elf.h* | *mips/elf64.h*)
2858                         tm_defines="OBJECT_FORMAT_ELF $tm_defines"
2859                         ;;
2860         esac
2861         if test "x$enable_gofast" = xyes
2862         then
2863                 tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
2864                 tm_file="gofast.h $tm_file"
2865                 tmake_file="mips/t-gofast $tmake_file"
2866         else
2867                 tmake_file="mips/t-mips $tmake_file"
2868         fi
2869         ;;
2870 powerpc*-*-* | rs6000-*-*)
2871         if test x$enable_altivec = xyes
2872         then
2873                 tm_file="$tm_file rs6000/altivec-defs.h"
2874         fi
2875         case "x$with_cpu" in
2876                 x)
2877                         ;;
2878
2879                 xcommon | xpower | xpower2 | xpower3 | xpowerpc | xpowerpc64 \
2880                   | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
2881                   | x601 | x602 | x603 | x603e | x604 | x604e | x620 | x630 \
2882                   | x740 | x750 | x7400 | x7450 | x505)
2883                         target_cpu_default2="\\\"$with_cpu\\\""
2884                         ;;
2885
2886                 x401 | x403 | x405 | xec603e | x801 | x821 | x823 | x860)
2887                         target_cpu_default2="\\\"$with_cpu\\\""
2888                         ;;
2889
2890                 xyes | xno)
2891                         echo "--with-cpu must be passed a value" 1>&2
2892                         exit 1
2893                         ;;
2894
2895                 *)
2896                         if test x$pass2done = xyes
2897                         then
2898                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2899                                 exit 1
2900                         fi
2901                         ;;
2902         esac
2903         out_file=rs6000/rs6000.c
2904         c_target_objs="${c_target_objs} rs6000-c.o"
2905         cxx_target_objs="${cxx_target_objs} rs6000-c.o"
2906         tmake_file="rs6000/t-rs6000 ${tmake_file}"
2907         ;;
2908 sparc*-*-*)
2909         case ".$with_cpu" in
2910                 .)
2911                         target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2912                         ;;
2913                 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
2914                         target_cpu_default2="TARGET_CPU_$with_cpu"
2915                         ;;
2916                 *)
2917                         if test x$pass2done = xyes
2918                         then
2919                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2920                                 exit 1
2921                         fi
2922                         ;;
2923         esac
2924         ;;
2925 v850*-*-*)
2926         case "x$with_cpu" in
2927                 x)
2928                         ;;
2929                 xv850e)
2930                         target_cpu_default2="TARGET_CPU_$with_cpu"
2931                         ;;
2932                 *)
2933                         if test x$pass2done = xyes
2934                         then
2935                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2936                                 exit 1
2937                         fi
2938                         ;;
2939         esac
2940         ;;
2941 esac
2942
2943 if test "$target_cpu_default2" != ""
2944 then
2945         if test "$target_cpu_default" != ""
2946         then
2947                 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2948         else
2949                 target_cpu_default=$target_cpu_default2
2950         fi
2951 fi
2952
2953 # Save data on machine being used to compile GCC in build_xm_file.
2954 # Save data on host machine in vars host_xm_file and host_xmake_file.
2955 if test x$pass1done = x
2956 then
2957         if test x$xm_file != x
2958         then build_xm_file=$xm_file
2959         fi
2960         build_xm_defines=$xm_defines
2961         build_install_headers_dir=$install_headers_dir
2962         build_exeext=$exeext
2963         pass1done=yes
2964 else
2965         if test x$pass2done = x
2966         then
2967                 if test x$xm_file != x
2968                 then host_xm_file=$xm_file
2969                 fi
2970                 host_xm_defines=$xm_defines
2971                 host_xmake_file="$xmake_file"
2972                 host_truncate_target=$truncate_target
2973                 host_extra_gcc_objs=$extra_gcc_objs
2974                 host_extra_objs=$extra_host_objs
2975                 host_exeext=$exeext
2976                 out_host_hook_obj=$host_hook_obj
2977                 pass2done=yes
2978         fi
2979 fi