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.
267 xm_file="xm-gnu.h ${xm_file}"
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"
291 # avoid surprises, always provide an xm-openbsd file
292 xm_file=${cpu_type}/xm-openbsd.h
293 # don't depend on processor x-fragments as well
295 if test x$enable_threads = xyes; then
297 tmake_file="${tmake_file} t-openbsd-thread"
303 # Support site-specific machine types.
305 cpu_type=`echo $machine | sed -e 's/-.*//'`
306 rest=`echo $machine | sed -e "s/$cpu_type-//"`
307 xm_file=${cpu_type}/xm-$rest.h
308 tm_file=${cpu_type}/$rest.h
309 if test -f $srcdir/config/${cpu_type}/x-$rest; \
310 then xmake_file=${cpu_type}/x-$rest; \
313 if test -f $srcdir/config/${cpu_type}/t-$rest; \
314 then tmake_file=${cpu_type}/t-$rest; \
319 # 1750a is only supported as a target.
320 case "$build,$host" in 1750a*,* | *,1750a* )
321 echo "*** $machine is only supported as a target" >&2
325 a29k-*-bsd* | a29k-*-sym1*)
326 tm_file="${tm_file} a29k/unix.h"
328 xmake_file=a29k/x-unix
331 a29k-*-udi | a29k-*-coff)
332 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
333 tmake_file=a29k/t-a29kbare
337 tmake_file="a29k/t-a29kbare t-rtems"
338 if test x$enable_threads = xyes; then
343 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
344 tmake_file=a29k/t-vx29k
345 extra_parts="crtbegin.o crtend.o"
346 thread_file='vxworks'
348 a29k-*-*) # Default a29k environment.
352 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
354 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
355 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
357 # GAS + IEEE_CONFORMANT
358 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*)
373 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
374 target_cpu_default="MASK_GAS"
375 tmake_file="alpha/t-alpha alpha/t-ieee"
380 alpha*-*-linux*libc1*)
381 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
382 target_cpu_default="MASK_GAS"
383 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
384 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
387 if test x$enable_threads = xyes; then
392 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
393 target_cpu_default="MASK_GAS"
394 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
395 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
398 if test x$enable_threads = xyes; then
403 tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h"
404 target_cpu_default="MASK_GAS"
405 tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
406 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
410 case x${enable_threads} in
411 xyes | xpthreads | xposix)
413 tmake_file="${tmake_file} t-freebsd-thread"
418 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
419 target_cpu_default="MASK_GAS"
420 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
421 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
427 # default x-alpha is only appropriate for dec-osf.
428 target_cpu_default="MASK_GAS"
429 tmake_file="alpha/t-alpha alpha/t-ieee"
433 if test x$stabs = xyes
435 tm_file="${tm_file} dbx.h"
437 if test x$gas != xyes
439 extra_passes="mips-tfile mips-tdump"
442 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
443 xmake_file=alpha/x-osf
446 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
449 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
452 tm_file="${tm_file} alpha/osf.h"
453 tmake_file="$tmake_file alpha/t-osf4"
454 # Some versions of OSF4 (specifically X4.0-9 296.7) have
455 # a broken tar, so we use cpio instead.
456 install_headers_dir=install-headers-cpio
459 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
460 tmake_file="$tmake_file alpha/t-osf4"
465 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
466 target_cpu_default=MASK_SUPPORT_ARCH
471 tm_file="${tm_file} dbx.h alpha/vxworks.h"
472 tmake_file="alpha/t-alpha alpha/t-ieee"
475 extra_passes="mips-tfile mips-tdump"
478 thread_file='vxworks'
482 xm_file="${xm_file} alpha/xm-vms.h"
483 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
486 tm_file=arm/rtems-elf.h
487 tmake_file="arm/t-arm-elf t-rtems"
488 if test x$enable_threads = xyes; then
491 extra_parts="crtinit.o crtfini.o"
494 extra_parts="crtinit.o crtfini.o"
496 arm-*-coff* | armel-*-coff*)
498 tmake_file=arm/t-arm-coff
502 tmake_file=arm/t-arm-coff
503 thread_file='vxworks'
505 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
506 tm_file=arm/riscix1-1.h
509 arm-*-riscix*) # Acorn RISC machine
512 tm_file=arm/rix-gas.h
516 xmake_file=arm/x-riscix
517 tmake_file=arm/t-riscix
520 arm-semi-aout | armel-semi-aout)
522 tmake_file=arm/t-semi
524 arm-semi-aof | armel-semi-aof)
525 tm_file=arm/semiaof.h
526 tmake_file=arm/t-semiaof
530 tmake_file="t-netbsd arm/t-netbsd"
533 arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
534 xm_file=arm/xm-linux.h
536 tm_file="arm/linux-oldld.h arm/linux-elf.h"
539 tm_file="arm/linux-elf26.h $tm_file"
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*-*-linux*) # ARM GNU/Linux with ELF
552 xm_file=arm/xm-linux.h
554 tm_file="arm/linux-elf.h"
557 tm_file="arm/linux-elf26.h $tm_file"
560 tmake_file="t-linux arm/t-linux"
561 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
563 case x${enable_threads} in
564 x | xyes | xpthreads | xposix)
569 arm*-*-uclinux*) # ARM ucLinux
570 tm_file=arm/uclinux-elf.h
571 tmake_file=arm/t-arm-elf
575 tmake_file=arm/t-arm-aout
578 tm_file=arm/ecos-elf.h
579 tmake_file=arm/t-arm-elf
582 tm_file=arm/unknown-elf.h
583 tmake_file=arm/t-arm-elf
586 tm_file=arm/conix-elf.h
587 tmake_file=arm/t-arm-elf
590 tm_file=arm/unknown-elf-oabi.h
591 tmake_file=arm/t-arm-elf
600 c1-convex-*) # Convex C1
604 c2-convex-*) # Convex C2
617 target_cpu_default=16
622 tmake_file="c4x/t-c4x t-rtems"
624 if test x$enable_threads = xyes; then
633 clipper-intergraph-clix*)
634 tm_file="${tm_file} svr3.h clipper/clix.h"
635 xm_file=clipper/xm-clix.h
636 xmake_file=clipper/x-clix
637 extra_headers=va-clipper.h
638 extra_parts="crtbegin.o crtend.o"
639 install_headers_dir=install-headers-cpio
650 tm_file="fr30/fr30.h"
651 tmake_file=fr30/t-fr30
652 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
655 tmake_file="h8300/t-h8300 t-rtems"
656 tm_file=h8300/rtems.h
657 if test x$enable_threads = xyes; then
666 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
667 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
668 tmake_file="t-linux pa/t-linux"
669 extra_parts="crtbegin.o crtend.o"
672 if test x$enable_threads = xyes; then
677 target_cpu_default="MASK_PA_11"
680 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
681 xm_file=pa/xm-papro.h
682 tmake_file="pa/t-pro t-rtems"
683 if test x$enable_threads = xyes; then
688 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
689 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
690 xm_file=pa/xm-papro.h
694 target_cpu_default="MASK_PA_11"
695 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
699 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
700 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
701 xm_file=pa/xm-papro.h
705 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
709 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
710 target_cpu_default="MASK_PA_11"
714 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
718 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
719 xm_file=pa/xm-pahpux.h
720 xmake_file=pa/x-pa-hpux
723 tm_file="${tm_file} pa/gas.h"
725 install_headers_dir=install-headers-cpio
728 hppa1.0-*-hpux8.0[0-2]*)
729 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
730 xm_file=pa/xm-pahpux.h
731 xmake_file=pa/x-pa-hpux
734 tm_file="${tm_file} pa/pa-gas.h"
736 tm_file="pa/pa-oldas.h ${tm_file}"
738 install_headers_dir=install-headers-cpio
741 hppa1.1-*-hpux8.0[0-2]*)
742 target_cpu_default="MASK_PA_11"
743 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
744 xm_file=pa/xm-pahpux.h
745 xmake_file=pa/x-pa-hpux
748 tm_file="${tm_file} pa/pa-gas.h"
750 tm_file="pa/pa-oldas.h ${tm_file}"
752 install_headers_dir=install-headers-cpio
756 target_cpu_default="MASK_PA_11"
757 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
758 xm_file=pa/xm-pahpux.h
759 xmake_file=pa/x-pa-hpux
762 tm_file="${tm_file} pa/pa-gas.h"
764 install_headers_dir=install-headers-cpio
768 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
769 xm_file=pa/xm-pahpux.h
770 xmake_file=pa/x-pa-hpux
773 tm_file="${tm_file} pa/pa-gas.h"
775 install_headers_dir=install-headers-cpio
778 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
779 target_cpu_default="MASK_PA_11"
780 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
782 xm_file=pa/xm-pahpux.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
801 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
803 xm_file=pa/xm-pahpux.h
804 xmake_file=pa/x-pa-hpux
808 tm_file="${tm_file} pa/pa-gas.h"
810 if test x$enable_threads = x; then
811 enable_threads=$have_pthread_h
813 case x${enable_threads} in
815 tmake_file="${tmake_file} pa/t-dce-thr"
818 install_headers_dir=install-headers-cpio
822 xm_file=pa/xm-pa64hpux.h
823 xmake_file=pa/x-pa-hpux
825 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"
828 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
832 tm_file="${tm_file} pa/pa-gas.h"
834 # if [ x$enable_threads = x ]; then
835 # enable_threads=$have_pthread_h
837 # if [ x$enable_threads = xyes ]; then
839 # tmake_file="${tmake_file} pa/t-dce-thr"
841 install_headers_dir=install-headers-cpio
844 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
845 target_cpu_default="MASK_PA_11"
846 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
848 xm_file=pa/xm-pahpux.h
849 xmake_file=pa/x-pa-hpux
853 tm_file="${tm_file} pa/pa-gas.h"
855 # if test x$enable_threads = x; then
856 # enable_threads=$have_pthread_h
858 # if test x$enable_threads = xyes; then
860 # tmake_file="${tmake_file} pa/t-dce-thr"
862 install_headers_dir=install-headers-cpio
866 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
868 xm_file=pa/xm-pahpux.h
869 xmake_file=pa/x-pa-hpux
872 tm_file="${tm_file} pa/pa-gas.h"
874 # if test x$enable_threads = x; then
875 # enable_threads=$have_pthread_h
877 # if test x$enable_threads = xyes; then
879 # tmake_file="${tmake_file} pa/t-dce-thr"
881 install_headers_dir=install-headers-cpio
884 hppa1.1-*-hpux* | hppa2*-*-hpux*)
885 target_cpu_default="MASK_PA_11"
886 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
887 xm_file=pa/xm-pahpux.h
888 xmake_file=pa/x-pa-hpux
891 tm_file="${tm_file} pa/pa-gas.h"
893 install_headers_dir=install-headers-cpio
897 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
898 xm_file=pa/xm-pahpux.h
899 xmake_file=pa/x-pa-hpux
902 tm_file="${tm_file} pa/pa-gas.h"
904 install_headers_dir=install-headers-cpio
907 hppa1.1-*-hiux* | hppa2*-*-hiux*)
908 target_cpu_default="MASK_PA_11"
909 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
910 xm_file=pa/xm-pahpux.h
911 xmake_file=pa/x-pa-hpux
914 tm_file="${tm_file} pa/pa-gas.h"
916 install_headers_dir=install-headers-cpio
920 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
921 xm_file=pa/xm-pahpux.h
922 xmake_file=pa/x-pa-hpux
925 tm_file="${tm_file} pa/pa-gas.h"
927 install_headers_dir=install-headers-cpio
931 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
932 target_cpu_default="MASK_PA_11"
936 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
937 xm_file=pa/xm-pampeix.h
938 xmake_file=pa/x-pa-mpeix
939 echo "You must use gas. Assuming it is already installed."
940 install_headers_dir=install-headers-tar
943 i370-*-opened*) # IBM 360/370/390 Architecture
950 xm_file=i370/xm-mvs.h
952 tmake_file=i370/t-mvs
955 xm_file="xm-linux.h i370/xm-linux.h"
957 tm_file="i370/linux.h ${tm_file}"
958 tmake_file="t-linux i370/t-linux"
960 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
961 # extra_parts="crtbegin.o crtend.o"
965 if test x$enable_threads = xyes; then
969 i[34567]86-*-chorusos*)
970 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
971 tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h i386/chorus.h"
972 tmake_file=i386/t-i386elf
974 case x${enable_threads} in
975 xyes | xpthreads | xposix)
981 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
982 tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h"
983 tmake_file=i386/t-i386elf
986 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
989 tm_file=i386/aix386.h
990 extra_parts="crtbegin.o crtend.o"
991 tmake_file=i386/t-crtstuff
993 tm_file=i386/aix386ng.h
996 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
998 xmake_file=i386/x-aix
1000 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1001 xm_file="xm-alloca.h ${xm_file}"
1002 xm_defines="USG POSIX SMALL_ARG_MAX"
1003 xmake_file=i386/x-ncr3000
1004 if test x$stabs = xyes -a x$gas = xyes
1006 tm_file=i386/sysv4gdb.h
1008 tm_file=i386/sysv4.h
1010 extra_parts="crtbegin.o crtend.o"
1011 tmake_file=i386/t-crtpic
1015 xm_file=i386/xm-next.h
1016 tmake_file=i386/t-next
1017 xmake_file=i386/x-next
1018 extra_objs=nextstep.o
1019 extra_parts="crtbegin.o crtend.o"
1020 if test x$enable_threads = xyes; then
1024 i[34567]86-*-netware) # Intel 80386's running netware
1025 tm_file=i386/netware.h
1026 tmake_file=i386/t-netware
1028 i[34567]86-sequent-bsd*) # 80386 from Sequent
1030 if test x$gas = xyes
1032 tm_file=i386/seq-gas.h
1034 tm_file=i386/sequent.h
1037 i[34567]86-sequent-ptx1*)
1038 xm_defines="USG SVR3"
1039 xmake_file=i386/x-sysv3
1040 tm_file=i386/seq-sysv3.h
1041 tmake_file=i386/t-crtstuff
1042 extra_parts="crtbegin.o crtend.o"
1043 install_headers_dir=install-headers-cpio
1045 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1046 xm_defines="USG SVR3"
1047 xmake_file=i386/x-sysv3
1048 tm_file=i386/seq2-sysv3.h
1049 tmake_file=i386/t-crtstuff
1050 extra_parts="crtbegin.o crtend.o"
1051 install_headers_dir=install-headers-cpio
1053 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1054 xm_file="xm-alloca.h ${xm_file}"
1055 if test x$gas = xyes
1057 tm_file="${tm_file} usegas.h"
1059 xm_defines="USG POSIX SMALL_ARG_MAX"
1061 tm_file=i386/ptx4-i.h
1063 extra_parts="crtbegin.o crtend.o"
1064 install_headers_dir=install-headers-cpio
1066 i386-sun-sunos*) # Sun i386 roadrunner
1071 i[34567]86-wrs-vxworks*)
1072 tm_file=i386/vxi386.h
1073 tmake_file=i386/t-i386bare
1074 thread_file='vxworks'
1077 tm_file=i386/i386-aout.h
1078 tmake_file=i386/t-i386bare
1080 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1081 xm_file=i386/xm-beos.h
1082 tmake_file='i386/t-beos i386/t-crtpic'
1083 tm_file=i386/beos-elf.h
1084 xmake_file=i386/x-beos
1085 extra_parts='crtbegin.o crtend.o'
1087 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1088 tm_file=i386/bsd386.h
1089 # tmake_file=t-libc-ok
1092 tm_file=i386/386bsd.h
1093 # tmake_file=t-libc-ok
1094 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1097 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1098 tm_file="i386/freebsd-aout.h i386/perform.h"
1099 tmake_file=t-freebsd
1101 i[34567]86-*-freebsd*)
1102 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/i386afe.h i386/freebsd.h i386/perform.h"
1103 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1104 tmake_file=t-freebsd
1108 case x${enable_threads} in
1109 xyes | xpthreads | xposix)
1111 tmake_file="${tmake_file} t-freebsd-thread"
1115 i[34567]86-*-netbsd*)
1116 tm_file=i386/netbsd.h
1120 i[34567]86-*-openbsd*)
1121 # we need collect2 until our bug is fixed...
1125 tm_file=i386/i386-coff.h
1126 tmake_file=i386/t-i386bare
1128 i[34567]86-*-isc*) # 80386 running ISC system
1129 xm_file="${xm_file} i386/xm-isc.h"
1130 xm_defines="USG SVR3"
1132 i[34567]86-*-isc[34]*)
1133 xmake_file=i386/x-isc3
1136 xmake_file=i386/x-isc
1139 if test x$gas = xyes -a x$stabs = xyes
1141 tm_file=i386/iscdbx.h
1142 tmake_file=i386/t-svr3dbx
1143 extra_parts="svr3.ifile svr3z.ifile"
1145 tm_file=i386/isccoff.h
1146 tmake_file=i386/t-crtstuff
1147 extra_parts="crtbegin.o crtend.o"
1149 tmake_file="$tmake_file i386/t-i386bare"
1150 install_headers_dir=install-headers-cpio
1152 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1153 # with a.out format using
1155 tmake_file="t-linux-aout i386/t-crtstuff"
1156 tm_file=i386/linux-oldld.h
1160 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1162 tmake_file="t-linux-aout i386/t-crtstuff"
1163 tm_file=i386/linux-aout.h
1167 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1168 # with ELF format using the
1169 # GNU/Linux C library 5
1171 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h"
1172 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1173 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1176 if test x$enable_threads = xyes; then
1177 thread_file='single'
1180 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1181 # with ELF format using glibc 2
1182 # aka GNU/Linux C library 6
1184 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h"
1185 tmake_file="t-linux i386/t-crtstuff"
1186 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1189 if test x$enable_threads = xyes; then
1196 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1197 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1200 i[34567]86-pc-msdosdjgpp*)
1201 xm_file=i386/xm-djgpp.h
1202 tm_file=i386/djgpp.h
1203 tmake_file=i386/t-djgpp
1204 xmake_file=i386/x-djgpp
1209 case $host in *pc-msdosdjgpp*)
1214 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1215 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h i386/moss.h"
1216 tmake_file=t-libc-ok
1220 i[34567]86-*-lynxos*)
1221 if test x$gas = xyes
1225 tm_file=i386/lynx-ng.h
1227 xm_file=i386/xm-lynx.h
1228 tmake_file=i386/t-i386bare
1233 # tmake_file=t-libc-ok
1236 i[34567]86-*-osfrose*) # 386 using OSF/rose
1237 if test x$elf = xyes
1239 tm_file=i386/osfelf.h
1242 tm_file=i386/osfrose.h
1245 xm_file="i386/xm-osf.h ${xm_file}"
1246 xmake_file=i386/x-osfrose
1247 tmake_file=i386/t-osf
1248 extra_objs=halfpic.o
1250 i[34567]86-go32-rtems*)
1252 xm_file=i386/xm-go32.h
1253 tm_file=i386/go32-rtems.h
1255 if test x$enable_threads = xyes; then
1259 i[34567]86-*-rtemscoff*)
1261 tm_file=i386/rtems.h
1262 tmake_file="i386/t-i386bare t-rtems"
1263 if test x$enable_threads = xyes; then
1267 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1269 tm_file=i386/rtemself.h
1270 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1271 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1272 if test x$enable_threads = xyes; then
1276 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1277 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1278 xm_defines="USG SVR3"
1279 xmake_file=i386/x-sco5
1280 install_headers_dir=install-headers-cpio
1282 if test x$gas = xyes
1284 tm_file="usegas.h ${tm_file}"
1285 tmake_file=i386/t-sco5gas
1287 tmake_file=i386/t-sco5
1289 tmake_file="$tmake_file i386/t-i386bare"
1290 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1292 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1293 xm_file="${xm_file} i386/xm-sco.h"
1294 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1295 xmake_file=i386/x-sco4
1296 install_headers_dir=install-headers-cpio
1297 if test x$stabs = xyes
1299 tm_file=i386/sco4dbx.h
1300 tmake_file=i386/t-svr3dbx
1301 extra_parts="svr3.ifile svr3z.rfile"
1304 tmake_file=i386/t-crtstuff
1305 extra_parts="crtbegin.o crtend.o"
1307 tmake_file="$tmake_file i386/t-i386bare"
1308 # The default EAFS filesystem supports long file names.
1309 # Truncating the target makes $host != $target which
1310 # makes gcc think it is doing a cross-compile.
1311 # truncate_target=yes
1313 i[34567]86-*-sco*) # 80386 running SCO system
1314 xm_file=i386/xm-sco.h
1315 xmake_file=i386/x-sco
1316 install_headers_dir=install-headers-cpio
1317 if test x$stabs = xyes
1319 tm_file=i386/scodbx.h
1320 tmake_file=i386/t-svr3dbx
1321 extra_parts="svr3.ifile svr3z.rfile"
1324 extra_parts="crtbegin.o crtend.o"
1325 tmake_file=i386/t-crtstuff
1327 tmake_file="$tmake_file i386/t-i386bare"
1330 i[34567]86-*-solaris2*)
1331 xm_file="xm-alloca.h ${xm_file}"
1332 xm_defines="USG POSIX SMALL_ARG_MAX"
1334 if test x$gas = xyes; then
1335 # Only needed if gas does not support -s
1336 tm_file="i386/sol2gas.h ${tm_file}"
1338 tmake_file="i386/t-i386bare i386/t-sol2"
1339 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1341 if test x${enable_threads} = x; then
1342 enable_threads=$have_pthread_h
1343 if test x${enable_threads} = x; then
1344 enable_threads=$have_thread_h
1347 if test x${enable_threads} = xyes; then
1348 if test x${have_pthread_h} = xyes; then
1351 thread_file='solaris'
1355 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1356 xm_file="xm-alloca.h ${xm_file}"
1357 xm_defines="USG POSIX"
1358 tm_file=i386/sysv5.h
1359 if test x$stabs = xyes
1361 tm_file="${tm_file} dbx.h"
1363 tmake_file="i386/t-i386bare i386/t-crtpic"
1365 extra_parts="crtbegin.o crtend.o"
1366 if test x$enable_threads = xyes; then
1370 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1371 xm_file="xm-alloca.h ${xm_file}"
1372 xm_defines="USG POSIX SMALL_ARG_MAX"
1373 tm_file=i386/sysv4.h
1374 if test x$stabs = xyes
1376 tm_file="${tm_file} dbx.h"
1378 tmake_file="i386/t-i386bare i386/t-crtpic"
1380 extra_parts="crtbegin.o crtend.o"
1382 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1383 xm_file="xm-alloca.h ${xm_file}"
1384 xm_defines="USG POSIX"
1386 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1388 extra_parts="crtbegin.o crtend.o"
1389 install_headers_dir=install-headers-cpio
1391 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1393 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1394 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1395 if test x$stabs = xyes
1397 tm_file=i386/osf1elfgdb.h
1399 tm_file=i386/osf1elf.h
1401 tmake_file=i386/t-osf1elf
1402 xmake_file=i386/x-osf1elf
1403 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1405 i[34567]86-*-sysv*) # Intel 80386's running system V
1406 xm_defines="USG SVR3"
1407 xmake_file=i386/x-sysv3
1408 if test x$gas = xyes
1410 if test x$stabs = xyes
1412 tm_file=i386/svr3dbx.h
1413 tmake_file=i386/t-svr3dbx
1414 extra_parts="svr3.ifile svr3z.rfile"
1416 tm_file=i386/svr3gas.h
1417 extra_parts="crtbegin.o crtend.o"
1418 tmake_file=i386/t-crtstuff
1421 tm_file=i386/sysv3.h
1422 extra_parts="crtbegin.o crtend.o"
1423 tmake_file=i386/t-crtstuff
1425 tmake_file="$tmake_file i386/t-crtpic"
1427 i386-*-vsta) # Intel 80386's running VSTa kernel
1428 xm_file="${xm_file} i386/xm-vsta.h"
1430 tmake_file=i386/t-vsta
1431 xmake_file=i386/x-vsta
1434 xm_file="${xm_file} i386/xm-cygwin.h"
1436 tmake_file=i386/t-cygwin
1437 tm_file=i386/win32.h
1438 xmake_file=i386/x-cygwin
1440 if test x$enable_threads = xyes; then
1445 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1446 xm_file="${xm_file} i386/xm-cygwin.h"
1448 tmake_file=i386/t-cygwin
1449 tm_file=i386/cygwin.h
1450 xmake_file=i386/x-cygwin
1452 if test x$enable_threads = xyes; then
1457 i[34567]86-*-mingw32*)
1458 tm_file=i386/mingw32.h
1460 xm_file="${xm_file} i386/xm-mingw32.h"
1461 tmake_file="i386/t-cygwin i386/t-mingw32"
1463 xmake_file=i386/x-cygwin
1464 if test x$enable_threads = xyes; then
1471 *minwg32crt* | *mingw32*)
1472 tm_file="${tm_file} i386/crtdll.h"
1478 tmake_file="i386/t-cygwin i386/t-uwin"
1480 xmake_file=i386/x-cygwin
1481 if test x$enable_threads = xyes; then
1486 i[34567]86-*-interix*)
1487 tm_file="i386/i386-interix.h interix.h"
1488 xm_file="i386/xm-i386-interix.h xm-interix.h"
1490 tmake_file="i386/t-interix"
1491 extra_objs=interix.o
1492 xmake_file=x-interix
1493 if test x$enable_threads = xyes ; then
1496 if test x$stabs = xyes ; then
1497 tm_file="${tm_file} dbxcoff.h"
1500 i[34567]86-dg-dgux*)
1501 xm_file="xm-alloca.h ${xm_file}"
1502 xm_defines="USG POSIX"
1503 out_file=i386/dgux.c
1505 tmake_file=i386/t-dgux
1506 xmake_file=i386/x-dgux
1507 install_headers_dir=install-headers-cpio
1509 i860-alliant-*) # Alliant FX/2800
1510 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1511 xm_file="${xm_file}"
1512 xmake_file=i860/x-fx2800
1513 tmake_file=i860/t-fx2800
1514 extra_parts="crtbegin.o crtend.o"
1517 tm_file="${tm_file} i860/bsd.h"
1518 if test x$gas = xyes
1520 tm_file="${tm_file} i860/bsd-gas.h"
1525 tm_file="${tm_file} i860/mach.h"
1526 tmake_file=t-libc-ok
1528 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1529 tm_file="${tm_file} svr3.h i860/paragon.h"
1530 xm_defines="USG SVR3"
1533 tm_file="${tm_file} svr3.h i860/sysv3.h"
1534 xm_defines="USG SVR3"
1535 xmake_file=i860/x-sysv3
1536 extra_parts="crtbegin.o crtend.o"
1539 tm_file="${tm_file} svr4.h i860/sysv4.h"
1540 xm_defines="USG SVR3"
1541 xmake_file=i860/x-sysv4
1543 extra_parts="crtbegin.o crtend.o"
1545 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1546 tm_file="${tm_file} i960/vx960.h"
1547 tmake_file=i960/t-vxworks960
1549 thread_file='vxworks'
1551 i960-wrs-vxworks5* | i960-wrs-vxworks)
1552 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1553 tmake_file=i960/t-vxworks960
1555 thread_file='vxworks'
1558 tm_file="${tm_file} i960/vx960.h"
1559 tmake_file=i960/t-vxworks960
1561 thread_file='vxworks'
1564 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1565 tmake_file=i960/t-960bare
1569 tmake_file="i960/t-960bare t-rtems"
1570 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1572 if test x$enable_threads = xyes; then
1576 i960-*-*) # Default i960 environment.
1581 tmake_file="ia64/t-ia64"
1582 target_cpu_default="0"
1583 if test x$gas = xyes
1585 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1587 if test x$gnu_ld = xyes
1589 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1594 tm_file=ia64/linux.h
1595 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
1596 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1597 if test x$enable_threads = xyes; then
1603 extra_parts="crtinit.o crtfini.o"
1605 # m68hc11 and m68hc12 share the same machine description.
1606 m68hc11-*-*|m6811-*-*)
1607 tm_file="m68hc11/m68hc11.h"
1608 xm_file="m68hc11/xm-m68hc11.h"
1609 tm_p_file="m68hc11/m68hc11-protos.h"
1610 md_file="m68hc11/m68hc11.md"
1611 out_file="m68hc11/m68hc11.c"
1612 tmake_file="m68hc11/t-m68hc11-gas"
1614 m68hc12-*-*|m6812-*-*)
1615 tm_file="m68hc11/m68hc12.h"
1616 tm_p_file="m68hc11/m68hc11-protos.h"
1617 xm_file="m68hc11/xm-m68hc11.h"
1618 md_file="m68hc11/m68hc11.md"
1619 out_file="m68hc11/m68hc11.c"
1620 tmake_file="m68hc11/t-m68hc11-gas"
1622 m68000-convergent-sysv*)
1626 extra_headers=math-68881.h
1628 m68000-hp-bsd*) # HP 9000/200 running BSD
1629 tm_file=m68k/hp2bsd.h
1630 xmake_file=m68k/x-hp2bsd
1632 extra_headers=math-68881.h
1634 m68000-hp-hpux*) # HP 9000 series 300
1635 xm_file="xm-alloca.h ${xm_file}"
1637 if test x$gas = xyes
1639 xmake_file=m68k/x-hp320g
1640 tm_file=m68k/hp310g.h
1642 xmake_file=m68k/x-hp320
1643 tm_file=m68k/hp310.h
1645 install_headers_dir=install-headers-cpio
1647 extra_headers=math-68881.h
1652 extra_headers=math-68881.h
1655 tm_file=m68k/sun2o4.h
1657 extra_headers=math-68881.h
1661 if test x$gas = xyes
1668 extra_headers=math-68881.h
1670 m68k-apple-aux*) # Apple Macintosh running A/UX
1671 xm_defines="USG AUX"
1672 tmake_file=m68k/t-aux
1673 install_headers_dir=install-headers-cpio
1674 extra_headers=math-68881.h
1675 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1677 if test "$gnu_ld" = yes
1679 tm_file="${tm_file} m68k/auxgld.h"
1681 tm_file="${tm_file} m68k/auxld.h"
1683 if test "$gas" = yes
1685 tm_file="${tm_file} m68k/auxgas.h"
1687 tm_file="${tm_file} m68k/auxas.h"
1689 tm_file="${tm_file} m68k/a-ux.h"
1693 tm_file=m68k/apollo68.h
1694 xmake_file=m68k/x-apollo68
1696 extra_headers=math-68881.h
1699 m68k-altos-sysv*) # Altos 3068
1700 if test x$gas = xyes
1702 tm_file=m68k/altos3068.h
1705 echo "The Altos is supported only with the GNU assembler" 1>&2
1708 extra_headers=math-68881.h
1710 m68k-bull-sysv*) # Bull DPX/2
1711 if test x$gas = xyes
1713 if test x$stabs = xyes
1715 tm_file=m68k/dpx2cdbx.h
1717 tm_file=m68k/dpx2g.h
1722 xm_file="xm-alloca.h ${xm_file}"
1724 xmake_file=m68k/x-dpx2
1726 extra_headers=math-68881.h
1728 m68k-atari-sysv4*) # Atari variant of V.4.
1729 tm_file=m68k/atari.h
1730 xm_file="xm-alloca.h ${xm_file}"
1733 extra_parts="crtbegin.o crtend.o"
1734 extra_headers=math-68881.h
1737 m68k-motorola-sysv*)
1738 tm_file=m68k/mot3300.h
1739 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1740 if test x$gas = xyes
1742 xmake_file=m68k/x-mot3300-gas
1743 if test x$gnu_ld = xyes
1745 tmake_file=m68k/t-mot3300-gald
1747 tmake_file=m68k/t-mot3300-gas
1751 xmake_file=m68k/x-mot3300
1752 if test x$gnu_ld = xyes
1754 tmake_file=m68k/t-mot3300-gld
1756 tmake_file=m68k/t-mot3300
1760 gdb_needs_out_file_path=yes
1761 extra_parts="crt0.o mcrt0.o"
1762 extra_headers=math-68881.h
1765 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1766 tm_file=m68k/tower-as.h
1767 xm_defines="USG SVR3"
1768 xmake_file=m68k/x-tower
1769 extra_parts="crtbegin.o crtend.o"
1770 extra_headers=math-68881.h
1773 tm_file=m68k/plexus.h
1774 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1777 extra_headers=math-68881.h
1781 xm_file="xm-alloca.h ${xm_file}"
1783 extra_headers=math-68881.h
1786 xm_file="xm-alloca.h ${xm_file}"
1787 xm_defines="USG unos"
1788 xmake_file=m68k/x-crds
1791 extra_headers=math-68881.h
1793 m68k-cbm-sysv4*) # Commodore variant of V.4.
1795 xm_file="xm-alloca.h ${xm_file}"
1797 xmake_file=m68k/x-amix
1799 extra_parts="crtbegin.o crtend.o"
1800 extra_headers=math-68881.h
1804 tm_file=m68k/ccur-GAS.h
1805 xmake_file=m68k/x-ccur
1806 extra_headers=math-68881.h
1810 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1811 tm_file=m68k/hp3bsd44.h
1813 extra_headers=math-68881.h
1816 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1817 tm_file=m68k/hp3bsd.h
1819 extra_headers=math-68881.h
1823 if test x$with_fp = xno
1825 tm_file=m68k/isi-nfp.h
1831 extra_headers=math-68881.h
1833 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1834 xm_file="xm-alloca.h ${xm_file}"
1836 if test x$gas = xyes
1838 xmake_file=m68k/x-hp320g
1839 tm_file=m68k/hp320g.h
1841 xmake_file=m68k/x-hp320
1842 tm_file=m68k/hpux7.h
1844 install_headers_dir=install-headers-cpio
1846 extra_headers=math-68881.h
1849 m68k-hp-hpux*) # HP 9000 series 300
1850 xm_file="xm-alloca.h ${xm_file}"
1852 if test x$gas = xyes
1854 xmake_file=m68k/x-hp320g
1855 tm_file=m68k/hp320g.h
1857 xmake_file=m68k/x-hp320
1858 tm_file=m68k/hp320.h
1860 install_headers_dir=install-headers-cpio
1862 extra_headers=math-68881.h
1866 tm_file=m68k/sun3mach.h
1868 extra_headers=math-68881.h
1872 if test x$gas = xyes
1874 tm_file=m68k/news3gas.h
1876 tm_file=m68k/news3.h
1879 extra_headers=math-68881.h
1882 m68k-sony-bsd* | m68k-sony-newsos*)
1883 if test x$gas = xyes
1885 tm_file=m68k/newsgas.h
1890 extra_headers=math-68881.h
1893 m68k-next-nextstep2*)
1894 tm_file=m68k/next21.h
1895 xm_file="m68k/xm-next.h ${xm_file}"
1896 tmake_file=m68k/t-next
1897 xmake_file=m68k/x-next
1898 extra_objs=nextstep.o
1899 extra_headers=math-68881.h
1903 m68k-next-nextstep[34]*)
1905 xm_file="m68k/xm-next.h ${xm_file}"
1906 tmake_file=m68k/t-next
1907 xmake_file=m68k/x-next
1908 extra_objs=nextstep.o
1909 extra_parts="crtbegin.o crtend.o"
1910 extra_headers=math-68881.h
1912 if test x$enable_threads = xyes; then
1917 if test x$with_fp = xno
1919 tm_file=m68k/sun3n3.h
1921 tm_file=m68k/sun3o3.h
1925 extra_headers=math-68881.h
1927 m68k-sun-sunos*) # For SunOS 4 (the default).
1928 if test x$with_fp = xno
1930 tm_file=m68k/sun3n.h
1936 extra_headers=math-68881.h
1939 tm_file=m68k/vxm68k.h
1940 tmake_file=m68k/t-vxworks68
1941 extra_headers=math-68881.h
1942 thread_file='vxworks'
1946 tmake_file=m68k/t-m68kbare
1947 tm_file="m68k/m68k-aout.h libgloss.h"
1948 extra_headers=math-68881.h
1952 tmake_file=m68k/t-m68kbare
1953 tm_file="m68k/m68k-coff.h dbx.h"
1954 extra_headers=math-68881.h
1957 m68020-*-elf* | m68k-*-elf*)
1958 tm_file="m68k/m68020-elf.h"
1959 xm_file=m68k/xm-m68kv.h
1960 tmake_file=m68k/t-m68kelf
1961 header_files=math-68881.h
1964 if test x$gas = xyes
1968 tm_file=m68k/lynx-ng.h
1970 xm_file=m68k/xm-lynx.h
1972 tmake_file=m68k/t-lynx
1973 extra_headers=math-68881.h
1977 tm_file=m68k/netbsd.h
1984 # we need collect2 until our bug is fixed...
1987 m68k-*-sysv3*) # Motorola m68k's running system V.3
1988 xm_file="xm-alloca.h ${xm_file}"
1990 extra_parts="crtbegin.o crtend.o"
1991 extra_headers=math-68881.h
1994 m68k-*-sysv4*) # Motorola m68k's running system V.4
1995 tm_file=m68k/m68kv4.h
1996 xm_file="xm-alloca.h ${xm_file}"
1999 extra_parts="crtbegin.o crtend.o"
2000 extra_headers=math-68881.h
2003 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2006 tm_file=m68k/linux-aout.h
2007 tmake_file="t-linux-aout m68k/t-linux-aout"
2008 extra_headers=math-68881.h
2012 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2013 # with ELF format using the
2014 # GNU/Linux C library 5
2016 tm_file=m68k/linux.h
2017 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2018 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2019 extra_headers=math-68881.h
2023 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2024 # with ELF format using glibc 2
2025 # aka the GNU/Linux C library 6.
2027 tm_file=m68k/linux.h
2028 tmake_file="t-linux m68k/t-linux"
2029 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2030 extra_headers=math-68881.h
2033 if test x$enable_threads = xyes; then
2038 tmake_file=m68k/t-m68kbare
2039 tm_file=m68k/m68k-psos.h
2040 extra_headers=math-68881.h
2044 tmake_file="m68k/t-m68kbare t-rtems"
2045 tm_file=m68k/rtems.h
2046 extra_headers=math-68881.h
2048 if test x$enable_threads = xyes; then
2052 m68k-*-rtemself*|m68k-*-rtems*)
2053 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2054 tm_file=m68k/rtemself.h
2055 extra_headers=math-68881.h
2057 if test x$enable_threads = xyes; then
2064 tm_file=m88k/dguxbcs.h
2065 tmake_file=m88k/t-dguxbcs
2069 tmake_file=m88k/t-dgux
2072 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2073 xmake_file=m88k/x-dgux
2074 if test x$gas = xyes
2076 tmake_file=m88k/t-dgux-gas
2079 m88k-dolphin-sysv3*)
2080 tm_file=m88k/dolph.h
2081 extra_parts="crtbegin.o crtend.o"
2082 xmake_file=m88k/x-dolph
2083 if test x$gas = xyes
2085 tmake_file=m88k/t-m88k-gas
2088 m88k-tektronix-sysv3)
2089 tm_file=m88k/tekXD88.h
2090 extra_parts="crtbegin.o crtend.o"
2091 xmake_file=m88k/x-tekXD88
2092 if test x$gas = xyes
2094 tmake_file=m88k/t-m88k-gas
2098 tm_file=m88k/m88k-aout.h
2101 tm_file=m88k/m88k-coff.h
2102 tmake_file=m88k/t-bug
2106 extra_parts="crtbegin.o crtend.o"
2107 if test x$gas = xyes
2109 tmake_file=m88k/t-luna-gas
2111 tmake_file=m88k/t-luna
2115 tmake_file="${tmake_file} m88k/t-luna-gas"
2116 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2117 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2120 tm_file=m88k/sysv3.h
2121 extra_parts="crtbegin.o crtend.o"
2122 xmake_file=m88k/x-sysv3
2123 if test x$gas = xyes
2125 tmake_file=m88k/t-m88k-gas
2129 tm_file=m88k/sysv4.h
2130 extra_parts="crtbegin.o crtend.o"
2131 xmake_file=m88k/x-sysv4
2132 tmake_file=m88k/t-sysv4
2135 tm_file=mcore/mcore-elf.h
2136 tmake_file=mcore/t-mcore
2139 tm_file=mcore/mcore-pe.h
2140 tmake_file=mcore/t-mcore-pe
2142 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2143 if test "x$gnu_ld" = xyes
2145 tm_file="mips/iris6.h mips/iris6gld.h"
2147 tm_file=mips/iris6.h
2149 tmake_file=mips/t-iris6
2150 xm_file=mips/xm-iris6.h
2151 xmake_file=mips/x-iris6
2152 # if test x$enable_threads = xyes; then
2153 # thread_file='irix'
2157 tm_file="mips/elf.h mips/vxworks.h"
2158 tmake_file=mips/t-ecoff
2161 extra_parts="crtbegin.o crtend.o"
2162 thread_file='vxworks'
2164 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2165 tm_file="mips/iris6.h mips/cross64.h"
2167 xm_file="mips/xm-iris5.h"
2168 xmake_file=mips/x-iris
2169 tmake_file=mips/t-cross64
2170 # See comment in mips/iris[56].h files.
2172 # if test x$enable_threads = xyes; then
2173 # thread_file='irix'
2177 if test x$gas = xyes
2179 if test x$stabs = xyes
2181 tm_file=mips/iris5gdb.h
2183 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2186 tm_file=mips/sni-svr4.h
2189 xmake_file=mips/x-sni-svr4
2190 tmake_file=mips/t-mips-gas
2191 if test x$gnu_ld != xyes
2196 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2197 if test x$gas = xyes
2199 tm_file="mips/iris5.h mips/iris5gas.h"
2200 if test x$stabs = xyes
2202 tm_file="${tm_file} dbx.h"
2205 tm_file=mips/iris5.h
2208 xm_file="mips/xm-iris5.h"
2209 xmake_file=mips/x-iris
2210 # mips-tfile doesn't work yet
2211 tmake_file=mips/t-mips-gas
2212 # See comment in mips/iris5.h file.
2214 # if test x$enable_threads = xyes; then
2215 # thread_file='irix'
2218 mips-sgi-irix4loser*) # Mostly like a MIPS.
2219 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2220 if test x$stabs = xyes; then
2221 tm_file="${tm_file} dbx.h"
2224 xmake_file=mips/x-iris
2225 if test x$gas = xyes
2227 tmake_file=mips/t-mips-gas
2229 extra_passes="mips-tfile mips-tdump"
2231 if test x$gnu_ld != xyes
2235 # if test x$enable_threads = xyes; then
2236 # thread_file='irix'
2239 mips-sgi-irix4*) # Mostly like a MIPS.
2240 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2241 if test x$stabs = xyes; then
2242 tm_file="${tm_file} dbx.h"
2245 xmake_file=mips/x-iris
2246 if test x$gas = xyes
2248 tmake_file=mips/t-mips-gas
2250 extra_passes="mips-tfile mips-tdump"
2252 if test x$gnu_ld != xyes
2256 # if test x$enable_threads = xyes; then
2257 # thread_file='irix'
2260 mips-sgi-*) # Mostly like a MIPS.
2261 tm_file="mips/iris3.h ${tm_file}"
2262 if test x$stabs = xyes; then
2263 tm_file="${tm_file} dbx.h"
2266 xmake_file=mips/x-iris3
2267 if test x$gas = xyes
2269 tmake_file=mips/t-mips-gas
2271 extra_passes="mips-tfile mips-tdump"
2273 if test x$gnu_ld != xyes
2278 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2279 tm_file="mips/osfrose.h ${tm_file}"
2280 xmake_file=mips/x-osfrose
2281 tmake_file=mips/t-osfrose
2282 extra_objs=halfpic.o
2285 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2286 tm_file=mips/dec-osf1.h
2287 if test x$stabs = xyes; then
2288 tm_file="${tm_file} dbx.h"
2290 xmake_file=mips/x-dec-osf1
2291 if test x$gas = xyes
2293 tmake_file=mips/t-mips-gas
2295 tmake_file=mips/t-ultrix
2296 extra_passes="mips-tfile mips-tdump"
2298 if test x$gnu_ld != xyes
2303 mips-dec-bsd*) # Decstation running 4.4 BSD
2304 tm_file=mips/dec-bsd.h
2305 if test x$gas = xyes
2307 tmake_file=mips/t-mips-gas
2309 tmake_file=mips/t-ultrix
2310 extra_passes="mips-tfile mips-tdump"
2312 if test x$gnu_ld != xyes
2317 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2318 tm_file=mips/netbsd.h
2319 # On NetBSD, the headers are already okay, except for math.h.
2322 mips*-*-linux*) # Linux MIPS, either endian.
2325 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2326 *) tm_file="mips/elf.h mips/linux.h" ;;
2329 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2332 if test x$enable_threads = xyes; then
2336 mips*el-*-openbsd*) # mips little endian
2337 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2339 mips*-*-openbsd*) # mips big endian
2340 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2341 tm_file="mips/openbsd-be.h ${tm_file}"
2343 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2344 tm_file="mips/news4.h ${tm_file}"
2345 if test x$stabs = xyes; then
2346 tm_file="${tm_file} dbx.h"
2348 if test x$gas = xyes
2350 tmake_file=mips/t-mips-gas
2352 extra_passes="mips-tfile mips-tdump"
2354 if test x$gnu_ld != xyes
2358 xmake_file=mips/x-sony
2360 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2361 # That is based on svr4.
2362 # t-svr4 is not right because this system doesn't use ELF.
2363 tm_file="mips/news5.h ${tm_file}"
2364 if test x$stabs = xyes; then
2365 tm_file="${tm_file} dbx.h"
2368 if test x$gas = xyes
2370 tmake_file=mips/t-mips-gas
2372 extra_passes="mips-tfile mips-tdump"
2374 if test x$gnu_ld != xyes
2379 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2380 tm_file="mips/svr4-5.h mips/svr4-t.h"
2381 if test x$stabs = xyes; then
2382 tm_file="${tm_file} dbx.h"
2385 xmake_file=mips/x-sysv
2386 if test x$gas = xyes
2388 tmake_file=mips/t-mips-gas
2389 extra_parts="crtbegin.o crtend.o"
2391 tmake_file=mips/t-mips
2392 extra_passes="mips-tfile mips-tdump"
2394 if test x$gnu_ld != xyes
2399 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2400 tm_file="mips/ultrix.h ${tm_file}"
2401 if test x$stabs = xyes; then
2402 tm_file="${tm_file} dbx.h"
2404 xmake_file=mips/x-ultrix
2405 if test x$gas = xyes
2407 tmake_file=mips/t-mips-gas
2409 tmake_file=mips/t-ultrix
2410 extra_passes="mips-tfile mips-tdump"
2412 if test x$gnu_ld != xyes
2417 mips-*-riscos[56789]bsd*)
2418 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.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-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2435 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2436 if test x$stabs = xyes; then
2437 tm_file="${tm_file} dbx.h"
2439 if test x$gas = xyes
2441 tmake_file=mips/t-bsd-gas
2443 tmake_file=mips/t-bsd
2444 extra_passes="mips-tfile mips-tdump"
2446 if test x$gnu_ld != xyes
2451 mips-*-riscos[56789]sysv4*)
2452 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2453 if test x$stabs = xyes; then
2454 tm_file="${tm_file} dbx.h"
2456 xmake_file=mips/x-sysv
2457 if test x$gas = xyes
2459 tmake_file=mips/t-svr4-gas
2461 tmake_file=mips/t-svr4
2462 extra_passes="mips-tfile mips-tdump"
2464 if test x$gnu_ld != xyes
2469 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2470 tm_file="mips/svr4-4.h ${tm_file}"
2471 if test x$stabs = xyes; then
2472 tm_file="${tm_file} dbx.h"
2475 xmake_file=mips/x-sysv
2476 if test x$gas = xyes
2478 tmake_file=mips/t-svr4-gas
2480 tmake_file=mips/t-svr4
2481 extra_passes="mips-tfile mips-tdump"
2483 if test x$gnu_ld != xyes
2488 mips-*-riscos[56789]sysv*)
2489 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2490 if test x$stabs = xyes; then
2491 tm_file="${tm_file} dbx.h"
2494 xmake_file=mips/x-sysv
2495 if test x$gas = xyes
2497 tmake_file=mips/t-svr3-gas
2499 tmake_file=mips/t-svr3
2500 extra_passes="mips-tfile mips-tdump"
2502 if test x$gnu_ld != xyes
2507 mips-*-sysv* | mips-*-riscos*sysv*)
2508 tm_file="mips/svr3-4.h ${tm_file}"
2509 if test x$stabs = xyes; then
2510 tm_file="${tm_file} dbx.h"
2513 xmake_file=mips/x-sysv
2514 if test x$gas = xyes
2516 tmake_file=mips/t-svr3-gas
2518 tmake_file=mips/t-svr3
2519 extra_passes="mips-tfile mips-tdump"
2521 if test x$gnu_ld != xyes
2526 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2527 tm_file=mips/mips-5.h
2528 if test x$stabs = xyes; then
2529 tm_file="${tm_file} dbx.h"
2531 if test x$gas = xyes
2533 tmake_file=mips/t-mips-gas
2535 extra_passes="mips-tfile mips-tdump"
2537 if test x$gnu_ld != xyes
2545 tm_file=mips/ecoffl.h
2546 if test x$stabs = xyes; then
2547 tm_file="${tm_file} dbx.h"
2549 tmake_file=mips/t-ecoff
2552 tm_file="gofast.h mips/ecoff.h"
2553 if test x$stabs = xyes; then
2554 tm_file="${tm_file} dbx.h"
2556 tmake_file=mips/t-ecoff
2559 tm_file="mips/elfl.h"
2560 tmake_file=mips/t-elf
2563 tm_file="mips/elf.h"
2564 tmake_file=mips/t-elf
2567 tm_file="mips/elfl64.h"
2568 tmake_file=mips/t-elf
2570 mips64orionel-*-elf*)
2571 tm_file="mips/elforion.h mips/elfl64.h"
2572 tmake_file=mips/t-elf
2575 tm_file="mips/elf64.h"
2576 tmake_file=mips/t-elf
2579 tm_file="mips/elforion.h mips/elf64.h"
2580 tmake_file=mips/t-elf
2582 mips64orion-*-rtems*)
2583 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2584 tmake_file="mips/t-elf t-rtems"
2585 if test x$enable_threads = xyes; then
2590 tm_file="mips/elf.h mips/rtems.h"
2591 tmake_file="mips/t-elf t-rtems"
2592 if test x$enable_threads = xyes; then
2597 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2598 tmake_file=mips/t-r3900
2601 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2602 tmake_file=mips/t-r3900
2604 mips-*-*) # Default MIPS RISC-OS 4.0.
2605 if test x$stabs = xyes; then
2606 tm_file="${tm_file} dbx.h"
2608 if test x$gas = xyes
2610 tmake_file=mips/t-mips-gas
2612 extra_passes="mips-tfile mips-tdump"
2614 if test x$gnu_ld != xyes
2622 tm_file="mn10200/mn10200.h"
2623 if test x$stabs = xyes
2625 tm_file="${tm_file} dbx.h"
2631 tm_file="mn10300/mn10300.h"
2632 if test x$stabs = xyes
2634 tm_file="${tm_file} dbx.h"
2639 tm_file=ns32k/encore.h
2643 tm_file=ns32k/sequent.h
2647 tm_file=ns32k/tek6100.h
2651 tm_file=ns32k/tek6200.h
2655 tm_file=ns32k/merlin.h
2659 tm_file=ns32k/pc532-mach.h
2663 tm_file=ns32k/pc532-min.h
2664 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2669 tm_file=ns32k/netbsd.h
2670 # On NetBSD, the headers are already okay, except for math.h.
2675 tm_file="${tm_file} pdp11/2bsd.h"
2685 tm_file="svr4.h pj/linux.h ${tm_file}"
2690 tm_file="svr4.h pj/pjl.h ${tm_file}"
2697 xmake_file=romp/x-mach
2704 tmake_file="${tmake_file} rs6000/t-rs6000"
2708 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2709 xm_file=rs6000/xm-beos.h
2710 tmake_file=rs6000/t-beos
2711 xmake_file=rs6000/x-beos
2714 xm_file="rs6000/xm-rs6000.h rs6000/xm-darwin.h"
2715 xmake_file=rs6000/x-darwin
2718 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2719 xm_file="rs6000/xm-sysv4.h"
2720 xm_defines="USG POSIX"
2721 extra_headers=ppc-asm.h
2722 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2723 xmake_file=rs6000/x-sysv4
2725 powerpc-*-chorusos*)
2726 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2727 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2728 extra_headers=ppc-asm.h
2729 case x${enable_threads} in
2730 xyes | xpthreads | xposix)
2736 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2737 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2738 extra_headers=ppc-asm.h
2741 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2742 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2743 extra_headers=ppc-asm.h
2746 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2747 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2748 extra_headers=ppc-asm.h
2751 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2752 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2753 extra_headers=ppc-asm.h
2756 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2757 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2758 extra_headers=ppc-asm.h
2759 if test x$enable_threads = xyes; then
2763 powerpc-*-linux*libc1)
2764 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2765 xm_file=rs6000/xm-sysv4.h
2766 out_file=rs6000/rs6000.c
2767 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2769 extra_headers=ppc-asm.h
2770 if test x$enable_threads = xyes; then
2775 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2776 xm_file="rs6000/xm-sysv4.h"
2777 xm_defines="USG ${xm_defines}"
2778 out_file=rs6000/rs6000.c
2779 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2781 extra_headers=ppc-asm.h
2782 if test x$enable_threads = xyes; then
2786 powerpc-wrs-vxworks*)
2788 xm_file="rs6000/xm-sysv4.h"
2789 xm_defines="USG POSIX"
2790 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2791 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2792 extra_headers=ppc-asm.h
2793 thread_file='vxworks'
2795 powerpcle-wrs-vxworks*)
2797 xm_file="rs6000/xm-sysv4.h"
2798 xm_defines="USG POSIX"
2799 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2800 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2801 extra_headers=ppc-asm.h
2802 thread_file='vxworks'
2805 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2806 xm_file="rs6000/xm-sysv4.h"
2807 xm_defines="USG POSIX"
2808 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2809 xmake_file=rs6000/x-sysv4
2810 extra_headers=ppc-asm.h
2813 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2814 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2815 extra_headers=ppc-asm.h
2817 powerpcle-*-eabisim*)
2818 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2819 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2820 extra_headers=ppc-asm.h
2823 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2824 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2825 extra_headers=ppc-asm.h
2827 powerpcle-*-solaris2*)
2828 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2829 xm_file="rs6000/xm-sysv4.h"
2830 xm_defines="USG POSIX"
2831 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2832 xmake_file=rs6000/x-sysv4
2833 extra_headers=ppc-asm.h
2835 rs6000-ibm-aix3.[01]*)
2836 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2837 xmake_file=rs6000/x-aix31
2841 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2842 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2843 tmake_file=rs6000/t-newas
2847 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2848 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2849 tmake_file=rs6000/t-newas
2850 xmake_file=rs6000/x-aix41
2854 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2855 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2856 tmake_file=rs6000/t-aix43
2857 xmake_file=rs6000/x-aix41
2862 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2863 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2864 tmake_file=rs6000/t-aix43
2865 xmake_file=rs6000/x-aix41
2871 tm_file="${tm_file} rs6000/aix.h"
2876 tm_file="${tm_file} rs6000/aix.h"
2881 tm_file=rs6000/mach.h
2882 xm_file="${xm_file} rs6000/xm-mach.h"
2883 xmake_file=rs6000/x-mach
2887 tm_file=rs6000/lynx.h
2888 xm_file=rs6000/xm-lynx.h
2889 tmake_file=rs6000/t-rs6000
2890 xmake_file=rs6000/x-lynx
2894 tmake_file="sh/t-sh sh/t-elf"
2895 tm_file="sh/sh.h sh/elf.h"
2899 tmake_file="sh/t-sh sh/t-elf t-rtems"
2900 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2902 if test x$enable_threads = xyes; then
2907 tmake_file="sh/t-sh t-rtems"
2908 tm_file="sh/sh.h sh/rtems.h"
2910 if test x$enable_threads = xyes; then
2915 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2916 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2919 if test x$enable_threads = xyes; then
2929 xm_file="xm-alloca.h ${xm_file}"
2932 sparc64-wrs-vxworks*)
2933 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2934 tmake_file=sparc/t-vxsparc64
2937 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2938 tm_file=sparc/vxsparc.h
2939 tmake_file=sparc/t-vxsparc
2941 thread_file='vxworks'
2944 tmake_file=sparc/t-sparcbare
2945 tm_file="sparc/aout.h libgloss.h"
2948 tm_file=sparc/netbsd.h
2953 # we need collect2 until our bug is fixed...
2960 tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
2961 tmake_file=sparc/t-chorus-elf
2962 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2964 case x${enable_threads} in
2965 xyes | xpthreads | xposix)
2971 tm_file="sparc/sol2.h sparc/elf.h"
2972 tmake_file=sparc/t-elf
2973 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2977 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2978 xm_file="${xm_file} sparc/xm-linux.h"
2979 tm_file=sparc/linux-aout.h
2983 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2984 xm_file="${xm_file} sparc/xm-linux.h"
2986 tm_file=sparc/linux.h
2987 tmake_file="t-linux t-linux-gnulibc1"
2988 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2992 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2993 xm_file="${xm_file} sparc/xm-linux.h"
2995 tm_file=sparc/linux.h
2996 tmake_file="t-linux"
2997 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2999 if test x$enable_threads = xyes; then
3005 if test x$gas = xyes
3007 tm_file=sparc/lynx.h
3009 tm_file=sparc/lynx-ng.h
3011 xm_file=sparc/xm-lynx.h
3012 tmake_file=sparc/t-sunos41
3016 tmake_file="sparc/t-sparcbare t-rtems"
3017 tm_file=sparc/rtems.h
3018 if test x$enable_threads = xyes; then
3022 sparc-*-rtems*|sparc-*-rtemself*)
3023 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
3024 tmake_file="sparc/t-elf t-rtems"
3025 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3028 if test x$enable_threads = xyes; then
3032 sparcv9-*-solaris2*)
3033 if test x$gnu_ld = xyes
3035 tm_file=sparc/sol2-64.h
3037 tm_file=sparc/sol2-sld-64.h
3039 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3040 xm_defines="USG POSIX"
3041 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3042 if test x$gnu_ld = xyes; then
3043 tmake_file="$tmake_file sparc/t-slibgcc"
3045 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3047 xmake_file=sparc/x-sysv4
3048 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3050 if test x${enable_threads} = x ; then
3051 enable_threads=$have_pthread_h
3052 if test x${enable_threads} = x ; then
3053 enable_threads=$have_thread_h
3056 if test x${enable_threads} = xyes ; then
3057 if test x${have_pthread_h} = xyes ; then
3060 thread_file='solaris'
3064 sparc-hal-solaris2*)
3065 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3066 xm_defines="USG POSIX"
3067 tm_file="sparc/sol2.h sparc/hal.h"
3068 tmake_file="sparc/t-halos sparc/t-sol2"
3069 if test x$gnu_ld = xyes; then
3070 tmake_file="$tmake_file sparc/t-slibgcc"
3072 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3074 xmake_file=sparc/x-sysv4
3075 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3084 thread_file='solaris'
3087 if test x$gnu_ld = xyes
3089 tm_file=sparc/sol2.h
3091 tm_file=sparc/sol2-sld.h
3093 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3094 xm_defines="USG POSIX"
3095 tmake_file=sparc/t-sol2
3096 if test x$gnu_ld = xyes; then
3097 tmake_file="$tmake_file sparc/t-slibgcc"
3099 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3101 xmake_file=sparc/x-sysv4
3102 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3103 # At the moment, 32-to-64 cross compilation doesn't work.
3105 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3107 # if test x$gnu_ld = xyes
3109 # tm_file=sparc/sol2-64.h
3111 # tm_file=sparc/sol2-sld-64.h
3113 # tmake_file="$tmake_file sparc/t-sol2-64"
3124 if test x${enable_threads} = x; then
3125 enable_threads=$have_pthread_h
3126 if test x${enable_threads} = x; then
3127 enable_threads=$have_thread_h
3130 if test x${enable_threads} = xyes; then
3131 if test x${have_pthread_h} = xyes; then
3134 thread_file='solaris'
3139 tm_file=sparc/sunos4.h
3140 tmake_file=sparc/t-sunos40
3144 tm_file=sparc/sunos4.h
3145 tmake_file=sparc/t-sunos41
3147 if test x$gas = xyes; then
3148 tm_file="${tm_file} sparc/sun4gas.h"
3152 tm_file=sparc/sun4o3.h
3156 tm_file=sparc/sysv4.h
3157 xm_file="sparc/xm-sysv4.h"
3158 xm_defines="USG POSIX"
3160 xmake_file=sparc/x-sysv4
3161 extra_parts="crtbegin.o crtend.o"
3164 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3165 xm_defines="USG POSIX"
3166 tm_file=sparc/vxsim.h
3167 tmake_file=sparc/t-vxsparc
3168 xmake_file=sparc/x-sysv4
3171 tm_file="sparc/splet.h libgloss.h"
3172 tmake_file=sparc/t-splet
3175 tm_file="sparc/litecoff.h libgloss.h"
3176 tmake_file=sparc/t-sparclite
3179 tm_file="sparc/lite.h aoutos.h libgloss.h"
3180 tmake_file=sparc/t-sparclite
3183 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3184 tmake_file=sparc/t-sparclite
3185 extra_parts="crtbegin.o crtend.o"
3188 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3189 tmake_file=sparc/t-sp86x
3192 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3193 tmake_file=sparc/t-sp86x
3194 extra_parts="crtbegin.o crtend.o"
3197 tmake_file=sparc/t-sp64
3198 tm_file=sparc/sp64-aout.h
3201 tmake_file=sparc/t-sp64
3202 tm_file=sparc/sp64-elf.h
3203 extra_parts="crtbegin.o crtend.o"
3205 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3206 tmake_file="t-linux sparc/t-linux64"
3207 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3208 tm_file=sparc/linux64.h
3210 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3212 if test x$enable_threads = xyes; then
3218 tm_file=arm/strongarm-elf.h
3219 tmake_file=arm/t-strongarm-elf
3221 xm_file=arm/xm-arm.h
3225 tm_file=arm/strongarm-coff.h
3226 tmake_file=arm/t-strongarm-coff
3228 xm_file=arm/xm-arm.h
3232 tm_file=arm/strongarm-pe.h
3233 tmake_file=arm/t-strongarm-pe
3235 xm_file=arm/xm-arm.h
3240 { echo "config.gcc: error:
3241 *** The Thumb targets have been deprecated. The equivalent
3242 *** ARM based toolchain can now generate Thumb instructions
3243 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3247 tm_file="v850/rtems.h"
3248 xm_file="v850/xm-v850.h"
3249 tmake_file="v850/t-v850 t-rtems"
3250 if test x$stabs = xyes
3252 tm_file="${tm_file} dbx.h"
3255 c_target_objs="v850-c.o"
3256 cxx_target_objs="v850-c.o"
3259 target_cpu_default="TARGET_CPU_generic"
3261 tm_file="v850/v850.h"
3262 xm_file="v850/xm-v850.h"
3263 tmake_file=v850/t-v850
3264 if test x$stabs = xyes
3266 tm_file="${tm_file} dbx.h"
3269 c_target_objs="v850-c.o"
3270 cxx_target_objs="v850-c.o"
3272 vax-*-bsd*) # vaxen running BSD
3276 vax-*-sysv*) # vaxen running system V
3277 tm_file="${tm_file} vax/vaxv.h"
3282 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3288 tmake_file="${tmake_file} vax/t-openbsd"
3289 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3290 xm_file="xm-openbsd.h vax/xm-vax.h"
3294 vax-*-ultrix*) # vaxen running ultrix
3295 tm_file="${tm_file} vax/ultrix.h"
3298 vax-*-vms*) # vaxen running VMS
3299 xm_file=vax/xm-vms.h
3303 vax-*-*) # vax default entry
3307 xm_file="${xm_file} xm-svr3"
3311 tm_file=arm/xscale-elf.h
3312 tmake_file=arm/t-xscale-elf
3314 xm_file=arm/xm-arm.h
3318 tm_file=arm/xscale-coff.h
3319 tmake_file=arm/t-xscale-coff
3321 xm_file=arm/xm-arm.h
3325 echo "Configuration $machine not supported" 1>&2
3332 xmake_try_sysv=x-sysv
3333 install_headers_dir=install-headers-cpio
3336 install_headers_dir=install-headers-cpio
3340 # Distinguish i[34567]86
3341 # Also, do not run mips-tfile on MIPS if using gas.
3342 # Process --with-cpu= for PowerPC/rs6000
3343 target_cpu_default2=
3346 target_cpu_default2=1
3349 case $target_alias in
3351 target_cpu_default2=4
3354 target_cpu_default2=2
3358 i686-*-* | i786-*-*)
3359 target_cpu_default2=3
3364 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3367 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3370 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3373 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3376 target_cpu_default2="MASK_CPU_EV5"
3380 if test x$gas = xyes
3382 if test "$target_cpu_default2" = ""
3384 target_cpu_default2="MASK_GAS"
3386 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3391 case "x$with_cpu" in
3394 target_cpu_default2="TARGET_CPU_generic"
3397 # Distinguish cores, and major variants
3398 # arm7m doesn't exist, but D & I don't affect code
3399 xarm[236789] | xarm250 | xarm[67][01]0 \
3400 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3401 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3403 | xstrongarm | xstrongarm110 | xstrongarm1100)
3404 target_cpu_default2="TARGET_CPU_$with_cpu"
3408 echo "--with-cpu must be passed a value" 1>&2
3413 if test x$pass2done = xyes
3415 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3422 mips*-*-ecoff* | mips*-*-elf*)
3423 if test x$gas = xyes
3425 if test x$gnu_ld = xyes
3427 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3429 target_cpu_default2="MASK_GAS"
3434 if test x$gas = xyes
3436 target_cpu_default2="MASK_GAS"
3439 powerpc*-*-* | rs6000-*-*)
3440 case "x$with_cpu" in
3444 xcommon | xpower | xpower2 | xpowerpc | xrios \
3445 | xrios1 | xrios2 | xrsc | xrsc1 \
3446 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3447 | xec603e | x740 | x750 | x401 \
3448 | x403 | x505 | x801 | x821 | x823 | x860)
3449 target_cpu_default2="\"$with_cpu\""
3453 echo "--with-cpu must be passed a value" 1>&2
3458 if test x$pass2done = xyes
3460 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3467 case ".$with_cpu" in
3469 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3471 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3472 target_cpu_default2="TARGET_CPU_$with_cpu"
3475 if test x$pass2done = xyes
3477 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3485 if test "$target_cpu_default2" != ""
3487 if test "$target_cpu_default" != ""
3489 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3491 target_cpu_default=$target_cpu_default2
3495 # No need for collect2 if we have the GNU linker.
3496 # Actually, there is now; GNU ld doesn't handle the EH info or
3497 # collecting for shared libraries.
3504 # Save data on machine being used to compile GCC in build_xm_file.
3505 # Save data on host machine in vars host_xm_file and host_xmake_file.
3506 if test x$pass1done = x
3508 if test x"$xm_file" = x
3509 then build_xm_file=$cpu_type/xm-$cpu_type.h
3510 else build_xm_file=$xm_file
3512 build_xm_defines=$xm_defines
3513 build_install_headers_dir=$install_headers_dir
3514 build_exeext=$exeext
3517 if test x$pass2done = x
3519 if test x"$xm_file" = x
3520 then host_xm_file=$cpu_type/xm-$cpu_type.h
3521 else host_xm_file=$xm_file
3523 host_xm_defines=$xm_defines
3524 if test x"$xmake_file" = x
3525 then xmake_file=$cpu_type/x-$cpu_type
3527 host_xmake_file="$xmake_file"
3528 host_truncate_target=$truncate_target
3529 host_extra_gcc_objs=$extra_gcc_objs
3530 host_extra_objs=$extra_host_objs