1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify it under
7 #the terms of the GNU General Public License as published by the Free
8 #Software Foundation; either version 2, or (at your option) any later
11 #GCC is distributed in the hope that it will be useful, but WITHOUT
12 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING. If not, write to the Free
18 #Software Foundation, 59 Temple Place - Suite 330, Boston, MA
21 # This is the GCC build-, host- and target-specific configuration file
22 # where a configuration type, as recognized and generated by config.bfd,
23 # is mapped to different system-specific definitions and files. This is
24 # invoked by the autoconf-generated configure script, called for build,
25 # host and target in that order, setting ${machine} to each. Putting it
26 # in a separate shell file lets us skip running autoconf when modifying
27 # build-, host- and target-specific information.
29 # This file switches on the shell variable ${machine}, and also uses the
30 # following shell variables:
32 # with_* Various variables as set by configure.
34 # enable_threads_flag Either the name, yes or no depending on whether
35 # threads support was requested.
37 # gas_flag Either yes or no depending on whether GNU as was
40 # gnu_ld_flag Either yes or no depending on whether GNU ld was
43 # This file sets the following shell variables for use by the
44 # autoconf-generated configure script:
46 # cpu_type The name of the cpu, if different from machine.
48 # tm_file A list of target macro files, if different from
49 # "$cpu_type/$cpu_type.h". Usually it's constructed
50 # per target in a way like this:
51 # tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
52 # Note that the preferred order is:
53 # - specific target header "${cpu_type}/${cpu_type.h}"
54 # - generic headers like dbxelf.h elfos.h, netware.h, etc.
55 # - specializing target headers like ${cpu_type.h}/elf.h
56 # This helps to keep OS specific stuff out of the CPU
57 # defining header ${cpu_type}/${cpu_type.h}.
59 # tm_p_file Location of file with declarations for functions
62 # out_file The name of the machine description C support
63 # file, if different from "$cpu_type/$cpu_type.c".
65 # md_file The name of the machine-description file, if
66 # different from "$cpu_type/$cpu_type.md".
68 # tmake_file A list of machine-description-specific
69 # makefile-fragments, if different from
70 # "$cpu_type/t-$cpu_type".
72 # float_format Set to the symbolic name for the floating-point
73 # formats used for this machine, if different from
74 # "i64". Used to derive a header file name to
75 # include, like "vax" for "float-vax.h". If no such
76 # file is wanted, set to "none".
78 # extra_objs List of extra objects that should be linked into
79 # the compiler proper (cc1, cc1obj, cc1plus)
80 # depending on target.
82 # extra_headers List of used header files from the directory
85 # host_xmake_file List of host-specific makefile-fragments.
87 # extra_passes List of extra executables compiled for this target
88 # machine, used for compiling from source to object.
90 # extra_parts List of extra object files that should be compiled
91 # for this target machine.
93 # extra_programs Like extra_passes, but these are used when linking.
95 # host_extra_objs List of extra host-dependent objects that should
96 # be linked into the compiler proper.
98 # host_extra_gcc_objs List of extra host-dependent objects that should
99 # be linked into the gcc driver.
101 # c_target_objs List of extra target-dependent objects that be
102 # linked into the C compiler only.
104 # cxx_target_objs List of extra target-dependent objects that be
105 # linked into the C++ compiler only.
107 # build_xm_defines List of macros to define when compiling for the
110 # build_xm_file List of files to include when compiling for the
113 # host_xm_defines List of macros to define when compiling for the
116 # host_xm_file List of files to include when compiling for the
119 # xm_defines List of macros to define when compiling for the
122 # xm_file List of files to include when compiling for the
125 # use_collect2 Set to yes or no, depending on whether collect2
128 # target_cpu_default Set to override the default target model.
130 # build_install_headers_dir
131 # Target to use when installing header files.
133 # host_truncate_target
134 # Non-empty if the target name should be truncated
135 # on this host, due to filename length issues.
137 # gdb_needs_out_file_path
138 # Set to yes if gdb needs a dir command with
139 # `dirname $out_file`.
141 # build_exeext Set to the suffix, if the build machine requires
142 # executables to have a file name suffix.
144 # host_exeext Set to the suffix, if the host machine requires
145 # executables to have a file name suffix.
147 # thread_file Set to control which thread package to use.
149 # gas Set to yes or no depending on whether the target
150 # system normally uses GNU as.
152 # The following variables are used in each case-construct to build up the
153 # outgoing variables:
155 # xmake_file Makefile-fragment when this system is as a host,
156 # for host_xmake_file.
158 # extra_host_objs List of extra objects that should be linked into
159 # the compiler proper when this system is a host,
160 # for host_extra_objs.
162 # install_headers_dir Makefile-target for how the header file directory
163 # is installed, when this system is a build system,
164 # for build_install_headers_dir.
166 # truncate_target Non-empty if the target name should be truncated
167 # when this system is a host, due to filename length
168 # issues. For host_truncate_target.
170 # exeext The suffix for executables on this system.
172 # gnu_ld Set to yes or no depending on whether the target
173 # system normally uses GNU ld.
189 # Set this to force installation and use of collect2.
191 # Set this to override the default target model.
193 # Set this to control how the header file directory is installed.
194 install_headers_dir=install-headers-tar
195 # Set this if directory names should be truncated to 14 characters.
197 # Set this if gdb needs a dir command with `dirname $out_file`
198 gdb_needs_out_file_path=
199 # Set this if the build machine requires executables to have a
202 # Set this to control which thread package will be used.
204 # Reinitialize these from the flag values every loop pass, since some
205 # configure entries modify them.
207 gnu_ld="$gnu_ld_flag"
208 enable_threads=$enable_threads_flag
210 # Obsolete configurations.
211 # To avoid some tedious lists, we have a blacklist with a whitelist
212 # embedded within it.
216 | alpha*-*-osf[123]* \
226 | i?86-*-freebsd1.* \
228 | i?86-*-linux*oldld* \
231 | i?86-*-rtemscoff* \
235 | i?86-sequent-bsd* \
236 | i?86-sequent-ptx[12]* \
237 | i?86-sequent-sysv3* \
238 | m68[k0]*-*-lynxos* \
239 | m68[k0]*-*-rtemscoff* \
240 | m68[k0]*-*-sysv3* \
242 | m68[k0]*-apollo-* \
245 | m68[k0]*-convergent-* \
255 | mips-sgi-irix[1234]* \
262 | sparc-*-rtemsaout* \
267 | m88k-*-aout* | m88k-*-openbsd* | m88k-*-sysv4* \
268 | ns32k-*-netbsd* | ns32k-*-openbsd* \
274 if test "x$enable_obsolete" != xyes; then
275 echo "*** Configuration $machine is obsolete." >&2
276 echo "*** Specify --enable-obsolete to build it anyway." >&2
277 echo "*** Support will be REMOVED in the next major release of GCC," >&2
278 echo "*** unless a maintainer comes forward." >&2
284 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
285 # updated in each machine entry. Also set default extra_headers for some
288 cpu_type=`echo $machine | sed 's/-.*$//'`
304 extra_headers=proto.h
308 extra_headers="mmintrin.h xmmintrin.h"
312 extra_headers="mmintrin.h xmmintrin.h"
315 extra_headers=ia64intrin.h
317 hppa*-*-* | parisc*-*-*)
322 extra_headers=math-68881.h
325 extra_headers=math-68881.h
335 extra_headers="ppc-asm.h altivec.h"
345 tm_file=${cpu_type}/${cpu_type}.h
346 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
348 tm_p_file=${cpu_type}/${cpu_type}-protos.h
353 tm_file="i386/biarch64.h ${tm_file}"
357 # On a.out targets, we need to use collect2.
364 # Common parts for GNU/Linux, GNU/Hurd, OpenBSD, NetBSD, and FreeBSD systems.
370 # On the Hurd, the setup is just about the same on
371 # each different CPU. The specific machines that we
372 # support are matched above and just set $cpu_type.
374 tm_file="${cpu_type}/gnu.h"
375 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
376 # GNU always uses ELF.
378 # GNU tools are the only tools.
381 # These details are the same as for Linux.
382 # But here we need a little extra magic.
383 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
386 tm_file="${cpu_type}/${cpu_type}.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}"
391 tm_file=${cpu_type}/openbsd.h
392 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
394 if test x$enable_threads = xyes; then
396 tmake_file="${tmake_file} t-openbsd-thread"
400 tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd"
405 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
406 # This is the place-holder for the generic a.out configuration
407 # of FreeBSD. No actual configuration resides here since
408 # there was only ever a bare-bones ix86 configuration for
409 # a.out and it exists solely in the machine-specific section.
410 # This place-holder must exist to avoid dropping into
411 # the generic ELF configuration of FreeBSD (i.e. it must be
412 # ordered before that section).
415 # This is the generic ELF configuration of FreeBSD. Later
416 # machine-specific sections may refine and add to this
419 # Due to tm_file entry ordering issues that vary between cpu
420 # architectures, we only define fbsd_tm_file to allow the
421 # machine-specific section to dictate the final order of all
422 # entries of tm_file with the minor exception that components
423 # of the tm_file set here will always be of the form:
425 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
427 # The machine-specific section should not tamper with this
428 # ordering but may order all other entries of tm_file as it
429 # pleases around the provided core setting.
432 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
434 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
435 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
436 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
437 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
438 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
440 tmake_file="t-slibgcc-elf-ver t-freebsd"
443 case x${enable_threads} in
444 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
445 x | xyes | xpthreads | xposix)
447 tmake_file="${tmake_file} t-freebsd-thread"
448 # Before 5.0, FreeBSD can't bind shared libraries to -lc
449 # when "optionally" threaded via weak pthread_* checks.
451 *-*-freebsd[34] | *-*-freebsd[34].*)
452 tmake_file="${tmake_file} t-slibgcc-nolc-override";;
455 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
457 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
462 # Support site-specific machine types.
464 rest=`echo $machine | sed -e "s/$cpu_type-//"`
465 tm_file=${cpu_type}/$rest.h
466 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
467 then xm_file=${cpu_type}/xm-$rest.h
469 if test -f $srcdir/config/${cpu_type}/x-$rest
470 then xmake_file=${cpu_type}/x-$rest
472 if test -f $srcdir/config/${cpu_type}/t-$rest
473 then tmake_file=${cpu_type}/t-$rest
477 # 1750a is only supported as a target.
478 case "$build,$host" in 1750a*,* | *,1750a* )
479 echo "*** $machine is only supported as a target" >&2
483 a29k-*-bsd* | a29k-*-sym1*)
484 tm_file="${tm_file} a29k/unix.h"
488 a29k-*-udi | a29k-*-coff)
489 tm_file="${tm_file} dbxcoff.h"
490 tmake_file=a29k/t-a29kbare
494 tm_file="a29k/a29k.h a29k/rtems.h rtems.h"
495 tmake_file="a29k/t-a29kbare t-rtems"
496 if test x$enable_threads = xyes; then
501 tm_file="${tm_file} dbxcoff.h a29k/vx29k.h"
502 tmake_file=a29k/t-vx29k
503 extra_parts="crtbegin.o crtend.o"
504 thread_file='vxworks'
506 a29k-*-*) # Default a29k environment.
511 tm_file="${tm_file} alpha/unicosmk.h"
513 # Don't include t-ieee for now because we don't support that yet
514 # tmake_file="alpha/t-ieee"
515 tmake_file="alpha/t-unicosmk"
518 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
520 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
521 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
523 # GAS + IEEE_CONFORMANT
524 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
527 xm_file="alpha/xm-alpha-interix.h"
528 tmake_file="alpha/t-alpha t-interix alpha/t-interix alpha/t-ieee"
529 if test x$enable_threads = xyes ; then
532 if test x$stabs = xyes ; then
533 tm_file="${tm_file} dbxcoff.h"
535 #prefix='$$INTERIX_ROOT'/usr/contrib
536 #local_prefix='$$INTERIX_ROOT'/usr/contrib
538 alpha*-*-linux*ecoff*)
539 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
540 target_cpu_default="MASK_GAS"
541 tmake_file="alpha/t-alpha alpha/t-ieee"
545 alpha*-*-linux*libc1*)
546 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
547 target_cpu_default="MASK_GAS"
548 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtfm alpha/t-ieee"
549 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
551 if test x$enable_threads = xyes; then
556 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
557 target_cpu_default="MASK_GAS"
558 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
559 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
561 if test x$enable_threads = xyes; then
566 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
567 target_cpu_default="MASK_GAS"
568 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
569 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
572 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
573 target_cpu_default="MASK_GAS"
574 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
575 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
579 # default x-alpha is only appropriate for dec-osf.
580 target_cpu_default="MASK_GAS"
581 tmake_file="alpha/t-alpha alpha/t-ieee"
586 if test x$stabs = xyes
588 tm_file="${tm_file} dbx.h"
590 if test x$gas != xyes
592 extra_passes="mips-tfile mips-tdump"
595 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm"
596 extra_headers=va_list.h
599 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
602 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
605 tm_file="${tm_file} alpha/osf.h"
606 tmake_file="$tmake_file alpha/t-osf4"
607 # Some versions of OSF4 (specifically X4.0-9 296.7) have
608 # a broken tar, so we use cpio instead.
609 install_headers_dir=install-headers-cpio
612 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
613 tmake_file="$tmake_file alpha/t-osf4"
618 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
619 target_cpu_default=MASK_SUPPORT_ARCH
625 tm_file="${tm_file} dbx.h alpha/vxworks.h"
626 tmake_file="alpha/t-alpha alpha/t-ieee"
629 extra_passes="mips-tfile mips-tdump"
632 thread_file='vxworks'
636 tm_file="alpha/vms.h alpha/vms64.h"
637 xm_file="alpha/xm-vms.h alpha/xm-vms64.h"
638 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
639 xmake_file=alpha/x-vms
641 # This removes the cpu type and manufacturer components and
642 # replaces "." with "_" in the operating system version.
643 case $host in *-*-*vms*)
644 target_alias=`echo $host \
645 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
648 install_headers_dir=install-headers-cp
655 xm_file=alpha/xm-vms.h
656 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
657 xmake_file=alpha/x-vms
659 # This removes the cpu type and manufacturer components and
660 # replaces "." with "_" in the operating system version.
661 case $host in *-*-*vms*)
662 target_alias=`echo $host \
663 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
666 install_headers_dir=install-headers-cp
671 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
672 extra_parts="crtinit.o crtfini.o"
674 arm-*-coff* | armel-*-coff*)
675 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h"
676 tmake_file=arm/t-arm-coff
679 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/vxarm.h arm/arm.h"
680 tmake_file=arm/t-arm-coff
681 thread_file='vxworks'
683 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
684 tm_file="arm/riscix1-1.h arm/arm.h"
687 arm-*-riscix*) # Acorn RISC machine
690 tm_file="arm/riscix.h arm/rix-gas.h arm/arm.h"
692 tm_file="arm/riscix.h arm/arm.h"
694 tmake_file=arm/t-riscix
697 arm-semi-aout | armel-semi-aout)
698 tm_file="arm/semi.h arm/aout.h arm/arm.h"
699 tmake_file=arm/t-semi
701 arm-semi-aof | armel-semi-aof)
702 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
703 tmake_file=arm/t-semi
705 arm*-*-freebsd*|strongarm*-*-freebsd*)
706 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
707 tmake_file="${tmake_file} arm/t-strongarm-elf"
710 echo "GCC does not yet support the ${machine} target"; exit 1
713 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
714 tmake_file="t-netbsd arm/t-netbsd"
717 arm*-*-linux*) # ARM GNU/Linux with ELF
718 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h"
719 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
720 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
722 case x${enable_threads} in
723 x | xyes | xpthreads | xposix)
728 arm*-*-uclinux*) # ARM ucLinux
729 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h"
730 tmake_file=arm/t-arm-elf
733 tm_file="arm/aout.h arm/arm.h"
734 tmake_file=arm/t-arm-aout
737 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
738 tmake_file=arm/t-arm-elf
742 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h"
743 tmake_file="arm/t-arm-elf t-rtems"
744 if test x$enable_threads = xyes; then
749 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
750 tmake_file=arm/t-arm-elf
753 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/conix-elf.h arm/aout.h arm/arm.h"
754 tmake_file=arm/t-arm-elf
757 tm_file="arm/unknown-elf-oabi.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
758 tmake_file=arm/t-arm-elf
761 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h"
767 c1-convex-*) # Convex C1
771 c2-convex-*) # Convex C2
784 target_cpu_default=16
789 tmake_file="c4x/t-c4x t-rtems"
790 tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
791 if test x$enable_threads = xyes; then
794 c_target_objs="c4x-c.o"
795 cxx_target_objs="c4x-c.o"
800 c_target_objs="c4x-c.o"
801 cxx_target_objs="c4x-c.o"
803 clipper-intergraph-clix*)
804 tm_file="${tm_file} svr3.h clipper/clix.h"
806 extra_parts="crtbegin.o crtend.o"
807 install_headers_dir=install-headers-cpio
810 tm_file="dbxelf.h ${tm_file} cris/aout.h"
812 tmake_file="cris/t-cris cris/t-aout"
814 cris-*-elf | cris-*-none)
815 tm_file="dbxelf.h elfos.h ${tm_file}"
816 tmake_file="cris/t-cris cris/t-elfmulti"
820 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
821 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
822 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
823 case x${enable_threads} in
824 x | xyes | xpthreads | xposix)
831 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
840 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
841 tmake_file=fr30/t-fr30
842 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
846 tmake_file="h8300/t-h8300 t-rtems"
847 tm_file="h8300/h8300.h h8300/rtems.h rtems.h"
848 if test x$enable_threads = xyes; then
854 tmake_file="h8300/t-h8300 h8300/t-elf"
855 tm_file="h8300/h8300.h h8300/elf.h"
861 hppa*64*-*-linux* | parisc*64*-*-linux*)
862 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
863 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
864 pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
865 tmake_file=pa/t-linux64
868 hppa*-*-linux* | parisc*-*-linux*)
869 target_cpu_default="MASK_PA_11"
870 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
871 pa/pa32-regs.h pa/pa32-linux.h"
872 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
873 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
875 if test x$enable_threads = xyes; then
880 target_cpu_default="MASK_PA_11"
884 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
885 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
886 tmake_file="pa/t-bsd pa/t-pro"
887 xmake_file="pa/x-ada"
890 target_cpu_default="MASK_PA_11"
891 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
892 tmake_file="pa/t-bsd pa/t-pa"
893 xmake_file="pa/x-ada"
898 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
899 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h rtems.h"
900 tmake_file="pa/t-bsd pa/t-pro"
901 xmake_file="pa/x-ada"
904 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
905 tmake_file="pa/t-bsd pa/t-pa"
906 xmake_file="pa/x-ada"
910 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
911 target_cpu_default="MASK_PA_11"
912 tmake_file="pa/t-bsd pa/t-pa"
913 xmake_file="pa/x-ada"
917 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
918 tmake_file="pa/t-bsd pa/t-pa"
919 xmake_file="pa/x-ada"
923 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
925 tmake_file=pa/t-pa-hpux
926 install_headers_dir=install-headers-cpio
929 hppa1.0-*-hpux8.0[0-2]*)
930 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
932 tmake_file=pa/t-pa-hpux
933 if test x$gas != xyes
935 tm_file="pa/pa-oldas.h ${tm_file}"
937 install_headers_dir=install-headers-cpio
940 hppa1.1-*-hpux8.0[0-2]*)
941 target_cpu_default="MASK_PA_11"
942 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
944 tmake_file=pa/t-pa-hpux
945 if test x$gas != xyes
947 tm_file="pa/pa-oldas.h ${tm_file}"
949 install_headers_dir=install-headers-cpio
953 target_cpu_default="MASK_PA_11"
954 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
956 tmake_file=pa/t-pa-hpux
957 install_headers_dir=install-headers-cpio
961 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
963 tmake_file=pa/t-pa-hpux
964 install_headers_dir=install-headers-cpio
967 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
968 target_cpu_default="MASK_PA_11"
969 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
972 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
973 xmake_file="pa/x-ada"
974 if test x$enable_threads = x; then
975 enable_threads=$have_pthread_h
977 case x${enable_threads} in
979 tmake_file="${tmake_file} pa/t-dce-thr"
982 install_headers_dir=install-headers-cpio
986 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
989 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
990 xmake_file="pa/x-ada"
991 if test x$enable_threads = x; then
992 enable_threads=$have_pthread_h
994 case x${enable_threads} in
996 tmake_file="${tmake_file} pa/t-dce-thr"
999 install_headers_dir=install-headers-cpio
1004 tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
1006 tmake_file="pa/t-pa64 pa/t-pa-hpux"
1007 xmake_file="pa/x-ada"
1008 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
1010 # if [ x$enable_threads = x ]; then
1011 # enable_threads=$have_pthread_h
1013 # if [ x$enable_threads = xyes ]; then
1015 # tmake_file="${tmake_file} pa/t-dce-thr"
1017 install_headers_dir=install-headers-cpio
1020 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1021 target_cpu_default="MASK_PA_11"
1022 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1025 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
1026 xmake_file="pa/x-ada"
1027 # if test x$enable_threads = x; then
1028 # enable_threads=$have_pthread_h
1030 # if test x$enable_threads = xyes; then
1032 # tmake_file="${tmake_file} pa/t-dce-thr"
1034 install_headers_dir=install-headers-cpio
1038 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1041 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
1042 xmake_file="pa/x-ada"
1043 # if test x$enable_threads = x; then
1044 # enable_threads=$have_pthread_h
1046 # if test x$enable_threads = xyes; then
1048 # tmake_file="${tmake_file} pa/t-dce-thr"
1050 install_headers_dir=install-headers-cpio
1053 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1054 target_cpu_default="MASK_PA_11"
1055 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1057 tmake_file=pa/t-pa-hpux
1058 install_headers_dir=install-headers-cpio
1062 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1064 tmake_file=pa/t-pa-hpux
1065 install_headers_dir=install-headers-cpio
1068 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1069 target_cpu_default="MASK_PA_11"
1070 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1072 tmake_file=pa/t-pa-hpux
1073 install_headers_dir=install-headers-cpio
1077 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1079 tmake_file=pa/t-pa-hpux
1080 install_headers_dir=install-headers-cpio
1084 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h"
1085 target_cpu_default="MASK_PA_11"
1086 tmake_file="pa/t-bsd pa/t-pa"
1087 xmake_file="pa/x-ada"
1091 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1092 tmake_file=pa/t-mpeix
1093 echo "You must use gas. Assuming it is already installed."
1095 install_headers_dir=install-headers-tar
1098 i370-*-opened*) # IBM 360/370/390 Architecture
1099 xm_defines='POSIX FATAL_EXIT_CODE=12'
1101 tmake_file="i370/t-oe i370/t-i370"
1102 c_target_objs="i370-c.o"
1103 cxx_target_objs="i370-c.o"
1106 xm_defines='POSIX FATAL_EXIT_CODE=12'
1108 tmake_file="i370/t-i370"
1109 c_target_objs="i370-c.o"
1110 cxx_target_objs="i370-c.o"
1113 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}"
1114 tmake_file="t-slibgcc-elf-ver t-linux"
1115 # broken_install=yes
1116 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1117 # extra_parts="crtbegin.o crtend.o"
1121 if test x$enable_threads = xyes; then
1125 i[34567]86-*-chorusos*)
1127 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h i386/i386elf.h chorus.h"
1128 tmake_file="i386/t-i386elf t-svr4"
1129 case x${enable_threads} in
1130 xyes | xpthreads | xposix)
1137 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h i386/i386elf.h"
1138 tmake_file="i386/t-i386elf t-svr4"
1140 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1141 if test x$gas = xyes
1143 tm_file=i386/aix386.h
1144 extra_parts="crtbegin.o crtend.o"
1145 tmake_file=i386/t-crtstuff
1147 tm_file=i386/aix386ng.h
1152 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1153 xm_defines="POSIX SMALL_ARG_MAX"
1154 if test x$stabs = xyes -a x$gas = xyes
1156 tm_file=i386/sysv4gdb.h
1158 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h"
1160 extra_parts="crtbegin.o crtend.o"
1161 tmake_file=i386/t-crtpic
1164 tm_p_file="${tm_p_file} nextstep-protos.h"
1166 tmake_file=i386/t-next
1167 extra_objs=nextstep.o
1168 extra_parts="crtbegin.o crtend.o"
1169 if test x$enable_threads = xyes; then
1173 i[34567]86-*-netware) # Intel 80386's running netware
1174 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
1175 tmake_file=i386/t-netware
1177 i[34567]86-sequent-bsd*) # 80386 from Sequent
1179 if test x$gas = xyes
1181 tm_file=i386/seq-gas.h
1183 tm_file=i386/sequent.h
1186 i[34567]86-sequent-ptx1*)
1188 tm_file=i386/seq-sysv3.h
1189 tmake_file=i386/t-crtstuff
1190 extra_parts="crtbegin.o crtend.o"
1191 install_headers_dir=install-headers-cpio
1193 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1195 tm_file=i386/seq2-sysv3.h
1196 tmake_file=i386/t-crtstuff
1197 extra_parts="crtbegin.o crtend.o"
1198 install_headers_dir=install-headers-cpio
1200 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1201 if test x$gas = xyes
1203 tm_file="${tm_file} usegas.h"
1205 xm_defines="POSIX SMALL_ARG_MAX"
1206 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
1208 extra_parts="crtbegin.o crtend.o"
1209 install_headers_dir=install-headers-cpio
1211 i386-sun-sunos*) # Sun i386 roadrunner
1216 i[34567]86-wrs-vxworks*)
1217 tm_file=i386/vxi386.h
1218 thread_file='vxworks'
1221 tm_file=i386/i386-aout.h
1223 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1225 tmake_file='i386/t-beos i386/t-crtpic'
1226 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
1227 extra_parts='crtbegin.o crtend.o'
1229 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1230 tm_file="i386/386bsd.h i386/bsd386.h"
1231 # tmake_file=t-libc-ok
1234 tm_file=i386/386bsd.h
1235 # tmake_file=t-libc-ok
1236 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1239 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1240 tm_file=i386/freebsd-aout.h
1241 tmake_file=t-freebsd
1243 i[34567]86-*-freebsd*)
1244 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
1247 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h"
1249 i[34567]86-*-netbsdelf*)
1250 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
1253 i[34567]86-*-netbsd*)
1254 tm_file=i386/netbsd.h
1259 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h"
1262 i[34567]86-*-openbsd*)
1263 # needed to unconfuse gdb
1264 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1265 # we need collect2 until our bug is fixed...
1269 tm_file=i386/i386-coff.h
1271 i[34567]86-*-isc*) # 80386 running ISC system
1273 if test x$gas = xyes -a x$stabs = xyes
1275 tm_file=i386/iscdbx.h
1276 tmake_file=i386/t-svr3dbx
1277 extra_parts="svr3.ifile svr3z.ifile"
1279 tm_file=i386/isccoff.h
1280 tmake_file=i386/t-crtstuff
1281 extra_parts="crtbegin.o crtend.o"
1283 install_headers_dir=install-headers-cpio
1285 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1286 # with a.out format using
1288 tmake_file="t-linux-aout i386/t-crtstuff"
1289 tm_file=i386/linux-oldld.h
1293 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1295 tmake_file="t-linux-aout i386/t-crtstuff"
1296 tm_file=i386/linux-aout.h
1300 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1301 # with ELF format using the
1302 # GNU/Linux C library 5
1303 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1304 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1305 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1308 if test x$enable_threads = xyes; then
1309 thread_file='single'
1312 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1313 # with ELF format using glibc 2
1314 # aka GNU/Linux C library 6
1315 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1316 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1317 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1320 if test x$enable_threads = xyes; then
1325 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1326 i386/x86-64.h i386/linux64.h"
1327 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff i386/t-linux64"
1328 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1331 if test x$enable_threads = xyes; then
1338 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1339 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1342 i[34567]86-pc-msdosdjgpp*)
1343 xm_file=i386/xm-djgpp.h
1344 tm_file=i386/djgpp.h
1345 tmake_file=i386/t-djgpp
1350 case $host in *pc-msdosdjgpp*)
1355 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1356 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1357 tmake_file=t-libc-ok
1361 i[34567]86-*-lynxos*)
1362 if test x$gas = xyes
1366 tm_file=i386/lynx-ng.h
1371 # tmake_file=t-libc-ok
1374 i[34567]86-*-osfrose*) # 386 using OSF/rose
1375 if test x$elf = xyes
1377 tm_file=i386/osfelf.h
1380 tm_file=i386/osfrose.h
1383 tmake_file=i386/t-osf
1384 extra_objs=halfpic.o
1386 i[34567]86-go32-rtems*)
1388 tm_file="i386/djgpp.h i386/djgpp-rtems.h rtems.h"
1390 if test x$enable_threads = xyes; then
1394 i[34567]86-*-rtemscoff*)
1396 tm_file="i386/i386-coff.h i386/rtems.h rtems.h"
1398 if test x$enable_threads = xyes; then
1402 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1404 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
1405 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1406 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1407 if test x$enable_threads = xyes; then
1411 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1413 install_headers_dir=install-headers-cpio
1415 if test x$gas = xyes
1417 tm_file="usegas.h ${tm_file}"
1418 tmake_file=i386/t-sco5gas
1420 tmake_file=i386/t-sco5
1422 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1424 i[34567]86-*-solaris2*)
1425 xm_defines="POSIX SMALL_ARG_MAX"
1426 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sol2.h"
1427 if test x$gas = xyes; then
1428 tm_file="i386/sol2gas.h ${tm_file}"
1430 tmake_file="i386/t-sol2 t-svr4"
1431 if test x$gnu_ld = xyes; then
1432 tmake_file="$tmake_file t-slibgcc-elf-ver"
1434 tmake_file="$tmake_file t-slibgcc-sld"
1436 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1437 if test x${enable_threads} = x; then
1438 enable_threads=$have_pthread_h
1439 if test x${enable_threads} = x; then
1440 enable_threads=$have_thread_h
1443 if test x${enable_threads} = xyes; then
1444 if test x${have_pthread_h} = xyes; then
1447 thread_file='solaris'
1451 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1453 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1454 if test x$stabs = xyes
1456 tm_file="${tm_file} dbx.h"
1458 tmake_file="i386/t-crtpic t-svr4"
1459 extra_parts="crtbegin.o crtend.o"
1460 if test x$enable_threads = xyes; then
1464 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1465 xm_defines="POSIX SMALL_ARG_MAX"
1466 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h"
1467 if test x$stabs = xyes
1469 tm_file="${tm_file} dbx.h"
1471 tmake_file="i386/t-crtpic t-svr4"
1472 extra_parts="crtbegin.o crtend.o"
1474 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1476 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h i386/udk.h"
1477 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1478 extra_parts="crtbegin.o crtend.o"
1479 install_headers_dir=install-headers-cpio
1481 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1482 xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1483 if test x$stabs = xyes
1485 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/osf1elf.h i386/osf1elfgdb.h"
1487 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/osf1elf.h"
1489 tmake_file=i386/t-osf1elf
1490 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1492 i[34567]86-*-sysv*) # Intel 80386's running system V
1494 if test x$gas = xyes
1496 if test x$stabs = xyes
1498 tm_file=i386/svr3dbx.h
1499 tmake_file=i386/t-svr3dbx
1500 extra_parts="svr3.ifile svr3z.rfile"
1502 tm_file=i386/svr3gas.h
1503 extra_parts="crtbegin.o crtend.o"
1504 tmake_file=i386/t-crtstuff
1507 tm_file=i386/sysv3.h
1508 extra_parts="crtbegin.o crtend.o"
1509 tmake_file=i386/t-crtstuff
1511 tmake_file="$tmake_file i386/t-crtpic"
1513 i386-*-vsta) # Intel 80386's running VSTa kernel
1514 xm_file=i386/xm-vsta.h
1519 xm_file=i386/xm-cygwin.h
1521 tmake_file=i386/t-cygwin
1522 tm_file=i386/win32.h
1524 if test x$enable_threads = xyes; then
1529 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1531 xm_file=i386/xm-cygwin.h
1533 tmake_file=i386/t-cygwin
1534 tm_file=i386/cygwin.h
1536 if test x$enable_threads = xyes; then
1541 i[34567]86-*-mingw32*)
1542 tm_file=i386/mingw32.h
1545 xm_file=i386/xm-mingw32.h
1546 tmake_file="i386/t-cygwin i386/t-mingw32"
1548 if test x$enable_threads = xyes; then
1554 tm_file="${tm_file} i386/crtdll.h"
1556 *minwg32msv* | *mingw32*)
1562 tmake_file="i386/t-cygwin i386/t-uwin"
1564 if test x$enable_threads = xyes; then
1569 i[34567]86-*-interix3*)
1570 tm_file="i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h"
1571 xm_file="i386/xm-i386-interix.h"
1573 tmake_file="t-interix i386/t-interix"
1574 extra_objs=interix.o
1575 xmake_file="x-interix"
1576 if test x$enable_threads = xyes ; then
1579 if test x$stabs = xyes ; then
1580 tm_file="${tm_file} dbxcoff.h"
1583 i[34567]86-*-interix*)
1584 tm_file="i386/i386-interix.h interix.h"
1585 xm_file="i386/xm-i386-interix.h"
1587 tmake_file="t-interix i386/t-interix"
1588 extra_objs=interix.o
1589 if test x$enable_threads = xyes ; then
1592 if test x$stabs = xyes ; then
1593 tm_file="${tm_file} dbxcoff.h"
1596 i[34567]86-dg-dgux*)
1598 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/dgux.h"
1599 tmake_file=i386/t-dgux
1600 install_headers_dir=install-headers-cpio
1602 i860-alliant-*) # Alliant FX/2800
1603 tm_file="${tm_file} dbxelf.h elfos.h svr4.h i860/sysv4.h i860/fx2800.h"
1604 tmake_file=i860/t-fx2800
1605 extra_parts="crtbegin.o crtend.o"
1608 tm_file="${tm_file} i860/bsd.h"
1609 if test x$gas = xyes
1611 tm_file="${tm_file} i860/bsd-gas.h"
1616 tm_file="${tm_file} i860/mach.h"
1617 tmake_file=t-libc-ok
1619 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1620 tm_file="${tm_file} svr3.h i860/paragon.h"
1624 tm_file="${tm_file} svr3.h i860/sysv3.h"
1626 extra_parts="crtbegin.o crtend.o"
1629 tm_file="${tm_file} dbxelf.h elfos.h svr4.h i860/sysv4.h"
1632 extra_parts="crtbegin.o crtend.o"
1634 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1635 tm_file="${tm_file} i960/vx960.h"
1636 tmake_file=i960/t-vxworks960
1638 thread_file='vxworks'
1639 c_target_objs="i960-c.o"
1640 cxx_target_objs="i960-c.o"
1642 i960-wrs-vxworks5* | i960-wrs-vxworks)
1643 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1644 tmake_file=i960/t-vxworks960
1646 thread_file='vxworks'
1647 c_target_objs="i960-c.o"
1648 cxx_target_objs="i960-c.o"
1651 tm_file="${tm_file} i960/vx960.h"
1652 tmake_file=i960/t-vxworks960
1654 thread_file='vxworks'
1655 c_target_objs="i960-c.o"
1656 cxx_target_objs="i960-c.o"
1659 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1660 tmake_file=i960/t-960bare
1661 c_target_objs="i960-c.o"
1662 cxx_target_objs="i960-c.o"
1666 tmake_file="i960/t-960bare t-rtems"
1667 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1668 if test x$enable_threads = xyes; then
1671 c_target_objs="i960-c.o"
1672 cxx_target_objs="i960-c.o"
1674 i960-*-*) # Default i960 environment.
1676 tmake_file=i960/t-960bare
1677 c_target_objs="i960-c.o"
1678 cxx_target_objs="i960-c.o"
1681 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/aix.h"
1682 tmake_file="ia64/t-ia64 ia64/t-aix"
1683 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1686 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1687 tmake_file="ia64/t-ia64"
1688 target_cpu_default="0"
1689 if test x$gas = xyes
1691 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1693 if test x$gnu_ld = xyes
1695 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1700 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1701 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1702 tmake_file="${tmake_file} ia64/t-ia64"
1706 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1707 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1708 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1709 if test x$enable_threads = xyes; then
1715 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1716 tmake_file="ia64/t-ia64 ia64/t-hpux"
1717 target_cpu_default="MASK_GNU_AS"
1718 if test x$enable_threads = xyes; then
1724 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1725 extra_parts="crtinit.o crtfini.o"
1727 # m68hc11 and m68hc12 share the same machine description.
1728 m68hc11-*-*|m6811-*-*)
1729 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1730 tm_p_file="m68hc11/m68hc11-protos.h"
1731 md_file="m68hc11/m68hc11.md"
1732 out_file="m68hc11/m68hc11.c"
1733 tmake_file="m68hc11/t-m68hc11-gas"
1735 m68hc12-*-*|m6812-*-*)
1736 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1737 tm_p_file="m68hc11/m68hc11-protos.h"
1738 md_file="m68hc11/m68hc11.md"
1739 out_file="m68hc11/m68hc11.c"
1740 tmake_file="m68hc11/t-m68hc11-gas"
1742 m68000-convergent-sysv*)
1747 m68000-hp-bsd*) # HP 9000/200 running BSD
1748 tm_file=m68k/hp2bsd.h
1751 m68000-hp-hpux*) # HP 9000 series 300
1753 if test x$gas = xyes
1755 tm_file=m68k/hp310g.h
1757 tm_file=m68k/hp310.h
1759 tmake_file=m68k/t-hp320
1760 install_headers_dir=install-headers-cpio
1768 tm_file=m68k/sun2o4.h
1773 if test x$gas = xyes
1781 m68k-apple-aux*) # Apple Macintosh running A/UX
1783 tmake_file=m68k/t-aux
1784 install_headers_dir=install-headers-cpio
1785 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1787 if test "$gnu_ld" = yes
1789 tm_file="${tm_file} m68k/auxgld.h"
1791 tm_file="${tm_file} m68k/auxld.h"
1793 if test "$gas" = yes
1795 tm_file="${tm_file} m68k/auxgas.h"
1797 tm_file="${tm_file} m68k/auxas.h"
1799 tm_file="${tm_file} m68k/a-ux.h"
1803 tm_file=m68k/apollo68.h
1807 m68k-altos-sysv*) # Altos 3068
1808 if test x$gas = xyes
1810 tm_file=m68k/altos3068.h
1813 echo "The Altos is supported only with the GNU assembler" 1>&2
1817 m68k-bull-sysv*) # Bull DPX/2
1818 if test x$gas = xyes
1820 if test x$stabs = xyes
1822 tm_file=m68k/dpx2cdbx.h
1824 tm_file=m68k/dpx2g.h
1832 m68k-atari-sysv4*) # Atari variant of V.4.
1833 tm_file=m68k/atari.h
1836 extra_parts="crtbegin.o crtend.o"
1839 m68k-motorola-sysv*)
1840 tm_file=m68k/mot3300.h
1842 if test x$gas = xyes
1844 if test x$gnu_ld = xyes
1846 tmake_file=m68k/t-mot3300-gald
1848 tmake_file=m68k/t-mot3300-gas
1852 if test x$gnu_ld = xyes
1854 tmake_file=m68k/t-mot3300-gld
1856 tmake_file=m68k/t-mot3300
1860 gdb_needs_out_file_path=yes
1861 extra_parts="crt0.o mcrt0.o"
1864 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1865 tm_file=m68k/tower-as.h
1867 extra_parts="crtbegin.o crtend.o"
1870 tm_file=m68k/plexus.h
1883 m68k-cbm-sysv4*) # Commodore variant of V.4.
1887 extra_parts="crtbegin.o crtend.o"
1891 tm_file=m68k/ccur-GAS.h
1895 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1896 tm_file=m68k/hp3bsd44.h
1900 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1901 tm_file=m68k/hp3bsd.h
1906 if test x$with_fp = xno
1908 tm_file=m68k/isi-nfp.h
1915 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1917 if test x$gas = xyes
1919 xmake_file=m68k/x-hp320g
1920 tm_file=m68k/hp320g.h
1922 xmake_file=m68k/x-hp320
1923 tm_file=m68k/hpux7.h
1925 install_headers_dir=install-headers-cpio
1929 m68k-hp-hpux*) # HP 9000 series 300
1931 if test x$gas = xyes
1933 xmake_file=m68k/x-hp320g
1934 tm_file=m68k/hp320g.h
1936 xmake_file=m68k/x-hp320
1937 tm_file=m68k/hp320.h
1939 install_headers_dir=install-headers-cpio
1944 tm_file=m68k/sun3mach.h
1949 if test x$gas = xyes
1951 tm_file=m68k/news3gas.h
1953 tm_file=m68k/news3.h
1958 m68k-sony-bsd* | m68k-sony-newsos*)
1959 if test x$gas = xyes
1961 tm_file=m68k/newsgas.h
1968 m68k-next-nextstep2*)
1969 tm_p_file="${tm_p_file} nextstep-protos.h"
1970 tm_file=m68k/next21.h
1971 tmake_file=m68k/t-next
1972 xmake_file=m68k/x-next
1973 extra_objs=nextstep.o
1977 m68k-next-nextstep[34]*)
1978 tm_p_file="${tm_p_file} nextstep-protos.h"
1980 tmake_file=m68k/t-next
1981 xmake_file=m68k/x-next
1982 extra_objs=nextstep.o
1983 extra_parts="crtbegin.o crtend.o"
1985 if test x$enable_threads = xyes; then
1990 if test x$with_fp = xno
1992 tm_file=m68k/sun3n3.h
1994 tm_file=m68k/sun3o3.h
1999 m68k-sun-sunos*) # For SunOS 4 (the default).
2000 if test x$with_fp = xno
2002 tm_file=m68k/sun3n.h
2010 tm_file=m68k/vxm68k.h
2011 tmake_file=m68k/t-vxworks68
2012 thread_file='vxworks'
2016 tmake_file=m68k/t-m68kbare
2017 tm_file="m68k/m68k-aout.h libgloss.h"
2021 tmake_file=m68k/t-m68kbare
2022 tm_file="m68k/m68k-coff.h dbx.h"
2025 m68020-*-elf* | m68k-*-elf*)
2026 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
2028 tmake_file=m68k/t-m68kelf
2029 extra_parts="crtbegin.o crtend.o"
2032 if test x$gas = xyes
2036 tm_file=m68k/lynx-ng.h
2038 tmake_file=m68k/t-lynx
2041 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
2042 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
2045 target_cpu_default="0"
2048 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
2054 tm_file=m68k/netbsd.h
2060 # needed to unconfuse gdb
2061 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
2063 # we need collect2 until our bug is fixed...
2066 m68k-*-sysv3*) # Motorola m68k's running system V.3
2068 extra_parts="crtbegin.o crtend.o"
2071 m68k-*-sysv4*) # Motorola m68k's running system V.4
2072 tm_file=m68k/m68kv4.h
2075 extra_parts="crtbegin.o crtend.o"
2078 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2080 tm_file=m68k/linux-aout.h
2081 tmake_file="t-linux-aout m68k/t-linux-aout"
2085 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2086 # with ELF format using the
2087 # GNU/Linux C library 5
2088 tm_file=m68k/linux.h
2089 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
2090 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2094 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2095 # with ELF format using glibc 2
2096 # aka the GNU/Linux C library 6.
2097 tm_file=m68k/linux.h
2098 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
2099 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2102 if test x$enable_threads = xyes; then
2107 tmake_file=m68k/t-m68kbare
2108 tm_file=m68k/m68k-psos.h
2113 tmake_file="m68k/t-m68kbare t-rtems"
2114 tm_file="m68k/m68k-coff.h m68k/rtems.h rtems.h"
2116 if test x$enable_threads = xyes; then
2120 m68k-*-rtemself*|m68k-*-rtems*)
2122 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2123 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h"
2125 extra_parts="crtbegin.o crtend.o"
2126 if test x$enable_threads = xyes; then
2134 tm_file="dbxelf.h elfos.h svr4.h m88k/dgux.h m88k/dguxbcs.h"
2135 tmake_file="m88k/t-dgux m88k/t-dguxbcs"
2138 tm_file="dbxelf.h elfos.h svr4.h m88k/dgux.h"
2139 tmake_file=m88k/t-dgux
2142 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2143 if test x$gas = xyes
2145 tmake_file=m88k/t-dgux-gas
2148 m88k-dolphin-sysv3*)
2150 tm_file=m88k/dolph.h
2151 extra_parts="crtbegin.o crtend.o"
2152 tmake_file=m88k/t-dolph
2153 if test x$gas = xyes
2155 tmake_file=m88k/t-m88k-gas
2158 m88k-tektronix-sysv3)
2160 tm_file=m88k/tekXD88.h
2161 extra_parts="crtbegin.o crtend.o"
2162 tmake_file=m88k/t-tekXD88
2163 if test x$gas = xyes
2165 tmake_file=m88k/t-m88k-gas
2170 tm_file=m88k/m88k-aout.h
2174 tm_file=m88k/m88k-coff.h
2175 tmake_file=m88k/t-bug
2179 extra_parts="crtbegin.o crtend.o"
2180 if test x$gas = xyes
2182 tmake_file=m88k/t-luna-gas
2184 tmake_file=m88k/t-luna
2188 tmake_file="${tmake_file} m88k/t-luna-gas"
2189 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2193 tm_file=m88k/sysv3.h
2194 extra_parts="crtbegin.o crtend.o"
2195 if test x$gas = xyes
2197 tmake_file=m88k/t-m88k-gas
2202 tm_file="dbxelf.h elfos.h svr4.h m88k/sysv4.h"
2203 extra_parts="crtbegin.o crtend.o"
2204 tmake_file=m88k/t-sysv4
2207 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
2208 tmake_file=mcore/t-mcore
2211 tm_file=mcore/mcore-pe.h
2212 tmake_file=mcore/t-mcore-pe
2214 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2215 if test "x$gnu_ld" = xyes
2217 tm_file="mips/iris6.h mips/iris6gld.h"
2219 tm_file=mips/iris6.h
2221 tmake_file="mips/t-iris mips/t-iris6"
2223 # if test x$enable_threads = xyes; then
2224 # thread_file='irix'
2228 tm_file="mips/elf.h mips/vxworks.h"
2229 tmake_file=mips/t-ecoff
2232 extra_parts="crtbegin.o crtend.o"
2233 thread_file='vxworks'
2235 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2236 tm_file="mips/iris6.h mips/cross64.h"
2238 xm_file=mips/xm-iris5.h
2239 tmake_file="mips/t-iris mips/t-cross64"
2240 # See comment in mips/iris[56].h files.
2242 # if test x$enable_threads = xyes; then
2243 # thread_file='irix'
2247 if test x$gas = xyes
2249 if test x$stabs = xyes
2251 tm_file=mips/iris5gdb.h
2253 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2256 tm_file=mips/sni-svr4.h
2259 if test x$gnu_ld != xyes
2264 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2265 if test x$gas = xyes
2267 tm_file="mips/iris5.h mips/iris5gas.h"
2268 if test x$stabs = xyes
2270 tm_file="${tm_file} dbx.h"
2273 tm_file=mips/iris5.h
2275 tmake_file=mips/t-iris
2277 xm_file=mips/xm-iris5.h
2278 # mips-tfile doesn't work yet
2279 # See comment in mips/iris5.h file.
2281 # if test x$enable_threads = xyes; then
2282 # thread_file='irix'
2285 mips-sgi-irix4loser*) # Mostly like a MIPS.
2286 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2287 if test x$stabs = xyes; then
2288 tm_file="${tm_file} dbx.h"
2290 tmake_file=mips/t-iris
2292 if test x$gas = xyes
2295 extra_passes="mips-tfile mips-tdump"
2297 if test x$gnu_ld != xyes
2301 # if test x$enable_threads = xyes; then
2302 # thread_file='irix'
2305 mips-sgi-irix4*) # Mostly like a MIPS.
2306 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2307 if test x$stabs = xyes; then
2308 tm_file="${tm_file} dbx.h"
2310 tmake_file=mips/t-iris
2312 if test x$gas = xyes
2315 extra_passes="mips-tfile mips-tdump"
2317 if test x$gnu_ld != xyes
2321 # if test x$enable_threads = xyes; then
2322 # thread_file='irix'
2325 mips-sgi-*) # Mostly like a MIPS.
2326 tm_file="mips/iris3.h ${tm_file}"
2327 if test x$stabs = xyes; then
2328 tm_file="${tm_file} dbx.h"
2331 if test x$gas = xyes
2334 extra_passes="mips-tfile mips-tdump"
2336 if test x$gnu_ld != xyes
2341 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2342 tm_file="mips/osfrose.h ${tm_file}"
2343 extra_objs=halfpic.o
2346 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2347 tm_file=mips/dec-osf1.h
2348 if test x$stabs = xyes; then
2349 tm_file="${tm_file} dbx.h"
2351 if test x$gas = xyes
2354 tmake_file=mips/t-ultrix
2355 extra_passes="mips-tfile mips-tdump"
2357 if test x$gnu_ld != xyes
2362 mips-dec-bsd*) # Decstation running 4.4 BSD
2363 tm_file=mips/dec-bsd.h
2364 if test x$gas = xyes
2367 tmake_file=mips/t-ultrix
2368 extra_passes="mips-tfile mips-tdump"
2370 if test x$gnu_ld != xyes
2375 mips*-*-netbsd*) # NetBSD/mips, either endian.
2376 tm_file="elfos.h mips/netbsd.h"
2379 tm_file="mips/little.h $tm_file"
2383 mips*-*-linux*) # Linux MIPS, either endian.
2384 tm_file="dbxelf.h elfos.h svr4.h linux.h mips/linux.h"
2387 tm_file="$tm_file mips/isa32-linux.h"
2388 target_cpu_default="MASK_SOFT_FLOAT"
2393 tm_file="mips/little.h $tm_file"
2396 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux"
2397 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
2400 if test x$enable_threads = xyes; then
2404 mips*el-*-openbsd*) # mips little endian
2405 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2407 mips*-*-openbsd*) # mips big endian
2408 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2409 tm_file="mips/openbsd-be.h ${tm_file}"
2411 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2412 tm_file="mips/news4.h ${tm_file}"
2413 if test x$stabs = xyes; then
2414 tm_file="${tm_file} dbx.h"
2416 if test x$gas = xyes
2419 extra_passes="mips-tfile mips-tdump"
2421 if test x$gnu_ld != xyes
2426 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2427 # That is based on svr4.
2428 # t-svr4 is not right because this system doesn't use ELF.
2429 tm_file="mips/news5.h ${tm_file}"
2430 if test x$stabs = xyes; then
2431 tm_file="${tm_file} dbx.h"
2434 if test x$gas = xyes
2437 extra_passes="mips-tfile mips-tdump"
2439 if test x$gnu_ld != xyes
2444 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2445 tm_file="mips/svr4-5.h mips/svr4-t.h"
2446 if test x$stabs = xyes; then
2447 tm_file="${tm_file} dbx.h"
2450 if test x$gas = xyes
2452 extra_parts="crtbegin.o crtend.o"
2454 extra_passes="mips-tfile mips-tdump"
2456 if test x$gnu_ld != xyes
2461 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2462 tm_file="mips/ultrix.h ${tm_file}"
2463 if test x$stabs = xyes; then
2464 tm_file="${tm_file} dbx.h"
2466 if test x$gas = xyes
2469 tmake_file=mips/t-ultrix
2470 extra_passes="mips-tfile mips-tdump"
2472 if test x$gnu_ld != xyes
2477 mips-*-riscos[56789]bsd*)
2478 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2479 if test x$stabs = xyes; then
2480 tm_file="${tm_file} dbx.h"
2482 if test x$gas = xyes
2484 tmake_file=mips/t-bsd-gas
2486 tmake_file=mips/t-bsd
2487 extra_passes="mips-tfile mips-tdump"
2489 if test x$gnu_ld != xyes
2494 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2495 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2496 if test x$stabs = xyes; then
2497 tm_file="${tm_file} dbx.h"
2499 if test x$gas = xyes
2501 tmake_file=mips/t-bsd-gas
2503 tmake_file=mips/t-bsd
2504 extra_passes="mips-tfile mips-tdump"
2506 if test x$gnu_ld != xyes
2511 mips-*-riscos[56789]sysv4*)
2512 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2513 if test x$stabs = xyes; then
2514 tm_file="${tm_file} dbx.h"
2516 if test x$gas = xyes
2518 tmake_file=mips/t-svr4-gas
2520 tmake_file=mips/t-svr4
2521 extra_passes="mips-tfile mips-tdump"
2523 if test x$gnu_ld != xyes
2528 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2529 tm_file="mips/svr4-4.h ${tm_file}"
2530 if test x$stabs = xyes; then
2531 tm_file="${tm_file} dbx.h"
2534 if test x$gas = xyes
2536 tmake_file=mips/t-svr4-gas
2538 tmake_file=mips/t-svr4
2539 extra_passes="mips-tfile mips-tdump"
2541 if test x$gnu_ld != xyes
2546 mips-*-riscos[56789]sysv*)
2547 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2548 if test x$stabs = xyes; then
2549 tm_file="${tm_file} dbx.h"
2552 if test x$gas = xyes
2554 tmake_file=mips/t-svr3-gas
2556 tmake_file=mips/t-svr3
2557 extra_passes="mips-tfile mips-tdump"
2559 if test x$gnu_ld != xyes
2564 mips-*-sysv* | mips-*-riscos*sysv*)
2565 tm_file="mips/svr3-4.h ${tm_file}"
2566 if test x$stabs = xyes; then
2567 tm_file="${tm_file} dbx.h"
2570 if test x$gas = xyes
2572 tmake_file=mips/t-svr3-gas
2574 tmake_file=mips/t-svr3
2575 extra_passes="mips-tfile mips-tdump"
2577 if test x$gnu_ld != xyes
2582 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2583 tm_file=mips/mips-5.h
2584 if test x$stabs = xyes; then
2585 tm_file="${tm_file} dbx.h"
2587 if test x$gas = xyes
2590 extra_passes="mips-tfile mips-tdump"
2592 if test x$gnu_ld != xyes
2598 tm_file=mips/ecoffl.h
2599 if test x$stabs = xyes; then
2600 tm_file="${tm_file} dbx.h"
2602 tmake_file=mips/t-ecoff
2605 tm_file="gofast.h mips/ecoff.h"
2606 if test x$stabs = xyes; then
2607 tm_file="${tm_file} dbx.h"
2609 tmake_file=mips/t-ecoff
2612 tm_file="mips/isa3264.h mips/abi64.h"
2613 tmake_file=mips/t-isa3264
2614 target_cpu_default="MASK_SOFT_FLOAT"
2617 tm_file="mips/elfl.h"
2618 tmake_file=mips/t-elf
2621 tm_file="mips/elf.h"
2622 tmake_file=mips/t-elf
2625 tm_file="mips/elfl64.h"
2626 tmake_file=mips/t-elf
2628 mips64orionel-*-elf*)
2629 tm_file="mips/elforion.h mips/elfl64.h"
2630 tmake_file=mips/t-elf
2633 tm_file="mips/elf64.h"
2634 tmake_file=mips/t-elf
2637 tm_file="mips/elforion.h mips/elf64.h"
2638 tmake_file=mips/t-elf
2640 mips64orion-*-rtems*)
2642 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h rtems.h"
2643 tmake_file="mips/t-elf t-rtems"
2644 if test x$enable_threads = xyes; then
2650 tm_file="mips/elf.h mips/rtems.h rtems.h"
2651 tmake_file="mips/t-elf t-rtems"
2652 if test x$enable_threads = xyes; then
2657 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2658 tmake_file=mips/t-r3900
2659 target_cpu_default="MASK_SOFT_FLOAT"
2662 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2663 tmake_file=mips/t-r3900
2665 mips-*-*) # Default MIPS RISC-OS 4.0.
2666 if test x$stabs = xyes; then
2667 tm_file="${tm_file} dbx.h"
2669 if test x$gas = xyes
2672 extra_passes="mips-tfile mips-tdump"
2674 if test x$gnu_ld != xyes
2679 mmix-knuth-mmixware)
2683 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2684 if test x$stabs = xyes
2686 tm_file="${tm_file} dbx.h"
2691 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2692 if test x$stabs = xyes
2694 tm_file="${tm_file} dbx.h"
2699 tm_file=ns32k/encore.h
2703 tm_file=ns32k/sequent.h
2707 tm_file=ns32k/tek6100.h
2711 tm_file=ns32k/tek6200.h
2715 tm_file=ns32k/merlin.h
2719 tm_file=ns32k/pc532-mach.h
2723 tm_file=ns32k/pc532-min.h
2724 xm_defines='POSIX HZ=60'
2728 echo "GCC does not yet support the ${machine} target"; exit 1
2731 tm_file=ns32k/netbsd.h
2732 # On NetBSD, the headers are already okay, except for math.h.
2737 tm_file="${tm_file} pdp11/2bsd.h"
2747 tm_file="dbxelf.h elfos.h svr4.h pj/linux.h ${tm_file}"
2752 tm_file="dbxelf.h elfos.h svr4.h pj/pjl.h ${tm_file}"
2765 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2769 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h"
2770 out_file=rs6000/rs6000.c
2771 tmake_file="rs6000/t-rs6000 t-slibgcc-elf-ver t-linux rs6000/t-linux64"
2774 tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux64.h rs6000/gnu.h"
2775 out_file=rs6000/rs6000.c
2776 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
2779 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
2781 tmake_file=rs6000/t-beos
2785 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2786 tm_p_file="${tm_p_file} darwin-protos.h"
2787 tmake_file=rs6000/t-darwin
2788 extra_objs="darwin.o"
2789 c_target_objs="darwin-c.o"
2790 cxx_target_objs="darwin-c.o"
2791 # Darwin linker does collect2 functionality
2793 extra_headers=altivec.h
2795 powerpc*-*-freebsd*)
2796 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
2797 xm_file=rs6000/xm-sysv4.h
2798 out_file=rs6000/rs6000.c
2799 tmake_file="rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
2802 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2804 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2807 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
2808 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2810 powerpc-*-chorusos*)
2812 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
2813 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2814 case x${enable_threads} in
2815 xyes | xpthreads | xposix)
2822 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2823 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2825 powerpc-*-eabisimaltivec*)
2827 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h rs6000/eabialtivec.h"
2828 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2832 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2833 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2837 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2838 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2840 powerpc-*-eabialtivec*)
2842 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
2843 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2847 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
2848 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2852 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
2853 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2854 if test x$enable_threads = xyes; then
2858 powerpc-*-linux*libc1)
2859 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2860 out_file=rs6000/rs6000.c
2861 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2862 if test x$enable_threads = xyes; then
2866 powerpc-*-linux-gnualtivec*)
2867 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
2868 out_file=rs6000/rs6000.c
2869 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2870 if test x$enable_threads = xyes; then
2875 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2876 out_file=rs6000/rs6000.c
2877 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2878 if test x$enable_threads = xyes; then
2882 powerpc-*-gnu-gnualtivec*)
2883 tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h"
2884 out_file=rs6000/rs6000.c
2885 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
2886 if test x$enable_threads = xyes; then
2891 tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/gnu.h"
2892 out_file=rs6000/rs6000.c
2893 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
2894 if test x$enable_threads = xyes; then
2898 powerpc-wrs-vxworks*)
2900 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/vxppc.h"
2901 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2902 thread_file='vxworks'
2904 powerpcle-wrs-vxworks*)
2906 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2907 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2908 thread_file='vxworks'
2911 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2913 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2917 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2918 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2920 powerpcle-*-eabisim*)
2922 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2923 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2927 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2928 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2930 rs6000-ibm-aix3.[01]*)
2932 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h"
2936 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2938 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h"
2939 tmake_file=rs6000/t-newas
2944 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2946 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
2947 tmake_file=rs6000/t-newas
2952 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2954 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
2955 tmake_file=rs6000/t-aix43
2961 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2963 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
2964 tmake_file=rs6000/t-aix43
2972 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2978 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2983 tm_file="${tm_file} rs6000/mach.h"
2988 tm_file="lynx.h rs6000/lynx.h"
2989 tmake_file=rs6000/t-rs6000
2993 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
2994 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2995 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
2996 if test x$enable_threads = xyes; then
3001 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
3002 tm_p_file=s390/s390-protos.h
3003 md_file=s390/s390.md
3004 out_file=s390/s390.c
3005 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux s390/t-linux64"
3006 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
3007 if test x$enable_threads = xyes; then
3012 tmake_file="sh/t-sh sh/t-elf"
3013 tm_file="${tm_file} sh/elf.h"
3017 tmake_file="sh/t-sh sh/t-elf sh/t-sh64"
3018 tm_file="${tm_file} sh/sh.h sh/elf.h sh/sh64.h"
3020 extra_headers="../../config/sh/shmedia.h ../../config/sh/ushmedia.h ../../config/sh/sshmedia.h"
3021 # Not strictly necessary to check this, but a good idea anyway.
3022 if test $machine = $target; then
3023 target_requires_64bit_host_wide_int=yes
3028 tmake_file="sh/t-sh sh/t-elf t-rtems"
3029 tm_file="${tm_file} sh/elf.h sh/rtemself.h rtems.h"
3031 if test x$enable_threads = xyes; then
3037 tmake_file="sh/t-sh t-rtems"
3038 tm_file="${tm_file} sh/rtems.h rtems.h"
3040 if test x$enable_threads = xyes; then
3045 tm_file="${tm_file} sh/elf.h sh/linux.h"
3046 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
3048 if test x$enable_threads = xyes; then
3057 tm_file="${tm_file} sparc/pbd.h"
3060 sparc64-wrs-vxworks*)
3061 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h sparc/biarch64.h gofast.h sparc/vxsparc64.h"
3062 tmake_file="sparc/t-vxsparc64 sparc/t-crtfm"
3065 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3066 tm_file="${tm_file} aoutos.h sparc/aout.h gofast.h sparc/vxsparc.h"
3067 tmake_file=sparc/t-vxsparc
3069 thread_file='vxworks'
3072 tmake_file=sparc/t-sparcbare
3073 tm_file="sparc/sparc.h aoutos.h sparc/aout.h libgloss.h"
3076 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
3079 tm_file="${tm_file} sparc/aout.h netbsd.h netbsd-aout.h sparc/netbsd.h"
3084 tm_file="sparc/sparc.h ${tm_file}"
3085 # needed to unconfuse gdb
3086 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
3087 # we need collect2 until our bug is fixed...
3091 tm_file="${tm_file} sparc/bsd.h"
3094 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h chorus.h"
3095 tmake_file="sparc/t-chorus-elf sparc/t-crtfm"
3096 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3098 case x${enable_threads} in
3099 xyes | xpthreads | xposix)
3105 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h"
3106 tmake_file="sparc/t-elf sparc/t-crtfm"
3107 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3111 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
3112 tm_file="aoutos.h sparc/sparc.h sparc/aout.h sparc/linux-aout.h"
3115 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
3116 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
3117 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 sparc/t-crtfm"
3118 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3122 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3123 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
3124 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
3125 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
3127 if test x$enable_threads = xyes; then
3133 if test x$gas = xyes
3135 tm_file="${tm_file} lynx.h sparc/aout.h sparc/lynx.h"
3137 tm_file="${tm_file} lynx-ng.h sparc/aout.h sparc/lynx-ng.h"
3139 tmake_file=sparc/t-sunos41
3143 tmake_file="sparc/t-sparcbare t-rtems"
3144 tm_file="${tm_file} aoutos.h sparc/aout.h sparc/rtems.h rtems.h"
3145 if test x$enable_threads = xyes; then
3149 sparc-*-rtems*|sparc-*-rtemself*)
3151 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
3152 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
3153 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3156 if test x$enable_threads = xyes; then
3160 sparc64-*-solaris2* | sparcv9-*-solaris2*)
3161 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h"
3162 if test x$gnu_ld = xyes; then
3163 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
3165 if test x$gas = xyes; then
3166 tm_file="${tm_file} sparc/sol2-gas-bi.h"
3169 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
3170 if test x$gnu_ld = xyes; then
3171 tmake_file="$tmake_file t-slibgcc-elf-ver"
3173 tmake_file="$tmake_file t-slibgcc-sld"
3175 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3177 if test x${enable_threads} = x ; then
3178 enable_threads=$have_pthread_h
3179 if test x${enable_threads} = x ; then
3180 enable_threads=$have_thread_h
3183 if test x${enable_threads} = xyes ; then
3184 if test x${have_pthread_h} = xyes ; then
3187 thread_file='solaris'
3191 sparc-hal-solaris2*)
3193 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/hal.h"
3194 tmake_file="sparc/t-halos sparc/t-sol2 sparc/t-crtfm"
3195 if test x$gnu_ld = xyes; then
3196 tm_file="${tm_file} sparc/sol2-gld.h"
3197 tmake_file="$tmake_file t-slibgcc-elf-ver"
3199 tmake_file="$tmake_file t-slibgcc-sld"
3201 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3203 thread_file='solaris'
3206 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h"
3207 if test x$gnu_ld = xyes; then
3208 tm_file="${tm_file} sparc/sol2-gld.h"
3210 tmake_file="sparc/t-sol2 sparc/t-crtfm"
3211 if test x$gnu_ld = xyes; then
3212 tmake_file="$tmake_file t-slibgcc-elf-ver"
3214 tmake_file="$tmake_file t-slibgcc-sld"
3218 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
3219 if test x$gnu_ld = xyes; then
3220 tm_file="${tm_file} sparc/sol2-gld-bi.h"
3222 if test x$gas = xyes; then
3223 tm_file="${tm_file} sparc/sol2-gas-bi.h"
3225 tmake_file="$tmake_file sparc/t-sol2-64"
3229 *-*-solaris2.[0-7] | *-*-solaris2.[0-7].*)
3230 if test x$gnu_ld = xno; then
3231 tm_file="${tm_file} sparc/sol27-sld.h"
3236 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3238 if test x${enable_threads} = x; then
3239 enable_threads=$have_pthread_h
3240 if test x${enable_threads} = x; then
3241 enable_threads=$have_thread_h
3244 if test x${enable_threads} = xyes; then
3245 if test x${have_pthread_h} = xyes; then
3248 thread_file='solaris'
3253 tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
3257 tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
3258 tmake_file=sparc/t-sunos41
3260 if test x$gas = xyes; then
3261 tm_file="${tm_file} sparc/sun4gas.h"
3265 tm_file="${tm_file} sparc/aout.h sparc/sun4o3.h"
3269 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h"
3272 extra_parts="crtbegin.o crtend.o"
3276 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/vxsim.h"
3277 tmake_file=sparc/t-vxsparc
3280 tm_file="${tm_file} aoutos.h sparc/aout.h sparc/splet.h libgloss.h"
3281 tmake_file=sparc/t-splet
3284 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
3285 tmake_file=sparc/t-sparclite
3288 tm_file="${tm_file} gofast.h sparc/aout.h sparc/lite.h aoutos.h libgloss.h"
3289 tmake_file=sparc/t-sparclite
3292 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h"
3293 tmake_file="sparc/t-sparclite sparc/t-crtfm"
3294 extra_parts="crtbegin.o crtend.o"
3297 tm_file="${tm_file} gofast.h sparc/aout.h sparc/sp86x-aout.h aoutos.h libgloss.h"
3298 tmake_file=sparc/t-sp86x
3301 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h gofast.h sparc/sp86x-elf.h"
3302 tmake_file="sparc/t-sp86x sparc/t-crtfm"
3303 extra_parts="crtbegin.o crtend.o"
3306 tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h"
3309 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h"
3310 tmake_file="${tmake_file} sparc/t-crtfm"
3311 extra_parts="crtbegin.o crtend.o"
3313 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
3314 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
3315 tmake_file="${tmake_file} sparc/t-crtfm"
3317 case "x$with_cpu" in
3319 x) with_cpu=ultrasparc ;;
3320 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
3323 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3324 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
3325 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
3326 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
3328 if test x$enable_threads = xyes; then
3334 tmake_file="${tmake_file} sparc/t-netbsd64"
3335 tm_file="sparc/biarch64.h ${tm_file}"
3336 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
3340 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
3341 tmake_file=arm/t-strongarm-elf
3346 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h"
3347 tmake_file=arm/t-strongarm-coff
3352 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h arm/pe.h arm/strongarm-pe.h"
3353 tmake_file=arm/t-strongarm-pe
3359 { echo "config.gcc: error:
3360 *** The Thumb targets have been deprecated. The equivalent
3361 *** ARM based toolchain can now generate Thumb instructions
3362 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3366 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} v850/v850.h v850/rtems.h rtems.h"
3367 tmake_file="v850/t-v850 t-rtems"
3368 if test x$stabs = xyes
3370 tm_file="${tm_file} dbx.h"
3373 c_target_objs="v850-c.o"
3374 cxx_target_objs="v850-c.o"
3377 target_cpu_default="TARGET_CPU_generic"
3378 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
3379 tmake_file=v850/t-v850
3380 if test x$stabs = xyes
3382 tm_file="${tm_file} dbx.h"
3385 c_target_objs="v850-c.o"
3386 cxx_target_objs="v850-c.o"
3388 vax-*-bsd*) # VAXen running BSD
3392 vax-*-sysv*) # VAXen running system V
3393 tm_file="${tm_file} vax/vaxv.h"
3398 echo "GCC does not yet support the ${machine} target"; exit 1
3401 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
3407 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3411 vax-*-ultrix*) # VAXen running ultrix
3412 tm_file="${tm_file} vax/ultrix.h"
3415 vax-*-vms*) # VAXen running VMS
3416 xm_file=vax/xm-vms.h
3420 vax-*-*) # VAX default entry
3428 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
3429 tmake_file=arm/t-xscale-elf
3434 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
3435 tmake_file=arm/t-xscale-coff
3440 # For historical reasons, the target files omit the 'x'.
3441 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
3442 tm_p_file=stormy16/stormy16-protos.h
3443 md_file=stormy16/stormy16.md
3444 out_file=stormy16/stormy16.c
3445 tmake_file="stormy16/t-stormy16"
3446 extra_parts="crtbegin.o crtend.o"
3449 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
3451 tmake_file=xtensa/t-xtensa
3452 extra_parts="crtbegin.o crtend.o"
3453 fixincludes=Makefile.in # newlib headers should be OK
3456 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
3457 tmake_file="t-linux xtensa/t-xtensa"
3458 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
3460 if test x$enable_threads = xyes; then
3465 echo "Configuration $machine not supported" 1>&2
3472 install_headers_dir=install-headers-cpio
3476 # Distinguish i[34567]86
3477 # Also, do not run mips-tfile on MIPS if using gas.
3478 # Process --with-cpu= for PowerPC/rs6000
3479 target_cpu_default2=
3482 target_cpu_default2=TARGET_CPU_DEFAULT_i486
3485 case $target_alias in
3487 target_cpu_default2=TARGET_CPU_DEFAULT_k6_2
3490 target_cpu_default2=TARGET_CPU_DEFAULT_k6_3
3493 target_cpu_default2=TARGET_CPU_DEFAULT_k6
3496 target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx
3499 target_cpu_default2=TARGET_CPU_DEFAULT_pentium
3503 i686-*-* | i786-*-*)
3504 case $target_alias in
3505 athlon_xp-*|athlon_mp-*|athlon_4-*)
3506 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
3508 athlon_tbird-*|athlon-*)
3509 target_cpu_default2=TARGET_CPU_DEFAULT_athlon
3512 target_cpu_default2=TARGET_CPU_DEFAULT_pentium2
3515 target_cpu_default2=TARGET_CPU_DEFAULT_pentium3
3518 target_cpu_default2=TARGET_CPU_DEFAULT_pentium4
3521 target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro
3526 # We should have hammer chip here, but it does not exist yet and
3527 # thus it is not supported. Athlon_SSE is probably equivalent feature
3528 # wise to hammer from our point of view except for 64bit mode.
3529 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
3534 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3537 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3540 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3543 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3546 target_cpu_default2="MASK_CPU_EV5"
3550 if test x$gas = xyes
3552 if test "$target_cpu_default2" = ""
3554 target_cpu_default2="MASK_GAS"
3556 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3561 case "x$with_cpu" in
3564 target_cpu_default2="TARGET_CPU_generic"
3567 # Distinguish cores, and major variants
3568 # arm7m doesn't exist, but D & I don't affect code
3569 xarm[236789] | xarm250 | xarm[67][01]0 \
3570 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3571 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3573 | xstrongarm | xstrongarm110 | xstrongarm1100)
3574 target_cpu_default2="TARGET_CPU_$with_cpu"
3578 echo "--with-cpu must be passed a value" 1>&2
3583 if test x$pass2done = xyes
3585 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3592 hppa*-*-* | parisc*-*-*)
3593 if test x$gas = xyes
3595 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3599 mips*-*-ecoff* | mips*-*-elf*)
3600 if test x$gas = xyes
3602 if test x$gnu_ld = xyes
3604 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3606 target_cpu_default2="MASK_GAS"
3611 if test x$gas = xyes
3613 target_cpu_default2="MASK_GAS"
3616 powerpc*-*-* | rs6000-*-*)
3617 if test x$enable_altivec = xyes
3619 tm_file="$tm_file rs6000/altivec-defs.h"
3621 case "x$with_cpu" in
3625 xcommon | xpower | xpower2 | xpower3 | xpowerpc | xpowerpc64 \
3626 | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
3627 | x601 | x602 | x603 | x603e | x604 | x604e | x620 | x630 \
3628 | x740 | x750 | x7400 | x7450 | x505)
3629 target_cpu_default2="\\\"$with_cpu\\\""
3632 x401 | x403 | x405 | xec603e | x801 | x821 | x823 | x860)
3633 target_cpu_default2="\\\"$with_cpu\\\""
3634 tm_file="$tm_file rs6000/softfloat.h"
3638 echo "--with-cpu must be passed a value" 1>&2
3643 if test x$pass2done = xyes
3645 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3652 case ".$with_cpu" in
3654 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3656 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3657 target_cpu_default2="TARGET_CPU_$with_cpu"
3660 if test x$pass2done = xyes
3662 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3670 if test "$target_cpu_default2" != ""
3672 if test "$target_cpu_default" != ""
3674 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3676 target_cpu_default=$target_cpu_default2
3680 # Save data on machine being used to compile GCC in build_xm_file.
3681 # Save data on host machine in vars host_xm_file and host_xmake_file.
3682 if test x$pass1done = x
3684 if test x$xm_file != x
3685 then build_xm_file=$xm_file
3687 build_xm_defines=$xm_defines
3688 build_install_headers_dir=$install_headers_dir
3689 build_exeext=$exeext
3692 if test x$pass2done = x
3694 if test x$xm_file != x
3695 then host_xm_file=$xm_file
3697 host_xm_defines=$xm_defines
3698 host_xmake_file="$xmake_file"
3699 host_truncate_target=$truncate_target
3700 host_extra_gcc_objs=$extra_gcc_objs
3701 host_extra_objs=$extra_host_objs