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