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