1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
4 #This file is part of GNU CC.
6 #GNU CC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 2, or (at your option)
11 #GNU CC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GNU CC; see the file COPYING. If not, write to
18 #the Free Software Foundation, 59 Temple Place - Suite 330,
19 #Boston, MA 02111-1307, USA.
21 # This is the GCC build-, host- and target-specific configuration file
22 # where a configuration type, as recognized and generated by config.bfd,
23 # is mapped to different system-specific definitions and files. This is
24 # invoked by the autoconf-generated configure script, called for build,
25 # host and target in that order, setting ${machine} to each. Putting it
26 # in a separate shell file lets us skip running autoconf when modifying
27 # build-, host- and target-specific information.
29 # This file switches on the shell variable ${machine}, and also uses the
30 # following shell variables:
32 # with_* Various variables as set by configure.
34 # enable_threads_flag Either the name, yes or no depending on whether
35 # threads support was requested.
37 # gas_flag Either yes or no depending on whether GNU as was
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".
51 # tm_p_file Location of file with declarations for functions
54 # out_file The name of the machine description C support
55 # file, if different from "$cpu_type/$cpu_type.c".
57 # md_file The name of the machine-description file, if
58 # different from "$cpu_type/$cpu_type.md".
60 # tmake_file A list of machine-description-specific
61 # makefile-fragments, if different from
62 # "$cpu_type/t-$cpu_type".
64 # float_format Set to the symbolic name for the floating-point
65 # formats used for this machine, if different from
66 # "i64". Used to derive a header file name to
67 # include, like "vax" for "float-vax.h". If no such
68 # file is wanted, set to "none".
70 # extra_objs List of extra objects that should be linked into
71 # the compiler proper (cc1, cc1obj, cc1plus)
72 # depending on target.
74 # extra_headers List of used header files from the directory
77 # host_xmake_file List of host-specific makefile-fragments.
79 # extra_passes List of extra executables compiled for this target
80 # machine, used for compiling from source to object.
82 # extra_parts List of extra object files that should be compiled
83 # for this target machine.
85 # extra_programs Like extra_passes, but these are used when linking.
87 # host_extra_objs List of extra host-dependant objects that should
88 # be linked into the compiler proper.
90 # host_extra_gcc_objs List of extra host-dependant objects that should
91 # be linked into the gcc driver.
93 # c_target_objs List of extra target-dependant objects that be
94 # linked into the C compiler only.
96 # cxx_target_objs List of extra target-dependant objects that be
97 # linked into the C++ compiler only.
99 # build_xm_defines List of macros to define when compiling for the
102 # build_xm_file List of files to include when compiling for the
105 # host_xm_defines List of macros to define when compiling for the
108 # host_xm_file List of files to include when compiling for the
111 # xm_defines List of macros to define when compiling for the
114 # xm_file List of files to include when compiling for the
117 # use_collect2 Set to yes or no, depending on whether collect2
120 # target_cpu_default Set to override the default target model.
122 # build_install_headers_dir
123 # Target to use when installing header files.
125 # host_truncate_target
126 # Non-empty if the target name should be truncated
127 # on this host, due to filename length issues.
129 # gdb_needs_out_file_path
130 # Set to yes if gdb needs a dir command with
131 # `dirname $out_file`.
133 # build_exeext Set to the suffix, if the build machine requires
134 # executables to have a file name suffix.
136 # host_exeext Set to the suffix, if the host machine requires
137 # executables to have a file name suffix.
139 # thread_file Set to control which thread package to use.
141 # gas Set to yes or no depending on whether the target
142 # system normally uses GNU as.
144 # The following variables are used in each case-construct to build up the
145 # outgoing variables:
147 # xmake_file Makefile-fragment when this system is as a host,
148 # for host_xmake_file.
150 # extra_host_objs List of extra objects that should be linked into
151 # the compiler proper when this system is a host,
152 # for host_extra_objs.
154 # install_headers_dir Makefile-target for how the header file directory
155 # is installed, when this system is a build system,
156 # for build_install_headers_dir.
158 # truncate_target Non-empty if the target name should be truncated
159 # when this system is a host, due to filename length
160 # issues. For host_truncate_target.
162 # exeext The suffix for executables on this system.
164 # gnu_ld Set to yes or no depending on whether the target
165 # system normally uses GNU ld.
181 # Set this to force installation and use of collect2.
183 # Set this to override the default target model.
185 # Set this to control how the header file directory is installed.
186 install_headers_dir=install-headers-tar
187 # Set this if directory names should be truncated to 14 characters.
189 # Set this if gdb needs a dir command with `dirname $out_file`
190 gdb_needs_out_file_path=
191 # Set this if the build machine requires executables to have a
194 # Set this to control which thread package will be used.
196 # Reinitialize these from the flag values every loop pass, since some
197 # configure entries modify them.
199 gnu_ld="$gnu_ld_flag"
200 enable_threads=$enable_threads_flag
202 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
203 # updated in each machine entry.
205 cpu_type=`echo $machine | sed 's/-.*$//'`
245 tm_file=${cpu_type}/${cpu_type}.h
246 xm_file=${cpu_type}/xm-${cpu_type}.h
247 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
249 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
251 # On a.out targets, we need to use collect2.
258 # Common parts for GNU/Linux, GNU/Hurd and OpenBSD systems.
264 # On the Hurd, the setup is just about the same on
265 # each different CPU. The specific machines that we
266 # support are matched above and just set $cpu_type.
268 tm_file="${cpu_type}/gnu.h"
269 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
270 # GNU always uses ELF.
272 # GNU tools are the only tools.
275 # These details are the same as for Linux.
277 # But here we need a little extra magic.
278 tmake_file="t-linux t-gnu"
281 tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}"
284 tm_file="svr4.h ${cpu_type}/${cpu_type}.h ${tm_file}"
289 tm_file=${cpu_type}/openbsd.h
290 tmake_file="t-libc-ok t-openbsd"
292 # don't depend on processor x-fragments as well
294 if test x$enable_threads = xyes; then
296 tmake_file="${tmake_file} t-openbsd-thread"
302 # Support site-specific machine types.
304 cpu_type=`echo $machine | sed -e 's/-.*//'`
305 rest=`echo $machine | sed -e "s/$cpu_type-//"`
306 xm_file=${cpu_type}/xm-$rest.h
307 tm_file=${cpu_type}/$rest.h
308 if test -f $srcdir/config/${cpu_type}/x-$rest; \
309 then xmake_file=${cpu_type}/x-$rest; \
312 if test -f $srcdir/config/${cpu_type}/t-$rest; \
313 then tmake_file=${cpu_type}/t-$rest; \
318 # 1750a is only supported as a target.
319 case "$build,$host" in 1750a*,* | *,1750a* )
320 echo "*** $machine is only supported as a target" >&2
324 a29k-*-bsd* | a29k-*-sym1*)
325 tm_file="${tm_file} a29k/unix.h"
327 xmake_file=a29k/x-unix
330 a29k-*-udi | a29k-*-coff)
331 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
332 tmake_file=a29k/t-a29kbare
336 tmake_file="a29k/t-a29kbare t-rtems"
337 if test x$enable_threads = xyes; then
342 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
343 tmake_file=a29k/t-vx29k
344 extra_parts="crtbegin.o crtend.o"
345 thread_file='vxworks'
347 a29k-*-*) # Default a29k environment.
351 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
353 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
354 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
356 # GAS + IEEE_CONFORMANT
357 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
360 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
362 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
363 if test x$enable_threads = xyes ; then
366 if test x$stabs = xyes ; then
367 tm_file="${tm_file} dbxcoff.h"
369 #prefix='$$INTERIX_ROOT'/usr/contrib
370 #local_prefix='$$INTERIX_ROOT'/usr/contrib
372 alpha*-*-linux*ecoff*)
374 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
375 target_cpu_default="MASK_GAS"
376 tmake_file="alpha/t-alpha alpha/t-ieee"
381 alpha*-*-linux*libc1*)
382 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
383 target_cpu_default="MASK_GAS"
384 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
385 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
388 if test x$enable_threads = xyes; then
393 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
394 target_cpu_default="MASK_GAS"
395 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
396 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
399 if test x$enable_threads = xyes; then
405 tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h"
406 target_cpu_default="MASK_GAS"
407 tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
408 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
412 case x${enable_threads} in
413 xyes | xpthreads | xposix)
415 tmake_file="${tmake_file} t-freebsd-thread"
421 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
422 target_cpu_default="MASK_GAS"
423 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
424 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
430 # default x-alpha is only appropriate for dec-osf.
431 target_cpu_default="MASK_GAS"
432 tmake_file="alpha/t-alpha alpha/t-ieee"
437 if test x$stabs = xyes
439 tm_file="${tm_file} dbx.h"
441 if test x$gas != xyes
443 extra_passes="mips-tfile mips-tdump"
446 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
447 xmake_file=alpha/x-osf
450 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
453 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
456 tm_file="${tm_file} alpha/osf.h"
457 tmake_file="$tmake_file alpha/t-osf4"
458 # Some versions of OSF4 (specifically X4.0-9 296.7) have
459 # a broken tar, so we use cpio instead.
460 install_headers_dir=install-headers-cpio
463 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
464 tmake_file="$tmake_file alpha/t-osf4"
469 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
470 target_cpu_default=MASK_SUPPORT_ARCH
476 tm_file="${tm_file} dbx.h alpha/vxworks.h"
477 tmake_file="alpha/t-alpha alpha/t-ieee"
480 extra_passes="mips-tfile mips-tdump"
483 thread_file='vxworks'
488 xm_file="${xm_file} alpha/xm-vms.h"
489 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
492 tm_file=arm/rtems-elf.h
493 tmake_file="arm/t-arm-elf t-rtems"
494 if test x$enable_threads = xyes; then
497 extra_parts="crtinit.o crtfini.o"
500 extra_parts="crtinit.o crtfini.o"
502 arm-*-coff* | armel-*-coff*)
504 tmake_file=arm/t-arm-coff
508 tmake_file=arm/t-arm-coff
509 thread_file='vxworks'
511 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
512 tm_file=arm/riscix1-1.h
515 arm-*-riscix*) # Acorn RISC machine
518 tm_file=arm/rix-gas.h
522 xmake_file=arm/x-riscix
523 tmake_file=arm/t-riscix
526 arm-semi-aout | armel-semi-aout)
528 tmake_file=arm/t-semi
530 arm-semi-aof | armel-semi-aof)
531 tm_file=arm/semiaof.h
532 tmake_file=arm/t-semiaof
536 tmake_file="t-netbsd arm/t-netbsd"
539 arm*-*-linux*) # ARM GNU/Linux with ELF
541 tm_file="arm/linux-elf.h"
542 tmake_file="t-linux arm/t-linux"
543 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
545 case x${enable_threads} in
546 x | xyes | xpthreads | xposix)
551 arm*-*-uclinux*) # ARM ucLinux
552 tm_file=arm/uclinux-elf.h
553 tmake_file=arm/t-arm-elf
557 tmake_file=arm/t-arm-aout
560 tm_file=arm/ecos-elf.h
561 tmake_file=arm/t-arm-elf
564 tm_file=arm/unknown-elf.h
565 tmake_file=arm/t-arm-elf
568 tm_file=arm/conix-elf.h
569 tmake_file=arm/t-arm-elf
572 tm_file=arm/unknown-elf-oabi.h
573 tmake_file=arm/t-arm-elf
582 c1-convex-*) # Convex C1
586 c2-convex-*) # Convex C2
599 target_cpu_default=16
604 tmake_file="c4x/t-c4x t-rtems"
606 if test x$enable_threads = xyes; then
615 clipper-intergraph-clix*)
616 tm_file="${tm_file} svr3.h clipper/clix.h"
618 extra_headers=va-clipper.h
619 extra_parts="crtbegin.o crtend.o"
620 install_headers_dir=install-headers-cpio
631 tm_file="fr30/fr30.h"
632 tmake_file=fr30/t-fr30
633 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
636 tmake_file="h8300/t-h8300 t-rtems"
637 tm_file=h8300/rtems.h
638 if test x$enable_threads = xyes; then
647 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
648 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
649 tmake_file="t-linux pa/t-linux"
650 extra_parts="crtbegin.o crtend.o"
653 if test x$enable_threads = xyes; then
658 target_cpu_default="MASK_PA_11"
659 tmake_file=pa/t-openbsd
662 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
663 tmake_file="pa/t-pro t-rtems"
664 if test x$enable_threads = xyes; then
669 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
670 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
674 target_cpu_default="MASK_PA_11"
675 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
679 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
680 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
684 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
688 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
689 target_cpu_default="MASK_PA_11"
693 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
697 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
699 xmake_file=pa/x-pa-hpux
702 tm_file="${tm_file} pa/gas.h"
704 install_headers_dir=install-headers-cpio
707 hppa1.0-*-hpux8.0[0-2]*)
708 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
710 xmake_file=pa/x-pa-hpux
713 tm_file="${tm_file} pa/pa-gas.h"
715 tm_file="pa/pa-oldas.h ${tm_file}"
717 install_headers_dir=install-headers-cpio
720 hppa1.1-*-hpux8.0[0-2]*)
721 target_cpu_default="MASK_PA_11"
722 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
724 xmake_file=pa/x-pa-hpux
727 tm_file="${tm_file} pa/pa-gas.h"
729 tm_file="pa/pa-oldas.h ${tm_file}"
731 install_headers_dir=install-headers-cpio
735 target_cpu_default="MASK_PA_11"
736 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
738 xmake_file=pa/x-pa-hpux
741 tm_file="${tm_file} pa/pa-gas.h"
743 install_headers_dir=install-headers-cpio
747 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
749 xmake_file=pa/x-pa-hpux
752 tm_file="${tm_file} pa/pa-gas.h"
754 install_headers_dir=install-headers-cpio
757 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
758 target_cpu_default="MASK_PA_11"
759 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
762 xmake_file=pa/x-pa-hpux
766 tm_file="${tm_file} pa/pa-gas.h"
768 if test x$enable_threads = x; then
769 enable_threads=$have_pthread_h
771 case x${enable_threads} in
773 tmake_file="${tmake_file} pa/t-dce-thr"
776 install_headers_dir=install-headers-cpio
780 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
783 xmake_file=pa/x-pa-hpux
787 tm_file="${tm_file} pa/pa-gas.h"
789 if test x$enable_threads = x; then
790 enable_threads=$have_pthread_h
792 case x${enable_threads} in
794 tmake_file="${tmake_file} pa/t-dce-thr"
797 install_headers_dir=install-headers-cpio
802 xmake_file=pa/x-pa-hpux
804 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"
807 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
811 tm_file="${tm_file} pa/pa-gas.h"
813 # if [ x$enable_threads = x ]; then
814 # enable_threads=$have_pthread_h
816 # if [ x$enable_threads = xyes ]; then
818 # tmake_file="${tmake_file} pa/t-dce-thr"
820 install_headers_dir=install-headers-cpio
823 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
824 target_cpu_default="MASK_PA_11"
825 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
828 xmake_file=pa/x-pa-hpux
832 tm_file="${tm_file} pa/pa-gas.h"
834 # if test x$enable_threads = x; then
835 # enable_threads=$have_pthread_h
837 # if test x$enable_threads = xyes; then
839 # tmake_file="${tmake_file} pa/t-dce-thr"
841 install_headers_dir=install-headers-cpio
845 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
848 xmake_file=pa/x-pa-hpux
851 tm_file="${tm_file} pa/pa-gas.h"
853 # if test x$enable_threads = x; then
854 # enable_threads=$have_pthread_h
856 # if test x$enable_threads = xyes; then
858 # tmake_file="${tmake_file} pa/t-dce-thr"
860 install_headers_dir=install-headers-cpio
863 hppa1.1-*-hpux* | hppa2*-*-hpux*)
864 target_cpu_default="MASK_PA_11"
865 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
867 xmake_file=pa/x-pa-hpux
870 tm_file="${tm_file} pa/pa-gas.h"
872 install_headers_dir=install-headers-cpio
876 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
878 xmake_file=pa/x-pa-hpux
881 tm_file="${tm_file} pa/pa-gas.h"
883 install_headers_dir=install-headers-cpio
886 hppa1.1-*-hiux* | hppa2*-*-hiux*)
887 target_cpu_default="MASK_PA_11"
888 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
890 xmake_file=pa/x-pa-hpux
893 tm_file="${tm_file} pa/pa-gas.h"
895 install_headers_dir=install-headers-cpio
899 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
901 xmake_file=pa/x-pa-hpux
904 tm_file="${tm_file} pa/pa-gas.h"
906 install_headers_dir=install-headers-cpio
910 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
911 target_cpu_default="MASK_PA_11"
915 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
916 xm_file=pa/xm-pampeix.h
917 xmake_file=pa/x-pa-mpeix
918 echo "You must use gas. Assuming it is already installed."
919 install_headers_dir=install-headers-tar
922 i370-*-opened*) # IBM 360/370/390 Architecture
923 xm_defines='USG FATAL_EXIT_CODE=12'
929 xm_defines='USG FATAL_EXIT_CODE=12'
931 tmake_file=i370/t-mvs
935 tm_file="i370/linux.h ${tm_file}"
936 tmake_file="t-linux i370/t-linux"
938 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
939 # extra_parts="crtbegin.o crtend.o"
943 if test x$enable_threads = xyes; then
947 i[34567]86-*-chorusos*)
948 xm_defines='USG POSIX'
949 tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h i386/chorus.h"
950 tmake_file=i386/t-i386elf
952 case x${enable_threads} in
953 xyes | xpthreads | xposix)
959 xm_defines='USG POSIX'
960 tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h"
961 tmake_file=i386/t-i386elf
964 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
967 tm_file=i386/aix386.h
968 extra_parts="crtbegin.o crtend.o"
969 tmake_file=i386/t-crtstuff
971 tm_file=i386/aix386ng.h
975 xmake_file=i386/x-aix
977 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
978 xm_defines="USG POSIX SMALL_ARG_MAX"
979 xmake_file=i386/x-ncr3000
980 if test x$stabs = xyes -a x$gas = xyes
982 tm_file=i386/sysv4gdb.h
986 extra_parts="crtbegin.o crtend.o"
987 tmake_file=i386/t-crtpic
991 xm_file=i386/xm-next.h
992 tmake_file=i386/t-next
993 xmake_file=i386/x-next
994 extra_objs=nextstep.o
995 extra_parts="crtbegin.o crtend.o"
996 if test x$enable_threads = xyes; then
1000 i[34567]86-*-netware) # Intel 80386's running netware
1001 tm_file=i386/netware.h
1002 tmake_file=i386/t-netware
1004 i[34567]86-sequent-bsd*) # 80386 from Sequent
1006 if test x$gas = xyes
1008 tm_file=i386/seq-gas.h
1010 tm_file=i386/sequent.h
1013 i[34567]86-sequent-ptx1*)
1015 xmake_file=i386/x-sysv3
1016 tm_file=i386/seq-sysv3.h
1017 tmake_file=i386/t-crtstuff
1018 extra_parts="crtbegin.o crtend.o"
1019 install_headers_dir=install-headers-cpio
1021 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1023 xmake_file=i386/x-sysv3
1024 tm_file=i386/seq2-sysv3.h
1025 tmake_file=i386/t-crtstuff
1026 extra_parts="crtbegin.o crtend.o"
1027 install_headers_dir=install-headers-cpio
1029 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1030 if test x$gas = xyes
1032 tm_file="${tm_file} usegas.h"
1034 xm_defines="USG POSIX SMALL_ARG_MAX"
1036 tm_file=i386/ptx4-i.h
1038 extra_parts="crtbegin.o crtend.o"
1039 install_headers_dir=install-headers-cpio
1041 i386-sun-sunos*) # Sun i386 roadrunner
1046 i[34567]86-wrs-vxworks*)
1047 tm_file=i386/vxi386.h
1048 tmake_file=i386/t-i386bare
1049 thread_file='vxworks'
1052 tm_file=i386/i386-aout.h
1053 tmake_file=i386/t-i386bare
1055 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1057 xm_file=i386/xm-beos.h
1058 tmake_file='i386/t-beos i386/t-crtpic'
1059 tm_file=i386/beos-elf.h
1060 xmake_file=i386/x-beos
1061 extra_parts='crtbegin.o crtend.o'
1063 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1064 tm_file=i386/bsd386.h
1065 # tmake_file=t-libc-ok
1068 tm_file=i386/386bsd.h
1069 # tmake_file=t-libc-ok
1070 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1073 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1074 tm_file="i386/freebsd-aout.h i386/perform.h"
1075 tmake_file=t-freebsd
1077 i[34567]86-*-freebsd*)
1078 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/i386afe.h i386/freebsd.h i386/perform.h"
1079 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1080 tmake_file=t-freebsd
1084 case x${enable_threads} in
1085 xyes | xpthreads | xposix)
1087 tmake_file="${tmake_file} t-freebsd-thread"
1091 i[34567]86-*-netbsd*)
1092 tm_file=i386/netbsd.h
1096 i[34567]86-*-openbsd*)
1097 # we need collect2 until our bug is fixed...
1101 tm_file=i386/i386-coff.h
1102 tmake_file=i386/t-i386bare
1104 i[34567]86-*-isc*) # 80386 running ISC system
1105 xm_file="${xm_file} i386/xm-isc.h"
1108 i[34567]86-*-isc[34]*)
1109 xmake_file=i386/x-isc3
1112 xmake_file=i386/x-isc
1115 if test x$gas = xyes -a x$stabs = xyes
1117 tm_file=i386/iscdbx.h
1118 tmake_file=i386/t-svr3dbx
1119 extra_parts="svr3.ifile svr3z.ifile"
1121 tm_file=i386/isccoff.h
1122 tmake_file=i386/t-crtstuff
1123 extra_parts="crtbegin.o crtend.o"
1125 tmake_file="$tmake_file i386/t-i386bare"
1126 install_headers_dir=install-headers-cpio
1128 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1129 # with a.out format using
1131 tmake_file="t-linux-aout i386/t-crtstuff"
1132 tm_file=i386/linux-oldld.h
1136 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1138 tmake_file="t-linux-aout i386/t-crtstuff"
1139 tm_file=i386/linux-aout.h
1143 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1144 # with ELF format using the
1145 # GNU/Linux C library 5
1147 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h"
1148 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1149 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1152 if test x$enable_threads = xyes; then
1153 thread_file='single'
1156 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1157 # with ELF format using glibc 2
1158 # aka GNU/Linux C library 6
1160 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h"
1161 tmake_file="t-linux i386/t-crtstuff"
1162 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1165 if test x$enable_threads = xyes; then
1172 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1173 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1176 i[34567]86-pc-msdosdjgpp*)
1177 xm_file=i386/xm-djgpp.h
1178 tm_file=i386/djgpp.h
1179 tmake_file=i386/t-djgpp
1180 xmake_file=i386/x-djgpp
1185 case $host in *pc-msdosdjgpp*)
1190 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1191 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h i386/moss.h"
1192 tmake_file=t-libc-ok
1196 i[34567]86-*-lynxos*)
1197 if test x$gas = xyes
1201 tm_file=i386/lynx-ng.h
1203 tmake_file=i386/t-i386bare
1208 # tmake_file=t-libc-ok
1211 i[34567]86-*-osfrose*) # 386 using OSF/rose
1212 if test x$elf = xyes
1214 tm_file=i386/osfelf.h
1217 tm_file=i386/osfrose.h
1220 xmake_file=i386/x-osfrose
1221 tmake_file=i386/t-osf
1222 extra_objs=halfpic.o
1224 i[34567]86-go32-rtems*)
1226 xm_file=i386/xm-go32.h
1227 tm_file=i386/go32-rtems.h
1229 if test x$enable_threads = xyes; then
1233 i[34567]86-*-rtemscoff*)
1235 tm_file=i386/rtems.h
1236 tmake_file="i386/t-i386bare t-rtems"
1237 if test x$enable_threads = xyes; then
1241 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1243 tm_file=i386/rtemself.h
1244 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1245 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1246 if test x$enable_threads = xyes; then
1250 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1251 xm_file="${xm_file} i386/xm-sco5.h"
1253 xmake_file=i386/x-sco5
1254 install_headers_dir=install-headers-cpio
1256 if test x$gas = xyes
1258 tm_file="usegas.h ${tm_file}"
1259 tmake_file=i386/t-sco5gas
1261 tmake_file=i386/t-sco5
1263 tmake_file="$tmake_file i386/t-i386bare"
1264 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1266 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1267 xm_file="${xm_file} i386/xm-sco.h"
1268 xm_defines="USG BROKEN_LDEXP SMALL_ARG_MAX"
1269 xmake_file=i386/x-sco4
1270 install_headers_dir=install-headers-cpio
1271 if test x$stabs = xyes
1273 tm_file=i386/sco4dbx.h
1274 tmake_file=i386/t-svr3dbx
1275 extra_parts="svr3.ifile svr3z.rfile"
1278 tmake_file=i386/t-crtstuff
1279 extra_parts="crtbegin.o crtend.o"
1281 tmake_file="$tmake_file i386/t-i386bare"
1282 # The default EAFS filesystem supports long file names.
1283 # Truncating the target makes $host != $target which
1284 # makes gcc think it is doing a cross-compile.
1285 # truncate_target=yes
1287 i[34567]86-*-sco*) # 80386 running SCO system
1288 xm_file=i386/xm-sco.h
1289 xmake_file=i386/x-sco
1290 install_headers_dir=install-headers-cpio
1291 if test x$stabs = xyes
1293 tm_file=i386/scodbx.h
1294 tmake_file=i386/t-svr3dbx
1295 extra_parts="svr3.ifile svr3z.rfile"
1298 extra_parts="crtbegin.o crtend.o"
1299 tmake_file=i386/t-crtstuff
1301 tmake_file="$tmake_file i386/t-i386bare"
1304 i[34567]86-*-solaris2*)
1305 xm_defines="USG POSIX SMALL_ARG_MAX"
1307 if test x$gas = xyes; then
1308 # Only needed if gas does not support -s
1309 tm_file="i386/sol2gas.h ${tm_file}"
1311 tmake_file="i386/t-i386bare i386/t-sol2"
1312 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1314 if test x${enable_threads} = x; then
1315 enable_threads=$have_pthread_h
1316 if test x${enable_threads} = x; then
1317 enable_threads=$have_thread_h
1320 if test x${enable_threads} = xyes; then
1321 if test x${have_pthread_h} = xyes; then
1324 thread_file='solaris'
1328 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1329 xm_defines="USG POSIX"
1330 tm_file=i386/sysv5.h
1331 if test x$stabs = xyes
1333 tm_file="${tm_file} dbx.h"
1335 tmake_file="i386/t-i386bare i386/t-crtpic"
1337 extra_parts="crtbegin.o crtend.o"
1338 if test x$enable_threads = xyes; then
1342 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1343 xm_defines="USG POSIX SMALL_ARG_MAX"
1344 tm_file=i386/sysv4.h
1345 if test x$stabs = xyes
1347 tm_file="${tm_file} dbx.h"
1349 tmake_file="i386/t-i386bare i386/t-crtpic"
1351 extra_parts="crtbegin.o crtend.o"
1353 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1354 xm_defines="USG POSIX"
1356 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1358 extra_parts="crtbegin.o crtend.o"
1359 install_headers_dir=install-headers-cpio
1361 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1363 xm_file="${xm_file} i386/xm-osf1elf.h"
1364 xm_defines='USG POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1365 if test x$stabs = xyes
1367 tm_file=i386/osf1elfgdb.h
1369 tm_file=i386/osf1elf.h
1371 tmake_file=i386/t-osf1elf
1372 xmake_file=i386/x-osf1elf
1373 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1375 i[34567]86-*-sysv*) # Intel 80386's running system V
1377 xmake_file=i386/x-sysv3
1378 if test x$gas = xyes
1380 if test x$stabs = xyes
1382 tm_file=i386/svr3dbx.h
1383 tmake_file=i386/t-svr3dbx
1384 extra_parts="svr3.ifile svr3z.rfile"
1386 tm_file=i386/svr3gas.h
1387 extra_parts="crtbegin.o crtend.o"
1388 tmake_file=i386/t-crtstuff
1391 tm_file=i386/sysv3.h
1392 extra_parts="crtbegin.o crtend.o"
1393 tmake_file=i386/t-crtstuff
1395 tmake_file="$tmake_file i386/t-crtpic"
1397 i386-*-vsta) # Intel 80386's running VSTa kernel
1398 xm_file="${xm_file} i386/xm-vsta.h"
1400 tmake_file=i386/t-vsta
1401 xmake_file=i386/x-vsta
1405 xm_file="${xm_file} i386/xm-cygwin.h"
1407 tmake_file=i386/t-cygwin
1408 tm_file=i386/win32.h
1409 xmake_file=i386/x-cygwin
1411 if test x$enable_threads = xyes; then
1416 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1418 xm_file="${xm_file} i386/xm-cygwin.h"
1420 tmake_file=i386/t-cygwin
1421 tm_file=i386/cygwin.h
1422 xmake_file=i386/x-cygwin
1424 if test x$enable_threads = xyes; then
1429 i[34567]86-*-mingw32*)
1430 tm_file=i386/mingw32.h
1433 xm_file="${xm_file} i386/xm-mingw32.h"
1434 tmake_file="i386/t-cygwin i386/t-mingw32"
1436 xmake_file=i386/x-cygwin
1437 if test x$enable_threads = xyes; then
1444 *minwg32crt* | *mingw32*)
1445 tm_file="${tm_file} i386/crtdll.h"
1451 tmake_file="i386/t-cygwin i386/t-uwin"
1453 xmake_file=i386/x-cygwin
1454 if test x$enable_threads = xyes; then
1459 i[34567]86-*-interix*)
1460 tm_file="i386/i386-interix.h interix.h"
1461 xm_file="i386/xm-i386-interix.h xm-interix.h"
1463 tmake_file="i386/t-interix"
1464 extra_objs=interix.o
1465 xmake_file=x-interix
1466 if test x$enable_threads = xyes ; then
1469 if test x$stabs = xyes ; then
1470 tm_file="${tm_file} dbxcoff.h"
1473 i[34567]86-dg-dgux*)
1474 xm_defines="USG POSIX"
1475 out_file=i386/dgux.c
1477 tmake_file=i386/t-dgux
1478 xmake_file=i386/x-dgux
1479 install_headers_dir=install-headers-cpio
1481 i860-alliant-*) # Alliant FX/2800
1482 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1483 xm_file="${xm_file}"
1484 tmake_file=i860/t-fx2800
1485 extra_parts="crtbegin.o crtend.o"
1488 tm_file="${tm_file} i860/bsd.h"
1489 if test x$gas = xyes
1491 tm_file="${tm_file} i860/bsd-gas.h"
1496 tm_file="${tm_file} i860/mach.h"
1497 tmake_file=t-libc-ok
1499 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1500 tm_file="${tm_file} svr3.h i860/paragon.h"
1504 tm_file="${tm_file} svr3.h i860/sysv3.h"
1506 extra_parts="crtbegin.o crtend.o"
1509 tm_file="${tm_file} svr4.h i860/sysv4.h"
1511 xmake_file=i860/x-sysv4
1513 extra_parts="crtbegin.o crtend.o"
1515 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1516 tm_file="${tm_file} i960/vx960.h"
1517 tmake_file=i960/t-vxworks960
1519 thread_file='vxworks'
1520 c_target_objs="i960-c.o"
1521 cxx_target_objs="i960-c.o"
1523 i960-wrs-vxworks5* | i960-wrs-vxworks)
1524 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1525 tmake_file=i960/t-vxworks960
1527 thread_file='vxworks'
1528 c_target_objs="i960-c.o"
1529 cxx_target_objs="i960-c.o"
1532 tm_file="${tm_file} i960/vx960.h"
1533 tmake_file=i960/t-vxworks960
1535 thread_file='vxworks'
1536 c_target_objs="i960-c.o"
1537 cxx_target_objs="i960-c.o"
1540 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1541 tmake_file=i960/t-960bare
1543 c_target_objs="i960-c.o"
1544 cxx_target_objs="i960-c.o"
1547 tmake_file="i960/t-960bare t-rtems"
1548 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1550 if test x$enable_threads = xyes; then
1553 c_target_objs="i960-c.o"
1554 cxx_target_objs="i960-c.o"
1556 i960-*-*) # Default i960 environment.
1558 c_target_objs="i960-c.o"
1559 cxx_target_objs="i960-c.o"
1563 tmake_file="ia64/t-ia64"
1564 target_cpu_default="0"
1565 if test x$gas = xyes
1567 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1569 if test x$gnu_ld = xyes
1571 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1576 tm_file=ia64/linux.h
1577 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
1578 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1579 if test x$enable_threads = xyes; then
1585 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h"
1586 tmake_file="ia64/t-ia64 ia64/t-hpux"
1587 target_cpu_default="MASK_GNU_AS"
1588 if test x$enable_threads = xyes; then
1594 extra_parts="crtinit.o crtfini.o"
1596 # m68hc11 and m68hc12 share the same machine description.
1597 m68hc11-*-*|m6811-*-*)
1598 tm_file="elfos.h m68hc11/m68hc11.h"
1599 tm_p_file="m68hc11/m68hc11-protos.h"
1600 md_file="m68hc11/m68hc11.md"
1601 out_file="m68hc11/m68hc11.c"
1602 tmake_file="m68hc11/t-m68hc11-gas"
1604 m68hc12-*-*|m6812-*-*)
1605 tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1606 tm_p_file="m68hc11/m68hc11-protos.h"
1607 md_file="m68hc11/m68hc11.md"
1608 out_file="m68hc11/m68hc11.c"
1609 tmake_file="m68hc11/t-m68hc11-gas"
1611 m68000-convergent-sysv*)
1615 extra_headers=math-68881.h
1617 m68000-hp-bsd*) # HP 9000/200 running BSD
1618 tm_file=m68k/hp2bsd.h
1619 xmake_file=m68k/x-hp2bsd
1621 extra_headers=math-68881.h
1623 m68000-hp-hpux*) # HP 9000 series 300
1625 if test x$gas = xyes
1627 xmake_file=m68k/x-hp320g
1628 tm_file=m68k/hp310g.h
1630 xmake_file=m68k/x-hp320
1631 tm_file=m68k/hp310.h
1633 install_headers_dir=install-headers-cpio
1635 extra_headers=math-68881.h
1640 extra_headers=math-68881.h
1643 tm_file=m68k/sun2o4.h
1645 extra_headers=math-68881.h
1649 if test x$gas = xyes
1656 extra_headers=math-68881.h
1658 m68k-apple-aux*) # Apple Macintosh running A/UX
1659 xm_defines="USG AUX"
1660 tmake_file=m68k/t-aux
1661 install_headers_dir=install-headers-cpio
1662 extra_headers=math-68881.h
1663 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1665 if test "$gnu_ld" = yes
1667 tm_file="${tm_file} m68k/auxgld.h"
1669 tm_file="${tm_file} m68k/auxld.h"
1671 if test "$gas" = yes
1673 tm_file="${tm_file} m68k/auxgas.h"
1675 tm_file="${tm_file} m68k/auxas.h"
1677 tm_file="${tm_file} m68k/a-ux.h"
1681 tm_file=m68k/apollo68.h
1682 xmake_file=m68k/x-apollo68
1684 extra_headers=math-68881.h
1687 m68k-altos-sysv*) # Altos 3068
1688 if test x$gas = xyes
1690 tm_file=m68k/altos3068.h
1693 echo "The Altos is supported only with the GNU assembler" 1>&2
1696 extra_headers=math-68881.h
1698 m68k-bull-sysv*) # Bull DPX/2
1699 if test x$gas = xyes
1701 if test x$stabs = xyes
1703 tm_file=m68k/dpx2cdbx.h
1705 tm_file=m68k/dpx2g.h
1711 xmake_file=m68k/x-dpx2
1713 extra_headers=math-68881.h
1715 m68k-atari-sysv4*) # Atari variant of V.4.
1716 tm_file=m68k/atari.h
1719 extra_parts="crtbegin.o crtend.o"
1720 extra_headers=math-68881.h
1723 m68k-motorola-sysv*)
1724 tm_file=m68k/mot3300.h
1726 if test x$gas = xyes
1728 xmake_file=m68k/x-mot3300-gas
1729 if test x$gnu_ld = xyes
1731 tmake_file=m68k/t-mot3300-gald
1733 tmake_file=m68k/t-mot3300-gas
1737 xmake_file=m68k/x-mot3300
1738 if test x$gnu_ld = xyes
1740 tmake_file=m68k/t-mot3300-gld
1742 tmake_file=m68k/t-mot3300
1746 gdb_needs_out_file_path=yes
1747 extra_parts="crt0.o mcrt0.o"
1748 extra_headers=math-68881.h
1751 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1752 tm_file=m68k/tower-as.h
1754 xmake_file=m68k/x-tower
1755 extra_parts="crtbegin.o crtend.o"
1756 extra_headers=math-68881.h
1759 tm_file=m68k/plexus.h
1760 xm_file="m68k/xm-plexus.h ${xm_file}"
1763 extra_headers=math-68881.h
1768 extra_headers=math-68881.h
1771 xm_defines="USG unos"
1772 xmake_file=m68k/x-crds
1775 extra_headers=math-68881.h
1777 m68k-cbm-sysv4*) # Commodore variant of V.4.
1780 xmake_file=m68k/x-amix
1782 extra_parts="crtbegin.o crtend.o"
1783 extra_headers=math-68881.h
1787 tm_file=m68k/ccur-GAS.h
1788 xmake_file=m68k/x-ccur
1789 extra_headers=math-68881.h
1793 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1794 tm_file=m68k/hp3bsd44.h
1796 extra_headers=math-68881.h
1799 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1800 tm_file=m68k/hp3bsd.h
1802 extra_headers=math-68881.h
1806 if test x$with_fp = xno
1808 tm_file=m68k/isi-nfp.h
1814 extra_headers=math-68881.h
1816 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1818 if test x$gas = xyes
1820 xmake_file=m68k/x-hp320g
1821 tm_file=m68k/hp320g.h
1823 xmake_file=m68k/x-hp320
1824 tm_file=m68k/hpux7.h
1826 install_headers_dir=install-headers-cpio
1828 extra_headers=math-68881.h
1831 m68k-hp-hpux*) # HP 9000 series 300
1833 if test x$gas = xyes
1835 xmake_file=m68k/x-hp320g
1836 tm_file=m68k/hp320g.h
1838 xmake_file=m68k/x-hp320
1839 tm_file=m68k/hp320.h
1841 install_headers_dir=install-headers-cpio
1843 extra_headers=math-68881.h
1847 tm_file=m68k/sun3mach.h
1849 extra_headers=math-68881.h
1853 if test x$gas = xyes
1855 tm_file=m68k/news3gas.h
1857 tm_file=m68k/news3.h
1860 extra_headers=math-68881.h
1863 m68k-sony-bsd* | m68k-sony-newsos*)
1864 if test x$gas = xyes
1866 tm_file=m68k/newsgas.h
1871 extra_headers=math-68881.h
1874 m68k-next-nextstep2*)
1875 tm_file=m68k/next21.h
1876 xm_file="m68k/xm-next.h ${xm_file}"
1877 tmake_file=m68k/t-next
1878 xmake_file=m68k/x-next
1879 extra_objs=nextstep.o
1880 extra_headers=math-68881.h
1884 m68k-next-nextstep[34]*)
1886 xm_file="m68k/xm-next.h ${xm_file}"
1887 tmake_file=m68k/t-next
1888 xmake_file=m68k/x-next
1889 extra_objs=nextstep.o
1890 extra_parts="crtbegin.o crtend.o"
1891 extra_headers=math-68881.h
1893 if test x$enable_threads = xyes; then
1898 if test x$with_fp = xno
1900 tm_file=m68k/sun3n3.h
1902 tm_file=m68k/sun3o3.h
1906 extra_headers=math-68881.h
1908 m68k-sun-sunos*) # For SunOS 4 (the default).
1909 if test x$with_fp = xno
1911 tm_file=m68k/sun3n.h
1917 extra_headers=math-68881.h
1920 tm_file=m68k/vxm68k.h
1921 tmake_file=m68k/t-vxworks68
1922 extra_headers=math-68881.h
1923 thread_file='vxworks'
1927 tmake_file=m68k/t-m68kbare
1928 tm_file="m68k/m68k-aout.h libgloss.h"
1929 extra_headers=math-68881.h
1933 tmake_file=m68k/t-m68kbare
1934 tm_file="m68k/m68k-coff.h dbx.h"
1935 extra_headers=math-68881.h
1938 m68020-*-elf* | m68k-*-elf*)
1939 tm_file="m68k/m68020-elf.h"
1941 tmake_file=m68k/t-m68kelf
1942 header_files=math-68881.h
1945 if test x$gas = xyes
1949 tm_file=m68k/lynx-ng.h
1952 tmake_file=m68k/t-lynx
1953 extra_headers=math-68881.h
1957 tm_file=m68k/netbsd.h
1964 # we need collect2 until our bug is fixed...
1967 m68k-*-sysv3*) # Motorola m68k's running system V.3
1969 extra_parts="crtbegin.o crtend.o"
1970 extra_headers=math-68881.h
1973 m68k-*-sysv4*) # Motorola m68k's running system V.4
1974 tm_file=m68k/m68kv4.h
1977 extra_parts="crtbegin.o crtend.o"
1978 extra_headers=math-68881.h
1981 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1984 tm_file=m68k/linux-aout.h
1985 tmake_file="t-linux-aout m68k/t-linux-aout"
1986 extra_headers=math-68881.h
1990 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1991 # with ELF format using the
1992 # GNU/Linux C library 5
1994 tm_file=m68k/linux.h
1995 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1996 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1997 extra_headers=math-68881.h
2001 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2002 # with ELF format using glibc 2
2003 # aka the GNU/Linux C library 6.
2005 tm_file=m68k/linux.h
2006 tmake_file="t-linux m68k/t-linux"
2007 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2008 extra_headers=math-68881.h
2011 if test x$enable_threads = xyes; then
2016 tmake_file=m68k/t-m68kbare
2017 tm_file=m68k/m68k-psos.h
2018 extra_headers=math-68881.h
2022 tmake_file="m68k/t-m68kbare t-rtems"
2023 tm_file=m68k/rtems.h
2024 extra_headers=math-68881.h
2026 if test x$enable_threads = xyes; then
2030 m68k-*-rtemself*|m68k-*-rtems*)
2031 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2032 tm_file=m68k/rtemself.h
2033 extra_headers=math-68881.h
2035 if test x$enable_threads = xyes; then
2043 tm_file=m88k/dguxbcs.h
2044 tmake_file=m88k/t-dguxbcs
2048 tmake_file=m88k/t-dgux
2051 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2052 xmake_file=m88k/x-dgux
2053 if test x$gas = xyes
2055 tmake_file=m88k/t-dgux-gas
2058 m88k-dolphin-sysv3*)
2060 tm_file=m88k/dolph.h
2061 extra_parts="crtbegin.o crtend.o"
2062 xmake_file=m88k/x-dolph
2063 if test x$gas = xyes
2065 tmake_file=m88k/t-m88k-gas
2068 m88k-tektronix-sysv3)
2070 tm_file=m88k/tekXD88.h
2071 extra_parts="crtbegin.o crtend.o"
2072 xmake_file=m88k/x-tekXD88
2073 if test x$gas = xyes
2075 tmake_file=m88k/t-m88k-gas
2080 tm_file=m88k/m88k-aout.h
2084 tm_file=m88k/m88k-coff.h
2085 tmake_file=m88k/t-bug
2089 extra_parts="crtbegin.o crtend.o"
2090 if test x$gas = xyes
2092 tmake_file=m88k/t-luna-gas
2094 tmake_file=m88k/t-luna
2098 tmake_file="${tmake_file} m88k/t-luna-gas"
2099 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2103 tm_file=m88k/sysv3.h
2104 extra_parts="crtbegin.o crtend.o"
2105 if test x$gas = xyes
2107 tmake_file=m88k/t-m88k-gas
2112 tm_file=m88k/sysv4.h
2113 extra_parts="crtbegin.o crtend.o"
2114 xmake_file=m88k/x-sysv4
2115 tmake_file=m88k/t-sysv4
2118 tm_file=mcore/mcore-elf.h
2119 tmake_file=mcore/t-mcore
2122 tm_file=mcore/mcore-pe.h
2123 tmake_file=mcore/t-mcore-pe
2125 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2126 if test "x$gnu_ld" = xyes
2128 tm_file="mips/iris6.h mips/iris6gld.h"
2130 tm_file=mips/iris6.h
2132 tmake_file=mips/t-iris6
2134 xmake_file=mips/x-iris6
2135 # if test x$enable_threads = xyes; then
2136 # thread_file='irix'
2140 tm_file="mips/elf.h mips/vxworks.h"
2141 tmake_file=mips/t-ecoff
2144 extra_parts="crtbegin.o crtend.o"
2145 thread_file='vxworks'
2147 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2148 tm_file="mips/iris6.h mips/cross64.h"
2150 xm_file=mips/xm-iris5.h
2151 xmake_file=mips/x-iris
2152 tmake_file=mips/t-cross64
2153 # See comment in mips/iris[56].h files.
2155 # if test x$enable_threads = xyes; then
2156 # thread_file='irix'
2160 if test x$gas = xyes
2162 if test x$stabs = xyes
2164 tm_file=mips/iris5gdb.h
2166 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2169 tm_file=mips/sni-svr4.h
2172 xmake_file=mips/x-sni-svr4
2173 tmake_file=mips/t-mips-gas
2174 if test x$gnu_ld != xyes
2179 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2180 if test x$gas = xyes
2182 tm_file="mips/iris5.h mips/iris5gas.h"
2183 if test x$stabs = xyes
2185 tm_file="${tm_file} dbx.h"
2188 tm_file=mips/iris5.h
2191 xm_file=mips/xm-iris5.h
2192 xmake_file=mips/x-iris
2193 # mips-tfile doesn't work yet
2194 tmake_file=mips/t-mips-gas
2195 # See comment in mips/iris5.h file.
2197 # if test x$enable_threads = xyes; then
2198 # thread_file='irix'
2201 mips-sgi-irix4loser*) # Mostly like a MIPS.
2202 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2203 if test x$stabs = xyes; then
2204 tm_file="${tm_file} dbx.h"
2207 xmake_file=mips/x-iris
2208 if test x$gas = xyes
2210 tmake_file=mips/t-mips-gas
2212 extra_passes="mips-tfile mips-tdump"
2214 if test x$gnu_ld != xyes
2218 # if test x$enable_threads = xyes; then
2219 # thread_file='irix'
2222 mips-sgi-irix4*) # Mostly like a MIPS.
2223 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2224 if test x$stabs = xyes; then
2225 tm_file="${tm_file} dbx.h"
2228 xmake_file=mips/x-iris
2229 if test x$gas = xyes
2231 tmake_file=mips/t-mips-gas
2233 extra_passes="mips-tfile mips-tdump"
2235 if test x$gnu_ld != xyes
2239 # if test x$enable_threads = xyes; then
2240 # thread_file='irix'
2243 mips-sgi-*) # Mostly like a MIPS.
2244 tm_file="mips/iris3.h ${tm_file}"
2245 if test x$stabs = xyes; then
2246 tm_file="${tm_file} dbx.h"
2249 xmake_file=mips/x-iris3
2250 if test x$gas = xyes
2252 tmake_file=mips/t-mips-gas
2254 extra_passes="mips-tfile mips-tdump"
2256 if test x$gnu_ld != xyes
2261 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2262 tm_file="mips/osfrose.h ${tm_file}"
2263 xmake_file=mips/x-osfrose
2264 tmake_file=mips/t-osfrose
2265 extra_objs=halfpic.o
2268 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2269 tm_file=mips/dec-osf1.h
2270 if test x$stabs = xyes; then
2271 tm_file="${tm_file} dbx.h"
2273 xmake_file=mips/x-dec-osf1
2274 if test x$gas = xyes
2276 tmake_file=mips/t-mips-gas
2278 tmake_file=mips/t-ultrix
2279 extra_passes="mips-tfile mips-tdump"
2281 if test x$gnu_ld != xyes
2286 mips-dec-bsd*) # Decstation running 4.4 BSD
2287 tm_file=mips/dec-bsd.h
2288 if test x$gas = xyes
2290 tmake_file=mips/t-mips-gas
2292 tmake_file=mips/t-ultrix
2293 extra_passes="mips-tfile mips-tdump"
2295 if test x$gnu_ld != xyes
2300 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2301 tm_file=mips/netbsd.h
2302 # On NetBSD, the headers are already okay, except for math.h.
2305 mips*-*-linux*) # Linux MIPS, either endian.
2308 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2309 *) tm_file="mips/elf.h mips/linux.h" ;;
2312 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2315 if test x$enable_threads = xyes; then
2319 mips*el-*-openbsd*) # mips little endian
2320 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2322 mips*-*-openbsd*) # mips big endian
2323 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2324 tm_file="mips/openbsd-be.h ${tm_file}"
2326 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2327 tm_file="mips/news4.h ${tm_file}"
2328 if test x$stabs = xyes; then
2329 tm_file="${tm_file} dbx.h"
2331 if test x$gas = xyes
2333 tmake_file=mips/t-mips-gas
2335 extra_passes="mips-tfile mips-tdump"
2337 if test x$gnu_ld != xyes
2341 xmake_file=mips/x-sony
2343 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2344 # That is based on svr4.
2345 # t-svr4 is not right because this system doesn't use ELF.
2346 tm_file="mips/news5.h ${tm_file}"
2347 if test x$stabs = xyes; then
2348 tm_file="${tm_file} dbx.h"
2351 if test x$gas = xyes
2353 tmake_file=mips/t-mips-gas
2355 extra_passes="mips-tfile mips-tdump"
2357 if test x$gnu_ld != xyes
2362 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2363 tm_file="mips/svr4-5.h mips/svr4-t.h"
2364 if test x$stabs = xyes; then
2365 tm_file="${tm_file} dbx.h"
2368 xmake_file=mips/x-sysv
2369 if test x$gas = xyes
2371 tmake_file=mips/t-mips-gas
2372 extra_parts="crtbegin.o crtend.o"
2374 tmake_file=mips/t-mips
2375 extra_passes="mips-tfile mips-tdump"
2377 if test x$gnu_ld != xyes
2382 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2383 tm_file="mips/ultrix.h ${tm_file}"
2384 if test x$stabs = xyes; then
2385 tm_file="${tm_file} dbx.h"
2387 xmake_file=mips/x-ultrix
2388 if test x$gas = xyes
2390 tmake_file=mips/t-mips-gas
2392 tmake_file=mips/t-ultrix
2393 extra_passes="mips-tfile mips-tdump"
2395 if test x$gnu_ld != xyes
2400 mips-*-riscos[56789]bsd*)
2401 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2402 if test x$stabs = xyes; then
2403 tm_file="${tm_file} dbx.h"
2405 if test x$gas = xyes
2407 tmake_file=mips/t-bsd-gas
2409 tmake_file=mips/t-bsd
2410 extra_passes="mips-tfile mips-tdump"
2412 if test x$gnu_ld != xyes
2417 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2418 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2419 if test x$stabs = xyes; then
2420 tm_file="${tm_file} dbx.h"
2422 if test x$gas = xyes
2424 tmake_file=mips/t-bsd-gas
2426 tmake_file=mips/t-bsd
2427 extra_passes="mips-tfile mips-tdump"
2429 if test x$gnu_ld != xyes
2434 mips-*-riscos[56789]sysv4*)
2435 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2436 if test x$stabs = xyes; then
2437 tm_file="${tm_file} dbx.h"
2439 xmake_file=mips/x-sysv
2440 if test x$gas = xyes
2442 tmake_file=mips/t-svr4-gas
2444 tmake_file=mips/t-svr4
2445 extra_passes="mips-tfile mips-tdump"
2447 if test x$gnu_ld != xyes
2452 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2453 tm_file="mips/svr4-4.h ${tm_file}"
2454 if test x$stabs = xyes; then
2455 tm_file="${tm_file} dbx.h"
2458 xmake_file=mips/x-sysv
2459 if test x$gas = xyes
2461 tmake_file=mips/t-svr4-gas
2463 tmake_file=mips/t-svr4
2464 extra_passes="mips-tfile mips-tdump"
2466 if test x$gnu_ld != xyes
2471 mips-*-riscos[56789]sysv*)
2472 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2473 if test x$stabs = xyes; then
2474 tm_file="${tm_file} dbx.h"
2477 xmake_file=mips/x-sysv
2478 if test x$gas = xyes
2480 tmake_file=mips/t-svr3-gas
2482 tmake_file=mips/t-svr3
2483 extra_passes="mips-tfile mips-tdump"
2485 if test x$gnu_ld != xyes
2490 mips-*-sysv* | mips-*-riscos*sysv*)
2491 tm_file="mips/svr3-4.h ${tm_file}"
2492 if test x$stabs = xyes; then
2493 tm_file="${tm_file} dbx.h"
2496 xmake_file=mips/x-sysv
2497 if test x$gas = xyes
2499 tmake_file=mips/t-svr3-gas
2501 tmake_file=mips/t-svr3
2502 extra_passes="mips-tfile mips-tdump"
2504 if test x$gnu_ld != xyes
2509 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2510 tm_file=mips/mips-5.h
2511 if test x$stabs = xyes; then
2512 tm_file="${tm_file} dbx.h"
2514 if test x$gas = xyes
2516 tmake_file=mips/t-mips-gas
2518 extra_passes="mips-tfile mips-tdump"
2520 if test x$gnu_ld != xyes
2528 tm_file=mips/ecoffl.h
2529 if test x$stabs = xyes; then
2530 tm_file="${tm_file} dbx.h"
2532 tmake_file=mips/t-ecoff
2535 tm_file="gofast.h mips/ecoff.h"
2536 if test x$stabs = xyes; then
2537 tm_file="${tm_file} dbx.h"
2539 tmake_file=mips/t-ecoff
2542 tm_file="mips/elfl.h"
2543 tmake_file=mips/t-elf
2546 tm_file="mips/elf.h"
2547 tmake_file=mips/t-elf
2550 tm_file="mips/elfl64.h"
2551 tmake_file=mips/t-elf
2553 mips64orionel-*-elf*)
2554 tm_file="mips/elforion.h mips/elfl64.h"
2555 tmake_file=mips/t-elf
2558 tm_file="mips/elf64.h"
2559 tmake_file=mips/t-elf
2562 tm_file="mips/elforion.h mips/elf64.h"
2563 tmake_file=mips/t-elf
2565 mips64orion-*-rtems*)
2566 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2567 tmake_file="mips/t-elf t-rtems"
2568 if test x$enable_threads = xyes; then
2573 tm_file="mips/elf.h mips/rtems.h"
2574 tmake_file="mips/t-elf t-rtems"
2575 if test x$enable_threads = xyes; then
2580 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2581 tmake_file=mips/t-r3900
2584 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2585 tmake_file=mips/t-r3900
2587 mips-*-*) # Default MIPS RISC-OS 4.0.
2588 if test x$stabs = xyes; then
2589 tm_file="${tm_file} dbx.h"
2591 if test x$gas = xyes
2593 tmake_file=mips/t-mips-gas
2595 extra_passes="mips-tfile mips-tdump"
2597 if test x$gnu_ld != xyes
2605 tm_file="mn10200/mn10200.h"
2606 if test x$stabs = xyes
2608 tm_file="${tm_file} dbx.h"
2614 tm_file="mn10300/mn10300.h"
2615 if test x$stabs = xyes
2617 tm_file="${tm_file} dbx.h"
2622 tm_file=ns32k/encore.h
2626 tm_file=ns32k/sequent.h
2630 tm_file=ns32k/tek6100.h
2634 tm_file=ns32k/tek6200.h
2638 tm_file=ns32k/merlin.h
2642 tm_file=ns32k/pc532-mach.h
2646 tm_file=ns32k/pc532-min.h
2647 xm_defines='USG HZ=60'
2651 tm_file=ns32k/netbsd.h
2652 # On NetBSD, the headers are already okay, except for math.h.
2657 tm_file="${tm_file} pdp11/2bsd.h"
2667 tm_file="svr4.h pj/linux.h ${tm_file}"
2672 tm_file="svr4.h pj/pjl.h ${tm_file}"
2679 xmake_file=romp/x-mach
2686 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2690 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2692 xm_file=rs6000/xm-beos.h
2693 tmake_file=rs6000/t-beos
2694 xmake_file=rs6000/x-beos
2697 xm_file=rs6000/xm-darwin.h
2698 xmake_file=rs6000/x-darwin
2701 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2702 xm_defines="USG POSIX"
2703 extra_headers=ppc-asm.h
2704 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2705 xmake_file=rs6000/x-sysv4
2707 powerpc-*-chorusos*)
2709 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2710 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2711 extra_headers=ppc-asm.h
2712 case x${enable_threads} in
2713 xyes | xpthreads | xposix)
2720 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2721 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2722 extra_headers=ppc-asm.h
2726 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2727 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2728 extra_headers=ppc-asm.h
2732 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2733 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2734 extra_headers=ppc-asm.h
2738 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2739 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2740 extra_headers=ppc-asm.h
2744 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2745 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2746 extra_headers=ppc-asm.h
2747 if test x$enable_threads = xyes; then
2751 powerpc-*-linux*libc1)
2752 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2753 xm_defines='USG POSIX'
2754 out_file=rs6000/rs6000.c
2755 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2757 extra_headers=ppc-asm.h
2758 if test x$enable_threads = xyes; then
2763 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2764 xm_defines="USG ${xm_defines}"
2765 out_file=rs6000/rs6000.c
2766 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2768 extra_headers=ppc-asm.h
2769 if test x$enable_threads = xyes; then
2773 powerpc-wrs-vxworks*)
2775 xm_defines="USG POSIX"
2776 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2777 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2778 extra_headers=ppc-asm.h
2779 thread_file='vxworks'
2781 powerpcle-wrs-vxworks*)
2783 xm_defines="USG POSIX"
2784 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2785 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2786 extra_headers=ppc-asm.h
2787 thread_file='vxworks'
2790 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2791 xm_defines="USG POSIX"
2792 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2793 xmake_file=rs6000/x-sysv4
2794 extra_headers=ppc-asm.h
2798 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2799 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2800 extra_headers=ppc-asm.h
2802 powerpcle-*-eabisim*)
2804 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2805 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2806 extra_headers=ppc-asm.h
2810 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2811 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2812 extra_headers=ppc-asm.h
2814 powerpcle-*-solaris2*)
2815 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2816 xm_defines="USG POSIX"
2817 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2818 xmake_file=rs6000/x-sysv4
2819 extra_headers=ppc-asm.h
2821 rs6000-ibm-aix3.[01]*)
2823 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2824 xmake_file=rs6000/x-aix31
2828 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2830 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2831 tmake_file=rs6000/t-newas
2835 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2837 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2838 tmake_file=rs6000/t-newas
2839 xmake_file=rs6000/x-aix41
2843 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2845 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2846 tmake_file=rs6000/t-aix43
2847 xmake_file=rs6000/x-aix41
2852 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2854 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2855 tmake_file=rs6000/t-aix43
2856 xmake_file=rs6000/x-aix41
2863 tm_file="${tm_file} rs6000/aix.h"
2869 tm_file="${tm_file} rs6000/aix.h"
2874 tm_file=rs6000/mach.h
2876 xmake_file=rs6000/x-mach
2880 tm_file=rs6000/lynx.h
2881 tmake_file=rs6000/t-rs6000
2882 xmake_file=rs6000/x-lynx
2886 tmake_file="sh/t-sh sh/t-elf"
2887 tm_file="sh/sh.h sh/elf.h"
2891 tmake_file="sh/t-sh sh/t-elf t-rtems"
2892 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2894 if test x$enable_threads = xyes; then
2899 tmake_file="sh/t-sh t-rtems"
2900 tm_file="sh/sh.h sh/rtems.h"
2902 if test x$enable_threads = xyes; then
2907 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2908 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2911 if test x$enable_threads = xyes; then
2923 sparc64-wrs-vxworks*)
2924 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2925 tmake_file=sparc/t-vxsparc64
2928 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2929 tm_file=sparc/vxsparc.h
2930 tmake_file=sparc/t-vxsparc
2932 thread_file='vxworks'
2935 tmake_file=sparc/t-sparcbare
2936 tm_file="sparc/aout.h libgloss.h"
2939 tm_file=sparc/netbsd.h
2944 # we need collect2 until our bug is fixed...
2951 tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
2952 tmake_file=sparc/t-chorus-elf
2953 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2955 case x${enable_threads} in
2956 xyes | xpthreads | xposix)
2962 tm_file="sparc/sol2.h sparc/elf.h"
2963 tmake_file=sparc/t-elf
2964 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2968 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2969 tm_file=sparc/linux-aout.h
2973 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2975 tm_file=sparc/linux.h
2976 tmake_file="t-linux t-linux-gnulibc1"
2977 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2981 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2983 tm_file=sparc/linux.h
2984 tmake_file="t-linux"
2985 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2987 if test x$enable_threads = xyes; then
2993 if test x$gas = xyes
2995 tm_file=sparc/lynx.h
2997 tm_file=sparc/lynx-ng.h
2999 tmake_file=sparc/t-sunos41
3003 tmake_file="sparc/t-sparcbare t-rtems"
3004 tm_file=sparc/rtems.h
3005 if test x$enable_threads = xyes; then
3009 sparc-*-rtems*|sparc-*-rtemself*)
3010 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
3011 tmake_file="sparc/t-elf t-rtems"
3012 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3015 if test x$enable_threads = xyes; then
3019 sparcv9-*-solaris2*)
3020 if test x$gnu_ld = xyes
3022 tm_file=sparc/sol2-64.h
3024 tm_file=sparc/sol2-sld-64.h
3026 xm_defines="USG POSIX"
3027 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3028 if test x$gnu_ld = xyes; then
3029 tmake_file="$tmake_file sparc/t-slibgcc"
3031 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3033 xmake_file=sparc/x-sysv4
3034 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3036 if test x${enable_threads} = x ; then
3037 enable_threads=$have_pthread_h
3038 if test x${enable_threads} = x ; then
3039 enable_threads=$have_thread_h
3042 if test x${enable_threads} = xyes ; then
3043 if test x${have_pthread_h} = xyes ; then
3046 thread_file='solaris'
3050 sparc-hal-solaris2*)
3051 xm_defines="USG POSIX"
3052 tm_file="sparc/sol2.h sparc/hal.h"
3053 tmake_file="sparc/t-halos sparc/t-sol2"
3054 if test x$gnu_ld = xyes; then
3055 tmake_file="$tmake_file sparc/t-slibgcc"
3057 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3059 xmake_file=sparc/x-sysv4
3060 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3069 thread_file='solaris'
3072 if test x$gnu_ld = xyes
3074 tm_file=sparc/sol2.h
3076 tm_file=sparc/sol2-sld.h
3078 xm_defines="USG POSIX"
3079 tmake_file=sparc/t-sol2
3080 if test x$gnu_ld = xyes; then
3081 tmake_file="$tmake_file sparc/t-slibgcc"
3083 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3085 xmake_file=sparc/x-sysv4
3086 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3087 # At the moment, 32-to-64 cross compilation doesn't work.
3089 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3091 # if test x$gnu_ld = xyes
3093 # tm_file=sparc/sol2-64.h
3095 # tm_file=sparc/sol2-sld-64.h
3097 # tmake_file="$tmake_file sparc/t-sol2-64"
3108 if test x${enable_threads} = x; then
3109 enable_threads=$have_pthread_h
3110 if test x${enable_threads} = x; then
3111 enable_threads=$have_thread_h
3114 if test x${enable_threads} = xyes; then
3115 if test x${have_pthread_h} = xyes; then
3118 thread_file='solaris'
3123 tm_file=sparc/sunos4.h
3124 tmake_file=sparc/t-sunos40
3128 tm_file=sparc/sunos4.h
3129 tmake_file=sparc/t-sunos41
3131 if test x$gas = xyes; then
3132 tm_file="${tm_file} sparc/sun4gas.h"
3136 tm_file=sparc/sun4o3.h
3140 tm_file=sparc/sysv4.h
3141 xm_defines="USG POSIX"
3143 xmake_file=sparc/x-sysv4
3144 extra_parts="crtbegin.o crtend.o"
3147 xm_defines="USG POSIX"
3148 tm_file=sparc/vxsim.h
3149 tmake_file=sparc/t-vxsparc
3150 xmake_file=sparc/x-sysv4
3153 tm_file="sparc/splet.h libgloss.h"
3154 tmake_file=sparc/t-splet
3157 tm_file="sparc/litecoff.h libgloss.h"
3158 tmake_file=sparc/t-sparclite
3161 tm_file="sparc/lite.h aoutos.h libgloss.h"
3162 tmake_file=sparc/t-sparclite
3165 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3166 tmake_file=sparc/t-sparclite
3167 extra_parts="crtbegin.o crtend.o"
3170 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3171 tmake_file=sparc/t-sp86x
3174 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3175 tmake_file=sparc/t-sp86x
3176 extra_parts="crtbegin.o crtend.o"
3179 tmake_file=sparc/t-sp64
3180 tm_file=sparc/sp64-aout.h
3183 tmake_file=sparc/t-sp64
3184 tm_file=sparc/sp64-elf.h
3185 extra_parts="crtbegin.o crtend.o"
3187 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3188 tmake_file="t-linux sparc/t-linux64"
3189 tm_file=sparc/linux64.h
3191 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3193 if test x$enable_threads = xyes; then
3199 tm_file=arm/strongarm-elf.h
3200 tmake_file=arm/t-strongarm-elf
3205 tm_file=arm/strongarm-coff.h
3206 tmake_file=arm/t-strongarm-coff
3211 tm_file=arm/strongarm-pe.h
3212 tmake_file=arm/t-strongarm-pe
3218 { echo "config.gcc: error:
3219 *** The Thumb targets have been deprecated. The equivalent
3220 *** ARM based toolchain can now generate Thumb instructions
3221 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3225 tm_file="v850/rtems.h"
3226 tmake_file="v850/t-v850 t-rtems"
3227 if test x$stabs = xyes
3229 tm_file="${tm_file} dbx.h"
3232 c_target_objs="v850-c.o"
3233 cxx_target_objs="v850-c.o"
3236 target_cpu_default="TARGET_CPU_generic"
3238 tm_file="v850/v850.h"
3239 tmake_file=v850/t-v850
3240 if test x$stabs = xyes
3242 tm_file="${tm_file} dbx.h"
3245 c_target_objs="v850-c.o"
3246 cxx_target_objs="v850-c.o"
3248 vax-*-bsd*) # vaxen running BSD
3252 vax-*-sysv*) # vaxen running system V
3253 tm_file="${tm_file} vax/vaxv.h"
3258 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3264 tmake_file="${tmake_file} vax/t-openbsd"
3265 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3269 vax-*-ultrix*) # vaxen running ultrix
3270 tm_file="${tm_file} vax/ultrix.h"
3273 vax-*-vms*) # vaxen running VMS
3274 xm_file=vax/xm-vms.h
3278 vax-*-*) # vax default entry
3286 tm_file=arm/xscale-elf.h
3287 tmake_file=arm/t-xscale-elf
3292 tm_file=arm/xscale-coff.h
3293 tmake_file=arm/t-xscale-coff
3298 echo "Configuration $machine not supported" 1>&2
3305 xmake_try_sysv=x-sysv
3306 install_headers_dir=install-headers-cpio
3309 install_headers_dir=install-headers-cpio
3313 # Distinguish i[34567]86
3314 # Also, do not run mips-tfile on MIPS if using gas.
3315 # Process --with-cpu= for PowerPC/rs6000
3316 target_cpu_default2=
3319 target_cpu_default2=1
3322 case $target_alias in
3324 target_cpu_default2=4
3327 target_cpu_default2=2
3331 i686-*-* | i786-*-*)
3332 target_cpu_default2=3
3337 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3340 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3343 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3346 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3349 target_cpu_default2="MASK_CPU_EV5"
3353 if test x$gas = xyes
3355 if test "$target_cpu_default2" = ""
3357 target_cpu_default2="MASK_GAS"
3359 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3364 case "x$with_cpu" in
3367 target_cpu_default2="TARGET_CPU_generic"
3370 # Distinguish cores, and major variants
3371 # arm7m doesn't exist, but D & I don't affect code
3372 xarm[236789] | xarm250 | xarm[67][01]0 \
3373 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3374 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3376 | xstrongarm | xstrongarm110 | xstrongarm1100)
3377 target_cpu_default2="TARGET_CPU_$with_cpu"
3381 echo "--with-cpu must be passed a value" 1>&2
3386 if test x$pass2done = xyes
3388 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3395 mips*-*-ecoff* | mips*-*-elf*)
3396 if test x$gas = xyes
3398 if test x$gnu_ld = xyes
3400 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3402 target_cpu_default2="MASK_GAS"
3407 if test x$gas = xyes
3409 target_cpu_default2="MASK_GAS"
3412 powerpc*-*-* | rs6000-*-*)
3413 case "x$with_cpu" in
3417 xcommon | xpower | xpower2 | xpowerpc | xrios \
3418 | xrios1 | xrios2 | xrsc | xrsc1 \
3419 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3420 | xec603e | x740 | x750 | x401 \
3421 | x403 | x505 | x801 | x821 | x823 | x860)
3422 target_cpu_default2="\"$with_cpu\""
3426 echo "--with-cpu must be passed a value" 1>&2
3431 if test x$pass2done = xyes
3433 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3440 case ".$with_cpu" in
3442 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3444 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3445 target_cpu_default2="TARGET_CPU_$with_cpu"
3448 if test x$pass2done = xyes
3450 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3458 if test "$target_cpu_default2" != ""
3460 if test "$target_cpu_default" != ""
3462 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3464 target_cpu_default=$target_cpu_default2
3468 # No need for collect2 if we have the GNU linker.
3469 # Actually, there is now; GNU ld doesn't handle the EH info or
3470 # collecting for shared libraries.
3477 # Save data on machine being used to compile GCC in build_xm_file.
3478 # Save data on host machine in vars host_xm_file and host_xmake_file.
3479 if test x$pass1done = x
3481 if test x"$xm_file" = x
3482 then build_xm_file=$cpu_type/xm-$cpu_type.h
3483 else build_xm_file=$xm_file
3485 build_xm_defines=$xm_defines
3486 build_install_headers_dir=$install_headers_dir
3487 build_exeext=$exeext
3490 if test x$pass2done = x
3492 if test x"$xm_file" = x
3493 then host_xm_file=$cpu_type/xm-$cpu_type.h
3494 else host_xm_file=$xm_file
3496 host_xm_defines=$xm_defines
3497 if test x"$xmake_file" = x
3498 then xmake_file=$cpu_type/x-$cpu_type
3500 host_xmake_file="$xmake_file"
3501 host_truncate_target=$truncate_target
3502 host_extra_gcc_objs=$extra_gcc_objs
3503 host_extra_objs=$extra_host_objs