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
924 xm_file=i370/xm-mvs.h # close enough
931 xm_file=i370/xm-mvs.h
933 tmake_file=i370/t-mvs
937 tm_file="i370/linux.h ${tm_file}"
938 tmake_file="t-linux i370/t-linux"
940 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
941 # extra_parts="crtbegin.o crtend.o"
945 if test x$enable_threads = xyes; then
949 i[34567]86-*-chorusos*)
950 xm_defines='USG POSIX'
951 tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h i386/chorus.h"
952 tmake_file=i386/t-i386elf
954 case x${enable_threads} in
955 xyes | xpthreads | xposix)
961 xm_defines='USG POSIX'
962 tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h"
963 tmake_file=i386/t-i386elf
966 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
969 tm_file=i386/aix386.h
970 extra_parts="crtbegin.o crtend.o"
971 tmake_file=i386/t-crtstuff
973 tm_file=i386/aix386ng.h
977 xmake_file=i386/x-aix
979 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
980 xm_defines="USG POSIX SMALL_ARG_MAX"
981 xmake_file=i386/x-ncr3000
982 if test x$stabs = xyes -a x$gas = xyes
984 tm_file=i386/sysv4gdb.h
988 extra_parts="crtbegin.o crtend.o"
989 tmake_file=i386/t-crtpic
993 xm_file=i386/xm-next.h
994 tmake_file=i386/t-next
995 xmake_file=i386/x-next
996 extra_objs=nextstep.o
997 extra_parts="crtbegin.o crtend.o"
998 if test x$enable_threads = xyes; then
1002 i[34567]86-*-netware) # Intel 80386's running netware
1003 tm_file=i386/netware.h
1004 tmake_file=i386/t-netware
1006 i[34567]86-sequent-bsd*) # 80386 from Sequent
1008 if test x$gas = xyes
1010 tm_file=i386/seq-gas.h
1012 tm_file=i386/sequent.h
1015 i[34567]86-sequent-ptx1*)
1017 xmake_file=i386/x-sysv3
1018 tm_file=i386/seq-sysv3.h
1019 tmake_file=i386/t-crtstuff
1020 extra_parts="crtbegin.o crtend.o"
1021 install_headers_dir=install-headers-cpio
1023 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1025 xmake_file=i386/x-sysv3
1026 tm_file=i386/seq2-sysv3.h
1027 tmake_file=i386/t-crtstuff
1028 extra_parts="crtbegin.o crtend.o"
1029 install_headers_dir=install-headers-cpio
1031 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1032 if test x$gas = xyes
1034 tm_file="${tm_file} usegas.h"
1036 xm_defines="USG POSIX SMALL_ARG_MAX"
1038 tm_file=i386/ptx4-i.h
1040 extra_parts="crtbegin.o crtend.o"
1041 install_headers_dir=install-headers-cpio
1043 i386-sun-sunos*) # Sun i386 roadrunner
1048 i[34567]86-wrs-vxworks*)
1049 tm_file=i386/vxi386.h
1050 tmake_file=i386/t-i386bare
1051 thread_file='vxworks'
1054 tm_file=i386/i386-aout.h
1055 tmake_file=i386/t-i386bare
1057 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1059 xm_file=i386/xm-beos.h
1060 tmake_file='i386/t-beos i386/t-crtpic'
1061 tm_file=i386/beos-elf.h
1062 xmake_file=i386/x-beos
1063 extra_parts='crtbegin.o crtend.o'
1065 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1066 tm_file=i386/bsd386.h
1067 # tmake_file=t-libc-ok
1070 tm_file=i386/386bsd.h
1071 # tmake_file=t-libc-ok
1072 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1075 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1076 tm_file="i386/freebsd-aout.h i386/perform.h"
1077 tmake_file=t-freebsd
1079 i[34567]86-*-freebsd*)
1080 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/i386afe.h i386/freebsd.h i386/perform.h"
1081 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1082 tmake_file=t-freebsd
1086 case x${enable_threads} in
1087 xyes | xpthreads | xposix)
1089 tmake_file="${tmake_file} t-freebsd-thread"
1093 i[34567]86-*-netbsd*)
1094 tm_file=i386/netbsd.h
1098 i[34567]86-*-openbsd*)
1099 # we need collect2 until our bug is fixed...
1103 tm_file=i386/i386-coff.h
1104 tmake_file=i386/t-i386bare
1106 i[34567]86-*-isc*) # 80386 running ISC system
1107 xm_file="${xm_file} i386/xm-isc.h"
1110 i[34567]86-*-isc[34]*)
1111 xmake_file=i386/x-isc3
1114 xmake_file=i386/x-isc
1117 if test x$gas = xyes -a x$stabs = xyes
1119 tm_file=i386/iscdbx.h
1120 tmake_file=i386/t-svr3dbx
1121 extra_parts="svr3.ifile svr3z.ifile"
1123 tm_file=i386/isccoff.h
1124 tmake_file=i386/t-crtstuff
1125 extra_parts="crtbegin.o crtend.o"
1127 tmake_file="$tmake_file i386/t-i386bare"
1128 install_headers_dir=install-headers-cpio
1130 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1131 # with a.out format using
1133 tmake_file="t-linux-aout i386/t-crtstuff"
1134 tm_file=i386/linux-oldld.h
1138 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1140 tmake_file="t-linux-aout i386/t-crtstuff"
1141 tm_file=i386/linux-aout.h
1145 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1146 # with ELF format using the
1147 # GNU/Linux C library 5
1149 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h"
1150 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1151 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1154 if test x$enable_threads = xyes; then
1155 thread_file='single'
1158 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1159 # with ELF format using glibc 2
1160 # aka GNU/Linux C library 6
1162 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h"
1163 tmake_file="t-linux i386/t-crtstuff"
1164 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1167 if test x$enable_threads = xyes; then
1174 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1175 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1178 i[34567]86-pc-msdosdjgpp*)
1179 xm_file=i386/xm-djgpp.h
1180 tm_file=i386/djgpp.h
1181 tmake_file=i386/t-djgpp
1182 xmake_file=i386/x-djgpp
1187 case $host in *pc-msdosdjgpp*)
1192 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1193 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h i386/moss.h"
1194 tmake_file=t-libc-ok
1198 i[34567]86-*-lynxos*)
1199 if test x$gas = xyes
1203 tm_file=i386/lynx-ng.h
1205 tmake_file=i386/t-i386bare
1210 # tmake_file=t-libc-ok
1213 i[34567]86-*-osfrose*) # 386 using OSF/rose
1214 if test x$elf = xyes
1216 tm_file=i386/osfelf.h
1219 tm_file=i386/osfrose.h
1222 xmake_file=i386/x-osfrose
1223 tmake_file=i386/t-osf
1224 extra_objs=halfpic.o
1226 i[34567]86-go32-rtems*)
1228 xm_file=i386/xm-go32.h
1229 tm_file=i386/go32-rtems.h
1231 if test x$enable_threads = xyes; then
1235 i[34567]86-*-rtemscoff*)
1237 tm_file=i386/rtems.h
1238 tmake_file="i386/t-i386bare t-rtems"
1239 if test x$enable_threads = xyes; then
1243 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1245 tm_file=i386/rtemself.h
1246 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1247 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1248 if test x$enable_threads = xyes; then
1252 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1253 xm_file="${xm_file} i386/xm-sco5.h"
1255 xmake_file=i386/x-sco5
1256 install_headers_dir=install-headers-cpio
1258 if test x$gas = xyes
1260 tm_file="usegas.h ${tm_file}"
1261 tmake_file=i386/t-sco5gas
1263 tmake_file=i386/t-sco5
1265 tmake_file="$tmake_file i386/t-i386bare"
1266 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1268 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1269 xm_file="${xm_file} i386/xm-sco.h"
1270 xm_defines="USG BROKEN_LDEXP SMALL_ARG_MAX"
1271 xmake_file=i386/x-sco4
1272 install_headers_dir=install-headers-cpio
1273 if test x$stabs = xyes
1275 tm_file=i386/sco4dbx.h
1276 tmake_file=i386/t-svr3dbx
1277 extra_parts="svr3.ifile svr3z.rfile"
1280 tmake_file=i386/t-crtstuff
1281 extra_parts="crtbegin.o crtend.o"
1283 tmake_file="$tmake_file i386/t-i386bare"
1284 # The default EAFS filesystem supports long file names.
1285 # Truncating the target makes $host != $target which
1286 # makes gcc think it is doing a cross-compile.
1287 # truncate_target=yes
1289 i[34567]86-*-sco*) # 80386 running SCO system
1290 xm_file=i386/xm-sco.h
1291 xmake_file=i386/x-sco
1292 install_headers_dir=install-headers-cpio
1293 if test x$stabs = xyes
1295 tm_file=i386/scodbx.h
1296 tmake_file=i386/t-svr3dbx
1297 extra_parts="svr3.ifile svr3z.rfile"
1300 extra_parts="crtbegin.o crtend.o"
1301 tmake_file=i386/t-crtstuff
1303 tmake_file="$tmake_file i386/t-i386bare"
1306 i[34567]86-*-solaris2*)
1307 xm_defines="USG POSIX SMALL_ARG_MAX"
1309 if test x$gas = xyes; then
1310 # Only needed if gas does not support -s
1311 tm_file="i386/sol2gas.h ${tm_file}"
1313 tmake_file="i386/t-i386bare i386/t-sol2"
1314 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1316 if test x${enable_threads} = x; then
1317 enable_threads=$have_pthread_h
1318 if test x${enable_threads} = x; then
1319 enable_threads=$have_thread_h
1322 if test x${enable_threads} = xyes; then
1323 if test x${have_pthread_h} = xyes; then
1326 thread_file='solaris'
1330 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1331 xm_defines="USG POSIX"
1332 tm_file=i386/sysv5.h
1333 if test x$stabs = xyes
1335 tm_file="${tm_file} dbx.h"
1337 tmake_file="i386/t-i386bare i386/t-crtpic"
1339 extra_parts="crtbegin.o crtend.o"
1340 if test x$enable_threads = xyes; then
1344 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1345 xm_defines="USG POSIX SMALL_ARG_MAX"
1346 tm_file=i386/sysv4.h
1347 if test x$stabs = xyes
1349 tm_file="${tm_file} dbx.h"
1351 tmake_file="i386/t-i386bare i386/t-crtpic"
1353 extra_parts="crtbegin.o crtend.o"
1355 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1356 xm_defines="USG POSIX"
1358 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1360 extra_parts="crtbegin.o crtend.o"
1361 install_headers_dir=install-headers-cpio
1363 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1365 xm_file="${xm_file} i386/xm-osf1elf.h"
1366 xm_defines='USG POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1367 if test x$stabs = xyes
1369 tm_file=i386/osf1elfgdb.h
1371 tm_file=i386/osf1elf.h
1373 tmake_file=i386/t-osf1elf
1374 xmake_file=i386/x-osf1elf
1375 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1377 i[34567]86-*-sysv*) # Intel 80386's running system V
1379 xmake_file=i386/x-sysv3
1380 if test x$gas = xyes
1382 if test x$stabs = xyes
1384 tm_file=i386/svr3dbx.h
1385 tmake_file=i386/t-svr3dbx
1386 extra_parts="svr3.ifile svr3z.rfile"
1388 tm_file=i386/svr3gas.h
1389 extra_parts="crtbegin.o crtend.o"
1390 tmake_file=i386/t-crtstuff
1393 tm_file=i386/sysv3.h
1394 extra_parts="crtbegin.o crtend.o"
1395 tmake_file=i386/t-crtstuff
1397 tmake_file="$tmake_file i386/t-crtpic"
1399 i386-*-vsta) # Intel 80386's running VSTa kernel
1400 xm_file="${xm_file} i386/xm-vsta.h"
1402 tmake_file=i386/t-vsta
1403 xmake_file=i386/x-vsta
1407 xm_file="${xm_file} i386/xm-cygwin.h"
1409 tmake_file=i386/t-cygwin
1410 tm_file=i386/win32.h
1411 xmake_file=i386/x-cygwin
1413 if test x$enable_threads = xyes; then
1418 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1420 xm_file="${xm_file} i386/xm-cygwin.h"
1422 tmake_file=i386/t-cygwin
1423 tm_file=i386/cygwin.h
1424 xmake_file=i386/x-cygwin
1426 if test x$enable_threads = xyes; then
1431 i[34567]86-*-mingw32*)
1432 tm_file=i386/mingw32.h
1435 xm_file="${xm_file} i386/xm-mingw32.h"
1436 tmake_file="i386/t-cygwin i386/t-mingw32"
1438 xmake_file=i386/x-cygwin
1439 if test x$enable_threads = xyes; then
1446 *minwg32crt* | *mingw32*)
1447 tm_file="${tm_file} i386/crtdll.h"
1453 tmake_file="i386/t-cygwin i386/t-uwin"
1455 xmake_file=i386/x-cygwin
1456 if test x$enable_threads = xyes; then
1461 i[34567]86-*-interix*)
1462 tm_file="i386/i386-interix.h interix.h"
1463 xm_file="i386/xm-i386-interix.h xm-interix.h"
1465 tmake_file="i386/t-interix"
1466 extra_objs=interix.o
1467 xmake_file=x-interix
1468 if test x$enable_threads = xyes ; then
1471 if test x$stabs = xyes ; then
1472 tm_file="${tm_file} dbxcoff.h"
1475 i[34567]86-dg-dgux*)
1476 xm_defines="USG POSIX"
1477 out_file=i386/dgux.c
1479 tmake_file=i386/t-dgux
1480 xmake_file=i386/x-dgux
1481 install_headers_dir=install-headers-cpio
1483 i860-alliant-*) # Alliant FX/2800
1484 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1485 xm_file="${xm_file}"
1486 tmake_file=i860/t-fx2800
1487 extra_parts="crtbegin.o crtend.o"
1490 tm_file="${tm_file} i860/bsd.h"
1491 if test x$gas = xyes
1493 tm_file="${tm_file} i860/bsd-gas.h"
1498 tm_file="${tm_file} i860/mach.h"
1499 tmake_file=t-libc-ok
1501 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1502 tm_file="${tm_file} svr3.h i860/paragon.h"
1506 tm_file="${tm_file} svr3.h i860/sysv3.h"
1508 extra_parts="crtbegin.o crtend.o"
1511 tm_file="${tm_file} svr4.h i860/sysv4.h"
1513 xmake_file=i860/x-sysv4
1515 extra_parts="crtbegin.o crtend.o"
1517 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1518 tm_file="${tm_file} i960/vx960.h"
1519 tmake_file=i960/t-vxworks960
1521 thread_file='vxworks'
1522 c_target_objs="i960-c.o"
1523 cxx_target_objs="i960-c.o"
1525 i960-wrs-vxworks5* | i960-wrs-vxworks)
1526 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1527 tmake_file=i960/t-vxworks960
1529 thread_file='vxworks'
1530 c_target_objs="i960-c.o"
1531 cxx_target_objs="i960-c.o"
1534 tm_file="${tm_file} i960/vx960.h"
1535 tmake_file=i960/t-vxworks960
1537 thread_file='vxworks'
1538 c_target_objs="i960-c.o"
1539 cxx_target_objs="i960-c.o"
1542 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1543 tmake_file=i960/t-960bare
1545 c_target_objs="i960-c.o"
1546 cxx_target_objs="i960-c.o"
1549 tmake_file="i960/t-960bare t-rtems"
1550 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1552 if test x$enable_threads = xyes; then
1555 c_target_objs="i960-c.o"
1556 cxx_target_objs="i960-c.o"
1558 i960-*-*) # Default i960 environment.
1560 c_target_objs="i960-c.o"
1561 cxx_target_objs="i960-c.o"
1565 tmake_file="ia64/t-ia64"
1566 target_cpu_default="0"
1567 if test x$gas = xyes
1569 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1571 if test x$gnu_ld = xyes
1573 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1578 tm_file=ia64/linux.h
1579 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
1580 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1581 if test x$enable_threads = xyes; then
1587 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h"
1588 tmake_file="ia64/t-ia64 ia64/t-hpux"
1589 target_cpu_default="MASK_GNU_AS"
1590 if test x$enable_threads = xyes; then
1596 extra_parts="crtinit.o crtfini.o"
1598 # m68hc11 and m68hc12 share the same machine description.
1599 m68hc11-*-*|m6811-*-*)
1600 tm_file="m68hc11/m68hc11.h"
1601 xm_file="m68hc11/xm-m68hc11.h"
1602 tm_p_file="m68hc11/m68hc11-protos.h"
1603 md_file="m68hc11/m68hc11.md"
1604 out_file="m68hc11/m68hc11.c"
1605 tmake_file="m68hc11/t-m68hc11-gas"
1607 m68hc12-*-*|m6812-*-*)
1608 tm_file="m68hc11/m68hc12.h"
1609 tm_p_file="m68hc11/m68hc11-protos.h"
1610 xm_file="m68hc11/xm-m68hc11.h"
1611 md_file="m68hc11/m68hc11.md"
1612 out_file="m68hc11/m68hc11.c"
1613 tmake_file="m68hc11/t-m68hc11-gas"
1615 m68000-convergent-sysv*)
1619 extra_headers=math-68881.h
1621 m68000-hp-bsd*) # HP 9000/200 running BSD
1622 tm_file=m68k/hp2bsd.h
1623 xmake_file=m68k/x-hp2bsd
1625 extra_headers=math-68881.h
1627 m68000-hp-hpux*) # HP 9000 series 300
1629 if test x$gas = xyes
1631 xmake_file=m68k/x-hp320g
1632 tm_file=m68k/hp310g.h
1634 xmake_file=m68k/x-hp320
1635 tm_file=m68k/hp310.h
1637 install_headers_dir=install-headers-cpio
1639 extra_headers=math-68881.h
1644 extra_headers=math-68881.h
1647 tm_file=m68k/sun2o4.h
1649 extra_headers=math-68881.h
1653 if test x$gas = xyes
1660 extra_headers=math-68881.h
1662 m68k-apple-aux*) # Apple Macintosh running A/UX
1663 xm_defines="USG AUX"
1664 tmake_file=m68k/t-aux
1665 install_headers_dir=install-headers-cpio
1666 extra_headers=math-68881.h
1667 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1669 if test "$gnu_ld" = yes
1671 tm_file="${tm_file} m68k/auxgld.h"
1673 tm_file="${tm_file} m68k/auxld.h"
1675 if test "$gas" = yes
1677 tm_file="${tm_file} m68k/auxgas.h"
1679 tm_file="${tm_file} m68k/auxas.h"
1681 tm_file="${tm_file} m68k/a-ux.h"
1685 tm_file=m68k/apollo68.h
1686 xmake_file=m68k/x-apollo68
1688 extra_headers=math-68881.h
1691 m68k-altos-sysv*) # Altos 3068
1692 if test x$gas = xyes
1694 tm_file=m68k/altos3068.h
1697 echo "The Altos is supported only with the GNU assembler" 1>&2
1700 extra_headers=math-68881.h
1702 m68k-bull-sysv*) # Bull DPX/2
1703 if test x$gas = xyes
1705 if test x$stabs = xyes
1707 tm_file=m68k/dpx2cdbx.h
1709 tm_file=m68k/dpx2g.h
1715 xmake_file=m68k/x-dpx2
1717 extra_headers=math-68881.h
1719 m68k-atari-sysv4*) # Atari variant of V.4.
1720 tm_file=m68k/atari.h
1723 extra_parts="crtbegin.o crtend.o"
1724 extra_headers=math-68881.h
1727 m68k-motorola-sysv*)
1728 tm_file=m68k/mot3300.h
1730 if test x$gas = xyes
1732 xmake_file=m68k/x-mot3300-gas
1733 if test x$gnu_ld = xyes
1735 tmake_file=m68k/t-mot3300-gald
1737 tmake_file=m68k/t-mot3300-gas
1741 xmake_file=m68k/x-mot3300
1742 if test x$gnu_ld = xyes
1744 tmake_file=m68k/t-mot3300-gld
1746 tmake_file=m68k/t-mot3300
1750 gdb_needs_out_file_path=yes
1751 extra_parts="crt0.o mcrt0.o"
1752 extra_headers=math-68881.h
1755 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1756 tm_file=m68k/tower-as.h
1758 xmake_file=m68k/x-tower
1759 extra_parts="crtbegin.o crtend.o"
1760 extra_headers=math-68881.h
1763 tm_file=m68k/plexus.h
1764 xm_file="m68k/xm-plexus.h ${xm_file}"
1767 extra_headers=math-68881.h
1772 extra_headers=math-68881.h
1775 xm_defines="USG unos"
1776 xmake_file=m68k/x-crds
1779 extra_headers=math-68881.h
1781 m68k-cbm-sysv4*) # Commodore variant of V.4.
1784 xmake_file=m68k/x-amix
1786 extra_parts="crtbegin.o crtend.o"
1787 extra_headers=math-68881.h
1791 tm_file=m68k/ccur-GAS.h
1792 xmake_file=m68k/x-ccur
1793 extra_headers=math-68881.h
1797 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1798 tm_file=m68k/hp3bsd44.h
1800 extra_headers=math-68881.h
1803 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1804 tm_file=m68k/hp3bsd.h
1806 extra_headers=math-68881.h
1810 if test x$with_fp = xno
1812 tm_file=m68k/isi-nfp.h
1818 extra_headers=math-68881.h
1820 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1822 if test x$gas = xyes
1824 xmake_file=m68k/x-hp320g
1825 tm_file=m68k/hp320g.h
1827 xmake_file=m68k/x-hp320
1828 tm_file=m68k/hpux7.h
1830 install_headers_dir=install-headers-cpio
1832 extra_headers=math-68881.h
1835 m68k-hp-hpux*) # HP 9000 series 300
1837 if test x$gas = xyes
1839 xmake_file=m68k/x-hp320g
1840 tm_file=m68k/hp320g.h
1842 xmake_file=m68k/x-hp320
1843 tm_file=m68k/hp320.h
1845 install_headers_dir=install-headers-cpio
1847 extra_headers=math-68881.h
1851 tm_file=m68k/sun3mach.h
1853 extra_headers=math-68881.h
1857 if test x$gas = xyes
1859 tm_file=m68k/news3gas.h
1861 tm_file=m68k/news3.h
1864 extra_headers=math-68881.h
1867 m68k-sony-bsd* | m68k-sony-newsos*)
1868 if test x$gas = xyes
1870 tm_file=m68k/newsgas.h
1875 extra_headers=math-68881.h
1878 m68k-next-nextstep2*)
1879 tm_file=m68k/next21.h
1880 xm_file="m68k/xm-next.h ${xm_file}"
1881 tmake_file=m68k/t-next
1882 xmake_file=m68k/x-next
1883 extra_objs=nextstep.o
1884 extra_headers=math-68881.h
1888 m68k-next-nextstep[34]*)
1890 xm_file="m68k/xm-next.h ${xm_file}"
1891 tmake_file=m68k/t-next
1892 xmake_file=m68k/x-next
1893 extra_objs=nextstep.o
1894 extra_parts="crtbegin.o crtend.o"
1895 extra_headers=math-68881.h
1897 if test x$enable_threads = xyes; then
1902 if test x$with_fp = xno
1904 tm_file=m68k/sun3n3.h
1906 tm_file=m68k/sun3o3.h
1910 extra_headers=math-68881.h
1912 m68k-sun-sunos*) # For SunOS 4 (the default).
1913 if test x$with_fp = xno
1915 tm_file=m68k/sun3n.h
1921 extra_headers=math-68881.h
1924 tm_file=m68k/vxm68k.h
1925 tmake_file=m68k/t-vxworks68
1926 extra_headers=math-68881.h
1927 thread_file='vxworks'
1931 tmake_file=m68k/t-m68kbare
1932 tm_file="m68k/m68k-aout.h libgloss.h"
1933 extra_headers=math-68881.h
1937 tmake_file=m68k/t-m68kbare
1938 tm_file="m68k/m68k-coff.h dbx.h"
1939 extra_headers=math-68881.h
1942 m68020-*-elf* | m68k-*-elf*)
1943 tm_file="m68k/m68020-elf.h"
1945 tmake_file=m68k/t-m68kelf
1946 header_files=math-68881.h
1949 if test x$gas = xyes
1953 tm_file=m68k/lynx-ng.h
1956 tmake_file=m68k/t-lynx
1957 extra_headers=math-68881.h
1961 tm_file=m68k/netbsd.h
1968 # we need collect2 until our bug is fixed...
1971 m68k-*-sysv3*) # Motorola m68k's running system V.3
1973 extra_parts="crtbegin.o crtend.o"
1974 extra_headers=math-68881.h
1977 m68k-*-sysv4*) # Motorola m68k's running system V.4
1978 tm_file=m68k/m68kv4.h
1981 extra_parts="crtbegin.o crtend.o"
1982 extra_headers=math-68881.h
1985 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1988 tm_file=m68k/linux-aout.h
1989 tmake_file="t-linux-aout m68k/t-linux-aout"
1990 extra_headers=math-68881.h
1994 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1995 # with ELF format using the
1996 # GNU/Linux C library 5
1998 tm_file=m68k/linux.h
1999 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2000 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2001 extra_headers=math-68881.h
2005 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2006 # with ELF format using glibc 2
2007 # aka the GNU/Linux C library 6.
2009 tm_file=m68k/linux.h
2010 tmake_file="t-linux m68k/t-linux"
2011 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2012 extra_headers=math-68881.h
2015 if test x$enable_threads = xyes; then
2020 tmake_file=m68k/t-m68kbare
2021 tm_file=m68k/m68k-psos.h
2022 extra_headers=math-68881.h
2026 tmake_file="m68k/t-m68kbare t-rtems"
2027 tm_file=m68k/rtems.h
2028 extra_headers=math-68881.h
2030 if test x$enable_threads = xyes; then
2034 m68k-*-rtemself*|m68k-*-rtems*)
2035 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2036 tm_file=m68k/rtemself.h
2037 extra_headers=math-68881.h
2039 if test x$enable_threads = xyes; then
2047 tm_file=m88k/dguxbcs.h
2048 tmake_file=m88k/t-dguxbcs
2052 tmake_file=m88k/t-dgux
2055 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2056 xmake_file=m88k/x-dgux
2057 if test x$gas = xyes
2059 tmake_file=m88k/t-dgux-gas
2062 m88k-dolphin-sysv3*)
2064 tm_file=m88k/dolph.h
2065 extra_parts="crtbegin.o crtend.o"
2066 xmake_file=m88k/x-dolph
2067 if test x$gas = xyes
2069 tmake_file=m88k/t-m88k-gas
2072 m88k-tektronix-sysv3)
2074 tm_file=m88k/tekXD88.h
2075 extra_parts="crtbegin.o crtend.o"
2076 xmake_file=m88k/x-tekXD88
2077 if test x$gas = xyes
2079 tmake_file=m88k/t-m88k-gas
2084 tm_file=m88k/m88k-aout.h
2088 tm_file=m88k/m88k-coff.h
2089 tmake_file=m88k/t-bug
2093 extra_parts="crtbegin.o crtend.o"
2094 if test x$gas = xyes
2096 tmake_file=m88k/t-luna-gas
2098 tmake_file=m88k/t-luna
2102 tmake_file="${tmake_file} m88k/t-luna-gas"
2103 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2107 tm_file=m88k/sysv3.h
2108 extra_parts="crtbegin.o crtend.o"
2109 if test x$gas = xyes
2111 tmake_file=m88k/t-m88k-gas
2116 tm_file=m88k/sysv4.h
2117 extra_parts="crtbegin.o crtend.o"
2118 xmake_file=m88k/x-sysv4
2119 tmake_file=m88k/t-sysv4
2122 tm_file=mcore/mcore-elf.h
2123 tmake_file=mcore/t-mcore
2126 tm_file=mcore/mcore-pe.h
2127 tmake_file=mcore/t-mcore-pe
2129 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2130 if test "x$gnu_ld" = xyes
2132 tm_file="mips/iris6.h mips/iris6gld.h"
2134 tm_file=mips/iris6.h
2136 tmake_file=mips/t-iris6
2138 xmake_file=mips/x-iris6
2139 # if test x$enable_threads = xyes; then
2140 # thread_file='irix'
2144 tm_file="mips/elf.h mips/vxworks.h"
2145 tmake_file=mips/t-ecoff
2148 extra_parts="crtbegin.o crtend.o"
2149 thread_file='vxworks'
2151 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2152 tm_file="mips/iris6.h mips/cross64.h"
2154 xm_file=mips/xm-iris5.h
2155 xmake_file=mips/x-iris
2156 tmake_file=mips/t-cross64
2157 # See comment in mips/iris[56].h files.
2159 # if test x$enable_threads = xyes; then
2160 # thread_file='irix'
2164 if test x$gas = xyes
2166 if test x$stabs = xyes
2168 tm_file=mips/iris5gdb.h
2170 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2173 tm_file=mips/sni-svr4.h
2176 xmake_file=mips/x-sni-svr4
2177 tmake_file=mips/t-mips-gas
2178 if test x$gnu_ld != xyes
2183 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2184 if test x$gas = xyes
2186 tm_file="mips/iris5.h mips/iris5gas.h"
2187 if test x$stabs = xyes
2189 tm_file="${tm_file} dbx.h"
2192 tm_file=mips/iris5.h
2195 xm_file=mips/xm-iris5.h
2196 xmake_file=mips/x-iris
2197 # mips-tfile doesn't work yet
2198 tmake_file=mips/t-mips-gas
2199 # See comment in mips/iris5.h file.
2201 # if test x$enable_threads = xyes; then
2202 # thread_file='irix'
2205 mips-sgi-irix4loser*) # Mostly like a MIPS.
2206 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2207 if test x$stabs = xyes; then
2208 tm_file="${tm_file} dbx.h"
2211 xmake_file=mips/x-iris
2212 if test x$gas = xyes
2214 tmake_file=mips/t-mips-gas
2216 extra_passes="mips-tfile mips-tdump"
2218 if test x$gnu_ld != xyes
2222 # if test x$enable_threads = xyes; then
2223 # thread_file='irix'
2226 mips-sgi-irix4*) # Mostly like a MIPS.
2227 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2228 if test x$stabs = xyes; then
2229 tm_file="${tm_file} dbx.h"
2232 xmake_file=mips/x-iris
2233 if test x$gas = xyes
2235 tmake_file=mips/t-mips-gas
2237 extra_passes="mips-tfile mips-tdump"
2239 if test x$gnu_ld != xyes
2243 # if test x$enable_threads = xyes; then
2244 # thread_file='irix'
2247 mips-sgi-*) # Mostly like a MIPS.
2248 tm_file="mips/iris3.h ${tm_file}"
2249 if test x$stabs = xyes; then
2250 tm_file="${tm_file} dbx.h"
2253 xmake_file=mips/x-iris3
2254 if test x$gas = xyes
2256 tmake_file=mips/t-mips-gas
2258 extra_passes="mips-tfile mips-tdump"
2260 if test x$gnu_ld != xyes
2265 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2266 tm_file="mips/osfrose.h ${tm_file}"
2267 xmake_file=mips/x-osfrose
2268 tmake_file=mips/t-osfrose
2269 extra_objs=halfpic.o
2272 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2273 tm_file=mips/dec-osf1.h
2274 if test x$stabs = xyes; then
2275 tm_file="${tm_file} dbx.h"
2277 xmake_file=mips/x-dec-osf1
2278 if test x$gas = xyes
2280 tmake_file=mips/t-mips-gas
2282 tmake_file=mips/t-ultrix
2283 extra_passes="mips-tfile mips-tdump"
2285 if test x$gnu_ld != xyes
2290 mips-dec-bsd*) # Decstation running 4.4 BSD
2291 tm_file=mips/dec-bsd.h
2292 if test x$gas = xyes
2294 tmake_file=mips/t-mips-gas
2296 tmake_file=mips/t-ultrix
2297 extra_passes="mips-tfile mips-tdump"
2299 if test x$gnu_ld != xyes
2304 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2305 tm_file=mips/netbsd.h
2306 # On NetBSD, the headers are already okay, except for math.h.
2309 mips*-*-linux*) # Linux MIPS, either endian.
2312 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2313 *) tm_file="mips/elf.h mips/linux.h" ;;
2316 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2319 if test x$enable_threads = xyes; then
2323 mips*el-*-openbsd*) # mips little endian
2324 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2326 mips*-*-openbsd*) # mips big endian
2327 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2328 tm_file="mips/openbsd-be.h ${tm_file}"
2330 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2331 tm_file="mips/news4.h ${tm_file}"
2332 if test x$stabs = xyes; then
2333 tm_file="${tm_file} dbx.h"
2335 if test x$gas = xyes
2337 tmake_file=mips/t-mips-gas
2339 extra_passes="mips-tfile mips-tdump"
2341 if test x$gnu_ld != xyes
2345 xmake_file=mips/x-sony
2347 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2348 # That is based on svr4.
2349 # t-svr4 is not right because this system doesn't use ELF.
2350 tm_file="mips/news5.h ${tm_file}"
2351 if test x$stabs = xyes; then
2352 tm_file="${tm_file} dbx.h"
2355 if test x$gas = xyes
2357 tmake_file=mips/t-mips-gas
2359 extra_passes="mips-tfile mips-tdump"
2361 if test x$gnu_ld != xyes
2366 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2367 tm_file="mips/svr4-5.h mips/svr4-t.h"
2368 if test x$stabs = xyes; then
2369 tm_file="${tm_file} dbx.h"
2372 xmake_file=mips/x-sysv
2373 if test x$gas = xyes
2375 tmake_file=mips/t-mips-gas
2376 extra_parts="crtbegin.o crtend.o"
2378 tmake_file=mips/t-mips
2379 extra_passes="mips-tfile mips-tdump"
2381 if test x$gnu_ld != xyes
2386 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2387 tm_file="mips/ultrix.h ${tm_file}"
2388 if test x$stabs = xyes; then
2389 tm_file="${tm_file} dbx.h"
2391 xmake_file=mips/x-ultrix
2392 if test x$gas = xyes
2394 tmake_file=mips/t-mips-gas
2396 tmake_file=mips/t-ultrix
2397 extra_passes="mips-tfile mips-tdump"
2399 if test x$gnu_ld != xyes
2404 mips-*-riscos[56789]bsd*)
2405 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2406 if test x$stabs = xyes; then
2407 tm_file="${tm_file} dbx.h"
2409 if test x$gas = xyes
2411 tmake_file=mips/t-bsd-gas
2413 tmake_file=mips/t-bsd
2414 extra_passes="mips-tfile mips-tdump"
2416 if test x$gnu_ld != xyes
2421 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2422 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2423 if test x$stabs = xyes; then
2424 tm_file="${tm_file} dbx.h"
2426 if test x$gas = xyes
2428 tmake_file=mips/t-bsd-gas
2430 tmake_file=mips/t-bsd
2431 extra_passes="mips-tfile mips-tdump"
2433 if test x$gnu_ld != xyes
2438 mips-*-riscos[56789]sysv4*)
2439 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2440 if test x$stabs = xyes; then
2441 tm_file="${tm_file} dbx.h"
2443 xmake_file=mips/x-sysv
2444 if test x$gas = xyes
2446 tmake_file=mips/t-svr4-gas
2448 tmake_file=mips/t-svr4
2449 extra_passes="mips-tfile mips-tdump"
2451 if test x$gnu_ld != xyes
2456 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2457 tm_file="mips/svr4-4.h ${tm_file}"
2458 if test x$stabs = xyes; then
2459 tm_file="${tm_file} dbx.h"
2462 xmake_file=mips/x-sysv
2463 if test x$gas = xyes
2465 tmake_file=mips/t-svr4-gas
2467 tmake_file=mips/t-svr4
2468 extra_passes="mips-tfile mips-tdump"
2470 if test x$gnu_ld != xyes
2475 mips-*-riscos[56789]sysv*)
2476 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2477 if test x$stabs = xyes; then
2478 tm_file="${tm_file} dbx.h"
2481 xmake_file=mips/x-sysv
2482 if test x$gas = xyes
2484 tmake_file=mips/t-svr3-gas
2486 tmake_file=mips/t-svr3
2487 extra_passes="mips-tfile mips-tdump"
2489 if test x$gnu_ld != xyes
2494 mips-*-sysv* | mips-*-riscos*sysv*)
2495 tm_file="mips/svr3-4.h ${tm_file}"
2496 if test x$stabs = xyes; then
2497 tm_file="${tm_file} dbx.h"
2500 xmake_file=mips/x-sysv
2501 if test x$gas = xyes
2503 tmake_file=mips/t-svr3-gas
2505 tmake_file=mips/t-svr3
2506 extra_passes="mips-tfile mips-tdump"
2508 if test x$gnu_ld != xyes
2513 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2514 tm_file=mips/mips-5.h
2515 if test x$stabs = xyes; then
2516 tm_file="${tm_file} dbx.h"
2518 if test x$gas = xyes
2520 tmake_file=mips/t-mips-gas
2522 extra_passes="mips-tfile mips-tdump"
2524 if test x$gnu_ld != xyes
2532 tm_file=mips/ecoffl.h
2533 if test x$stabs = xyes; then
2534 tm_file="${tm_file} dbx.h"
2536 tmake_file=mips/t-ecoff
2539 tm_file="gofast.h mips/ecoff.h"
2540 if test x$stabs = xyes; then
2541 tm_file="${tm_file} dbx.h"
2543 tmake_file=mips/t-ecoff
2546 tm_file="mips/elfl.h"
2547 tmake_file=mips/t-elf
2550 tm_file="mips/elf.h"
2551 tmake_file=mips/t-elf
2554 tm_file="mips/elfl64.h"
2555 tmake_file=mips/t-elf
2557 mips64orionel-*-elf*)
2558 tm_file="mips/elforion.h mips/elfl64.h"
2559 tmake_file=mips/t-elf
2562 tm_file="mips/elf64.h"
2563 tmake_file=mips/t-elf
2566 tm_file="mips/elforion.h mips/elf64.h"
2567 tmake_file=mips/t-elf
2569 mips64orion-*-rtems*)
2570 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2571 tmake_file="mips/t-elf t-rtems"
2572 if test x$enable_threads = xyes; then
2577 tm_file="mips/elf.h mips/rtems.h"
2578 tmake_file="mips/t-elf t-rtems"
2579 if test x$enable_threads = xyes; then
2584 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2585 tmake_file=mips/t-r3900
2588 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2589 tmake_file=mips/t-r3900
2591 mips-*-*) # Default MIPS RISC-OS 4.0.
2592 if test x$stabs = xyes; then
2593 tm_file="${tm_file} dbx.h"
2595 if test x$gas = xyes
2597 tmake_file=mips/t-mips-gas
2599 extra_passes="mips-tfile mips-tdump"
2601 if test x$gnu_ld != xyes
2609 tm_file="mn10200/mn10200.h"
2610 if test x$stabs = xyes
2612 tm_file="${tm_file} dbx.h"
2618 tm_file="mn10300/mn10300.h"
2619 if test x$stabs = xyes
2621 tm_file="${tm_file} dbx.h"
2626 tm_file=ns32k/encore.h
2630 tm_file=ns32k/sequent.h
2634 tm_file=ns32k/tek6100.h
2638 tm_file=ns32k/tek6200.h
2642 tm_file=ns32k/merlin.h
2646 tm_file=ns32k/pc532-mach.h
2650 tm_file=ns32k/pc532-min.h
2651 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2656 tm_file=ns32k/netbsd.h
2657 # On NetBSD, the headers are already okay, except for math.h.
2662 tm_file="${tm_file} pdp11/2bsd.h"
2672 tm_file="svr4.h pj/linux.h ${tm_file}"
2677 tm_file="svr4.h pj/pjl.h ${tm_file}"
2684 xmake_file=romp/x-mach
2691 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2695 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2697 xm_file=rs6000/xm-beos.h
2698 tmake_file=rs6000/t-beos
2699 xmake_file=rs6000/x-beos
2702 xm_file=rs6000/xm-darwin.h
2703 xmake_file=rs6000/x-darwin
2706 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2707 xm_defines="USG POSIX"
2708 extra_headers=ppc-asm.h
2709 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2710 xmake_file=rs6000/x-sysv4
2712 powerpc-*-chorusos*)
2714 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2715 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2716 extra_headers=ppc-asm.h
2717 case x${enable_threads} in
2718 xyes | xpthreads | xposix)
2725 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2726 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2727 extra_headers=ppc-asm.h
2731 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2732 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2733 extra_headers=ppc-asm.h
2737 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2738 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2739 extra_headers=ppc-asm.h
2743 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2744 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2745 extra_headers=ppc-asm.h
2749 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2750 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2751 extra_headers=ppc-asm.h
2752 if test x$enable_threads = xyes; then
2756 powerpc-*-linux*libc1)
2757 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2758 xm_defines='USG POSIX'
2759 out_file=rs6000/rs6000.c
2760 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2762 extra_headers=ppc-asm.h
2763 if test x$enable_threads = xyes; then
2768 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2769 xm_defines="USG ${xm_defines}"
2770 out_file=rs6000/rs6000.c
2771 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2773 extra_headers=ppc-asm.h
2774 if test x$enable_threads = xyes; then
2778 powerpc-wrs-vxworks*)
2780 xm_defines="USG POSIX"
2781 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2782 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2783 extra_headers=ppc-asm.h
2784 thread_file='vxworks'
2786 powerpcle-wrs-vxworks*)
2788 xm_defines="USG POSIX"
2789 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2790 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2791 extra_headers=ppc-asm.h
2792 thread_file='vxworks'
2795 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2796 xm_defines="USG POSIX"
2797 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2798 xmake_file=rs6000/x-sysv4
2799 extra_headers=ppc-asm.h
2803 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2804 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2805 extra_headers=ppc-asm.h
2807 powerpcle-*-eabisim*)
2809 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2810 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2811 extra_headers=ppc-asm.h
2815 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2816 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2817 extra_headers=ppc-asm.h
2819 powerpcle-*-solaris2*)
2820 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2821 xm_defines="USG POSIX"
2822 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2823 xmake_file=rs6000/x-sysv4
2824 extra_headers=ppc-asm.h
2826 rs6000-ibm-aix3.[01]*)
2828 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2829 xmake_file=rs6000/x-aix31
2833 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2835 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2836 tmake_file=rs6000/t-newas
2840 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2842 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2843 tmake_file=rs6000/t-newas
2844 xmake_file=rs6000/x-aix41
2848 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2850 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2851 tmake_file=rs6000/t-aix43
2852 xmake_file=rs6000/x-aix41
2857 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2859 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2860 tmake_file=rs6000/t-aix43
2861 xmake_file=rs6000/x-aix41
2868 tm_file="${tm_file} rs6000/aix.h"
2874 tm_file="${tm_file} rs6000/aix.h"
2879 tm_file=rs6000/mach.h
2881 xmake_file=rs6000/x-mach
2885 tm_file=rs6000/lynx.h
2886 tmake_file=rs6000/t-rs6000
2887 xmake_file=rs6000/x-lynx
2891 tmake_file="sh/t-sh sh/t-elf"
2892 tm_file="sh/sh.h sh/elf.h"
2896 tmake_file="sh/t-sh sh/t-elf t-rtems"
2897 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2899 if test x$enable_threads = xyes; then
2904 tmake_file="sh/t-sh t-rtems"
2905 tm_file="sh/sh.h sh/rtems.h"
2907 if test x$enable_threads = xyes; then
2912 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2913 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2916 if test x$enable_threads = xyes; then
2928 sparc64-wrs-vxworks*)
2929 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2930 tmake_file=sparc/t-vxsparc64
2933 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2934 tm_file=sparc/vxsparc.h
2935 tmake_file=sparc/t-vxsparc
2937 thread_file='vxworks'
2940 tmake_file=sparc/t-sparcbare
2941 tm_file="sparc/aout.h libgloss.h"
2944 tm_file=sparc/netbsd.h
2949 # we need collect2 until our bug is fixed...
2956 tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
2957 tmake_file=sparc/t-chorus-elf
2958 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2960 case x${enable_threads} in
2961 xyes | xpthreads | xposix)
2967 tm_file="sparc/sol2.h sparc/elf.h"
2968 tmake_file=sparc/t-elf
2969 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2973 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2974 tm_file=sparc/linux-aout.h
2978 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2980 tm_file=sparc/linux.h
2981 tmake_file="t-linux t-linux-gnulibc1"
2982 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2986 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2988 tm_file=sparc/linux.h
2989 tmake_file="t-linux"
2990 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2992 if test x$enable_threads = xyes; then
2998 if test x$gas = xyes
3000 tm_file=sparc/lynx.h
3002 tm_file=sparc/lynx-ng.h
3004 tmake_file=sparc/t-sunos41
3008 tmake_file="sparc/t-sparcbare t-rtems"
3009 tm_file=sparc/rtems.h
3010 if test x$enable_threads = xyes; then
3014 sparc-*-rtems*|sparc-*-rtemself*)
3015 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
3016 tmake_file="sparc/t-elf t-rtems"
3017 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3020 if test x$enable_threads = xyes; then
3024 sparcv9-*-solaris2*)
3025 if test x$gnu_ld = xyes
3027 tm_file=sparc/sol2-64.h
3029 tm_file=sparc/sol2-sld-64.h
3031 xm_defines="USG POSIX"
3032 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3033 if test x$gnu_ld = xyes; then
3034 tmake_file="$tmake_file sparc/t-slibgcc"
3036 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3038 xmake_file=sparc/x-sysv4
3039 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3041 if test x${enable_threads} = x ; then
3042 enable_threads=$have_pthread_h
3043 if test x${enable_threads} = x ; then
3044 enable_threads=$have_thread_h
3047 if test x${enable_threads} = xyes ; then
3048 if test x${have_pthread_h} = xyes ; then
3051 thread_file='solaris'
3055 sparc-hal-solaris2*)
3056 xm_defines="USG POSIX"
3057 tm_file="sparc/sol2.h sparc/hal.h"
3058 tmake_file="sparc/t-halos sparc/t-sol2"
3059 if test x$gnu_ld = xyes; then
3060 tmake_file="$tmake_file sparc/t-slibgcc"
3062 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3064 xmake_file=sparc/x-sysv4
3065 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3074 thread_file='solaris'
3077 if test x$gnu_ld = xyes
3079 tm_file=sparc/sol2.h
3081 tm_file=sparc/sol2-sld.h
3083 xm_defines="USG POSIX"
3084 tmake_file=sparc/t-sol2
3085 if test x$gnu_ld = xyes; then
3086 tmake_file="$tmake_file sparc/t-slibgcc"
3088 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3090 xmake_file=sparc/x-sysv4
3091 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3092 # At the moment, 32-to-64 cross compilation doesn't work.
3094 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3096 # if test x$gnu_ld = xyes
3098 # tm_file=sparc/sol2-64.h
3100 # tm_file=sparc/sol2-sld-64.h
3102 # tmake_file="$tmake_file sparc/t-sol2-64"
3113 if test x${enable_threads} = x; then
3114 enable_threads=$have_pthread_h
3115 if test x${enable_threads} = x; then
3116 enable_threads=$have_thread_h
3119 if test x${enable_threads} = xyes; then
3120 if test x${have_pthread_h} = xyes; then
3123 thread_file='solaris'
3128 tm_file=sparc/sunos4.h
3129 tmake_file=sparc/t-sunos40
3133 tm_file=sparc/sunos4.h
3134 tmake_file=sparc/t-sunos41
3136 if test x$gas = xyes; then
3137 tm_file="${tm_file} sparc/sun4gas.h"
3141 tm_file=sparc/sun4o3.h
3145 tm_file=sparc/sysv4.h
3146 xm_defines="USG POSIX"
3148 xmake_file=sparc/x-sysv4
3149 extra_parts="crtbegin.o crtend.o"
3152 xm_defines="USG POSIX"
3153 tm_file=sparc/vxsim.h
3154 tmake_file=sparc/t-vxsparc
3155 xmake_file=sparc/x-sysv4
3158 tm_file="sparc/splet.h libgloss.h"
3159 tmake_file=sparc/t-splet
3162 tm_file="sparc/litecoff.h libgloss.h"
3163 tmake_file=sparc/t-sparclite
3166 tm_file="sparc/lite.h aoutos.h libgloss.h"
3167 tmake_file=sparc/t-sparclite
3170 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3171 tmake_file=sparc/t-sparclite
3172 extra_parts="crtbegin.o crtend.o"
3175 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3176 tmake_file=sparc/t-sp86x
3179 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3180 tmake_file=sparc/t-sp86x
3181 extra_parts="crtbegin.o crtend.o"
3184 tmake_file=sparc/t-sp64
3185 tm_file=sparc/sp64-aout.h
3188 tmake_file=sparc/t-sp64
3189 tm_file=sparc/sp64-elf.h
3190 extra_parts="crtbegin.o crtend.o"
3192 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3193 tmake_file="t-linux sparc/t-linux64"
3194 tm_file=sparc/linux64.h
3196 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3198 if test x$enable_threads = xyes; then
3204 tm_file=arm/strongarm-elf.h
3205 tmake_file=arm/t-strongarm-elf
3210 tm_file=arm/strongarm-coff.h
3211 tmake_file=arm/t-strongarm-coff
3216 tm_file=arm/strongarm-pe.h
3217 tmake_file=arm/t-strongarm-pe
3223 { echo "config.gcc: error:
3224 *** The Thumb targets have been deprecated. The equivalent
3225 *** ARM based toolchain can now generate Thumb instructions
3226 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3230 tm_file="v850/rtems.h"
3231 tmake_file="v850/t-v850 t-rtems"
3232 if test x$stabs = xyes
3234 tm_file="${tm_file} dbx.h"
3237 c_target_objs="v850-c.o"
3238 cxx_target_objs="v850-c.o"
3241 target_cpu_default="TARGET_CPU_generic"
3243 tm_file="v850/v850.h"
3244 tmake_file=v850/t-v850
3245 if test x$stabs = xyes
3247 tm_file="${tm_file} dbx.h"
3250 c_target_objs="v850-c.o"
3251 cxx_target_objs="v850-c.o"
3253 vax-*-bsd*) # vaxen running BSD
3257 vax-*-sysv*) # vaxen running system V
3258 tm_file="${tm_file} vax/vaxv.h"
3263 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3269 tmake_file="${tmake_file} vax/t-openbsd"
3270 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3274 vax-*-ultrix*) # vaxen running ultrix
3275 tm_file="${tm_file} vax/ultrix.h"
3278 vax-*-vms*) # vaxen running VMS
3279 xm_file=vax/xm-vms.h
3283 vax-*-*) # vax default entry
3291 tm_file=arm/xscale-elf.h
3292 tmake_file=arm/t-xscale-elf
3297 tm_file=arm/xscale-coff.h
3298 tmake_file=arm/t-xscale-coff
3303 echo "Configuration $machine not supported" 1>&2
3310 xmake_try_sysv=x-sysv
3311 install_headers_dir=install-headers-cpio
3314 install_headers_dir=install-headers-cpio
3318 # Distinguish i[34567]86
3319 # Also, do not run mips-tfile on MIPS if using gas.
3320 # Process --with-cpu= for PowerPC/rs6000
3321 target_cpu_default2=
3324 target_cpu_default2=1
3327 case $target_alias in
3329 target_cpu_default2=4
3332 target_cpu_default2=2
3336 i686-*-* | i786-*-*)
3337 target_cpu_default2=3
3342 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3345 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3348 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3351 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3354 target_cpu_default2="MASK_CPU_EV5"
3358 if test x$gas = xyes
3360 if test "$target_cpu_default2" = ""
3362 target_cpu_default2="MASK_GAS"
3364 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3369 case "x$with_cpu" in
3372 target_cpu_default2="TARGET_CPU_generic"
3375 # Distinguish cores, and major variants
3376 # arm7m doesn't exist, but D & I don't affect code
3377 xarm[236789] | xarm250 | xarm[67][01]0 \
3378 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3379 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3381 | xstrongarm | xstrongarm110 | xstrongarm1100)
3382 target_cpu_default2="TARGET_CPU_$with_cpu"
3386 echo "--with-cpu must be passed a value" 1>&2
3391 if test x$pass2done = xyes
3393 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3400 mips*-*-ecoff* | mips*-*-elf*)
3401 if test x$gas = xyes
3403 if test x$gnu_ld = xyes
3405 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3407 target_cpu_default2="MASK_GAS"
3412 if test x$gas = xyes
3414 target_cpu_default2="MASK_GAS"
3417 powerpc*-*-* | rs6000-*-*)
3418 case "x$with_cpu" in
3422 xcommon | xpower | xpower2 | xpowerpc | xrios \
3423 | xrios1 | xrios2 | xrsc | xrsc1 \
3424 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3425 | xec603e | x740 | x750 | x401 \
3426 | x403 | x505 | x801 | x821 | x823 | x860)
3427 target_cpu_default2="\"$with_cpu\""
3431 echo "--with-cpu must be passed a value" 1>&2
3436 if test x$pass2done = xyes
3438 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3445 case ".$with_cpu" in
3447 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3449 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3450 target_cpu_default2="TARGET_CPU_$with_cpu"
3453 if test x$pass2done = xyes
3455 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3463 if test "$target_cpu_default2" != ""
3465 if test "$target_cpu_default" != ""
3467 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3469 target_cpu_default=$target_cpu_default2
3473 # No need for collect2 if we have the GNU linker.
3474 # Actually, there is now; GNU ld doesn't handle the EH info or
3475 # collecting for shared libraries.
3482 # Save data on machine being used to compile GCC in build_xm_file.
3483 # Save data on host machine in vars host_xm_file and host_xmake_file.
3484 if test x$pass1done = x
3486 if test x"$xm_file" = x
3487 then build_xm_file=$cpu_type/xm-$cpu_type.h
3488 else build_xm_file=$xm_file
3490 build_xm_defines=$xm_defines
3491 build_install_headers_dir=$install_headers_dir
3492 build_exeext=$exeext
3495 if test x$pass2done = x
3497 if test x"$xm_file" = x
3498 then host_xm_file=$cpu_type/xm-$cpu_type.h
3499 else host_xm_file=$xm_file
3501 host_xm_defines=$xm_defines
3502 if test x"$xmake_file" = x
3503 then xmake_file=$cpu_type/x-$cpu_type
3505 host_xmake_file="$xmake_file"
3506 host_truncate_target=$truncate_target
3507 host_extra_gcc_objs=$extra_gcc_objs
3508 host_extra_objs=$extra_host_objs