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*) # ARM GNU/Linux with ELF
534 xm_file=arm/xm-linux.h
536 tm_file="arm/linux-elf.h"
537 tmake_file="t-linux arm/t-linux"
538 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
540 case x${enable_threads} in
541 x | xyes | xpthreads | xposix)
546 arm*-*-uclinux*) # ARM ucLinux
547 tm_file=arm/uclinux-elf.h
548 tmake_file=arm/t-arm-elf
552 tmake_file=arm/t-arm-aout
555 tm_file=arm/ecos-elf.h
556 tmake_file=arm/t-arm-elf
559 tm_file=arm/unknown-elf.h
560 tmake_file=arm/t-arm-elf
563 tm_file=arm/conix-elf.h
564 tmake_file=arm/t-arm-elf
567 tm_file=arm/unknown-elf-oabi.h
568 tmake_file=arm/t-arm-elf
577 c1-convex-*) # Convex C1
581 c2-convex-*) # Convex C2
594 target_cpu_default=16
599 tmake_file="c4x/t-c4x t-rtems"
601 if test x$enable_threads = xyes; then
610 clipper-intergraph-clix*)
611 tm_file="${tm_file} svr3.h clipper/clix.h"
612 xm_file=clipper/xm-clix.h
613 xmake_file=clipper/x-clix
614 extra_headers=va-clipper.h
615 extra_parts="crtbegin.o crtend.o"
616 install_headers_dir=install-headers-cpio
627 tm_file="fr30/fr30.h"
628 tmake_file=fr30/t-fr30
629 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
632 tmake_file="h8300/t-h8300 t-rtems"
633 tm_file=h8300/rtems.h
634 if test x$enable_threads = xyes; then
643 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
644 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
645 tmake_file="t-linux pa/t-linux"
646 extra_parts="crtbegin.o crtend.o"
649 if test x$enable_threads = xyes; then
654 target_cpu_default="MASK_PA_11"
655 tmake_file=pa/t-openbsd
658 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
659 xm_file=pa/xm-papro.h
660 tmake_file="pa/t-pro t-rtems"
661 if test x$enable_threads = xyes; then
666 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
667 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
668 xm_file=pa/xm-papro.h
672 target_cpu_default="MASK_PA_11"
673 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
677 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
678 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
679 xm_file=pa/xm-papro.h
683 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
687 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
688 target_cpu_default="MASK_PA_11"
692 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
696 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
697 xm_file=pa/xm-pahpux.h
698 xmake_file=pa/x-pa-hpux
701 tm_file="${tm_file} pa/gas.h"
703 install_headers_dir=install-headers-cpio
706 hppa1.0-*-hpux8.0[0-2]*)
707 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
708 xm_file=pa/xm-pahpux.h
709 xmake_file=pa/x-pa-hpux
712 tm_file="${tm_file} pa/pa-gas.h"
714 tm_file="pa/pa-oldas.h ${tm_file}"
716 install_headers_dir=install-headers-cpio
719 hppa1.1-*-hpux8.0[0-2]*)
720 target_cpu_default="MASK_PA_11"
721 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
722 xm_file=pa/xm-pahpux.h
723 xmake_file=pa/x-pa-hpux
726 tm_file="${tm_file} pa/pa-gas.h"
728 tm_file="pa/pa-oldas.h ${tm_file}"
730 install_headers_dir=install-headers-cpio
734 target_cpu_default="MASK_PA_11"
735 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
736 xm_file=pa/xm-pahpux.h
737 xmake_file=pa/x-pa-hpux
740 tm_file="${tm_file} pa/pa-gas.h"
742 install_headers_dir=install-headers-cpio
746 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
747 xm_file=pa/xm-pahpux.h
748 xmake_file=pa/x-pa-hpux
751 tm_file="${tm_file} pa/pa-gas.h"
753 install_headers_dir=install-headers-cpio
756 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
757 target_cpu_default="MASK_PA_11"
758 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
760 xm_file=pa/xm-pahpux.h
761 xmake_file=pa/x-pa-hpux
765 tm_file="${tm_file} pa/pa-gas.h"
767 if test x$enable_threads = x; then
768 enable_threads=$have_pthread_h
770 case x${enable_threads} in
772 tmake_file="${tmake_file} pa/t-dce-thr"
775 install_headers_dir=install-headers-cpio
779 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
781 xm_file=pa/xm-pahpux.h
782 xmake_file=pa/x-pa-hpux
786 tm_file="${tm_file} pa/pa-gas.h"
788 if test x$enable_threads = x; then
789 enable_threads=$have_pthread_h
791 case x${enable_threads} in
793 tmake_file="${tmake_file} pa/t-dce-thr"
796 install_headers_dir=install-headers-cpio
800 xm_file=pa/xm-pa64hpux.h
801 xmake_file=pa/x-pa-hpux
803 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"
806 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
810 tm_file="${tm_file} pa/pa-gas.h"
812 # if [ x$enable_threads = x ]; then
813 # enable_threads=$have_pthread_h
815 # if [ x$enable_threads = xyes ]; then
817 # tmake_file="${tmake_file} pa/t-dce-thr"
819 install_headers_dir=install-headers-cpio
822 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
823 target_cpu_default="MASK_PA_11"
824 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
826 xm_file=pa/xm-pahpux.h
827 xmake_file=pa/x-pa-hpux
831 tm_file="${tm_file} pa/pa-gas.h"
833 # if test x$enable_threads = x; then
834 # enable_threads=$have_pthread_h
836 # if test x$enable_threads = xyes; then
838 # tmake_file="${tmake_file} pa/t-dce-thr"
840 install_headers_dir=install-headers-cpio
844 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
846 xm_file=pa/xm-pahpux.h
847 xmake_file=pa/x-pa-hpux
850 tm_file="${tm_file} pa/pa-gas.h"
852 # if test x$enable_threads = x; then
853 # enable_threads=$have_pthread_h
855 # if test x$enable_threads = xyes; then
857 # tmake_file="${tmake_file} pa/t-dce-thr"
859 install_headers_dir=install-headers-cpio
862 hppa1.1-*-hpux* | hppa2*-*-hpux*)
863 target_cpu_default="MASK_PA_11"
864 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
865 xm_file=pa/xm-pahpux.h
866 xmake_file=pa/x-pa-hpux
869 tm_file="${tm_file} pa/pa-gas.h"
871 install_headers_dir=install-headers-cpio
875 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
876 xm_file=pa/xm-pahpux.h
877 xmake_file=pa/x-pa-hpux
880 tm_file="${tm_file} pa/pa-gas.h"
882 install_headers_dir=install-headers-cpio
885 hppa1.1-*-hiux* | hppa2*-*-hiux*)
886 target_cpu_default="MASK_PA_11"
887 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
888 xm_file=pa/xm-pahpux.h
889 xmake_file=pa/x-pa-hpux
892 tm_file="${tm_file} pa/pa-gas.h"
894 install_headers_dir=install-headers-cpio
898 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
899 xm_file=pa/xm-pahpux.h
900 xmake_file=pa/x-pa-hpux
903 tm_file="${tm_file} pa/pa-gas.h"
905 install_headers_dir=install-headers-cpio
909 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
910 target_cpu_default="MASK_PA_11"
914 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
915 xm_file=pa/xm-pampeix.h
916 xmake_file=pa/x-pa-mpeix
917 echo "You must use gas. Assuming it is already installed."
918 install_headers_dir=install-headers-tar
921 i370-*-opened*) # IBM 360/370/390 Architecture
928 xm_file=i370/xm-mvs.h
930 tmake_file=i370/t-mvs
933 xm_file="xm-linux.h i370/xm-linux.h"
935 tm_file="i370/linux.h ${tm_file}"
936 tmake_file="t-linux i370/t-linux"
938 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
939 # extra_parts="crtbegin.o crtend.o"
943 if test x$enable_threads = xyes; then
947 i[34567]86-*-chorusos*)
948 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
949 tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h i386/chorus.h"
950 tmake_file=i386/t-i386elf
952 case x${enable_threads} in
953 xyes | xpthreads | xposix)
959 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
960 tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h"
961 tmake_file=i386/t-i386elf
964 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
967 tm_file=i386/aix386.h
968 extra_parts="crtbegin.o crtend.o"
969 tmake_file=i386/t-crtstuff
971 tm_file=i386/aix386ng.h
974 xm_file="xm-alloca.h ${xm_file}"
976 xmake_file=i386/x-aix
978 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
979 xm_file="xm-alloca.h ${xm_file}"
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*)
1016 xm_defines="USG SVR3"
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*)
1024 xm_defines="USG SVR3"
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 xm_file="xm-alloca.h ${xm_file}"
1033 if test x$gas = xyes
1035 tm_file="${tm_file} usegas.h"
1037 xm_defines="USG POSIX SMALL_ARG_MAX"
1039 tm_file=i386/ptx4-i.h
1041 extra_parts="crtbegin.o crtend.o"
1042 install_headers_dir=install-headers-cpio
1044 i386-sun-sunos*) # Sun i386 roadrunner
1049 i[34567]86-wrs-vxworks*)
1050 tm_file=i386/vxi386.h
1051 tmake_file=i386/t-i386bare
1052 thread_file='vxworks'
1055 tm_file=i386/i386-aout.h
1056 tmake_file=i386/t-i386bare
1058 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"
1108 xm_defines="USG SVR3"
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 xm_file=i386/xm-lynx.h
1206 tmake_file=i386/t-i386bare
1211 # tmake_file=t-libc-ok
1214 i[34567]86-*-osfrose*) # 386 using OSF/rose
1215 if test x$elf = xyes
1217 tm_file=i386/osfelf.h
1220 tm_file=i386/osfrose.h
1223 xmake_file=i386/x-osfrose
1224 tmake_file=i386/t-osf
1225 extra_objs=halfpic.o
1227 i[34567]86-go32-rtems*)
1229 xm_file=i386/xm-go32.h
1230 tm_file=i386/go32-rtems.h
1232 if test x$enable_threads = xyes; then
1236 i[34567]86-*-rtemscoff*)
1238 tm_file=i386/rtems.h
1239 tmake_file="i386/t-i386bare t-rtems"
1240 if test x$enable_threads = xyes; then
1244 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1246 tm_file=i386/rtemself.h
1247 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1248 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1249 if test x$enable_threads = xyes; then
1253 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1254 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1255 xm_defines="USG SVR3"
1256 xmake_file=i386/x-sco5
1257 install_headers_dir=install-headers-cpio
1259 if test x$gas = xyes
1261 tm_file="usegas.h ${tm_file}"
1262 tmake_file=i386/t-sco5gas
1264 tmake_file=i386/t-sco5
1266 tmake_file="$tmake_file i386/t-i386bare"
1267 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1269 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1270 xm_file="${xm_file} i386/xm-sco.h"
1271 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1272 xmake_file=i386/x-sco4
1273 install_headers_dir=install-headers-cpio
1274 if test x$stabs = xyes
1276 tm_file=i386/sco4dbx.h
1277 tmake_file=i386/t-svr3dbx
1278 extra_parts="svr3.ifile svr3z.rfile"
1281 tmake_file=i386/t-crtstuff
1282 extra_parts="crtbegin.o crtend.o"
1284 tmake_file="$tmake_file i386/t-i386bare"
1285 # The default EAFS filesystem supports long file names.
1286 # Truncating the target makes $host != $target which
1287 # makes gcc think it is doing a cross-compile.
1288 # truncate_target=yes
1290 i[34567]86-*-sco*) # 80386 running SCO system
1291 xm_file=i386/xm-sco.h
1292 xmake_file=i386/x-sco
1293 install_headers_dir=install-headers-cpio
1294 if test x$stabs = xyes
1296 tm_file=i386/scodbx.h
1297 tmake_file=i386/t-svr3dbx
1298 extra_parts="svr3.ifile svr3z.rfile"
1301 extra_parts="crtbegin.o crtend.o"
1302 tmake_file=i386/t-crtstuff
1304 tmake_file="$tmake_file i386/t-i386bare"
1307 i[34567]86-*-solaris2*)
1308 xm_file="xm-alloca.h ${xm_file}"
1309 xm_defines="USG POSIX SMALL_ARG_MAX"
1311 if test x$gas = xyes; then
1312 # Only needed if gas does not support -s
1313 tm_file="i386/sol2gas.h ${tm_file}"
1315 tmake_file="i386/t-i386bare i386/t-sol2"
1316 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1318 if test x${enable_threads} = x; then
1319 enable_threads=$have_pthread_h
1320 if test x${enable_threads} = x; then
1321 enable_threads=$have_thread_h
1324 if test x${enable_threads} = xyes; then
1325 if test x${have_pthread_h} = xyes; then
1328 thread_file='solaris'
1332 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1333 xm_file="xm-alloca.h ${xm_file}"
1334 xm_defines="USG POSIX"
1335 tm_file=i386/sysv5.h
1336 if test x$stabs = xyes
1338 tm_file="${tm_file} dbx.h"
1340 tmake_file="i386/t-i386bare i386/t-crtpic"
1342 extra_parts="crtbegin.o crtend.o"
1343 if test x$enable_threads = xyes; then
1347 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1348 xm_file="xm-alloca.h ${xm_file}"
1349 xm_defines="USG POSIX SMALL_ARG_MAX"
1350 tm_file=i386/sysv4.h
1351 if test x$stabs = xyes
1353 tm_file="${tm_file} dbx.h"
1355 tmake_file="i386/t-i386bare i386/t-crtpic"
1357 extra_parts="crtbegin.o crtend.o"
1359 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1360 xm_file="xm-alloca.h ${xm_file}"
1361 xm_defines="USG POSIX"
1363 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1365 extra_parts="crtbegin.o crtend.o"
1366 install_headers_dir=install-headers-cpio
1368 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1370 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1371 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1372 if test x$stabs = xyes
1374 tm_file=i386/osf1elfgdb.h
1376 tm_file=i386/osf1elf.h
1378 tmake_file=i386/t-osf1elf
1379 xmake_file=i386/x-osf1elf
1380 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1382 i[34567]86-*-sysv*) # Intel 80386's running system V
1383 xm_defines="USG SVR3"
1384 xmake_file=i386/x-sysv3
1385 if test x$gas = xyes
1387 if test x$stabs = xyes
1389 tm_file=i386/svr3dbx.h
1390 tmake_file=i386/t-svr3dbx
1391 extra_parts="svr3.ifile svr3z.rfile"
1393 tm_file=i386/svr3gas.h
1394 extra_parts="crtbegin.o crtend.o"
1395 tmake_file=i386/t-crtstuff
1398 tm_file=i386/sysv3.h
1399 extra_parts="crtbegin.o crtend.o"
1400 tmake_file=i386/t-crtstuff
1402 tmake_file="$tmake_file i386/t-crtpic"
1404 i386-*-vsta) # Intel 80386's running VSTa kernel
1405 xm_file="${xm_file} i386/xm-vsta.h"
1407 tmake_file=i386/t-vsta
1408 xmake_file=i386/x-vsta
1411 xm_file="${xm_file} i386/xm-cygwin.h"
1413 tmake_file=i386/t-cygwin
1414 tm_file=i386/win32.h
1415 xmake_file=i386/x-cygwin
1417 if test x$enable_threads = xyes; then
1422 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1423 xm_file="${xm_file} i386/xm-cygwin.h"
1425 tmake_file=i386/t-cygwin
1426 tm_file=i386/cygwin.h
1427 xmake_file=i386/x-cygwin
1429 if test x$enable_threads = xyes; then
1434 i[34567]86-*-mingw32*)
1435 tm_file=i386/mingw32.h
1437 xm_file="${xm_file} i386/xm-mingw32.h"
1438 tmake_file="i386/t-cygwin i386/t-mingw32"
1440 xmake_file=i386/x-cygwin
1441 if test x$enable_threads = xyes; then
1448 *minwg32crt* | *mingw32*)
1449 tm_file="${tm_file} i386/crtdll.h"
1455 tmake_file="i386/t-cygwin i386/t-uwin"
1457 xmake_file=i386/x-cygwin
1458 if test x$enable_threads = xyes; then
1463 i[34567]86-*-interix*)
1464 tm_file="i386/i386-interix.h interix.h"
1465 xm_file="i386/xm-i386-interix.h xm-interix.h"
1467 tmake_file="i386/t-interix"
1468 extra_objs=interix.o
1469 xmake_file=x-interix
1470 if test x$enable_threads = xyes ; then
1473 if test x$stabs = xyes ; then
1474 tm_file="${tm_file} dbxcoff.h"
1477 i[34567]86-dg-dgux*)
1478 xm_file="xm-alloca.h ${xm_file}"
1479 xm_defines="USG POSIX"
1480 out_file=i386/dgux.c
1482 tmake_file=i386/t-dgux
1483 xmake_file=i386/x-dgux
1484 install_headers_dir=install-headers-cpio
1486 i860-alliant-*) # Alliant FX/2800
1487 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1488 xm_file="${xm_file}"
1489 xmake_file=i860/x-fx2800
1490 tmake_file=i860/t-fx2800
1491 extra_parts="crtbegin.o crtend.o"
1494 tm_file="${tm_file} i860/bsd.h"
1495 if test x$gas = xyes
1497 tm_file="${tm_file} i860/bsd-gas.h"
1502 tm_file="${tm_file} i860/mach.h"
1503 tmake_file=t-libc-ok
1505 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1506 tm_file="${tm_file} svr3.h i860/paragon.h"
1507 xm_defines="USG SVR3"
1510 tm_file="${tm_file} svr3.h i860/sysv3.h"
1511 xm_defines="USG SVR3"
1512 xmake_file=i860/x-sysv3
1513 extra_parts="crtbegin.o crtend.o"
1516 tm_file="${tm_file} svr4.h i860/sysv4.h"
1517 xm_defines="USG SVR3"
1518 xmake_file=i860/x-sysv4
1520 extra_parts="crtbegin.o crtend.o"
1522 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1523 tm_file="${tm_file} i960/vx960.h"
1524 tmake_file=i960/t-vxworks960
1526 thread_file='vxworks'
1528 i960-wrs-vxworks5* | i960-wrs-vxworks)
1529 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1530 tmake_file=i960/t-vxworks960
1532 thread_file='vxworks'
1535 tm_file="${tm_file} i960/vx960.h"
1536 tmake_file=i960/t-vxworks960
1538 thread_file='vxworks'
1541 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1542 tmake_file=i960/t-960bare
1546 tmake_file="i960/t-960bare t-rtems"
1547 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1549 if test x$enable_threads = xyes; then
1553 i960-*-*) # Default i960 environment.
1558 tmake_file="ia64/t-ia64"
1559 target_cpu_default="0"
1560 if test x$gas = xyes
1562 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1564 if test x$gnu_ld = xyes
1566 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1571 tm_file=ia64/linux.h
1572 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
1573 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1574 if test x$enable_threads = xyes; then
1580 extra_parts="crtinit.o crtfini.o"
1582 # m68hc11 and m68hc12 share the same machine description.
1583 m68hc11-*-*|m6811-*-*)
1584 tm_file="m68hc11/m68hc11.h"
1585 xm_file="m68hc11/xm-m68hc11.h"
1586 tm_p_file="m68hc11/m68hc11-protos.h"
1587 md_file="m68hc11/m68hc11.md"
1588 out_file="m68hc11/m68hc11.c"
1589 tmake_file="m68hc11/t-m68hc11-gas"
1591 m68hc12-*-*|m6812-*-*)
1592 tm_file="m68hc11/m68hc12.h"
1593 tm_p_file="m68hc11/m68hc11-protos.h"
1594 xm_file="m68hc11/xm-m68hc11.h"
1595 md_file="m68hc11/m68hc11.md"
1596 out_file="m68hc11/m68hc11.c"
1597 tmake_file="m68hc11/t-m68hc11-gas"
1599 m68000-convergent-sysv*)
1603 extra_headers=math-68881.h
1605 m68000-hp-bsd*) # HP 9000/200 running BSD
1606 tm_file=m68k/hp2bsd.h
1607 xmake_file=m68k/x-hp2bsd
1609 extra_headers=math-68881.h
1611 m68000-hp-hpux*) # HP 9000 series 300
1612 xm_file="xm-alloca.h ${xm_file}"
1614 if test x$gas = xyes
1616 xmake_file=m68k/x-hp320g
1617 tm_file=m68k/hp310g.h
1619 xmake_file=m68k/x-hp320
1620 tm_file=m68k/hp310.h
1622 install_headers_dir=install-headers-cpio
1624 extra_headers=math-68881.h
1629 extra_headers=math-68881.h
1632 tm_file=m68k/sun2o4.h
1634 extra_headers=math-68881.h
1638 if test x$gas = xyes
1645 extra_headers=math-68881.h
1647 m68k-apple-aux*) # Apple Macintosh running A/UX
1648 xm_defines="USG AUX"
1649 tmake_file=m68k/t-aux
1650 install_headers_dir=install-headers-cpio
1651 extra_headers=math-68881.h
1652 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1654 if test "$gnu_ld" = yes
1656 tm_file="${tm_file} m68k/auxgld.h"
1658 tm_file="${tm_file} m68k/auxld.h"
1660 if test "$gas" = yes
1662 tm_file="${tm_file} m68k/auxgas.h"
1664 tm_file="${tm_file} m68k/auxas.h"
1666 tm_file="${tm_file} m68k/a-ux.h"
1670 tm_file=m68k/apollo68.h
1671 xmake_file=m68k/x-apollo68
1673 extra_headers=math-68881.h
1676 m68k-altos-sysv*) # Altos 3068
1677 if test x$gas = xyes
1679 tm_file=m68k/altos3068.h
1682 echo "The Altos is supported only with the GNU assembler" 1>&2
1685 extra_headers=math-68881.h
1687 m68k-bull-sysv*) # Bull DPX/2
1688 if test x$gas = xyes
1690 if test x$stabs = xyes
1692 tm_file=m68k/dpx2cdbx.h
1694 tm_file=m68k/dpx2g.h
1699 xm_file="xm-alloca.h ${xm_file}"
1701 xmake_file=m68k/x-dpx2
1703 extra_headers=math-68881.h
1705 m68k-atari-sysv4*) # Atari variant of V.4.
1706 tm_file=m68k/atari.h
1707 xm_file="xm-alloca.h ${xm_file}"
1710 extra_parts="crtbegin.o crtend.o"
1711 extra_headers=math-68881.h
1714 m68k-motorola-sysv*)
1715 tm_file=m68k/mot3300.h
1716 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1717 if test x$gas = xyes
1719 xmake_file=m68k/x-mot3300-gas
1720 if test x$gnu_ld = xyes
1722 tmake_file=m68k/t-mot3300-gald
1724 tmake_file=m68k/t-mot3300-gas
1728 xmake_file=m68k/x-mot3300
1729 if test x$gnu_ld = xyes
1731 tmake_file=m68k/t-mot3300-gld
1733 tmake_file=m68k/t-mot3300
1737 gdb_needs_out_file_path=yes
1738 extra_parts="crt0.o mcrt0.o"
1739 extra_headers=math-68881.h
1742 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1743 tm_file=m68k/tower-as.h
1744 xm_defines="USG SVR3"
1745 xmake_file=m68k/x-tower
1746 extra_parts="crtbegin.o crtend.o"
1747 extra_headers=math-68881.h
1750 tm_file=m68k/plexus.h
1751 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1754 extra_headers=math-68881.h
1758 xm_file="xm-alloca.h ${xm_file}"
1760 extra_headers=math-68881.h
1763 xm_file="xm-alloca.h ${xm_file}"
1764 xm_defines="USG unos"
1765 xmake_file=m68k/x-crds
1768 extra_headers=math-68881.h
1770 m68k-cbm-sysv4*) # Commodore variant of V.4.
1772 xm_file="xm-alloca.h ${xm_file}"
1774 xmake_file=m68k/x-amix
1776 extra_parts="crtbegin.o crtend.o"
1777 extra_headers=math-68881.h
1781 tm_file=m68k/ccur-GAS.h
1782 xmake_file=m68k/x-ccur
1783 extra_headers=math-68881.h
1787 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1788 tm_file=m68k/hp3bsd44.h
1790 extra_headers=math-68881.h
1793 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1794 tm_file=m68k/hp3bsd.h
1796 extra_headers=math-68881.h
1800 if test x$with_fp = xno
1802 tm_file=m68k/isi-nfp.h
1808 extra_headers=math-68881.h
1810 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1811 xm_file="xm-alloca.h ${xm_file}"
1813 if test x$gas = xyes
1815 xmake_file=m68k/x-hp320g
1816 tm_file=m68k/hp320g.h
1818 xmake_file=m68k/x-hp320
1819 tm_file=m68k/hpux7.h
1821 install_headers_dir=install-headers-cpio
1823 extra_headers=math-68881.h
1826 m68k-hp-hpux*) # HP 9000 series 300
1827 xm_file="xm-alloca.h ${xm_file}"
1829 if test x$gas = xyes
1831 xmake_file=m68k/x-hp320g
1832 tm_file=m68k/hp320g.h
1834 xmake_file=m68k/x-hp320
1835 tm_file=m68k/hp320.h
1837 install_headers_dir=install-headers-cpio
1839 extra_headers=math-68881.h
1843 tm_file=m68k/sun3mach.h
1845 extra_headers=math-68881.h
1849 if test x$gas = xyes
1851 tm_file=m68k/news3gas.h
1853 tm_file=m68k/news3.h
1856 extra_headers=math-68881.h
1859 m68k-sony-bsd* | m68k-sony-newsos*)
1860 if test x$gas = xyes
1862 tm_file=m68k/newsgas.h
1867 extra_headers=math-68881.h
1870 m68k-next-nextstep2*)
1871 tm_file=m68k/next21.h
1872 xm_file="m68k/xm-next.h ${xm_file}"
1873 tmake_file=m68k/t-next
1874 xmake_file=m68k/x-next
1875 extra_objs=nextstep.o
1876 extra_headers=math-68881.h
1880 m68k-next-nextstep[34]*)
1882 xm_file="m68k/xm-next.h ${xm_file}"
1883 tmake_file=m68k/t-next
1884 xmake_file=m68k/x-next
1885 extra_objs=nextstep.o
1886 extra_parts="crtbegin.o crtend.o"
1887 extra_headers=math-68881.h
1889 if test x$enable_threads = xyes; then
1894 if test x$with_fp = xno
1896 tm_file=m68k/sun3n3.h
1898 tm_file=m68k/sun3o3.h
1902 extra_headers=math-68881.h
1904 m68k-sun-sunos*) # For SunOS 4 (the default).
1905 if test x$with_fp = xno
1907 tm_file=m68k/sun3n.h
1913 extra_headers=math-68881.h
1916 tm_file=m68k/vxm68k.h
1917 tmake_file=m68k/t-vxworks68
1918 extra_headers=math-68881.h
1919 thread_file='vxworks'
1923 tmake_file=m68k/t-m68kbare
1924 tm_file="m68k/m68k-aout.h libgloss.h"
1925 extra_headers=math-68881.h
1929 tmake_file=m68k/t-m68kbare
1930 tm_file="m68k/m68k-coff.h dbx.h"
1931 extra_headers=math-68881.h
1934 m68020-*-elf* | m68k-*-elf*)
1935 tm_file="m68k/m68020-elf.h"
1936 xm_file=m68k/xm-m68kv.h
1937 tmake_file=m68k/t-m68kelf
1938 header_files=math-68881.h
1941 if test x$gas = xyes
1945 tm_file=m68k/lynx-ng.h
1947 xm_file=m68k/xm-lynx.h
1949 tmake_file=m68k/t-lynx
1950 extra_headers=math-68881.h
1954 tm_file=m68k/netbsd.h
1961 # we need collect2 until our bug is fixed...
1964 m68k-*-sysv3*) # Motorola m68k's running system V.3
1965 xm_file="xm-alloca.h ${xm_file}"
1967 extra_parts="crtbegin.o crtend.o"
1968 extra_headers=math-68881.h
1971 m68k-*-sysv4*) # Motorola m68k's running system V.4
1972 tm_file=m68k/m68kv4.h
1973 xm_file="xm-alloca.h ${xm_file}"
1976 extra_parts="crtbegin.o crtend.o"
1977 extra_headers=math-68881.h
1980 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1983 tm_file=m68k/linux-aout.h
1984 tmake_file="t-linux-aout m68k/t-linux-aout"
1985 extra_headers=math-68881.h
1989 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1990 # with ELF format using the
1991 # GNU/Linux C library 5
1993 tm_file=m68k/linux.h
1994 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1995 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1996 extra_headers=math-68881.h
2000 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2001 # with ELF format using glibc 2
2002 # aka the GNU/Linux C library 6.
2004 tm_file=m68k/linux.h
2005 tmake_file="t-linux m68k/t-linux"
2006 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2007 extra_headers=math-68881.h
2010 if test x$enable_threads = xyes; then
2015 tmake_file=m68k/t-m68kbare
2016 tm_file=m68k/m68k-psos.h
2017 extra_headers=math-68881.h
2021 tmake_file="m68k/t-m68kbare t-rtems"
2022 tm_file=m68k/rtems.h
2023 extra_headers=math-68881.h
2025 if test x$enable_threads = xyes; then
2029 m68k-*-rtemself*|m68k-*-rtems*)
2030 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2031 tm_file=m68k/rtemself.h
2032 extra_headers=math-68881.h
2034 if test x$enable_threads = xyes; then
2041 tm_file=m88k/dguxbcs.h
2042 tmake_file=m88k/t-dguxbcs
2046 tmake_file=m88k/t-dgux
2049 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2050 xmake_file=m88k/x-dgux
2051 if test x$gas = xyes
2053 tmake_file=m88k/t-dgux-gas
2056 m88k-dolphin-sysv3*)
2057 tm_file=m88k/dolph.h
2058 extra_parts="crtbegin.o crtend.o"
2059 xmake_file=m88k/x-dolph
2060 if test x$gas = xyes
2062 tmake_file=m88k/t-m88k-gas
2065 m88k-tektronix-sysv3)
2066 tm_file=m88k/tekXD88.h
2067 extra_parts="crtbegin.o crtend.o"
2068 xmake_file=m88k/x-tekXD88
2069 if test x$gas = xyes
2071 tmake_file=m88k/t-m88k-gas
2075 tm_file=m88k/m88k-aout.h
2078 tm_file=m88k/m88k-coff.h
2079 tmake_file=m88k/t-bug
2083 extra_parts="crtbegin.o crtend.o"
2084 if test x$gas = xyes
2086 tmake_file=m88k/t-luna-gas
2088 tmake_file=m88k/t-luna
2092 tmake_file="${tmake_file} m88k/t-luna-gas"
2093 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2094 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2097 tm_file=m88k/sysv3.h
2098 extra_parts="crtbegin.o crtend.o"
2099 xmake_file=m88k/x-sysv3
2100 if test x$gas = xyes
2102 tmake_file=m88k/t-m88k-gas
2106 tm_file=m88k/sysv4.h
2107 extra_parts="crtbegin.o crtend.o"
2108 xmake_file=m88k/x-sysv4
2109 tmake_file=m88k/t-sysv4
2112 tm_file=mcore/mcore-elf.h
2113 tmake_file=mcore/t-mcore
2116 tm_file=mcore/mcore-pe.h
2117 tmake_file=mcore/t-mcore-pe
2119 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2120 if test "x$gnu_ld" = xyes
2122 tm_file="mips/iris6.h mips/iris6gld.h"
2124 tm_file=mips/iris6.h
2126 tmake_file=mips/t-iris6
2127 xm_file=mips/xm-iris6.h
2128 xmake_file=mips/x-iris6
2129 # if test x$enable_threads = xyes; then
2130 # thread_file='irix'
2134 tm_file="mips/elf.h mips/vxworks.h"
2135 tmake_file=mips/t-ecoff
2138 extra_parts="crtbegin.o crtend.o"
2139 thread_file='vxworks'
2141 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2142 tm_file="mips/iris6.h mips/cross64.h"
2144 xm_file="mips/xm-iris5.h"
2145 xmake_file=mips/x-iris
2146 tmake_file=mips/t-cross64
2147 # See comment in mips/iris[56].h files.
2149 # if test x$enable_threads = xyes; then
2150 # thread_file='irix'
2154 if test x$gas = xyes
2156 if test x$stabs = xyes
2158 tm_file=mips/iris5gdb.h
2160 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2163 tm_file=mips/sni-svr4.h
2166 xmake_file=mips/x-sni-svr4
2167 tmake_file=mips/t-mips-gas
2168 if test x$gnu_ld != xyes
2173 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2174 if test x$gas = xyes
2176 tm_file="mips/iris5.h mips/iris5gas.h"
2177 if test x$stabs = xyes
2179 tm_file="${tm_file} dbx.h"
2182 tm_file=mips/iris5.h
2185 xm_file="mips/xm-iris5.h"
2186 xmake_file=mips/x-iris
2187 # mips-tfile doesn't work yet
2188 tmake_file=mips/t-mips-gas
2189 # See comment in mips/iris5.h file.
2191 # if test x$enable_threads = xyes; then
2192 # thread_file='irix'
2195 mips-sgi-irix4loser*) # Mostly like a MIPS.
2196 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2197 if test x$stabs = xyes; then
2198 tm_file="${tm_file} dbx.h"
2201 xmake_file=mips/x-iris
2202 if test x$gas = xyes
2204 tmake_file=mips/t-mips-gas
2206 extra_passes="mips-tfile mips-tdump"
2208 if test x$gnu_ld != xyes
2212 # if test x$enable_threads = xyes; then
2213 # thread_file='irix'
2216 mips-sgi-irix4*) # Mostly like a MIPS.
2217 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2218 if test x$stabs = xyes; then
2219 tm_file="${tm_file} dbx.h"
2222 xmake_file=mips/x-iris
2223 if test x$gas = xyes
2225 tmake_file=mips/t-mips-gas
2227 extra_passes="mips-tfile mips-tdump"
2229 if test x$gnu_ld != xyes
2233 # if test x$enable_threads = xyes; then
2234 # thread_file='irix'
2237 mips-sgi-*) # Mostly like a MIPS.
2238 tm_file="mips/iris3.h ${tm_file}"
2239 if test x$stabs = xyes; then
2240 tm_file="${tm_file} dbx.h"
2243 xmake_file=mips/x-iris3
2244 if test x$gas = xyes
2246 tmake_file=mips/t-mips-gas
2248 extra_passes="mips-tfile mips-tdump"
2250 if test x$gnu_ld != xyes
2255 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2256 tm_file="mips/osfrose.h ${tm_file}"
2257 xmake_file=mips/x-osfrose
2258 tmake_file=mips/t-osfrose
2259 extra_objs=halfpic.o
2262 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2263 tm_file=mips/dec-osf1.h
2264 if test x$stabs = xyes; then
2265 tm_file="${tm_file} dbx.h"
2267 xmake_file=mips/x-dec-osf1
2268 if test x$gas = xyes
2270 tmake_file=mips/t-mips-gas
2272 tmake_file=mips/t-ultrix
2273 extra_passes="mips-tfile mips-tdump"
2275 if test x$gnu_ld != xyes
2280 mips-dec-bsd*) # Decstation running 4.4 BSD
2281 tm_file=mips/dec-bsd.h
2282 if test x$gas = xyes
2284 tmake_file=mips/t-mips-gas
2286 tmake_file=mips/t-ultrix
2287 extra_passes="mips-tfile mips-tdump"
2289 if test x$gnu_ld != xyes
2294 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2295 tm_file=mips/netbsd.h
2296 # On NetBSD, the headers are already okay, except for math.h.
2299 mips*-*-linux*) # Linux MIPS, either endian.
2302 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2303 *) tm_file="mips/elf.h mips/linux.h" ;;
2306 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2309 if test x$enable_threads = xyes; then
2313 mips*el-*-openbsd*) # mips little endian
2314 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2316 mips*-*-openbsd*) # mips big endian
2317 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2318 tm_file="mips/openbsd-be.h ${tm_file}"
2320 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2321 tm_file="mips/news4.h ${tm_file}"
2322 if test x$stabs = xyes; then
2323 tm_file="${tm_file} dbx.h"
2325 if test x$gas = xyes
2327 tmake_file=mips/t-mips-gas
2329 extra_passes="mips-tfile mips-tdump"
2331 if test x$gnu_ld != xyes
2335 xmake_file=mips/x-sony
2337 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2338 # That is based on svr4.
2339 # t-svr4 is not right because this system doesn't use ELF.
2340 tm_file="mips/news5.h ${tm_file}"
2341 if test x$stabs = xyes; then
2342 tm_file="${tm_file} dbx.h"
2345 if test x$gas = xyes
2347 tmake_file=mips/t-mips-gas
2349 extra_passes="mips-tfile mips-tdump"
2351 if test x$gnu_ld != xyes
2356 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2357 tm_file="mips/svr4-5.h mips/svr4-t.h"
2358 if test x$stabs = xyes; then
2359 tm_file="${tm_file} dbx.h"
2362 xmake_file=mips/x-sysv
2363 if test x$gas = xyes
2365 tmake_file=mips/t-mips-gas
2366 extra_parts="crtbegin.o crtend.o"
2368 tmake_file=mips/t-mips
2369 extra_passes="mips-tfile mips-tdump"
2371 if test x$gnu_ld != xyes
2376 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2377 tm_file="mips/ultrix.h ${tm_file}"
2378 if test x$stabs = xyes; then
2379 tm_file="${tm_file} dbx.h"
2381 xmake_file=mips/x-ultrix
2382 if test x$gas = xyes
2384 tmake_file=mips/t-mips-gas
2386 tmake_file=mips/t-ultrix
2387 extra_passes="mips-tfile mips-tdump"
2389 if test x$gnu_ld != xyes
2394 mips-*-riscos[56789]bsd*)
2395 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2396 if test x$stabs = xyes; then
2397 tm_file="${tm_file} dbx.h"
2399 if test x$gas = xyes
2401 tmake_file=mips/t-bsd-gas
2403 tmake_file=mips/t-bsd
2404 extra_passes="mips-tfile mips-tdump"
2406 if test x$gnu_ld != xyes
2411 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2412 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2413 if test x$stabs = xyes; then
2414 tm_file="${tm_file} dbx.h"
2416 if test x$gas = xyes
2418 tmake_file=mips/t-bsd-gas
2420 tmake_file=mips/t-bsd
2421 extra_passes="mips-tfile mips-tdump"
2423 if test x$gnu_ld != xyes
2428 mips-*-riscos[56789]sysv4*)
2429 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2430 if test x$stabs = xyes; then
2431 tm_file="${tm_file} dbx.h"
2433 xmake_file=mips/x-sysv
2434 if test x$gas = xyes
2436 tmake_file=mips/t-svr4-gas
2438 tmake_file=mips/t-svr4
2439 extra_passes="mips-tfile mips-tdump"
2441 if test x$gnu_ld != xyes
2446 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2447 tm_file="mips/svr4-4.h ${tm_file}"
2448 if test x$stabs = xyes; then
2449 tm_file="${tm_file} dbx.h"
2452 xmake_file=mips/x-sysv
2453 if test x$gas = xyes
2455 tmake_file=mips/t-svr4-gas
2457 tmake_file=mips/t-svr4
2458 extra_passes="mips-tfile mips-tdump"
2460 if test x$gnu_ld != xyes
2465 mips-*-riscos[56789]sysv*)
2466 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2467 if test x$stabs = xyes; then
2468 tm_file="${tm_file} dbx.h"
2471 xmake_file=mips/x-sysv
2472 if test x$gas = xyes
2474 tmake_file=mips/t-svr3-gas
2476 tmake_file=mips/t-svr3
2477 extra_passes="mips-tfile mips-tdump"
2479 if test x$gnu_ld != xyes
2484 mips-*-sysv* | mips-*-riscos*sysv*)
2485 tm_file="mips/svr3-4.h ${tm_file}"
2486 if test x$stabs = xyes; then
2487 tm_file="${tm_file} dbx.h"
2490 xmake_file=mips/x-sysv
2491 if test x$gas = xyes
2493 tmake_file=mips/t-svr3-gas
2495 tmake_file=mips/t-svr3
2496 extra_passes="mips-tfile mips-tdump"
2498 if test x$gnu_ld != xyes
2503 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2504 tm_file=mips/mips-5.h
2505 if test x$stabs = xyes; then
2506 tm_file="${tm_file} dbx.h"
2508 if test x$gas = xyes
2510 tmake_file=mips/t-mips-gas
2512 extra_passes="mips-tfile mips-tdump"
2514 if test x$gnu_ld != xyes
2522 tm_file=mips/ecoffl.h
2523 if test x$stabs = xyes; then
2524 tm_file="${tm_file} dbx.h"
2526 tmake_file=mips/t-ecoff
2529 tm_file="gofast.h mips/ecoff.h"
2530 if test x$stabs = xyes; then
2531 tm_file="${tm_file} dbx.h"
2533 tmake_file=mips/t-ecoff
2536 tm_file="mips/elfl.h"
2537 tmake_file=mips/t-elf
2540 tm_file="mips/elf.h"
2541 tmake_file=mips/t-elf
2544 tm_file="mips/elfl64.h"
2545 tmake_file=mips/t-elf
2547 mips64orionel-*-elf*)
2548 tm_file="mips/elforion.h mips/elfl64.h"
2549 tmake_file=mips/t-elf
2552 tm_file="mips/elf64.h"
2553 tmake_file=mips/t-elf
2556 tm_file="mips/elforion.h mips/elf64.h"
2557 tmake_file=mips/t-elf
2559 mips64orion-*-rtems*)
2560 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2561 tmake_file="mips/t-elf t-rtems"
2562 if test x$enable_threads = xyes; then
2567 tm_file="mips/elf.h mips/rtems.h"
2568 tmake_file="mips/t-elf t-rtems"
2569 if test x$enable_threads = xyes; then
2574 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2575 tmake_file=mips/t-r3900
2578 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2579 tmake_file=mips/t-r3900
2581 mips-*-*) # Default MIPS RISC-OS 4.0.
2582 if test x$stabs = xyes; then
2583 tm_file="${tm_file} dbx.h"
2585 if test x$gas = xyes
2587 tmake_file=mips/t-mips-gas
2589 extra_passes="mips-tfile mips-tdump"
2591 if test x$gnu_ld != xyes
2599 tm_file="mn10200/mn10200.h"
2600 if test x$stabs = xyes
2602 tm_file="${tm_file} dbx.h"
2608 tm_file="mn10300/mn10300.h"
2609 if test x$stabs = xyes
2611 tm_file="${tm_file} dbx.h"
2616 tm_file=ns32k/encore.h
2620 tm_file=ns32k/sequent.h
2624 tm_file=ns32k/tek6100.h
2628 tm_file=ns32k/tek6200.h
2632 tm_file=ns32k/merlin.h
2636 tm_file=ns32k/pc532-mach.h
2640 tm_file=ns32k/pc532-min.h
2641 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2646 tm_file=ns32k/netbsd.h
2647 # On NetBSD, the headers are already okay, except for math.h.
2652 tm_file="${tm_file} pdp11/2bsd.h"
2662 tm_file="svr4.h pj/linux.h ${tm_file}"
2667 tm_file="svr4.h pj/pjl.h ${tm_file}"
2674 xmake_file=romp/x-mach
2681 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2685 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2686 xm_file=rs6000/xm-beos.h
2687 tmake_file=rs6000/t-beos
2688 xmake_file=rs6000/x-beos
2691 xm_file="rs6000/xm-rs6000.h rs6000/xm-darwin.h"
2692 xmake_file=rs6000/x-darwin
2695 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2696 xm_file="rs6000/xm-sysv4.h"
2697 xm_defines="USG POSIX"
2698 extra_headers=ppc-asm.h
2699 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2700 xmake_file=rs6000/x-sysv4
2702 powerpc-*-chorusos*)
2703 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2704 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2705 extra_headers=ppc-asm.h
2706 case x${enable_threads} in
2707 xyes | xpthreads | xposix)
2713 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2714 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2715 extra_headers=ppc-asm.h
2718 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2719 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2720 extra_headers=ppc-asm.h
2723 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2724 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2725 extra_headers=ppc-asm.h
2728 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2729 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2730 extra_headers=ppc-asm.h
2733 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2734 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2735 extra_headers=ppc-asm.h
2736 if test x$enable_threads = xyes; then
2740 powerpc-*-linux*libc1)
2741 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2742 xm_file=rs6000/xm-sysv4.h
2743 out_file=rs6000/rs6000.c
2744 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2746 extra_headers=ppc-asm.h
2747 if test x$enable_threads = xyes; then
2752 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2753 xm_file="rs6000/xm-sysv4.h"
2754 xm_defines="USG ${xm_defines}"
2755 out_file=rs6000/rs6000.c
2756 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2758 extra_headers=ppc-asm.h
2759 if test x$enable_threads = xyes; then
2763 powerpc-wrs-vxworks*)
2765 xm_file="rs6000/xm-sysv4.h"
2766 xm_defines="USG POSIX"
2767 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2768 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2769 extra_headers=ppc-asm.h
2770 thread_file='vxworks'
2772 powerpcle-wrs-vxworks*)
2774 xm_file="rs6000/xm-sysv4.h"
2775 xm_defines="USG POSIX"
2776 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2777 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2778 extra_headers=ppc-asm.h
2779 thread_file='vxworks'
2782 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2783 xm_file="rs6000/xm-sysv4.h"
2784 xm_defines="USG POSIX"
2785 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2786 xmake_file=rs6000/x-sysv4
2787 extra_headers=ppc-asm.h
2790 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2791 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2792 extra_headers=ppc-asm.h
2794 powerpcle-*-eabisim*)
2795 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2796 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2797 extra_headers=ppc-asm.h
2800 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2801 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2802 extra_headers=ppc-asm.h
2804 powerpcle-*-solaris2*)
2805 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.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
2812 rs6000-ibm-aix3.[01]*)
2813 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2814 xmake_file=rs6000/x-aix31
2818 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2819 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2820 tmake_file=rs6000/t-newas
2824 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2825 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2826 tmake_file=rs6000/t-newas
2827 xmake_file=rs6000/x-aix41
2831 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2832 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2833 tmake_file=rs6000/t-aix43
2834 xmake_file=rs6000/x-aix41
2839 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2840 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2841 tmake_file=rs6000/t-aix43
2842 xmake_file=rs6000/x-aix41
2848 tm_file="${tm_file} rs6000/aix.h"
2853 tm_file="${tm_file} rs6000/aix.h"
2858 tm_file=rs6000/mach.h
2859 xm_file="${xm_file} rs6000/xm-mach.h"
2860 xmake_file=rs6000/x-mach
2864 tm_file=rs6000/lynx.h
2865 xm_file=rs6000/xm-lynx.h
2866 tmake_file=rs6000/t-rs6000
2867 xmake_file=rs6000/x-lynx
2871 tmake_file="sh/t-sh sh/t-elf"
2872 tm_file="sh/sh.h sh/elf.h"
2876 tmake_file="sh/t-sh sh/t-elf t-rtems"
2877 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2879 if test x$enable_threads = xyes; then
2884 tmake_file="sh/t-sh t-rtems"
2885 tm_file="sh/sh.h sh/rtems.h"
2887 if test x$enable_threads = xyes; then
2892 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2893 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2896 if test x$enable_threads = xyes; then
2906 xm_file="xm-alloca.h ${xm_file}"
2909 sparc64-wrs-vxworks*)
2910 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2911 tmake_file=sparc/t-vxsparc64
2914 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2915 tm_file=sparc/vxsparc.h
2916 tmake_file=sparc/t-vxsparc
2918 thread_file='vxworks'
2921 tmake_file=sparc/t-sparcbare
2922 tm_file="sparc/aout.h libgloss.h"
2925 tm_file=sparc/netbsd.h
2930 # we need collect2 until our bug is fixed...
2937 tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
2938 tmake_file=sparc/t-chorus-elf
2939 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2941 case x${enable_threads} in
2942 xyes | xpthreads | xposix)
2948 tm_file="sparc/sol2.h sparc/elf.h"
2949 tmake_file=sparc/t-elf
2950 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2954 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2955 xm_file="${xm_file} sparc/xm-linux.h"
2956 tm_file=sparc/linux-aout.h
2960 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2961 xm_file="${xm_file} sparc/xm-linux.h"
2963 tm_file=sparc/linux.h
2964 tmake_file="t-linux t-linux-gnulibc1"
2965 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2969 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2970 xm_file="${xm_file} sparc/xm-linux.h"
2972 tm_file=sparc/linux.h
2973 tmake_file="t-linux"
2974 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2976 if test x$enable_threads = xyes; then
2982 if test x$gas = xyes
2984 tm_file=sparc/lynx.h
2986 tm_file=sparc/lynx-ng.h
2988 xm_file=sparc/xm-lynx.h
2989 tmake_file=sparc/t-sunos41
2993 tmake_file="sparc/t-sparcbare t-rtems"
2994 tm_file=sparc/rtems.h
2995 if test x$enable_threads = xyes; then
2999 sparc-*-rtems*|sparc-*-rtemself*)
3000 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
3001 tmake_file="sparc/t-elf t-rtems"
3002 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3005 if test x$enable_threads = xyes; then
3009 sparcv9-*-solaris2*)
3010 if test x$gnu_ld = xyes
3012 tm_file=sparc/sol2-64.h
3014 tm_file=sparc/sol2-sld-64.h
3016 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3017 xm_defines="USG POSIX"
3018 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3019 if test x$gnu_ld = xyes; then
3020 tmake_file="$tmake_file sparc/t-slibgcc"
3022 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3024 xmake_file=sparc/x-sysv4
3025 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3027 if test x${enable_threads} = x ; then
3028 enable_threads=$have_pthread_h
3029 if test x${enable_threads} = x ; then
3030 enable_threads=$have_thread_h
3033 if test x${enable_threads} = xyes ; then
3034 if test x${have_pthread_h} = xyes ; then
3037 thread_file='solaris'
3041 sparc-hal-solaris2*)
3042 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3043 xm_defines="USG POSIX"
3044 tm_file="sparc/sol2.h sparc/hal.h"
3045 tmake_file="sparc/t-halos sparc/t-sol2"
3046 if test x$gnu_ld = xyes; then
3047 tmake_file="$tmake_file sparc/t-slibgcc"
3049 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3051 xmake_file=sparc/x-sysv4
3052 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3061 thread_file='solaris'
3064 if test x$gnu_ld = xyes
3066 tm_file=sparc/sol2.h
3068 tm_file=sparc/sol2-sld.h
3070 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3071 xm_defines="USG POSIX"
3072 tmake_file=sparc/t-sol2
3073 if test x$gnu_ld = xyes; then
3074 tmake_file="$tmake_file sparc/t-slibgcc"
3076 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3078 xmake_file=sparc/x-sysv4
3079 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3080 # At the moment, 32-to-64 cross compilation doesn't work.
3082 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3084 # if test x$gnu_ld = xyes
3086 # tm_file=sparc/sol2-64.h
3088 # tm_file=sparc/sol2-sld-64.h
3090 # tmake_file="$tmake_file sparc/t-sol2-64"
3101 if test x${enable_threads} = x; then
3102 enable_threads=$have_pthread_h
3103 if test x${enable_threads} = x; then
3104 enable_threads=$have_thread_h
3107 if test x${enable_threads} = xyes; then
3108 if test x${have_pthread_h} = xyes; then
3111 thread_file='solaris'
3116 tm_file=sparc/sunos4.h
3117 tmake_file=sparc/t-sunos40
3121 tm_file=sparc/sunos4.h
3122 tmake_file=sparc/t-sunos41
3124 if test x$gas = xyes; then
3125 tm_file="${tm_file} sparc/sun4gas.h"
3129 tm_file=sparc/sun4o3.h
3133 tm_file=sparc/sysv4.h
3134 xm_file="sparc/xm-sysv4.h"
3135 xm_defines="USG POSIX"
3137 xmake_file=sparc/x-sysv4
3138 extra_parts="crtbegin.o crtend.o"
3141 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3142 xm_defines="USG POSIX"
3143 tm_file=sparc/vxsim.h
3144 tmake_file=sparc/t-vxsparc
3145 xmake_file=sparc/x-sysv4
3148 tm_file="sparc/splet.h libgloss.h"
3149 tmake_file=sparc/t-splet
3152 tm_file="sparc/litecoff.h libgloss.h"
3153 tmake_file=sparc/t-sparclite
3156 tm_file="sparc/lite.h aoutos.h libgloss.h"
3157 tmake_file=sparc/t-sparclite
3160 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3161 tmake_file=sparc/t-sparclite
3162 extra_parts="crtbegin.o crtend.o"
3165 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3166 tmake_file=sparc/t-sp86x
3169 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3170 tmake_file=sparc/t-sp86x
3171 extra_parts="crtbegin.o crtend.o"
3174 tmake_file=sparc/t-sp64
3175 tm_file=sparc/sp64-aout.h
3178 tmake_file=sparc/t-sp64
3179 tm_file=sparc/sp64-elf.h
3180 extra_parts="crtbegin.o crtend.o"
3182 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3183 tmake_file="t-linux sparc/t-linux64"
3184 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3185 tm_file=sparc/linux64.h
3187 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3189 if test x$enable_threads = xyes; then
3195 tm_file=arm/strongarm-elf.h
3196 tmake_file=arm/t-strongarm-elf
3198 xm_file=arm/xm-arm.h
3202 tm_file=arm/strongarm-coff.h
3203 tmake_file=arm/t-strongarm-coff
3205 xm_file=arm/xm-arm.h
3209 tm_file=arm/strongarm-pe.h
3210 tmake_file=arm/t-strongarm-pe
3212 xm_file=arm/xm-arm.h
3217 { echo "config.gcc: error:
3218 *** The Thumb targets have been deprecated. The equivalent
3219 *** ARM based toolchain can now generate Thumb instructions
3220 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3224 tm_file="v850/rtems.h"
3225 xm_file="v850/xm-v850.h"
3226 tmake_file="v850/t-v850 t-rtems"
3227 if test x$stabs = xyes
3229 tm_file="${tm_file} dbx.h"
3232 c_target_objs="v850-c.o"
3233 cxx_target_objs="v850-c.o"
3236 target_cpu_default="TARGET_CPU_generic"
3238 tm_file="v850/v850.h"
3239 xm_file="v850/xm-v850.h"
3240 tmake_file=v850/t-v850
3241 if test x$stabs = xyes
3243 tm_file="${tm_file} dbx.h"
3246 c_target_objs="v850-c.o"
3247 cxx_target_objs="v850-c.o"
3249 vax-*-bsd*) # vaxen running BSD
3253 vax-*-sysv*) # vaxen running system V
3254 tm_file="${tm_file} vax/vaxv.h"
3259 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3265 tmake_file="${tmake_file} vax/t-openbsd"
3266 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3267 xm_file="xm-openbsd.h vax/xm-vax.h"
3271 vax-*-ultrix*) # vaxen running ultrix
3272 tm_file="${tm_file} vax/ultrix.h"
3275 vax-*-vms*) # vaxen running VMS
3276 xm_file=vax/xm-vms.h
3280 vax-*-*) # vax default entry
3284 xm_file="${xm_file} xm-svr3"
3288 tm_file=arm/xscale-elf.h
3289 tmake_file=arm/t-xscale-elf
3291 xm_file=arm/xm-arm.h
3295 tm_file=arm/xscale-coff.h
3296 tmake_file=arm/t-xscale-coff
3298 xm_file=arm/xm-arm.h
3302 echo "Configuration $machine not supported" 1>&2
3309 xmake_try_sysv=x-sysv
3310 install_headers_dir=install-headers-cpio
3313 install_headers_dir=install-headers-cpio
3317 # Distinguish i[34567]86
3318 # Also, do not run mips-tfile on MIPS if using gas.
3319 # Process --with-cpu= for PowerPC/rs6000
3320 target_cpu_default2=
3323 target_cpu_default2=1
3326 case $target_alias in
3328 target_cpu_default2=4
3331 target_cpu_default2=2
3335 i686-*-* | i786-*-*)
3336 target_cpu_default2=3
3341 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3344 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3347 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3350 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3353 target_cpu_default2="MASK_CPU_EV5"
3357 if test x$gas = xyes
3359 if test "$target_cpu_default2" = ""
3361 target_cpu_default2="MASK_GAS"
3363 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3368 case "x$with_cpu" in
3371 target_cpu_default2="TARGET_CPU_generic"
3374 # Distinguish cores, and major variants
3375 # arm7m doesn't exist, but D & I don't affect code
3376 xarm[236789] | xarm250 | xarm[67][01]0 \
3377 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3378 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3380 | xstrongarm | xstrongarm110 | xstrongarm1100)
3381 target_cpu_default2="TARGET_CPU_$with_cpu"
3385 echo "--with-cpu must be passed a value" 1>&2
3390 if test x$pass2done = xyes
3392 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3399 mips*-*-ecoff* | mips*-*-elf*)
3400 if test x$gas = xyes
3402 if test x$gnu_ld = xyes
3404 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3406 target_cpu_default2="MASK_GAS"
3411 if test x$gas = xyes
3413 target_cpu_default2="MASK_GAS"
3416 powerpc*-*-* | rs6000-*-*)
3417 case "x$with_cpu" in
3421 xcommon | xpower | xpower2 | xpowerpc | xrios \
3422 | xrios1 | xrios2 | xrsc | xrsc1 \
3423 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3424 | xec603e | x740 | x750 | x401 \
3425 | x403 | x505 | x801 | x821 | x823 | x860)
3426 target_cpu_default2="\"$with_cpu\""
3430 echo "--with-cpu must be passed a value" 1>&2
3435 if test x$pass2done = xyes
3437 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3444 case ".$with_cpu" in
3446 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3448 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3449 target_cpu_default2="TARGET_CPU_$with_cpu"
3452 if test x$pass2done = xyes
3454 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3462 if test "$target_cpu_default2" != ""
3464 if test "$target_cpu_default" != ""
3466 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3468 target_cpu_default=$target_cpu_default2
3472 # No need for collect2 if we have the GNU linker.
3473 # Actually, there is now; GNU ld doesn't handle the EH info or
3474 # collecting for shared libraries.
3481 # Save data on machine being used to compile GCC in build_xm_file.
3482 # Save data on host machine in vars host_xm_file and host_xmake_file.
3483 if test x$pass1done = x
3485 if test x"$xm_file" = x
3486 then build_xm_file=$cpu_type/xm-$cpu_type.h
3487 else build_xm_file=$xm_file
3489 build_xm_defines=$xm_defines
3490 build_install_headers_dir=$install_headers_dir
3491 build_exeext=$exeext
3494 if test x$pass2done = x
3496 if test x"$xm_file" = x
3497 then host_xm_file=$cpu_type/xm-$cpu_type.h
3498 else host_xm_file=$xm_file
3500 host_xm_defines=$xm_defines
3501 if test x"$xmake_file" = x
3502 then xmake_file=$cpu_type/x-$cpu_type
3504 host_xmake_file="$xmake_file"
3505 host_truncate_target=$truncate_target
3506 host_extra_gcc_objs=$extra_gcc_objs
3507 host_extra_objs=$extra_host_objs