1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000 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 linux and openbsd systems
261 xm_defines="HAVE_ATEXIT POSIX BSTRING"
264 tm_file=${cpu_type}/openbsd.h
265 tmake_file="t-libc-ok t-openbsd"
266 # avoid surprises, always provide an xm-openbsd file
267 xm_file=${cpu_type}/xm-openbsd.h
268 # don't depend on processor x-fragments as well
270 if test x$enable_threads = xyes; then
272 tmake_file="${tmake_file} t-openbsd-thread"
278 # Support site-specific machine types.
280 cpu_type=`echo $machine | sed -e 's/-.*//'`
281 rest=`echo $machine | sed -e "s/$cpu_type-//"`
282 xm_file=${cpu_type}/xm-$rest.h
283 tm_file=${cpu_type}/$rest.h
284 if test -f $srcdir/config/${cpu_type}/x-$rest; \
285 then xmake_file=${cpu_type}/x-$rest; \
288 if test -f $srcdir/config/${cpu_type}/t-$rest; \
289 then tmake_file=${cpu_type}/t-$rest; \
295 a29k-*-bsd* | a29k-*-sym1*)
296 tm_file="${tm_file} a29k/unix.h"
298 xmake_file=a29k/x-unix
301 a29k-*-udi | a29k-*-coff)
302 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
303 tmake_file=a29k/t-a29kbare
306 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
307 tmake_file=a29k/t-vx29k
308 extra_parts="crtbegin.o crtend.o"
309 thread_file='vxworks'
311 a29k-*-*) # Default a29k environment.
315 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
317 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
318 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
320 # GAS + IEEE_CONFORMANT
321 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
323 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
324 xmake_file="x-interix alpha/t-pe"
325 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
326 if test x$enable_threads = xyes ; then
329 if test x$stabs = xyes ; then
330 tm_file="${tm_file} dbxcoff.h"
332 #prefix='$$INTERIX_ROOT'/usr/contrib
333 #local_prefix='$$INTERIX_ROOT'/usr/contrib
335 alpha*-*-linux*ecoff*)
336 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
337 target_cpu_default="MASK_GAS"
338 tmake_file="alpha/t-alpha alpha/t-ieee"
343 alpha*-*-linux*libc1*)
344 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
345 target_cpu_default="MASK_GAS"
346 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
347 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
350 if test x$enable_threads = xyes; then
355 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
356 target_cpu_default="MASK_GAS"
357 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
358 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
361 if test x$enable_threads = xyes; then
366 tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h"
367 target_cpu_default="MASK_GAS"
368 tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
369 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
373 case x${enable_threads} in
374 xyes | xpthreads | xposix)
376 tmake_file="${tmake_file} t-freebsd-thread"
381 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
382 target_cpu_default="MASK_GAS"
383 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
384 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
390 # default x-alpha is only appropriate for dec-osf.
391 target_cpu_default="MASK_GAS"
392 tmake_file="alpha/t-alpha alpha/t-ieee"
396 if test x$stabs = xyes
398 tm_file="${tm_file} dbx.h"
400 if test x$gas != xyes
402 extra_passes="mips-tfile mips-tdump"
405 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
406 xmake_file=alpha/x-osf
409 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
412 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
415 tm_file="${tm_file} alpha/osf.h"
416 tmake_file="$tmake_file alpha/t-osf4"
417 # Some versions of OSF4 (specifically X4.0-9 296.7) have
418 # a broken tar, so we use cpio instead.
419 install_headers_dir=install-headers-cpio
422 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
423 tmake_file="$tmake_file alpha/t-osf4"
427 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
428 target_cpu_default=MASK_SUPPORT_ARCH
433 tm_file="${tm_file} dbx.h alpha/vxworks.h"
434 tmake_file="alpha/t-alpha alpha/t-ieee"
437 extra_passes="mips-tfile mips-tdump"
440 thread_file='vxworks'
443 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
444 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
445 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
446 xmake_file=winnt/x-winnt
447 extra_host_objs=oldnames.o
448 extra_gcc_objs="spawnv.o oldnames.o"
449 if test x$gnu_ld != xyes
451 extra_programs=ld.exe
453 if test x$enable_threads = xyes; then
459 xm_file="${xm_file} alpha/xm-vms.h"
460 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
463 extra_parts="crtinit.o crtfini.o"
465 arm-*-coff* | armel-*-coff*)
467 tmake_file=arm/t-arm-coff
471 tmake_file=arm/t-arm-coff
472 thread_file='vxworks'
474 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
475 tm_file=arm/riscix1-1.h
478 arm-*-riscix*) # Acorn RISC machine
481 tm_file=arm/rix-gas.h
485 xmake_file=arm/x-riscix
486 tmake_file=arm/t-riscix
489 arm-semi-aout | armel-semi-aout)
491 tmake_file=arm/t-semi
493 arm-semi-aof | armel-semi-aof)
494 tm_file=arm/semiaof.h
495 tmake_file=arm/t-semiaof
499 tmake_file="t-netbsd arm/t-netbsd"
502 arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
503 xm_file=arm/xm-linux.h
505 tm_file="arm/linux-oldld.h arm/linux-elf.h"
508 tm_file="arm/linux-elf26.h $tm_file"
511 tmake_file="t-linux arm/t-linux"
512 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
514 case x${enable_threads} in
515 x | xyes | xpthreads | xposix)
520 arm*-*-linux*) # ARM GNU/Linux with ELF
521 xm_file=arm/xm-linux.h
523 tm_file="arm/linux-elf.h"
526 tm_file="arm/linux-elf26.h $tm_file"
529 tmake_file="t-linux arm/t-linux"
530 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
532 case x${enable_threads} in
533 x | xyes | xpthreads | xposix)
538 arm*-*-uclinux*) # ARM ucLinux
539 tm_file=arm/uclinux-elf.h
540 tmake_file=arm/t-arm-elf
544 tmake_file=arm/t-arm-aout
547 tm_file=arm/ecos-elf.h
548 tmake_file=arm/t-arm-elf
551 tm_file=arm/unknown-elf.h
552 tmake_file=arm/t-arm-elf
555 tm_file=arm/conix-elf.h
556 tmake_file=arm/t-arm-elf
559 tm_file=arm/unknown-elf-oabi.h
560 tmake_file=arm/t-arm-elf
569 c1-convex-*) # Convex C1
573 c2-convex-*) # Convex C2
586 target_cpu_default=16
594 clipper-intergraph-clix*)
595 tm_file="${tm_file} svr3.h clipper/clix.h"
596 xm_file=clipper/xm-clix.h
597 xmake_file=clipper/x-clix
598 extra_headers=va-clipper.h
599 extra_parts="crtbegin.o crtend.o"
600 install_headers_dir=install-headers-cpio
611 tm_file="fr30/fr30.h"
612 tmake_file=fr30/t-fr30
613 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
619 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
620 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
621 tmake_file="t-linux pa/t-linux"
622 extra_parts="crtbegin.o crtend.o"
625 if test x$enable_threads = xyes; then
630 target_cpu_default="MASK_PA_11"
631 tmake_file=pa/t-openbsd
634 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
635 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
636 xm_file=pa/xm-papro.h
640 target_cpu_default="MASK_PA_11"
641 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
645 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
646 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
647 xm_file=pa/xm-papro.h
651 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
655 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
656 target_cpu_default="MASK_PA_11"
660 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
664 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
665 xm_file=pa/xm-pahpux.h
666 xmake_file=pa/x-pa-hpux
669 tm_file="${tm_file} pa/gas.h"
671 install_headers_dir=install-headers-cpio
674 hppa1.0-*-hpux8.0[0-2]*)
675 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
676 xm_file=pa/xm-pahpux.h
677 xmake_file=pa/x-pa-hpux
680 tm_file="${tm_file} pa/pa-gas.h"
682 tm_file="pa/pa-oldas.h ${tm_file}"
684 install_headers_dir=install-headers-cpio
687 hppa1.1-*-hpux8.0[0-2]*)
688 target_cpu_default="MASK_PA_11"
689 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
690 xm_file=pa/xm-pahpux.h
691 xmake_file=pa/x-pa-hpux
694 tm_file="${tm_file} pa/pa-gas.h"
696 tm_file="pa/pa-oldas.h ${tm_file}"
698 install_headers_dir=install-headers-cpio
702 target_cpu_default="MASK_PA_11"
703 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
704 xm_file=pa/xm-pahpux.h
705 xmake_file=pa/x-pa-hpux
708 tm_file="${tm_file} pa/pa-gas.h"
710 install_headers_dir=install-headers-cpio
714 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
715 xm_file=pa/xm-pahpux.h
716 xmake_file=pa/x-pa-hpux
719 tm_file="${tm_file} pa/pa-gas.h"
721 install_headers_dir=install-headers-cpio
724 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
725 target_cpu_default="MASK_PA_11"
726 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
728 xm_file=pa/xm-pahpux.h
729 xmake_file=pa/x-pa-hpux
733 tm_file="${tm_file} pa/pa-gas.h"
735 if test x$enable_threads = x; then
736 enable_threads=$have_pthread_h
738 case x${enable_threads} in
740 tmake_file="${tmake_file} pa/t-dce-thr"
743 install_headers_dir=install-headers-cpio
747 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
749 xm_file=pa/xm-pahpux.h
750 xmake_file=pa/x-pa-hpux
754 tm_file="${tm_file} pa/pa-gas.h"
756 if test x$enable_threads = x; then
757 enable_threads=$have_pthread_h
759 case x${enable_threads} in
761 tmake_file="${tmake_file} pa/t-dce-thr"
764 install_headers_dir=install-headers-cpio
768 target_cpu_default="MASK_PA_11"
769 xm_file=pa/xm-pa64hpux.h
770 xmake_file=pa/x-pa-hpux
772 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"
775 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
779 tm_file="${tm_file} pa/pa-gas.h"
781 # if [ x$enable_threads = x ]; then
782 # enable_threads=$have_pthread_h
784 # if [ x$enable_threads = xyes ]; then
786 # tmake_file="${tmake_file} pa/t-dce-thr"
788 install_headers_dir=install-headers-cpio
791 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
792 target_cpu_default="MASK_PA_11"
793 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
795 xm_file=pa/xm-pahpux.h
796 xmake_file=pa/x-pa-hpux
800 tm_file="${tm_file} pa/pa-gas.h"
802 # if test x$enable_threads = x; then
803 # enable_threads=$have_pthread_h
805 # if test x$enable_threads = xyes; then
807 # tmake_file="${tmake_file} pa/t-dce-thr"
809 install_headers_dir=install-headers-cpio
813 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
815 xm_file=pa/xm-pahpux.h
816 xmake_file=pa/x-pa-hpux
819 tm_file="${tm_file} pa/pa-gas.h"
821 # if test x$enable_threads = x; then
822 # enable_threads=$have_pthread_h
824 # if test x$enable_threads = xyes; then
826 # tmake_file="${tmake_file} pa/t-dce-thr"
828 install_headers_dir=install-headers-cpio
831 hppa1.1-*-hpux* | hppa2*-*-hpux*)
832 target_cpu_default="MASK_PA_11"
833 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
834 xm_file=pa/xm-pahpux.h
835 xmake_file=pa/x-pa-hpux
838 tm_file="${tm_file} pa/pa-gas.h"
840 install_headers_dir=install-headers-cpio
844 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
845 xm_file=pa/xm-pahpux.h
846 xmake_file=pa/x-pa-hpux
849 tm_file="${tm_file} pa/pa-gas.h"
851 install_headers_dir=install-headers-cpio
854 hppa1.1-*-hiux* | hppa2*-*-hiux*)
855 target_cpu_default="MASK_PA_11"
856 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
857 xm_file=pa/xm-pahpux.h
858 xmake_file=pa/x-pa-hpux
861 tm_file="${tm_file} pa/pa-gas.h"
863 install_headers_dir=install-headers-cpio
867 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.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 install_headers_dir=install-headers-cpio
878 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
879 target_cpu_default="MASK_PA_11"
883 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
884 xm_file=pa/xm-pampeix.h
885 xmake_file=pa/x-pa-mpeix
886 echo "You must use gas. Assuming it is already installed."
887 install_headers_dir=install-headers-tar
890 i370-*-opened*) # IBM 360/370/390 Architecture
897 xm_file=i370/xm-mvs.h
899 tmake_file=i370/t-mvs
902 xm_file="xm-linux.h i370/xm-linux.h"
904 tm_file="i370/linux.h ${tm_file}"
905 tmake_file="t-linux i370/t-linux"
907 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
908 # extra_parts="crtbegin.o crtend.o"
912 if test x$enable_threads = xyes; then
917 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
918 tm_file=i386/i386elf.h
919 tmake_file=i386/t-i386elf
922 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
925 tm_file=i386/aix386.h
926 extra_parts="crtbegin.o crtend.o"
927 tmake_file=i386/t-crtstuff
929 tm_file=i386/aix386ng.h
932 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
934 xmake_file=i386/x-aix
936 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
937 xm_file="xm-alloca.h ${xm_file}"
938 xm_defines="USG POSIX SMALL_ARG_MAX"
939 xmake_file=i386/x-ncr3000
940 if test x$stabs = xyes -a x$gas = xyes
942 tm_file=i386/sysv4gdb.h
946 extra_parts="crtbegin.o crtend.o"
947 tmake_file=i386/t-crtpic
951 xm_file=i386/xm-next.h
952 tmake_file=i386/t-next
953 xmake_file=i386/x-next
954 extra_objs=nextstep.o
955 extra_parts="crtbegin.o crtend.o"
956 if test x$enable_threads = xyes; then
960 i[34567]86-*-netware) # Intel 80386's running netware
961 tm_file=i386/netware.h
962 tmake_file=i386/t-netware
964 i[34567]86-sequent-bsd*) # 80386 from Sequent
968 tm_file=i386/seq-gas.h
970 tm_file=i386/sequent.h
973 i[34567]86-sequent-ptx1*)
974 xm_defines="USG SVR3"
975 xmake_file=i386/x-sysv3
976 tm_file=i386/seq-sysv3.h
977 tmake_file=i386/t-crtstuff
978 extra_parts="crtbegin.o crtend.o"
979 install_headers_dir=install-headers-cpio
981 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
982 xm_defines="USG SVR3"
983 xmake_file=i386/x-sysv3
984 tm_file=i386/seq2-sysv3.h
985 tmake_file=i386/t-crtstuff
986 extra_parts="crtbegin.o crtend.o"
987 install_headers_dir=install-headers-cpio
989 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
990 xm_file="xm-alloca.h ${xm_file}"
991 xm_defines="USG POSIX SMALL_ARG_MAX"
993 tm_file=i386/ptx4-i.h
995 extra_parts="crtbegin.o crtend.o"
996 install_headers_dir=install-headers-cpio
998 i386-sun-sunos*) # Sun i386 roadrunner
1003 i[34567]86-wrs-vxworks*)
1004 tm_file=i386/vxi386.h
1005 tmake_file=i386/t-i386bare
1006 thread_file='vxworks'
1009 tm_file=i386/i386-aout.h
1010 tmake_file=i386/t-i386bare
1012 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1013 xm_file=i386/xm-beos.h
1014 tmake_file='i386/t-beos i386/t-crtpic'
1015 tm_file=i386/beos-elf.h
1016 xmake_file=i386/x-beos
1017 extra_parts='crtbegin.o crtend.o'
1019 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1020 tm_file=i386/bsd386.h
1021 # tmake_file=t-libc-ok
1024 tm_file=i386/386bsd.h
1025 # tmake_file=t-libc-ok
1026 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1029 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1030 tm_file="i386/freebsd-aout.h i386/perform.h"
1031 tmake_file=t-freebsd
1033 i[34567]86-*-freebsd*)
1034 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h"
1035 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1036 tmake_file=t-freebsd
1040 case x${enable_threads} in
1041 xyes | xpthreads | xposix)
1043 tmake_file="${tmake_file} t-freebsd-thread"
1047 i[34567]86-*-netbsd*)
1048 tm_file=i386/netbsd.h
1052 i[34567]86-*-openbsd*)
1053 # we need collect2 until our bug is fixed...
1057 tm_file=i386/i386-coff.h
1058 tmake_file=i386/t-i386bare
1060 i[34567]86-*-isc*) # 80386 running ISC system
1061 xm_file="${xm_file} i386/xm-isc.h"
1062 xm_defines="USG SVR3"
1064 i[34567]86-*-isc[34]*)
1065 xmake_file=i386/x-isc3
1068 xmake_file=i386/x-isc
1071 if test x$gas = xyes -a x$stabs = xyes
1073 tm_file=i386/iscdbx.h
1074 tmake_file=i386/t-svr3dbx
1075 extra_parts="svr3.ifile svr3z.ifile"
1077 tm_file=i386/isccoff.h
1078 tmake_file=i386/t-crtstuff
1079 extra_parts="crtbegin.o crtend.o"
1081 tmake_file="$tmake_file i386/t-i386bare"
1082 install_headers_dir=install-headers-cpio
1084 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1085 # with a.out format using
1087 xmake_file=x-linux-aout
1088 tmake_file="t-linux-aout i386/t-crtstuff"
1089 tm_file=i386/linux-oldld.h
1093 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1095 xmake_file=x-linux-aout
1096 tmake_file="t-linux-aout i386/t-crtstuff"
1097 tm_file=i386/linux-aout.h
1101 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1102 # with ELF format using the
1103 # GNU/Linux C library 5
1105 tm_file=i386/linux.h
1106 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1107 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1110 if test x$enable_threads = xyes; then
1111 thread_file='single'
1114 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1115 # with ELF format using glibc 2
1116 # aka GNU/Linux C library 6
1118 tm_file=i386/linux.h
1119 tmake_file="t-linux i386/t-crtstuff"
1120 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1123 if test x$enable_threads = xyes; then
1130 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1131 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1134 i[34567]86-pc-msdosdjgpp*)
1135 xm_file=i386/xm-djgpp.h
1136 tm_file=i386/djgpp.h
1137 tmake_file=i386/t-djgpp
1138 xmake_file=i386/x-djgpp
1143 case $host in *pc-msdosdjgpp*)
1148 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1150 tmake_file=t-libc-ok
1154 i[34567]86-*-lynxos*)
1155 if test x$gas = xyes
1159 tm_file=i386/lynx-ng.h
1161 xm_file=i386/xm-lynx.h
1162 tmake_file=i386/t-i386bare
1167 # tmake_file=t-libc-ok
1170 i[34567]86-*-osfrose*) # 386 using OSF/rose
1171 if test x$elf = xyes
1173 tm_file=i386/osfelf.h
1176 tm_file=i386/osfrose.h
1179 xm_file="i386/xm-osf.h ${xm_file}"
1180 xmake_file=i386/x-osfrose
1181 tmake_file=i386/t-osf
1182 extra_objs=halfpic.o
1184 i[34567]86-go32-rtems*)
1186 xm_file=i386/xm-go32.h
1187 tm_file=i386/go32-rtems.h
1188 tmake_file="i386/t-go32 t-rtems"
1190 i[34567]86-*-rtemscoff*)
1192 tm_file=i386/rtems.h
1193 tmake_file="i386/t-i386bare t-rtems"
1195 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1197 tm_file=i386/rtemself.h
1198 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1199 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1201 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1202 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1203 xm_defines="USG SVR3"
1204 xmake_file=i386/x-sco5
1205 install_headers_dir=install-headers-cpio
1207 if test x$gas = xyes
1209 tm_file="i386/sco5gas.h ${tm_file}"
1210 tmake_file=i386/t-sco5gas
1212 tmake_file=i386/t-sco5
1214 tmake_file="$tmake_file i386/t-i386bare"
1215 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1217 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1218 xm_file="${xm_file} i386/xm-sco.h"
1219 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1220 xmake_file=i386/x-sco4
1221 install_headers_dir=install-headers-cpio
1222 if test x$stabs = xyes
1224 tm_file=i386/sco4dbx.h
1225 tmake_file=i386/t-svr3dbx
1226 extra_parts="svr3.ifile svr3z.rfile"
1229 tmake_file=i386/t-crtstuff
1230 extra_parts="crtbegin.o crtend.o"
1232 tmake_file="$tmake_file i386/t-i386bare"
1233 # The default EAFS filesystem supports long file names.
1234 # Truncating the target makes $host != $target which
1235 # makes gcc think it is doing a cross-compile.
1236 # truncate_target=yes
1238 i[34567]86-*-sco*) # 80386 running SCO system
1239 xm_file=i386/xm-sco.h
1240 xmake_file=i386/x-sco
1241 install_headers_dir=install-headers-cpio
1242 if test x$stabs = xyes
1244 tm_file=i386/scodbx.h
1245 tmake_file=i386/t-svr3dbx
1246 extra_parts="svr3.ifile svr3z.rfile"
1249 extra_parts="crtbegin.o crtend.o"
1250 tmake_file=i386/t-crtstuff
1252 tmake_file="$tmake_file i386/t-i386bare"
1255 i[34567]86-*-solaris2*)
1256 xm_file="xm-alloca.h ${xm_file}"
1257 xm_defines="USG POSIX SMALL_ARG_MAX"
1259 if test x$gas = xyes; then
1260 # Only needed if gas does not support -s
1261 tm_file="i386/sol2gas.h ${tm_file}"
1263 tmake_file="i386/t-i386bare i386/t-sol2"
1264 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1266 if test x${enable_threads} = x; then
1267 enable_threads=$have_pthread_h
1268 if test x${enable_threads} = x; then
1269 enable_threads=$have_thread_h
1272 if test x${enable_threads} = xyes; then
1273 if test x${have_pthread_h} = xyes; then
1276 thread_file='solaris'
1280 [34567]86-*-sysv5*) # Intel x86 on System V Release 5
1281 xm_file="xm-alloca.h ${xm_file}"
1282 xm_defines="USG POSIX"
1283 tm_file=i386/sysv5.h
1284 if test x$stabs = xyes
1286 tm_file="${tm_file} dbx.h"
1288 tmake_file="i386/t-i386bare i386/t-crtpic"
1290 extra_parts="crtbegin.o crtend.o"
1291 if test x$enable_threads = xyes; then
1295 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1296 xm_file="xm-alloca.h ${xm_file}"
1297 xm_defines="USG POSIX SMALL_ARG_MAX"
1298 tm_file=i386/sysv4.h
1299 if test x$stabs = xyes
1301 tm_file="${tm_file} dbx.h"
1303 tmake_file="i386/t-i386bare i386/t-crtpic"
1305 extra_parts="crtbegin.o crtend.o"
1307 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1308 xm_file="xm-alloca.h ${xm_file}"
1309 xm_defines="USG POSIX"
1311 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1313 extra_parts="crtbegin.o crtend.o"
1314 install_headers_dir=install-headers-cpio
1316 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1318 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1319 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1320 if test x$stabs = xyes
1322 tm_file=i386/osf1elfgdb.h
1324 tm_file=i386/osf1elf.h
1326 tmake_file=i386/t-osf1elf
1327 xmake_file=i386/x-osf1elf
1328 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1330 i[34567]86-*-sysv*) # Intel 80386's running system V
1331 xm_defines="USG SVR3"
1332 xmake_file=i386/x-sysv3
1333 if test x$gas = xyes
1335 if test x$stabs = xyes
1337 tm_file=i386/svr3dbx.h
1338 tmake_file=i386/t-svr3dbx
1339 extra_parts="svr3.ifile svr3z.rfile"
1341 tm_file=i386/svr3gas.h
1342 extra_parts="crtbegin.o crtend.o"
1343 tmake_file=i386/t-crtstuff
1346 tm_file=i386/sysv3.h
1347 extra_parts="crtbegin.o crtend.o"
1348 tmake_file=i386/t-crtstuff
1350 tmake_file="$tmake_file i386/t-crtpic"
1352 i386-*-vsta) # Intel 80386's running VSTa kernel
1353 xm_file="${xm_file} i386/xm-vsta.h"
1355 tmake_file=i386/t-vsta
1356 xmake_file=i386/x-vsta
1359 xm_file="${xm_file} i386/xm-cygwin.h"
1360 tmake_file=i386/t-cygwin
1361 tm_file=i386/win32.h
1362 xmake_file=i386/x-cygwin
1364 if test x$enable_threads = xyes; then
1369 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1370 xm_file="${xm_file} i386/xm-cygwin.h"
1371 tmake_file=i386/t-cygwin
1372 tm_file=i386/cygwin.h
1373 xmake_file=i386/x-cygwin
1375 if test x$enable_threads = xyes; then
1380 i[34567]86-*-mingw32*)
1381 tm_file=i386/mingw32.h
1382 xm_file="${xm_file} i386/xm-mingw32.h"
1383 tmake_file="i386/t-cygwin i386/t-mingw32"
1385 xmake_file=i386/x-cygwin
1386 if test x$enable_threads = xyes; then
1393 *minwg32crt* | *mingw32*)
1394 tm_file="${tm_file} i386/crtdll.h"
1400 xm_file="${xm_file} i386/xm-uwin.h"
1401 xm_defines="USG NO_STAB_H"
1402 tmake_file="i386/t-cygwin i386/t-uwin"
1404 xmake_file=i386/x-cygwin
1405 if test x$enable_threads = xyes; then
1410 i[34567]86-*-interix*)
1411 tm_file="i386/i386-interix.h interix.h"
1412 xm_file="i386/xm-i386-interix.h xm-interix.h"
1414 tmake_file="i386/t-interix"
1415 extra_objs=interix.o
1416 xmake_file=x-interix
1417 if test x$enable_threads = xyes ; then
1420 if test x$stabs = xyes ; then
1421 tm_file="${tm_file} dbxcoff.h"
1424 i[34567]86-*-winnt3*)
1425 tm_file=i386/win-nt.h
1426 out_file=i386/i386.c
1427 xm_file="xm-winnt.h ${xm_file}"
1428 xmake_file=winnt/x-winnt
1429 tmake_file=i386/t-winnt
1430 extra_host_objs="winnt.o oldnames.o"
1431 extra_gcc_objs="spawnv.o oldnames.o"
1432 if test x$gnu_ld != xyes
1434 extra_programs=ld.exe
1436 if test x$enable_threads = xyes; then
1440 i[34567]86-dg-dgux*)
1441 xm_file="xm-alloca.h ${xm_file}"
1442 xm_defines="USG POSIX"
1443 out_file=i386/dgux.c
1445 tmake_file=i386/t-dgux
1446 xmake_file=i386/x-dgux
1447 install_headers_dir=install-headers-cpio
1449 i860-alliant-*) # Alliant FX/2800
1450 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1451 xm_file="${xm_file}"
1452 xmake_file=i860/x-fx2800
1453 tmake_file=i860/t-fx2800
1454 extra_parts="crtbegin.o crtend.o"
1457 tm_file="${tm_file} i860/bsd.h"
1458 if test x$gas = xyes
1460 tm_file="${tm_file} i860/bsd-gas.h"
1465 tm_file="${tm_file} i860/mach.h"
1466 tmake_file=t-libc-ok
1468 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1469 tm_file="${tm_file} svr3.h i860/paragon.h"
1470 xm_defines="USG SVR3"
1474 tm_file="${tm_file} svr3.h i860/sysv3.h"
1475 xm_defines="USG SVR3"
1476 xmake_file=i860/x-sysv3
1477 extra_parts="crtbegin.o crtend.o"
1480 tm_file="${tm_file} svr4.h i860/sysv4.h"
1481 xm_defines="USG SVR3"
1482 xmake_file=i860/x-sysv4
1484 extra_parts="crtbegin.o crtend.o"
1486 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1487 tm_file="${tm_file} i960/vx960.h"
1488 tmake_file=i960/t-vxworks960
1490 thread_file='vxworks'
1492 i960-wrs-vxworks5* | i960-wrs-vxworks)
1493 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1494 tmake_file=i960/t-vxworks960
1496 thread_file='vxworks'
1499 tm_file="${tm_file} i960/vx960.h"
1500 tmake_file=i960/t-vxworks960
1502 thread_file='vxworks'
1505 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1506 tmake_file=i960/t-960bare
1510 tmake_file="i960/t-960bare t-rtems"
1511 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1514 i960-*-*) # Default i960 environment.
1519 tmake_file="ia64/t-ia64"
1520 target_cpu_default="0"
1521 if test x$gas = xyes
1523 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1525 if test x$gnu_ld = xyes
1527 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1532 tm_file=ia64/linux.h
1533 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
1534 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1535 if test x$enable_threads = xyes; then
1541 extra_parts="crtinit.o crtfini.o"
1543 # m68hc11 and m68hc12 share the same machine description.
1544 m68hc11-*-*|m6811-*-*)
1545 tm_file="m68hc11/m68hc11.h"
1546 xm_file="m68hc11/xm-m68hc11.h"
1547 tm_p_file="m68hc11/m68hc11-protos.h"
1548 md_file="m68hc11/m68hc11.md"
1549 out_file="m68hc11/m68hc11.c"
1550 tmake_file="m68hc11/t-m68hc11-gas"
1552 m68hc12-*-*|m6812-*-*)
1553 tm_file="m68hc11/m68hc12.h"
1554 tm_p_file="m68hc11/m68hc11-protos.h"
1555 xm_file="m68hc11/xm-m68hc11.h"
1556 md_file="m68hc11/m68hc11.md"
1557 out_file="m68hc11/m68hc11.c"
1558 tmake_file="m68hc11/t-m68hc11-gas"
1560 m68000-convergent-sysv*)
1562 xm_file="m68k/xm-3b1.h ${xm_file}"
1565 extra_headers=math-68881.h
1567 m68000-hp-bsd*) # HP 9000/200 running BSD
1568 tm_file=m68k/hp2bsd.h
1569 xmake_file=m68k/x-hp2bsd
1571 extra_headers=math-68881.h
1573 m68000-hp-hpux*) # HP 9000 series 300
1574 xm_file="xm-alloca.h ${xm_file}"
1576 if test x$gas = xyes
1578 xmake_file=m68k/x-hp320g
1579 tm_file=m68k/hp310g.h
1581 xmake_file=m68k/x-hp320
1582 tm_file=m68k/hp310.h
1584 install_headers_dir=install-headers-cpio
1586 extra_headers=math-68881.h
1591 extra_headers=math-68881.h
1594 tm_file=m68k/sun2o4.h
1596 extra_headers=math-68881.h
1599 xm_file="m68k/xm-3b1.h ${xm_file}"
1601 if test x$gas = xyes
1608 extra_headers=math-68881.h
1610 m68k-apple-aux*) # Apple Macintosh running A/UX
1611 xm_defines="USG AUX"
1612 tmake_file=m68k/t-aux
1613 install_headers_dir=install-headers-cpio
1614 extra_headers=math-68881.h
1615 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1617 if test "$gnu_ld" = yes
1619 tm_file="${tm_file} m68k/auxgld.h"
1621 tm_file="${tm_file} m68k/auxld.h"
1623 if test "$gas" = yes
1625 tm_file="${tm_file} m68k/auxgas.h"
1627 tm_file="${tm_file} m68k/auxas.h"
1629 tm_file="${tm_file} m68k/a-ux.h"
1633 tm_file=m68k/apollo68.h
1634 xmake_file=m68k/x-apollo68
1636 extra_headers=math-68881.h
1639 m68k-altos-sysv*) # Altos 3068
1640 if test x$gas = xyes
1642 tm_file=m68k/altos3068.h
1645 echo "The Altos is supported only with the GNU assembler" 1>&2
1648 extra_headers=math-68881.h
1650 m68k-bull-sysv*) # Bull DPX/2
1651 if test x$gas = xyes
1653 if test x$stabs = xyes
1655 tm_file=m68k/dpx2cdbx.h
1657 tm_file=m68k/dpx2g.h
1662 xm_file="xm-alloca.h ${xm_file}"
1664 xmake_file=m68k/x-dpx2
1666 extra_headers=math-68881.h
1668 m68k-atari-sysv4*) # Atari variant of V.4.
1669 tm_file=m68k/atari.h
1670 xm_file="xm-alloca.h ${xm_file}"
1671 xm_defines="USG FULL_PROTOTYPES"
1673 extra_parts="crtbegin.o crtend.o"
1674 extra_headers=math-68881.h
1677 m68k-motorola-sysv*)
1678 tm_file=m68k/mot3300.h
1679 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1680 if test x$gas = xyes
1682 xmake_file=m68k/x-mot3300-gas
1683 if test x$gnu_ld = xyes
1685 tmake_file=m68k/t-mot3300-gald
1687 tmake_file=m68k/t-mot3300-gas
1691 xmake_file=m68k/x-mot3300
1692 if test x$gnu_ld = xyes
1694 tmake_file=m68k/t-mot3300-gld
1696 tmake_file=m68k/t-mot3300
1700 gdb_needs_out_file_path=yes
1701 extra_parts="crt0.o mcrt0.o"
1702 extra_headers=math-68881.h
1705 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1706 tm_file=m68k/tower-as.h
1707 xm_defines="USG SVR3"
1708 xmake_file=m68k/x-tower
1709 extra_parts="crtbegin.o crtend.o"
1710 extra_headers=math-68881.h
1713 tm_file=m68k/plexus.h
1714 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1717 extra_headers=math-68881.h
1721 xm_file="xm-alloca.h ${xm_file}"
1723 extra_headers=math-68881.h
1726 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1727 xm_defines="USG unos"
1728 xmake_file=m68k/x-crds
1731 extra_headers=math-68881.h
1733 m68k-cbm-sysv4*) # Commodore variant of V.4.
1735 xm_file="xm-alloca.h ${xm_file}"
1736 xm_defines="USG FULL_PROTOTYPES"
1737 xmake_file=m68k/x-amix
1739 extra_parts="crtbegin.o crtend.o"
1740 extra_headers=math-68881.h
1744 tm_file=m68k/ccur-GAS.h
1745 xmake_file=m68k/x-ccur
1746 extra_headers=math-68881.h
1750 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1751 tm_file=m68k/hp3bsd44.h
1752 xmake_file=m68k/x-hp3bsd44
1754 extra_headers=math-68881.h
1757 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1758 tm_file=m68k/hp3bsd.h
1760 extra_headers=math-68881.h
1764 if test x$with_fp = xno
1766 tm_file=m68k/isi-nfp.h
1772 extra_headers=math-68881.h
1774 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1775 xm_file="xm-alloca.h ${xm_file}"
1777 if test x$gas = xyes
1779 xmake_file=m68k/x-hp320g
1780 tm_file=m68k/hp320g.h
1782 xmake_file=m68k/x-hp320
1783 tm_file=m68k/hpux7.h
1785 install_headers_dir=install-headers-cpio
1787 extra_headers=math-68881.h
1790 m68k-hp-hpux*) # HP 9000 series 300
1791 xm_file="xm-alloca.h ${xm_file}"
1793 if test x$gas = xyes
1795 xmake_file=m68k/x-hp320g
1796 tm_file=m68k/hp320g.h
1798 xmake_file=m68k/x-hp320
1799 tm_file=m68k/hp320.h
1801 install_headers_dir=install-headers-cpio
1803 extra_headers=math-68881.h
1807 tm_file=m68k/sun3mach.h
1809 extra_headers=math-68881.h
1813 if test x$gas = xyes
1815 tm_file=m68k/news3gas.h
1817 tm_file=m68k/news3.h
1820 extra_headers=math-68881.h
1823 m68k-sony-bsd* | m68k-sony-newsos*)
1824 if test x$gas = xyes
1826 tm_file=m68k/newsgas.h
1831 extra_headers=math-68881.h
1834 m68k-next-nextstep2*)
1835 tm_file=m68k/next21.h
1836 xm_file="m68k/xm-next.h ${xm_file}"
1837 tmake_file=m68k/t-next
1838 xmake_file=m68k/x-next
1839 extra_objs=nextstep.o
1840 extra_headers=math-68881.h
1844 m68k-next-nextstep[34]*)
1846 xm_file="m68k/xm-next.h ${xm_file}"
1847 tmake_file=m68k/t-next
1848 xmake_file=m68k/x-next
1849 extra_objs=nextstep.o
1850 extra_parts="crtbegin.o crtend.o"
1851 extra_headers=math-68881.h
1853 if test x$enable_threads = xyes; then
1858 if test x$with_fp = xno
1860 tm_file=m68k/sun3n3.h
1862 tm_file=m68k/sun3o3.h
1866 extra_headers=math-68881.h
1868 m68k-sun-sunos*) # For SunOS 4 (the default).
1869 if test x$with_fp = xno
1871 tm_file=m68k/sun3n.h
1877 extra_headers=math-68881.h
1880 tm_file=m68k/vxm68k.h
1881 tmake_file=m68k/t-vxworks68
1882 extra_headers=math-68881.h
1883 thread_file='vxworks'
1887 tmake_file=m68k/t-m68kbare
1888 tm_file="m68k/m68k-aout.h libgloss.h"
1889 extra_headers=math-68881.h
1893 tmake_file=m68k/t-m68kbare
1894 tm_file="m68k/m68k-coff.h dbx.h"
1895 extra_headers=math-68881.h
1898 m68020-*-elf* | m68k-*-elf*)
1899 tm_file="m68k/m68020-elf.h"
1900 xm_file=m68k/xm-m68kv.h
1901 tmake_file=m68k/t-m68kelf
1902 header_files=math-68881.h
1905 if test x$gas = xyes
1909 tm_file=m68k/lynx-ng.h
1911 xm_file=m68k/xm-lynx.h
1913 tmake_file=m68k/t-lynx
1914 extra_headers=math-68881.h
1918 tm_file=m68k/netbsd.h
1925 # we need collect2 until our bug is fixed...
1928 m68k-*-sysv3*) # Motorola m68k's running system V.3
1929 xm_file="xm-alloca.h ${xm_file}"
1931 xmake_file=m68k/x-m68kv
1932 extra_parts="crtbegin.o crtend.o"
1933 extra_headers=math-68881.h
1936 m68k-*-sysv4*) # Motorola m68k's running system V.4
1937 tm_file=m68k/m68kv4.h
1938 xm_file="xm-alloca.h ${xm_file}"
1941 extra_parts="crtbegin.o crtend.o"
1942 extra_headers=math-68881.h
1945 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1948 tm_file=m68k/linux-aout.h
1949 tmake_file="t-linux-aout m68k/t-linux-aout"
1950 extra_headers=math-68881.h
1954 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1955 # with ELF format using the
1956 # GNU/Linux C library 5
1958 tm_file=m68k/linux.h
1959 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1960 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1961 extra_headers=math-68881.h
1965 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1966 # with ELF format using glibc 2
1967 # aka the GNU/Linux C library 6.
1969 tm_file=m68k/linux.h
1970 tmake_file="t-linux m68k/t-linux"
1971 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1972 extra_headers=math-68881.h
1975 if test x$enable_threads = xyes; then
1980 tmake_file=m68k/t-m68kbare
1981 tm_file=m68k/m68k-psos.h
1982 extra_headers=math-68881.h
1986 tmake_file="m68k/t-m68kbare t-rtems"
1987 tm_file=m68k/rtems.h
1988 extra_headers=math-68881.h
1991 m68k-*-rtemself*|m68k-*-rtems*)
1992 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1993 tm_file=m68k/rtemself.h
1994 extra_headers=math-68881.h
2000 tm_file=m88k/dguxbcs.h
2001 tmake_file=m88k/t-dguxbcs
2005 tmake_file=m88k/t-dgux
2008 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2009 xmake_file=m88k/x-dgux
2010 if test x$gas = xyes
2012 tmake_file=m88k/t-dgux-gas
2015 m88k-dolphin-sysv3*)
2016 tm_file=m88k/dolph.h
2017 extra_parts="crtbegin.o crtend.o"
2018 xm_file="m88k/xm-sysv3.h ${xm_file}"
2019 xmake_file=m88k/x-dolph
2020 if test x$gas = xyes
2022 tmake_file=m88k/t-m88k-gas
2025 m88k-tektronix-sysv3)
2026 tm_file=m88k/tekXD88.h
2027 extra_parts="crtbegin.o crtend.o"
2028 xm_file="m88k/xm-sysv3.h ${xm_file}"
2029 xmake_file=m88k/x-tekXD88
2030 if test x$gas = xyes
2032 tmake_file=m88k/t-m88k-gas
2036 tm_file=m88k/m88k-aout.h
2039 tm_file=m88k/m88k-coff.h
2040 tmake_file=m88k/t-bug
2044 extra_parts="crtbegin.o crtend.o"
2045 if test x$gas = xyes
2047 tmake_file=m88k/t-luna-gas
2049 tmake_file=m88k/t-luna
2053 tmake_file="${tmake_file} m88k/t-luna-gas"
2054 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2055 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2058 tm_file=m88k/sysv3.h
2059 extra_parts="crtbegin.o crtend.o"
2060 xm_file="m88k/xm-sysv3.h ${xm_file}"
2061 xmake_file=m88k/x-sysv3
2062 if test x$gas = xyes
2064 tmake_file=m88k/t-m88k-gas
2068 tm_file=m88k/sysv4.h
2069 extra_parts="crtbegin.o crtend.o"
2070 xmake_file=m88k/x-sysv4
2071 tmake_file=m88k/t-sysv4
2074 tm_file=mcore/mcore-elf.h
2075 tmake_file=mcore/t-mcore
2078 tm_file=mcore/mcore-pe.h
2079 tmake_file=mcore/t-mcore-pe
2081 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2082 if test "x$gnu_ld" = xyes
2084 tm_file="mips/iris6.h mips/iris6gld.h"
2086 tm_file=mips/iris6.h
2088 tmake_file=mips/t-iris6
2089 xm_file=mips/xm-iris6.h
2090 xmake_file=mips/x-iris6
2091 # if test x$enable_threads = xyes; then
2092 # thread_file='irix'
2096 tm_file="mips/elf.h mips/vxworks.h"
2097 tmake_file=mips/t-ecoff
2100 extra_parts="crtbegin.o crtend.o"
2101 thread_file='vxworks'
2103 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2104 tm_file="mips/iris6.h mips/cross64.h"
2106 xm_file="mips/xm-iris5.h"
2107 xmake_file=mips/x-iris
2108 tmake_file=mips/t-cross64
2109 # See comment in mips/iris[56].h files.
2111 # if test x$enable_threads = xyes; then
2112 # thread_file='irix'
2116 if test x$gas = xyes
2118 if test x$stabs = xyes
2120 tm_file=mips/iris5gdb.h
2122 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2125 tm_file=mips/sni-svr4.h
2128 xmake_file=mips/x-sni-svr4
2129 tmake_file=mips/t-mips-gas
2130 if test x$gnu_ld != xyes
2135 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2136 if test x$gas = xyes
2138 tm_file="mips/iris5.h mips/iris5gas.h"
2139 if test x$stabs = xyes
2141 tm_file="${tm_file} dbx.h"
2144 tm_file=mips/iris5.h
2147 xm_file="mips/xm-iris5.h"
2148 xmake_file=mips/x-iris
2149 # mips-tfile doesn't work yet
2150 tmake_file=mips/t-mips-gas
2151 # See comment in mips/iris5.h file.
2153 # if test x$enable_threads = xyes; then
2154 # thread_file='irix'
2157 mips-sgi-irix4loser*) # Mostly like a MIPS.
2158 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2159 if test x$stabs = xyes; then
2160 tm_file="${tm_file} dbx.h"
2163 xmake_file=mips/x-iris
2164 if test x$gas = xyes
2166 tmake_file=mips/t-mips-gas
2168 extra_passes="mips-tfile mips-tdump"
2170 if test x$gnu_ld != xyes
2174 # if test x$enable_threads = xyes; then
2175 # thread_file='irix'
2178 mips-sgi-irix4*) # Mostly like a MIPS.
2179 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2180 if test x$stabs = xyes; then
2181 tm_file="${tm_file} dbx.h"
2184 xmake_file=mips/x-iris
2185 if test x$gas = xyes
2187 tmake_file=mips/t-mips-gas
2189 extra_passes="mips-tfile mips-tdump"
2191 if test x$gnu_ld != xyes
2195 # if test x$enable_threads = xyes; then
2196 # thread_file='irix'
2199 mips-sgi-*) # Mostly like a MIPS.
2200 tm_file="mips/iris3.h ${tm_file}"
2201 if test x$stabs = xyes; then
2202 tm_file="${tm_file} dbx.h"
2205 xmake_file=mips/x-iris3
2206 if test x$gas = xyes
2208 tmake_file=mips/t-mips-gas
2210 extra_passes="mips-tfile mips-tdump"
2212 if test x$gnu_ld != xyes
2217 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2218 tm_file="mips/osfrose.h ${tm_file}"
2219 xmake_file=mips/x-osfrose
2220 tmake_file=mips/t-osfrose
2221 extra_objs=halfpic.o
2224 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2225 tm_file=mips/dec-osf1.h
2226 if test x$stabs = xyes; then
2227 tm_file="${tm_file} dbx.h"
2229 xmake_file=mips/x-dec-osf1
2230 if test x$gas = xyes
2232 tmake_file=mips/t-mips-gas
2234 tmake_file=mips/t-ultrix
2235 extra_passes="mips-tfile mips-tdump"
2237 if test x$gnu_ld != xyes
2242 mips-dec-bsd*) # Decstation running 4.4 BSD
2243 tm_file=mips/dec-bsd.h
2244 if test x$gas = xyes
2246 tmake_file=mips/t-mips-gas
2248 tmake_file=mips/t-ultrix
2249 extra_passes="mips-tfile mips-tdump"
2251 if test x$gnu_ld != xyes
2256 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2257 tm_file=mips/netbsd.h
2258 # On NetBSD, the headers are already okay, except for math.h.
2261 mips*-*-linux*) # Linux MIPS, either endian.
2264 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2265 *) tm_file="mips/elf.h mips/linux.h" ;;
2268 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2271 if test x$enable_threads = xyes; then
2275 mips*el-*-openbsd*) # mips little endian
2276 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2278 mips*-*-openbsd*) # mips big endian
2279 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2280 tm_file="mips/openbsd-be.h ${tm_file}"
2282 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2283 tm_file="mips/news4.h ${tm_file}"
2284 if test x$stabs = xyes; then
2285 tm_file="${tm_file} dbx.h"
2287 if test x$gas = xyes
2289 tmake_file=mips/t-mips-gas
2291 extra_passes="mips-tfile mips-tdump"
2293 if test x$gnu_ld != xyes
2297 xmake_file=mips/x-sony
2299 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2300 # That is based on svr4.
2301 # t-svr4 is not right because this system doesn't use ELF.
2302 tm_file="mips/news5.h ${tm_file}"
2303 if test x$stabs = xyes; then
2304 tm_file="${tm_file} dbx.h"
2307 if test x$gas = xyes
2309 tmake_file=mips/t-mips-gas
2311 extra_passes="mips-tfile mips-tdump"
2313 if test x$gnu_ld != xyes
2318 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2319 tm_file="mips/svr4-5.h mips/svr4-t.h"
2320 if test x$stabs = xyes; then
2321 tm_file="${tm_file} dbx.h"
2324 xmake_file=mips/x-sysv
2325 if test x$gas = xyes
2327 tmake_file=mips/t-mips-gas
2328 extra_parts="crtbegin.o crtend.o"
2330 tmake_file=mips/t-mips
2331 extra_passes="mips-tfile mips-tdump"
2333 if test x$gnu_ld != xyes
2338 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2339 tm_file="mips/ultrix.h ${tm_file}"
2340 if test x$stabs = xyes; then
2341 tm_file="${tm_file} dbx.h"
2343 xmake_file=mips/x-ultrix
2344 if test x$gas = xyes
2346 tmake_file=mips/t-mips-gas
2348 tmake_file=mips/t-ultrix
2349 extra_passes="mips-tfile mips-tdump"
2351 if test x$gnu_ld != xyes
2356 mips-*-riscos[56789]bsd*)
2357 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2358 if test x$stabs = xyes; then
2359 tm_file="${tm_file} dbx.h"
2361 if test x$gas = xyes
2363 tmake_file=mips/t-bsd-gas
2365 tmake_file=mips/t-bsd
2366 extra_passes="mips-tfile mips-tdump"
2368 if test x$gnu_ld != xyes
2373 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2374 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2375 if test x$stabs = xyes; then
2376 tm_file="${tm_file} dbx.h"
2378 if test x$gas = xyes
2380 tmake_file=mips/t-bsd-gas
2382 tmake_file=mips/t-bsd
2383 extra_passes="mips-tfile mips-tdump"
2385 if test x$gnu_ld != xyes
2390 mips-*-riscos[56789]sysv4*)
2391 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2392 if test x$stabs = xyes; then
2393 tm_file="${tm_file} dbx.h"
2395 xmake_file=mips/x-sysv
2396 if test x$gas = xyes
2398 tmake_file=mips/t-svr4-gas
2400 tmake_file=mips/t-svr4
2401 extra_passes="mips-tfile mips-tdump"
2403 if test x$gnu_ld != xyes
2408 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2409 tm_file="mips/svr4-4.h ${tm_file}"
2410 if test x$stabs = xyes; then
2411 tm_file="${tm_file} dbx.h"
2414 xmake_file=mips/x-sysv
2415 if test x$gas = xyes
2417 tmake_file=mips/t-svr4-gas
2419 tmake_file=mips/t-svr4
2420 extra_passes="mips-tfile mips-tdump"
2422 if test x$gnu_ld != xyes
2427 mips-*-riscos[56789]sysv*)
2428 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2429 if test x$stabs = xyes; then
2430 tm_file="${tm_file} dbx.h"
2433 xmake_file=mips/x-sysv
2434 if test x$gas = xyes
2436 tmake_file=mips/t-svr3-gas
2438 tmake_file=mips/t-svr3
2439 extra_passes="mips-tfile mips-tdump"
2441 if test x$gnu_ld != xyes
2446 mips-*-sysv* | mips-*-riscos*sysv*)
2447 tm_file="mips/svr3-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-svr3-gas
2457 tmake_file=mips/t-svr3
2458 extra_passes="mips-tfile mips-tdump"
2460 if test x$gnu_ld != xyes
2465 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2466 tm_file=mips/mips-5.h
2467 if test x$stabs = xyes; then
2468 tm_file="${tm_file} dbx.h"
2470 if test x$gas = xyes
2472 tmake_file=mips/t-mips-gas
2474 extra_passes="mips-tfile mips-tdump"
2476 if test x$gnu_ld != xyes
2484 tm_file=mips/ecoffl.h
2485 if test x$stabs = xyes; then
2486 tm_file="${tm_file} dbx.h"
2488 tmake_file=mips/t-ecoff
2491 tm_file="gofast.h mips/ecoff.h"
2492 if test x$stabs = xyes; then
2493 tm_file="${tm_file} dbx.h"
2495 tmake_file=mips/t-ecoff
2498 tm_file="mips/elfl.h"
2499 tmake_file=mips/t-elf
2502 tm_file="mips/elf.h"
2503 tmake_file=mips/t-elf
2506 tm_file="mips/elfl64.h"
2507 tmake_file=mips/t-elf
2509 mips64orionel-*-elf*)
2510 tm_file="mips/elforion.h mips/elfl64.h"
2511 tmake_file=mips/t-elf
2514 tm_file="mips/elf64.h"
2515 tmake_file=mips/t-elf
2518 tm_file="mips/elforion.h mips/elf64.h"
2519 tmake_file=mips/t-elf
2521 mips64orion-*-rtems*)
2522 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2523 tmake_file="mips/t-elf t-rtems"
2526 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2527 tmake_file=mips/t-r3900
2530 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2531 tmake_file=mips/t-r3900
2533 mips-*-*) # Default MIPS RISC-OS 4.0.
2534 if test x$stabs = xyes; then
2535 tm_file="${tm_file} dbx.h"
2537 if test x$gas = xyes
2539 tmake_file=mips/t-mips-gas
2541 extra_passes="mips-tfile mips-tdump"
2543 if test x$gnu_ld != xyes
2551 tm_file="mn10200/mn10200.h"
2552 if test x$stabs = xyes
2554 tm_file="${tm_file} dbx.h"
2560 tm_file="mn10300/mn10300.h"
2561 if test x$stabs = xyes
2563 tm_file="${tm_file} dbx.h"
2568 tm_file=ns32k/encore.h
2572 tm_file=ns32k/sequent.h
2576 tm_file=ns32k/tek6100.h
2580 tm_file=ns32k/tek6200.h
2584 tm_file=ns32k/merlin.h
2588 tm_file=ns32k/pc532-mach.h
2592 tm_file=ns32k/pc532-min.h
2593 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2598 tm_file=ns32k/netbsd.h
2599 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2600 # On NetBSD, the headers are already okay, except for math.h.
2605 tm_file="${tm_file} pdp11/2bsd.h"
2615 tm_file="svr4.h pj/linux.h ${tm_file}"
2620 tm_file="svr4.h pj/pjl.h ${tm_file}"
2627 xmake_file=romp/x-mach
2634 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2638 tm_file=rs6000/beos.h
2639 xm_file=rs6000/xm-beos.h
2640 tmake_file=rs6000/t-beos
2641 xmake_file=rs6000/x-beos
2644 xm_file="rs6000/xm-rs6000.h rs6000/xm-darwin.h"
2645 xmake_file=rs6000/x-darwin
2648 tm_file=rs6000/sysv4.h
2649 xm_file="rs6000/xm-sysv4.h"
2650 xm_defines="USG POSIX"
2651 extra_headers=ppc-asm.h
2652 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2653 xmake_file=rs6000/x-sysv4
2656 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2657 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2658 extra_headers=ppc-asm.h
2661 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2662 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2663 extra_headers=ppc-asm.h
2666 tm_file="rs6000/sysv4.h"
2667 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2668 extra_headers=ppc-asm.h
2671 tm_file="rs6000/sysv4.h rs6000/eabi.h"
2672 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2673 extra_headers=ppc-asm.h
2676 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
2677 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2678 extra_headers=ppc-asm.h
2680 powerpc-*-linux*libc1)
2681 tm_file="rs6000/sysv4.h rs6000/linux.h"
2682 xm_file=rs6000/xm-sysv4.h
2683 out_file=rs6000/rs6000.c
2684 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2686 extra_headers=ppc-asm.h
2687 if test x$enable_threads = xyes; then
2692 tm_file="rs6000/sysv4.h rs6000/linux.h"
2693 xm_file="rs6000/xm-sysv4.h"
2694 xm_defines="USG ${xm_defines}"
2695 out_file=rs6000/rs6000.c
2696 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2698 extra_headers=ppc-asm.h
2699 if test x$enable_threads = xyes; then
2703 powerpc-wrs-vxworks*)
2705 xm_file="rs6000/xm-sysv4.h"
2706 xm_defines="USG POSIX"
2707 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
2708 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2709 extra_headers=ppc-asm.h
2710 thread_file='vxworks'
2712 powerpcle-wrs-vxworks*)
2714 xm_file="rs6000/xm-sysv4.h"
2715 xm_defines="USG POSIX"
2716 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2717 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2718 extra_headers=ppc-asm.h
2719 thread_file='vxworks'
2722 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
2723 xm_file="rs6000/xm-sysv4.h"
2724 xm_defines="USG POSIX"
2725 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2726 xmake_file=rs6000/x-sysv4
2727 extra_headers=ppc-asm.h
2730 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
2731 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2732 extra_headers=ppc-asm.h
2734 powerpcle-*-eabisim*)
2735 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2736 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2737 extra_headers=ppc-asm.h
2740 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2741 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2742 extra_headers=ppc-asm.h
2744 powerpcle-*-solaris2*)
2745 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2746 xm_file="rs6000/xm-sysv4.h"
2747 xm_defines="USG POSIX"
2748 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2749 xmake_file=rs6000/x-sysv4
2750 extra_headers=ppc-asm.h
2752 rs6000-ibm-aix3.[01]*)
2753 tm_file=rs6000/aix31.h
2754 xmake_file=rs6000/x-aix31
2758 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2759 tm_file=rs6000/aix3newas.h
2760 if test x$host != x$target
2762 tmake_file=rs6000/t-xnewas
2764 tmake_file=rs6000/t-newas
2769 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2770 tm_file=rs6000/aix41.h
2771 if test x$host != x$target
2773 tmake_file=rs6000/t-xnewas
2775 tmake_file=rs6000/t-newas
2777 if test "$gnu_ld" = yes
2779 xmake_file=rs6000/x-aix41-gld
2781 tmake_file='rs6000/t-newas'
2783 xmake_file=rs6000/x-aix41
2787 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2788 tm_file=rs6000/aix43.h
2789 tmake_file=rs6000/t-aix43
2790 xmake_file=rs6000/x-aix41
2795 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2796 tm_file=rs6000/aix43.h
2797 tmake_file=rs6000/t-aix43
2798 xmake_file=rs6000/x-aix41
2812 tm_file=rs6000/mach.h
2813 xm_file="${xm_file} rs6000/xm-mach.h"
2814 xmake_file=rs6000/x-mach
2818 tm_file=rs6000/lynx.h
2819 xm_file=rs6000/xm-lynx.h
2820 tmake_file=rs6000/t-rs6000
2821 xmake_file=rs6000/x-lynx
2825 tmake_file="sh/t-sh sh/t-elf"
2826 tm_file="sh/sh.h sh/elf.h"
2830 tmake_file="sh/t-sh sh/t-elf t-rtems"
2831 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2835 tmake_file="sh/t-sh t-rtems"
2836 tm_file="sh/sh.h sh/rtems.h"
2840 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2841 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2844 if test x$enable_threads = xyes; then
2854 xm_file="xm-alloca.h ${xm_file}"
2857 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2858 tm_file=sparc/vxsparc.h
2859 tmake_file=sparc/t-vxsparc
2861 thread_file='vxworks'
2864 tmake_file=sparc/t-sparcbare
2865 tm_file="sparc/aout.h libgloss.h"
2868 tm_file=sparc/netbsd.h
2873 # we need collect2 until our bug is fixed...
2881 tmake_file=sparc/t-elf
2882 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2886 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2887 xm_file="${xm_file} sparc/xm-linux.h"
2888 tm_file=sparc/linux-aout.h
2892 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2893 xm_file="${xm_file} sparc/xm-linux.h"
2895 tm_file=sparc/linux.h
2896 tmake_file="t-linux t-linux-gnulibc1"
2897 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2901 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2902 xm_file="${xm_file} sparc/xm-linux.h"
2904 tm_file=sparc/linux.h
2905 tmake_file="t-linux"
2906 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2908 if test x$enable_threads = xyes; then
2914 if test x$gas = xyes
2916 tm_file=sparc/lynx.h
2918 tm_file=sparc/lynx-ng.h
2920 xm_file=sparc/xm-lynx.h
2921 tmake_file=sparc/t-sunos41
2925 tmake_file="sparc/t-sparcbare t-rtems"
2926 tm_file=sparc/rtems.h
2928 sparc-*-rtems*|sparc-*-rtemself*)
2929 tm_file="sparc/rtemself.h"
2930 tmake_file="sparc/t-elf t-rtems"
2931 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2935 sparcv9-*-solaris2*)
2936 if test x$gnu_ld = xyes
2938 tm_file=sparc/sol2-64.h
2940 tm_file=sparc/sol2-sld-64.h
2942 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
2943 xm_defines="USG POSIX"
2944 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2945 if test x$gnu_ld = xyes; then
2946 tmake_file="$tmake_file sparc/t-slibgcc"
2948 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2950 xmake_file=sparc/x-sysv4
2951 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2953 if test x${enable_threads} = x ; then
2954 enable_threads=$have_pthread_h
2955 if test x${enable_threads} = x ; then
2956 enable_threads=$have_thread_h
2959 if test x${enable_threads} = xyes ; then
2960 if test x${have_pthread_h} = xyes ; then
2963 thread_file='solaris'
2967 sparc-hal-solaris2*)
2968 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
2969 xm_defines="USG POSIX"
2970 tm_file="sparc/sol2.h sparc/hal.h"
2971 tmake_file="sparc/t-halos sparc/t-sol2"
2972 if test x$gnu_ld = xyes; then
2973 tmake_file="$tmake_file sparc/t-slibgcc"
2975 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2977 xmake_file=sparc/x-sysv4
2978 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2987 thread_file='solaris'
2990 if test x$gnu_ld = xyes
2992 tm_file=sparc/sol2.h
2994 tm_file=sparc/sol2-sld.h
2996 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
2997 xm_defines="USG POSIX"
2998 tmake_file=sparc/t-sol2
2999 if test x$gnu_ld = xyes; then
3000 tmake_file="$tmake_file sparc/t-slibgcc"
3002 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3004 xmake_file=sparc/x-sysv4
3005 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3006 # At the moment, 32-to-64 cross compilation doesn't work.
3008 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3010 # if test x$gnu_ld = xyes
3012 # tm_file=sparc/sol2-64.h
3014 # tm_file=sparc/sol2-sld-64.h
3016 # tmake_file="$tmake_file sparc/t-sol2-64"
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'
3042 tm_file=sparc/sunos4.h
3043 tmake_file=sparc/t-sunos40
3047 tm_file=sparc/sunos4.h
3048 tmake_file=sparc/t-sunos41
3050 if test x$gas = xyes; then
3051 tm_file="${tm_file} sparc/sun4gas.h"
3055 tm_file=sparc/sun4o3.h
3059 tm_file=sparc/sysv4.h
3060 xm_file="sparc/xm-sysv4.h"
3061 xm_defines="USG POSIX"
3063 xmake_file=sparc/x-sysv4
3064 extra_parts="crtbegin.o crtend.o"
3067 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3068 xm_defines="USG POSIX"
3069 tm_file=sparc/vxsim.h
3070 tmake_file=sparc/t-vxsparc
3071 xmake_file=sparc/x-sysv4
3074 tm_file="sparc/splet.h libgloss.h"
3075 tmake_file=sparc/t-splet
3078 tm_file="sparc/litecoff.h libgloss.h"
3079 tmake_file=sparc/t-sparclite
3082 tm_file="sparc/lite.h aoutos.h libgloss.h"
3083 tmake_file=sparc/t-sparclite
3086 tm_file="sparc/liteelf.h"
3087 tmake_file=sparc/t-sparclite
3088 extra_parts="crtbegin.o crtend.o"
3091 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3092 tmake_file=sparc/t-sp86x
3095 tm_file="sparc/sp86x-elf.h"
3096 tmake_file=sparc/t-sp86x
3097 extra_parts="crtbegin.o crtend.o"
3100 tmake_file=sparc/t-sp64
3101 tm_file=sparc/sp64-aout.h
3104 tmake_file=sparc/t-sp64
3105 tm_file=sparc/sp64-elf.h
3106 extra_parts="crtbegin.o crtend.o"
3108 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3109 tmake_file="t-linux sparc/t-linux64"
3110 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3111 tm_file=sparc/linux64.h
3113 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3115 if test x$enable_threads = xyes; then
3121 { echo "config.gcc: error:
3122 *** The Thumb targets have been deprecated. The equivalent
3123 *** ARM based toolchain can now generate Thumb instructions
3124 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3128 tm_file="v850/rtems.h"
3129 xm_file="v850/xm-v850.h"
3130 tmake_file="v850/t-v850 t-rtems"
3131 if test x$stabs = xyes
3133 tm_file="${tm_file} dbx.h"
3138 target_cpu_default="TARGET_CPU_generic"
3140 tm_file="v850/v850.h"
3141 xm_file="v850/xm-v850.h"
3142 tmake_file=v850/t-v850
3143 if test x$stabs = xyes
3145 tm_file="${tm_file} dbx.h"
3149 vax-*-bsd*) # vaxen running BSD
3153 vax-*-sysv*) # vaxen running system V
3154 tm_file="${tm_file} vax/vaxv.h"
3159 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3165 tmake_file="${tmake_file} vax/t-openbsd"
3166 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3167 xm_file="xm-openbsd.h vax/xm-vax.h"
3171 vax-*-ultrix*) # vaxen running ultrix
3172 tm_file="${tm_file} vax/ultrix.h"
3175 vax-*-vms*) # vaxen running VMS
3176 xm_file=vax/xm-vms.h
3180 vax-*-*) # vax default entry
3184 xm_file="${xm_file} xm-svr3"
3188 echo "Configuration $machine not supported" 1>&2
3195 ;; # Existing GNU/Linux systems do not use the GNU setup.
3197 # On the GNU system, the setup is just about the same on
3198 # each different CPU. The specific machines that GNU
3199 # supports are matched above and just set $cpu_type.
3200 xm_file="xm-gnu.h ${xm_file}"
3201 tm_file=${cpu_type}/gnu.h
3202 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3203 # GNU always uses ELF.
3205 # GNU tools are the only tools.
3208 xmake_file=x-linux # These details are the same as Linux.
3209 tmake_file=t-gnu # These are not.
3212 xmake_try_sysv=x-sysv
3213 install_headers_dir=install-headers-cpio
3216 install_headers_dir=install-headers-cpio
3220 # Distinguish i[34567]86
3221 # Also, do not run mips-tfile on MIPS if using gas.
3222 # Process --with-cpu= for PowerPC/rs6000
3223 target_cpu_default2=
3226 target_cpu_default2=1
3229 case $target_alias in
3231 target_cpu_default2=4
3234 target_cpu_default2=2
3238 i686-*-* | i786-*-*)
3239 target_cpu_default2=3
3244 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3247 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3250 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3253 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3256 target_cpu_default2="MASK_CPU_EV5"
3260 if test x$gas = xyes
3262 if test "$target_cpu_default2" = ""
3264 target_cpu_default2="MASK_GAS"
3266 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3271 case "x$with_cpu" in
3274 target_cpu_default2="TARGET_CPU_generic"
3277 # Distinguish cores, and major variants
3278 # arm7m doesn't exist, but D & I don't affect code
3279 xarm[236789] | xarm250 | xarm[67][01]0 \
3280 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3281 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3282 | xstrongarm | xstrongarm110 | xstrongarm1100)
3283 target_cpu_default2="TARGET_CPU_$with_cpu"
3287 echo "--with-cpu must be passed a value" 1>&2
3292 if test x$pass2done = xyes
3294 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3301 mips*-*-ecoff* | mips*-*-elf*)
3302 if test x$gas = xyes
3304 if test x$gnu_ld = xyes
3306 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3308 target_cpu_default2="MASK_GAS"
3313 if test x$gas = xyes
3315 target_cpu_default2="MASK_GAS"
3318 powerpc*-*-* | rs6000-*-*)
3319 case "x$with_cpu" in
3323 xcommon | xpower | xpower2 | xpowerpc | xrios \
3324 | xrios1 | xrios2 | xrsc | xrsc1 \
3325 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3326 | xec603e | x740 | x750 | x401 \
3327 | x403 | x505 | x801 | x821 | x823 | x860)
3328 target_cpu_default2="\"$with_cpu\""
3332 echo "--with-cpu must be passed a value" 1>&2
3337 if test x$pass2done = xyes
3339 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3346 case ".$with_cpu" in
3348 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3350 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3351 target_cpu_default2="TARGET_CPU_$with_cpu"
3354 if test x$pass2done = xyes
3356 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3364 if test "$target_cpu_default2" != ""
3366 if test "$target_cpu_default" != ""
3368 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3370 target_cpu_default=$target_cpu_default2
3374 # No need for collect2 if we have the GNU linker.
3375 # Actually, there is now; GNU ld doesn't handle the EH info or
3376 # collecting for shared libraries.
3383 # Save data on machine being used to compile GCC in build_xm_file.
3384 # Save data on host machine in vars host_xm_file and host_xmake_file.
3385 if test x$pass1done = x
3387 if test x"$xm_file" = x
3388 then build_xm_file=$cpu_type/xm-$cpu_type.h
3389 else build_xm_file=$xm_file
3391 build_xm_defines=$xm_defines
3392 build_install_headers_dir=$install_headers_dir
3393 build_exeext=$exeext
3396 if test x$pass2done = x
3398 if test x"$xm_file" = x
3399 then host_xm_file=$cpu_type/xm-$cpu_type.h
3400 else host_xm_file=$xm_file
3402 host_xm_defines=$xm_defines
3403 if test x"$xmake_file" = x
3404 then xmake_file=$cpu_type/x-$cpu_type
3406 host_xmake_file="$xmake_file"
3407 host_truncate_target=$truncate_target
3408 host_extra_gcc_objs=$extra_gcc_objs
3409 host_extra_objs=$extra_host_objs