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 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
248 tm_p_file=${cpu_type}/${cpu_type}-protos.h
250 if test -f ${srcdir}/config/${cpu_type}/x-${cpu_type}
252 xmake_file=${cpu_type}/x-${cpu_type}
254 # On a.out targets, we need to use collect2.
261 # Common parts for GNU/Linux, GNU/Hurd and OpenBSD systems.
267 # On the Hurd, the setup is just about the same on
268 # each different CPU. The specific machines that we
269 # support are matched above and just set $cpu_type.
271 tm_file="${cpu_type}/gnu.h"
272 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
273 # GNU always uses ELF.
275 # GNU tools are the only tools.
278 # These details are the same as for Linux.
280 # But here we need a little extra magic.
281 tmake_file="t-linux t-gnu"
284 tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}"
287 tm_file="svr4.h ${cpu_type}/${cpu_type}.h ${tm_file}"
292 tm_file=${cpu_type}/openbsd.h
293 tmake_file="t-libc-ok t-openbsd"
295 # don't depend on processor x-fragments as well
297 if test x$enable_threads = xyes; then
299 tmake_file="${tmake_file} t-openbsd-thread"
305 # Support site-specific machine types.
307 rest=`echo $machine | sed -e "s/$cpu_type-//"`
308 tm_file=${cpu_type}/$rest.h
309 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
310 then xm_file=${cpu_type}/xm-$rest.h
312 if test -f $srcdir/config/${cpu_type}/x-$rest
313 then xmake_file=${cpu_type}/x-$rest
315 if test -f $srcdir/config/${cpu_type}/t-$rest
316 then tmake_file=${cpu_type}/t-$rest
320 # 1750a is only supported as a target.
321 case "$build,$host" in 1750a*,* | *,1750a* )
322 echo "*** $machine is only supported as a target" >&2
326 a29k-*-bsd* | a29k-*-sym1*)
327 tm_file="${tm_file} a29k/unix.h"
329 xmake_file=a29k/x-unix
332 a29k-*-udi | a29k-*-coff)
333 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
334 tmake_file=a29k/t-a29kbare
338 tmake_file="a29k/t-a29kbare t-rtems"
339 if test x$enable_threads = xyes; then
344 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
345 tmake_file=a29k/t-vx29k
346 extra_parts="crtbegin.o crtend.o"
347 thread_file='vxworks'
349 a29k-*-*) # Default a29k environment.
353 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
355 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
356 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
358 # GAS + IEEE_CONFORMANT
359 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
362 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
364 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
365 if test x$enable_threads = xyes ; then
368 if test x$stabs = xyes ; then
369 tm_file="${tm_file} dbxcoff.h"
371 #prefix='$$INTERIX_ROOT'/usr/contrib
372 #local_prefix='$$INTERIX_ROOT'/usr/contrib
374 alpha*-*-linux*ecoff*)
376 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
377 target_cpu_default="MASK_GAS"
378 tmake_file="alpha/t-alpha alpha/t-ieee"
382 alpha*-*-linux*libc1*)
383 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
384 target_cpu_default="MASK_GAS"
385 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
386 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
388 if test x$enable_threads = xyes; then
393 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
394 target_cpu_default="MASK_GAS"
395 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
396 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
398 if test x$enable_threads = xyes; then
404 tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h"
405 target_cpu_default="MASK_GAS"
406 tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
407 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"
419 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
420 target_cpu_default="MASK_GAS"
421 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
422 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"
434 if test x$stabs = xyes
436 tm_file="${tm_file} dbx.h"
438 if test x$gas != xyes
440 extra_passes="mips-tfile mips-tdump"
443 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
444 xmake_file=alpha/x-osf
447 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
450 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
453 tm_file="${tm_file} alpha/osf.h"
454 tmake_file="$tmake_file alpha/t-osf4"
455 # Some versions of OSF4 (specifically X4.0-9 296.7) have
456 # a broken tar, so we use cpio instead.
457 install_headers_dir=install-headers-cpio
460 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
461 tmake_file="$tmake_file alpha/t-osf4"
466 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
467 target_cpu_default=MASK_SUPPORT_ARCH
473 tm_file="${tm_file} dbx.h alpha/vxworks.h"
474 tmake_file="alpha/t-alpha alpha/t-ieee"
477 extra_passes="mips-tfile mips-tdump"
480 thread_file='vxworks'
485 xm_file=alpha/xm-vms.h
486 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
489 tm_file=arm/rtems-elf.h
490 tmake_file="arm/t-arm-elf t-rtems"
491 if test x$enable_threads = xyes; then
494 extra_parts="crtinit.o crtfini.o"
497 extra_parts="crtinit.o crtfini.o"
499 arm-*-coff* | armel-*-coff*)
501 tmake_file=arm/t-arm-coff
505 tmake_file=arm/t-arm-coff
506 thread_file='vxworks'
508 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
509 tm_file=arm/riscix1-1.h
512 arm-*-riscix*) # Acorn RISC machine
515 tm_file=arm/rix-gas.h
519 xmake_file=arm/x-riscix
520 tmake_file=arm/t-riscix
523 arm-semi-aout | armel-semi-aout)
525 tmake_file=arm/t-semi
527 arm-semi-aof | armel-semi-aof)
528 tm_file=arm/semiaof.h
529 tmake_file=arm/t-semiaof
533 tmake_file="t-netbsd arm/t-netbsd"
536 arm*-*-linux*) # ARM GNU/Linux with ELF
538 tm_file="arm/linux-elf.h"
539 tmake_file="t-linux arm/t-linux"
540 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
542 case x${enable_threads} in
543 x | xyes | xpthreads | xposix)
548 arm*-*-uclinux*) # ARM ucLinux
549 tm_file=arm/uclinux-elf.h
550 tmake_file=arm/t-arm-elf
554 tmake_file=arm/t-arm-aout
557 tm_file=arm/ecos-elf.h
558 tmake_file=arm/t-arm-elf
561 tm_file=arm/unknown-elf.h
562 tmake_file=arm/t-arm-elf
565 tm_file=arm/conix-elf.h
566 tmake_file=arm/t-arm-elf
569 tm_file=arm/unknown-elf-oabi.h
570 tmake_file=arm/t-arm-elf
579 c1-convex-*) # Convex C1
583 c2-convex-*) # Convex C2
596 target_cpu_default=16
601 tmake_file="c4x/t-c4x t-rtems"
603 if test x$enable_threads = xyes; then
612 clipper-intergraph-clix*)
613 tm_file="${tm_file} svr3.h clipper/clix.h"
615 extra_headers=va-clipper.h
616 extra_parts="crtbegin.o crtend.o"
617 install_headers_dir=install-headers-cpio
628 tm_file="fr30/fr30.h"
629 tmake_file=fr30/t-fr30
630 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
633 tmake_file="h8300/t-h8300 t-rtems"
634 tm_file=h8300/rtems.h
635 if test x$enable_threads = xyes; then
644 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
645 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
646 tmake_file="t-linux pa/t-linux"
647 extra_parts="crtbegin.o crtend.o"
650 if test x$enable_threads = xyes; then
655 target_cpu_default="MASK_PA_11"
656 tmake_file=pa/t-openbsd
659 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.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"
671 target_cpu_default="MASK_PA_11"
672 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
676 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
677 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
681 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
685 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
686 target_cpu_default="MASK_PA_11"
690 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
694 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
696 xmake_file=pa/x-pa-hpux
699 tm_file="${tm_file} pa/gas.h"
701 install_headers_dir=install-headers-cpio
704 hppa1.0-*-hpux8.0[0-2]*)
705 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
707 xmake_file=pa/x-pa-hpux
710 tm_file="${tm_file} pa/pa-gas.h"
712 tm_file="pa/pa-oldas.h ${tm_file}"
714 install_headers_dir=install-headers-cpio
717 hppa1.1-*-hpux8.0[0-2]*)
718 target_cpu_default="MASK_PA_11"
719 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
721 xmake_file=pa/x-pa-hpux
724 tm_file="${tm_file} pa/pa-gas.h"
726 tm_file="pa/pa-oldas.h ${tm_file}"
728 install_headers_dir=install-headers-cpio
732 target_cpu_default="MASK_PA_11"
733 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
735 xmake_file=pa/x-pa-hpux
738 tm_file="${tm_file} pa/pa-gas.h"
740 install_headers_dir=install-headers-cpio
744 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
746 xmake_file=pa/x-pa-hpux
749 tm_file="${tm_file} pa/pa-gas.h"
751 install_headers_dir=install-headers-cpio
754 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
755 target_cpu_default="MASK_PA_11"
756 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
759 xmake_file=pa/x-pa-hpux
763 tm_file="${tm_file} pa/pa-gas.h"
765 if test x$enable_threads = x; then
766 enable_threads=$have_pthread_h
768 case x${enable_threads} in
770 tmake_file="${tmake_file} pa/t-dce-thr"
773 install_headers_dir=install-headers-cpio
777 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
780 xmake_file=pa/x-pa-hpux
784 tm_file="${tm_file} pa/pa-gas.h"
786 if test x$enable_threads = x; then
787 enable_threads=$have_pthread_h
789 case x${enable_threads} in
791 tmake_file="${tmake_file} pa/t-dce-thr"
794 install_headers_dir=install-headers-cpio
799 xmake_file=pa/x-pa-hpux
801 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 pa/pa64-hpux.h"
804 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
808 tm_file="${tm_file} pa/pa-gas.h"
810 # if [ x$enable_threads = x ]; then
811 # enable_threads=$have_pthread_h
813 # if [ x$enable_threads = xyes ]; then
815 # tmake_file="${tmake_file} pa/t-dce-thr"
817 install_headers_dir=install-headers-cpio
820 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
821 target_cpu_default="MASK_PA_11"
822 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
825 xmake_file=pa/x-pa-hpux
829 tm_file="${tm_file} pa/pa-gas.h"
831 # if test x$enable_threads = x; then
832 # enable_threads=$have_pthread_h
834 # if test x$enable_threads = xyes; then
836 # tmake_file="${tmake_file} pa/t-dce-thr"
838 install_headers_dir=install-headers-cpio
842 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
845 xmake_file=pa/x-pa-hpux
848 tm_file="${tm_file} pa/pa-gas.h"
850 # if test x$enable_threads = x; then
851 # enable_threads=$have_pthread_h
853 # if test x$enable_threads = xyes; then
855 # tmake_file="${tmake_file} pa/t-dce-thr"
857 install_headers_dir=install-headers-cpio
860 hppa1.1-*-hpux* | hppa2*-*-hpux*)
861 target_cpu_default="MASK_PA_11"
862 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
864 xmake_file=pa/x-pa-hpux
867 tm_file="${tm_file} pa/pa-gas.h"
869 install_headers_dir=install-headers-cpio
873 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
875 xmake_file=pa/x-pa-hpux
878 tm_file="${tm_file} pa/pa-gas.h"
880 install_headers_dir=install-headers-cpio
883 hppa1.1-*-hiux* | hppa2*-*-hiux*)
884 target_cpu_default="MASK_PA_11"
885 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
887 xmake_file=pa/x-pa-hpux
890 tm_file="${tm_file} pa/pa-gas.h"
892 install_headers_dir=install-headers-cpio
896 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
898 xmake_file=pa/x-pa-hpux
901 tm_file="${tm_file} pa/pa-gas.h"
903 install_headers_dir=install-headers-cpio
907 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
908 target_cpu_default="MASK_PA_11"
912 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
913 xmake_file=pa/x-pa-mpeix
914 echo "You must use gas. Assuming it is already installed."
915 install_headers_dir=install-headers-tar
918 i370-*-opened*) # IBM 360/370/390 Architecture
919 xm_defines='USG FATAL_EXIT_CODE=12'
925 xm_defines='USG FATAL_EXIT_CODE=12'
927 tmake_file=i370/t-mvs
931 tm_file="i370/linux.h ${tm_file}"
932 tmake_file="t-linux i370/t-linux"
934 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
935 # extra_parts="crtbegin.o crtend.o"
939 if test x$enable_threads = xyes; then
943 i[34567]86-*-chorusos*)
944 xm_defines='USG POSIX'
945 tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h i386/chorus.h"
946 tmake_file=i386/t-i386elf
948 case x${enable_threads} in
949 xyes | xpthreads | xposix)
955 xm_defines='USG POSIX'
956 tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h"
957 tmake_file=i386/t-i386elf
960 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
963 tm_file=i386/aix386.h
964 extra_parts="crtbegin.o crtend.o"
965 tmake_file=i386/t-crtstuff
967 tm_file=i386/aix386ng.h
971 xmake_file=i386/x-aix
973 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
974 xm_defines="USG POSIX SMALL_ARG_MAX"
975 if test x$stabs = xyes -a x$gas = xyes
977 tm_file=i386/sysv4gdb.h
981 extra_parts="crtbegin.o crtend.o"
982 tmake_file=i386/t-crtpic
986 tmake_file=i386/t-next
987 extra_objs=nextstep.o
988 extra_parts="crtbegin.o crtend.o"
989 if test x$enable_threads = xyes; then
993 i[34567]86-*-netware) # Intel 80386's running netware
994 tm_file=i386/netware.h
995 tmake_file=i386/t-netware
997 i[34567]86-sequent-bsd*) # 80386 from Sequent
1001 tm_file=i386/seq-gas.h
1003 tm_file=i386/sequent.h
1006 i[34567]86-sequent-ptx1*)
1008 tm_file=i386/seq-sysv3.h
1009 tmake_file=i386/t-crtstuff
1010 extra_parts="crtbegin.o crtend.o"
1011 install_headers_dir=install-headers-cpio
1013 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1015 tm_file=i386/seq2-sysv3.h
1016 tmake_file=i386/t-crtstuff
1017 extra_parts="crtbegin.o crtend.o"
1018 install_headers_dir=install-headers-cpio
1020 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1021 if test x$gas = xyes
1023 tm_file="${tm_file} usegas.h"
1025 xm_defines="USG POSIX SMALL_ARG_MAX"
1027 tm_file=i386/ptx4-i.h
1029 extra_parts="crtbegin.o crtend.o"
1030 install_headers_dir=install-headers-cpio
1032 i386-sun-sunos*) # Sun i386 roadrunner
1037 i[34567]86-wrs-vxworks*)
1038 tm_file=i386/vxi386.h
1039 tmake_file=i386/t-i386bare
1040 thread_file='vxworks'
1043 tm_file=i386/i386-aout.h
1044 tmake_file=i386/t-i386bare
1046 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1048 tmake_file='i386/t-beos i386/t-crtpic'
1049 tm_file=i386/beos-elf.h
1050 xmake_file=i386/x-beos
1051 extra_parts='crtbegin.o crtend.o'
1053 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1054 tm_file=i386/bsd386.h
1055 # tmake_file=t-libc-ok
1058 tm_file=i386/386bsd.h
1059 # tmake_file=t-libc-ok
1060 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1063 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1064 tm_file="i386/freebsd-aout.h i386/perform.h"
1065 tmake_file=t-freebsd
1067 i[34567]86-*-freebsd*)
1068 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/i386afe.h i386/freebsd.h i386/perform.h"
1069 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1070 tmake_file=t-freebsd
1074 case x${enable_threads} in
1075 xyes | xpthreads | xposix)
1077 tmake_file="${tmake_file} t-freebsd-thread"
1081 i[34567]86-*-netbsd*)
1082 tm_file=i386/netbsd.h
1086 i[34567]86-*-openbsd*)
1087 # we need collect2 until our bug is fixed...
1091 tm_file=i386/i386-coff.h
1092 tmake_file=i386/t-i386bare
1094 i[34567]86-*-isc*) # 80386 running ISC system
1096 if test x$gas = xyes -a x$stabs = xyes
1098 tm_file=i386/iscdbx.h
1099 tmake_file=i386/t-svr3dbx
1100 extra_parts="svr3.ifile svr3z.ifile"
1102 tm_file=i386/isccoff.h
1103 tmake_file=i386/t-crtstuff
1104 extra_parts="crtbegin.o crtend.o"
1106 tmake_file="$tmake_file i386/t-i386bare"
1107 install_headers_dir=install-headers-cpio
1109 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1110 # with a.out format using
1112 tmake_file="t-linux-aout i386/t-crtstuff"
1113 tm_file=i386/linux-oldld.h
1117 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1119 tmake_file="t-linux-aout i386/t-crtstuff"
1120 tm_file=i386/linux-aout.h
1124 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1125 # with ELF format using the
1126 # GNU/Linux C library 5
1128 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h"
1129 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1130 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1133 if test x$enable_threads = xyes; then
1134 thread_file='single'
1137 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1138 # with ELF format using glibc 2
1139 # aka GNU/Linux C library 6
1141 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h"
1142 tmake_file="t-linux i386/t-crtstuff"
1143 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1146 if test x$enable_threads = xyes; then
1153 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1154 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1157 i[34567]86-pc-msdosdjgpp*)
1158 xm_file=i386/xm-djgpp.h
1159 tm_file=i386/djgpp.h
1160 tmake_file=i386/t-djgpp
1161 xmake_file=i386/x-djgpp
1166 case $host in *pc-msdosdjgpp*)
1171 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1172 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h i386/moss.h"
1173 tmake_file=t-libc-ok
1177 i[34567]86-*-lynxos*)
1178 if test x$gas = xyes
1182 tm_file=i386/lynx-ng.h
1184 tmake_file=i386/t-i386bare
1188 # tmake_file=t-libc-ok
1191 i[34567]86-*-osfrose*) # 386 using OSF/rose
1192 if test x$elf = xyes
1194 tm_file=i386/osfelf.h
1197 tm_file=i386/osfrose.h
1200 xmake_file=i386/x-osfrose
1201 tmake_file=i386/t-osf
1202 extra_objs=halfpic.o
1204 i[34567]86-go32-rtems*)
1206 tm_file=i386/go32-rtems.h
1208 if test x$enable_threads = xyes; then
1212 i[34567]86-*-rtemscoff*)
1214 tm_file=i386/rtems.h
1215 tmake_file="i386/t-i386bare t-rtems"
1216 if test x$enable_threads = xyes; then
1220 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1222 tm_file=i386/rtemself.h
1223 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1224 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1225 if test x$enable_threads = xyes; then
1229 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1231 xmake_file=i386/x-sco5
1232 install_headers_dir=install-headers-cpio
1234 if test x$gas = xyes
1236 tm_file="usegas.h ${tm_file}"
1237 tmake_file=i386/t-sco5gas
1239 tmake_file=i386/t-sco5
1241 tmake_file="$tmake_file i386/t-i386bare"
1242 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1244 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1245 xm_defines="USG BROKEN_LDEXP SMALL_ARG_MAX"
1246 xmake_file=i386/x-sco4
1247 install_headers_dir=install-headers-cpio
1248 if test x$stabs = xyes
1250 tm_file=i386/sco4dbx.h
1251 tmake_file=i386/t-svr3dbx
1252 extra_parts="svr3.ifile svr3z.rfile"
1255 tmake_file=i386/t-crtstuff
1256 extra_parts="crtbegin.o crtend.o"
1258 tmake_file="$tmake_file i386/t-i386bare"
1259 # The default EAFS filesystem supports long file names.
1260 # Truncating the target makes $host != $target which
1261 # makes gcc think it is doing a cross-compile.
1262 # truncate_target=yes
1264 i[34567]86-*-sco*) # 80386 running SCO system
1265 install_headers_dir=install-headers-cpio
1266 if test x$stabs = xyes
1268 tm_file=i386/scodbx.h
1269 tmake_file=i386/t-svr3dbx
1270 extra_parts="svr3.ifile svr3z.rfile"
1273 extra_parts="crtbegin.o crtend.o"
1274 tmake_file=i386/t-crtstuff
1276 tmake_file="$tmake_file i386/t-i386bare"
1279 i[34567]86-*-solaris2*)
1280 xm_defines="USG POSIX SMALL_ARG_MAX"
1282 if test x$gas = xyes; then
1283 # Only needed if gas does not support -s
1284 tm_file="i386/sol2gas.h ${tm_file}"
1286 tmake_file="i386/t-i386bare i386/t-sol2"
1287 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1289 if test x${enable_threads} = x; then
1290 enable_threads=$have_pthread_h
1291 if test x${enable_threads} = x; then
1292 enable_threads=$have_thread_h
1295 if test x${enable_threads} = xyes; then
1296 if test x${have_pthread_h} = xyes; then
1299 thread_file='solaris'
1303 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1304 xm_defines="USG POSIX"
1305 tm_file=i386/sysv5.h
1306 if test x$stabs = xyes
1308 tm_file="${tm_file} dbx.h"
1310 tmake_file="i386/t-i386bare i386/t-crtpic"
1312 extra_parts="crtbegin.o crtend.o"
1313 if test x$enable_threads = xyes; then
1317 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1318 xm_defines="USG POSIX SMALL_ARG_MAX"
1319 tm_file=i386/sysv4.h
1320 if test x$stabs = xyes
1322 tm_file="${tm_file} dbx.h"
1324 tmake_file="i386/t-i386bare i386/t-crtpic"
1326 extra_parts="crtbegin.o crtend.o"
1328 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1329 xm_defines="USG POSIX"
1331 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1333 extra_parts="crtbegin.o crtend.o"
1334 install_headers_dir=install-headers-cpio
1336 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1338 xm_file=i386/xm-osf1elf.h
1339 xm_defines='USG POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1340 if test x$stabs = xyes
1342 tm_file=i386/osf1elfgdb.h
1344 tm_file=i386/osf1elf.h
1346 tmake_file=i386/t-osf1elf
1347 xmake_file=i386/x-osf1elf
1348 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1350 i[34567]86-*-sysv*) # Intel 80386's running system V
1352 if test x$gas = xyes
1354 if test x$stabs = xyes
1356 tm_file=i386/svr3dbx.h
1357 tmake_file=i386/t-svr3dbx
1358 extra_parts="svr3.ifile svr3z.rfile"
1360 tm_file=i386/svr3gas.h
1361 extra_parts="crtbegin.o crtend.o"
1362 tmake_file=i386/t-crtstuff
1365 tm_file=i386/sysv3.h
1366 extra_parts="crtbegin.o crtend.o"
1367 tmake_file=i386/t-crtstuff
1369 tmake_file="$tmake_file i386/t-crtpic"
1371 i386-*-vsta) # Intel 80386's running VSTa kernel
1372 xm_file=i386/xm-vsta.h
1374 tmake_file=i386/t-vsta
1378 xm_file=i386/xm-cygwin.h
1380 tmake_file=i386/t-cygwin
1381 tm_file=i386/win32.h
1382 xmake_file=i386/x-cygwin
1384 if test x$enable_threads = xyes; then
1389 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1391 xm_file=i386/xm-cygwin.h
1393 tmake_file=i386/t-cygwin
1394 tm_file=i386/cygwin.h
1395 xmake_file=i386/x-cygwin
1397 if test x$enable_threads = xyes; then
1402 i[34567]86-*-mingw32*)
1403 tm_file=i386/mingw32.h
1406 xm_file=i386/xm-mingw32.h
1407 tmake_file="i386/t-cygwin i386/t-mingw32"
1409 xmake_file=i386/x-cygwin
1410 if test x$enable_threads = xyes; then
1417 *minwg32crt* | *mingw32*)
1418 tm_file="${tm_file} i386/crtdll.h"
1424 tmake_file="i386/t-cygwin i386/t-uwin"
1426 xmake_file=i386/x-cygwin
1427 if test x$enable_threads = xyes; then
1432 i[34567]86-*-interix*)
1433 tm_file="i386/i386-interix.h interix.h"
1434 xm_file="i386/xm-i386-interix.h xm-interix.h"
1436 tmake_file="i386/t-interix"
1437 extra_objs=interix.o
1438 xmake_file=x-interix
1439 if test x$enable_threads = xyes ; then
1442 if test x$stabs = xyes ; then
1443 tm_file="${tm_file} dbxcoff.h"
1446 i[34567]86-dg-dgux*)
1447 xm_defines="USG POSIX"
1448 out_file=i386/dgux.c
1450 tmake_file=i386/t-dgux
1451 xmake_file=i386/x-dgux
1452 install_headers_dir=install-headers-cpio
1454 i860-alliant-*) # Alliant FX/2800
1455 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1456 tmake_file=i860/t-fx2800
1457 extra_parts="crtbegin.o crtend.o"
1460 tm_file="${tm_file} i860/bsd.h"
1461 if test x$gas = xyes
1463 tm_file="${tm_file} i860/bsd-gas.h"
1468 tm_file="${tm_file} i860/mach.h"
1469 tmake_file=t-libc-ok
1471 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1472 tm_file="${tm_file} svr3.h i860/paragon.h"
1476 tm_file="${tm_file} svr3.h i860/sysv3.h"
1478 extra_parts="crtbegin.o crtend.o"
1481 tm_file="${tm_file} svr4.h i860/sysv4.h"
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'
1491 c_target_objs="i960-c.o"
1492 cxx_target_objs="i960-c.o"
1494 i960-wrs-vxworks5* | i960-wrs-vxworks)
1495 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1496 tmake_file=i960/t-vxworks960
1498 thread_file='vxworks'
1499 c_target_objs="i960-c.o"
1500 cxx_target_objs="i960-c.o"
1503 tm_file="${tm_file} i960/vx960.h"
1504 tmake_file=i960/t-vxworks960
1506 thread_file='vxworks'
1507 c_target_objs="i960-c.o"
1508 cxx_target_objs="i960-c.o"
1511 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1512 tmake_file=i960/t-960bare
1514 c_target_objs="i960-c.o"
1515 cxx_target_objs="i960-c.o"
1518 tmake_file="i960/t-960bare t-rtems"
1519 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1521 if test x$enable_threads = xyes; then
1524 c_target_objs="i960-c.o"
1525 cxx_target_objs="i960-c.o"
1527 i960-*-*) # Default i960 environment.
1529 c_target_objs="i960-c.o"
1530 cxx_target_objs="i960-c.o"
1534 tmake_file="ia64/t-ia64"
1535 target_cpu_default="0"
1536 if test x$gas = xyes
1538 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1540 if test x$gnu_ld = xyes
1542 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1547 tm_file=ia64/linux.h
1548 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
1549 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1550 if test x$enable_threads = xyes; then
1556 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h"
1557 tmake_file="ia64/t-ia64 ia64/t-hpux"
1558 target_cpu_default="MASK_GNU_AS"
1559 if test x$enable_threads = xyes; then
1565 extra_parts="crtinit.o crtfini.o"
1567 # m68hc11 and m68hc12 share the same machine description.
1568 m68hc11-*-*|m6811-*-*)
1569 tm_file="elfos.h m68hc11/m68hc11.h"
1570 tm_p_file="m68hc11/m68hc11-protos.h"
1571 md_file="m68hc11/m68hc11.md"
1572 out_file="m68hc11/m68hc11.c"
1573 tmake_file="m68hc11/t-m68hc11-gas"
1575 m68hc12-*-*|m6812-*-*)
1576 tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1577 tm_p_file="m68hc11/m68hc11-protos.h"
1578 md_file="m68hc11/m68hc11.md"
1579 out_file="m68hc11/m68hc11.c"
1580 tmake_file="m68hc11/t-m68hc11-gas"
1582 m68000-convergent-sysv*)
1586 extra_headers=math-68881.h
1588 m68000-hp-bsd*) # HP 9000/200 running BSD
1589 tm_file=m68k/hp2bsd.h
1591 extra_headers=math-68881.h
1593 m68000-hp-hpux*) # HP 9000 series 300
1595 if test x$gas = xyes
1597 xmake_file=m68k/x-hp320g
1598 tm_file=m68k/hp310g.h
1600 xmake_file=m68k/x-hp320
1601 tm_file=m68k/hp310.h
1603 install_headers_dir=install-headers-cpio
1605 extra_headers=math-68881.h
1610 extra_headers=math-68881.h
1613 tm_file=m68k/sun2o4.h
1615 extra_headers=math-68881.h
1619 if test x$gas = xyes
1626 extra_headers=math-68881.h
1628 m68k-apple-aux*) # Apple Macintosh running A/UX
1629 xm_defines="USG AUX"
1630 tmake_file=m68k/t-aux
1631 install_headers_dir=install-headers-cpio
1632 extra_headers=math-68881.h
1633 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1635 if test "$gnu_ld" = yes
1637 tm_file="${tm_file} m68k/auxgld.h"
1639 tm_file="${tm_file} m68k/auxld.h"
1641 if test "$gas" = yes
1643 tm_file="${tm_file} m68k/auxgas.h"
1645 tm_file="${tm_file} m68k/auxas.h"
1647 tm_file="${tm_file} m68k/a-ux.h"
1651 tm_file=m68k/apollo68.h
1653 extra_headers=math-68881.h
1656 m68k-altos-sysv*) # Altos 3068
1657 if test x$gas = xyes
1659 tm_file=m68k/altos3068.h
1662 echo "The Altos is supported only with the GNU assembler" 1>&2
1665 extra_headers=math-68881.h
1667 m68k-bull-sysv*) # Bull DPX/2
1668 if test x$gas = xyes
1670 if test x$stabs = xyes
1672 tm_file=m68k/dpx2cdbx.h
1674 tm_file=m68k/dpx2g.h
1680 xmake_file=m68k/x-dpx2
1682 extra_headers=math-68881.h
1684 m68k-atari-sysv4*) # Atari variant of V.4.
1685 tm_file=m68k/atari.h
1688 extra_parts="crtbegin.o crtend.o"
1689 extra_headers=math-68881.h
1692 m68k-motorola-sysv*)
1693 tm_file=m68k/mot3300.h
1695 if test x$gas = xyes
1697 if test x$gnu_ld = xyes
1699 tmake_file=m68k/t-mot3300-gald
1701 tmake_file=m68k/t-mot3300-gas
1705 if test x$gnu_ld = xyes
1707 tmake_file=m68k/t-mot3300-gld
1709 tmake_file=m68k/t-mot3300
1713 gdb_needs_out_file_path=yes
1714 extra_parts="crt0.o mcrt0.o"
1715 extra_headers=math-68881.h
1718 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1719 tm_file=m68k/tower-as.h
1721 extra_parts="crtbegin.o crtend.o"
1722 extra_headers=math-68881.h
1725 tm_file=m68k/plexus.h
1728 extra_headers=math-68881.h
1733 extra_headers=math-68881.h
1736 xm_defines="USG unos"
1739 extra_headers=math-68881.h
1741 m68k-cbm-sysv4*) # Commodore variant of V.4.
1745 extra_parts="crtbegin.o crtend.o"
1746 extra_headers=math-68881.h
1750 tm_file=m68k/ccur-GAS.h
1751 extra_headers=math-68881.h
1755 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1756 tm_file=m68k/hp3bsd44.h
1758 extra_headers=math-68881.h
1761 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1762 tm_file=m68k/hp3bsd.h
1764 extra_headers=math-68881.h
1768 if test x$with_fp = xno
1770 tm_file=m68k/isi-nfp.h
1776 extra_headers=math-68881.h
1778 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1780 if test x$gas = xyes
1782 xmake_file=m68k/x-hp320g
1783 tm_file=m68k/hp320g.h
1785 xmake_file=m68k/x-hp320
1786 tm_file=m68k/hpux7.h
1788 install_headers_dir=install-headers-cpio
1790 extra_headers=math-68881.h
1793 m68k-hp-hpux*) # HP 9000 series 300
1795 if test x$gas = xyes
1797 xmake_file=m68k/x-hp320g
1798 tm_file=m68k/hp320g.h
1800 xmake_file=m68k/x-hp320
1801 tm_file=m68k/hp320.h
1803 install_headers_dir=install-headers-cpio
1805 extra_headers=math-68881.h
1809 tm_file=m68k/sun3mach.h
1811 extra_headers=math-68881.h
1815 if test x$gas = xyes
1817 tm_file=m68k/news3gas.h
1819 tm_file=m68k/news3.h
1822 extra_headers=math-68881.h
1825 m68k-sony-bsd* | m68k-sony-newsos*)
1826 if test x$gas = xyes
1828 tm_file=m68k/newsgas.h
1833 extra_headers=math-68881.h
1836 m68k-next-nextstep2*)
1837 tm_file=m68k/next21.h
1838 tmake_file=m68k/t-next
1839 xmake_file=m68k/x-next
1840 extra_objs=nextstep.o
1841 extra_headers=math-68881.h
1845 m68k-next-nextstep[34]*)
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"
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 tmake_file=m68k/t-lynx
1912 extra_headers=math-68881.h
1916 tm_file=m68k/netbsd.h
1923 # we need collect2 until our bug is fixed...
1926 m68k-*-sysv3*) # Motorola m68k's running system V.3
1928 extra_parts="crtbegin.o crtend.o"
1929 extra_headers=math-68881.h
1932 m68k-*-sysv4*) # Motorola m68k's running system V.4
1933 tm_file=m68k/m68kv4.h
1936 extra_parts="crtbegin.o crtend.o"
1937 extra_headers=math-68881.h
1940 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1943 tm_file=m68k/linux-aout.h
1944 tmake_file="t-linux-aout m68k/t-linux-aout"
1945 extra_headers=math-68881.h
1949 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1950 # with ELF format using the
1951 # GNU/Linux C library 5
1953 tm_file=m68k/linux.h
1954 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1955 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1956 extra_headers=math-68881.h
1960 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1961 # with ELF format using glibc 2
1962 # aka the GNU/Linux C library 6.
1964 tm_file=m68k/linux.h
1965 tmake_file="t-linux m68k/t-linux"
1966 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1967 extra_headers=math-68881.h
1970 if test x$enable_threads = xyes; then
1975 tmake_file=m68k/t-m68kbare
1976 tm_file=m68k/m68k-psos.h
1977 extra_headers=math-68881.h
1981 tmake_file="m68k/t-m68kbare t-rtems"
1982 tm_file=m68k/rtems.h
1983 extra_headers=math-68881.h
1985 if test x$enable_threads = xyes; then
1989 m68k-*-rtemself*|m68k-*-rtems*)
1990 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1991 tm_file=m68k/rtemself.h
1992 extra_headers=math-68881.h
1994 if test x$enable_threads = xyes; then
2002 tm_file=m88k/dguxbcs.h
2003 tmake_file=m88k/t-dguxbcs
2007 tmake_file=m88k/t-dgux
2010 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2011 xmake_file=m88k/x-dgux
2012 if test x$gas = xyes
2014 tmake_file=m88k/t-dgux-gas
2017 m88k-dolphin-sysv3*)
2019 tm_file=m88k/dolph.h
2020 extra_parts="crtbegin.o crtend.o"
2021 xmake_file=m88k/x-dolph
2022 if test x$gas = xyes
2024 tmake_file=m88k/t-m88k-gas
2027 m88k-tektronix-sysv3)
2029 tm_file=m88k/tekXD88.h
2030 extra_parts="crtbegin.o crtend.o"
2031 xmake_file=m88k/x-tekXD88
2032 if test x$gas = xyes
2034 tmake_file=m88k/t-m88k-gas
2039 tm_file=m88k/m88k-aout.h
2043 tm_file=m88k/m88k-coff.h
2044 tmake_file=m88k/t-bug
2048 extra_parts="crtbegin.o crtend.o"
2049 if test x$gas = xyes
2051 tmake_file=m88k/t-luna-gas
2053 tmake_file=m88k/t-luna
2057 tmake_file="${tmake_file} m88k/t-luna-gas"
2058 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2062 tm_file=m88k/sysv3.h
2063 extra_parts="crtbegin.o crtend.o"
2064 if test x$gas = xyes
2066 tmake_file=m88k/t-m88k-gas
2071 tm_file=m88k/sysv4.h
2072 extra_parts="crtbegin.o crtend.o"
2073 tmake_file=m88k/t-sysv4
2076 tm_file=mcore/mcore-elf.h
2077 tmake_file=mcore/t-mcore
2080 tm_file=mcore/mcore-pe.h
2081 tmake_file=mcore/t-mcore-pe
2083 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2084 if test "x$gnu_ld" = xyes
2086 tm_file="mips/iris6.h mips/iris6gld.h"
2088 tm_file=mips/iris6.h
2090 tmake_file=mips/t-iris6
2092 xmake_file=mips/x-iris6
2093 # if test x$enable_threads = xyes; then
2094 # thread_file='irix'
2098 tm_file="mips/elf.h mips/vxworks.h"
2099 tmake_file=mips/t-ecoff
2102 extra_parts="crtbegin.o crtend.o"
2103 thread_file='vxworks'
2105 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2106 tm_file="mips/iris6.h mips/cross64.h"
2108 xm_file=mips/xm-iris5.h
2109 xmake_file=mips/x-iris
2110 tmake_file=mips/t-cross64
2111 # See comment in mips/iris[56].h files.
2113 # if test x$enable_threads = xyes; then
2114 # thread_file='irix'
2118 if test x$gas = xyes
2120 if test x$stabs = xyes
2122 tm_file=mips/iris5gdb.h
2124 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2127 tm_file=mips/sni-svr4.h
2130 tmake_file=mips/t-mips-gas
2131 if test x$gnu_ld != xyes
2136 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2137 if test x$gas = xyes
2139 tm_file="mips/iris5.h mips/iris5gas.h"
2140 if test x$stabs = xyes
2142 tm_file="${tm_file} dbx.h"
2145 tm_file=mips/iris5.h
2148 xm_file=mips/xm-iris5.h
2149 xmake_file=mips/x-iris
2150 # mips-tfile doesn't work yet
2151 tmake_file=mips/t-mips-gas
2152 # See comment in mips/iris5.h file.
2154 # if test x$enable_threads = xyes; then
2155 # thread_file='irix'
2158 mips-sgi-irix4loser*) # Mostly like a MIPS.
2159 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2160 if test x$stabs = xyes; then
2161 tm_file="${tm_file} dbx.h"
2164 xmake_file=mips/x-iris
2165 if test x$gas = xyes
2167 tmake_file=mips/t-mips-gas
2169 extra_passes="mips-tfile mips-tdump"
2171 if test x$gnu_ld != xyes
2175 # if test x$enable_threads = xyes; then
2176 # thread_file='irix'
2179 mips-sgi-irix4*) # Mostly like a MIPS.
2180 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2181 if test x$stabs = xyes; then
2182 tm_file="${tm_file} dbx.h"
2185 xmake_file=mips/x-iris
2186 if test x$gas = xyes
2188 tmake_file=mips/t-mips-gas
2190 extra_passes="mips-tfile mips-tdump"
2192 if test x$gnu_ld != xyes
2196 # if test x$enable_threads = xyes; then
2197 # thread_file='irix'
2200 mips-sgi-*) # Mostly like a MIPS.
2201 tm_file="mips/iris3.h ${tm_file}"
2202 if test x$stabs = xyes; then
2203 tm_file="${tm_file} dbx.h"
2206 xmake_file=mips/x-iris3
2207 if test x$gas = xyes
2209 tmake_file=mips/t-mips-gas
2211 extra_passes="mips-tfile mips-tdump"
2213 if test x$gnu_ld != xyes
2218 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2219 tm_file="mips/osfrose.h ${tm_file}"
2220 xmake_file=mips/x-osfrose
2221 tmake_file=mips/t-osfrose
2222 extra_objs=halfpic.o
2225 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2226 tm_file=mips/dec-osf1.h
2227 if test x$stabs = xyes; then
2228 tm_file="${tm_file} dbx.h"
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 if test x$gas = xyes
2345 tmake_file=mips/t-mips-gas
2347 tmake_file=mips/t-ultrix
2348 extra_passes="mips-tfile mips-tdump"
2350 if test x$gnu_ld != xyes
2355 mips-*-riscos[56789]bsd*)
2356 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2357 if test x$stabs = xyes; then
2358 tm_file="${tm_file} dbx.h"
2360 if test x$gas = xyes
2362 tmake_file=mips/t-bsd-gas
2364 tmake_file=mips/t-bsd
2365 extra_passes="mips-tfile mips-tdump"
2367 if test x$gnu_ld != xyes
2372 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2373 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2374 if test x$stabs = xyes; then
2375 tm_file="${tm_file} dbx.h"
2377 if test x$gas = xyes
2379 tmake_file=mips/t-bsd-gas
2381 tmake_file=mips/t-bsd
2382 extra_passes="mips-tfile mips-tdump"
2384 if test x$gnu_ld != xyes
2389 mips-*-riscos[56789]sysv4*)
2390 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2391 if test x$stabs = xyes; then
2392 tm_file="${tm_file} dbx.h"
2394 xmake_file=mips/x-sysv
2395 if test x$gas = xyes
2397 tmake_file=mips/t-svr4-gas
2399 tmake_file=mips/t-svr4
2400 extra_passes="mips-tfile mips-tdump"
2402 if test x$gnu_ld != xyes
2407 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2408 tm_file="mips/svr4-4.h ${tm_file}"
2409 if test x$stabs = xyes; then
2410 tm_file="${tm_file} dbx.h"
2413 xmake_file=mips/x-sysv
2414 if test x$gas = xyes
2416 tmake_file=mips/t-svr4-gas
2418 tmake_file=mips/t-svr4
2419 extra_passes="mips-tfile mips-tdump"
2421 if test x$gnu_ld != xyes
2426 mips-*-riscos[56789]sysv*)
2427 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2428 if test x$stabs = xyes; then
2429 tm_file="${tm_file} dbx.h"
2432 xmake_file=mips/x-sysv
2433 if test x$gas = xyes
2435 tmake_file=mips/t-svr3-gas
2437 tmake_file=mips/t-svr3
2438 extra_passes="mips-tfile mips-tdump"
2440 if test x$gnu_ld != xyes
2445 mips-*-sysv* | mips-*-riscos*sysv*)
2446 tm_file="mips/svr3-4.h ${tm_file}"
2447 if test x$stabs = xyes; then
2448 tm_file="${tm_file} dbx.h"
2451 xmake_file=mips/x-sysv
2452 if test x$gas = xyes
2454 tmake_file=mips/t-svr3-gas
2456 tmake_file=mips/t-svr3
2457 extra_passes="mips-tfile mips-tdump"
2459 if test x$gnu_ld != xyes
2464 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2465 tm_file=mips/mips-5.h
2466 if test x$stabs = xyes; then
2467 tm_file="${tm_file} dbx.h"
2469 if test x$gas = xyes
2471 tmake_file=mips/t-mips-gas
2473 extra_passes="mips-tfile mips-tdump"
2475 if test x$gnu_ld != xyes
2483 tm_file=mips/ecoffl.h
2484 if test x$stabs = xyes; then
2485 tm_file="${tm_file} dbx.h"
2487 tmake_file=mips/t-ecoff
2490 tm_file="gofast.h mips/ecoff.h"
2491 if test x$stabs = xyes; then
2492 tm_file="${tm_file} dbx.h"
2494 tmake_file=mips/t-ecoff
2497 tm_file="mips/elfl.h"
2498 tmake_file=mips/t-elf
2501 tm_file="mips/elf.h"
2502 tmake_file=mips/t-elf
2505 tm_file="mips/elfl64.h"
2506 tmake_file=mips/t-elf
2508 mips64orionel-*-elf*)
2509 tm_file="mips/elforion.h mips/elfl64.h"
2510 tmake_file=mips/t-elf
2513 tm_file="mips/elf64.h"
2514 tmake_file=mips/t-elf
2517 tm_file="mips/elforion.h mips/elf64.h"
2518 tmake_file=mips/t-elf
2520 mips64orion-*-rtems*)
2521 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2522 tmake_file="mips/t-elf t-rtems"
2523 if test x$enable_threads = xyes; then
2528 tm_file="mips/elf.h mips/rtems.h"
2529 tmake_file="mips/t-elf t-rtems"
2530 if test x$enable_threads = xyes; then
2535 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2536 tmake_file=mips/t-r3900
2539 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2540 tmake_file=mips/t-r3900
2542 mips-*-*) # Default MIPS RISC-OS 4.0.
2543 if test x$stabs = xyes; then
2544 tm_file="${tm_file} dbx.h"
2546 if test x$gas = xyes
2548 tmake_file=mips/t-mips-gas
2550 extra_passes="mips-tfile mips-tdump"
2552 if test x$gnu_ld != xyes
2560 tm_file="mn10200/mn10200.h"
2561 if test x$stabs = xyes
2563 tm_file="${tm_file} dbx.h"
2569 tm_file="mn10300/mn10300.h"
2570 if test x$stabs = xyes
2572 tm_file="${tm_file} dbx.h"
2577 tm_file=ns32k/encore.h
2581 tm_file=ns32k/sequent.h
2585 tm_file=ns32k/tek6100.h
2589 tm_file=ns32k/tek6200.h
2593 tm_file=ns32k/merlin.h
2597 tm_file=ns32k/pc532-mach.h
2601 tm_file=ns32k/pc532-min.h
2602 xm_defines='USG HZ=60'
2606 tm_file=ns32k/netbsd.h
2607 # On NetBSD, the headers are already okay, except for math.h.
2612 tm_file="${tm_file} pdp11/2bsd.h"
2622 tm_file="svr4.h pj/linux.h ${tm_file}"
2627 tm_file="svr4.h pj/pjl.h ${tm_file}"
2640 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2644 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2646 xm_file=rs6000/xm-beos.h
2647 tmake_file=rs6000/t-beos
2651 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2652 tm_p_file="${tm_p_file} darwin-protos.h"
2653 tmake_file=rs6000/t-darwin
2654 xm_file=rs6000/xm-darwin.h
2655 xmake_file=rs6000/x-darwin
2656 extra_objs="darwin.o"
2657 # Darwin linker does collect2 functionality
2661 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2662 xm_defines="USG POSIX"
2663 extra_headers=ppc-asm.h
2664 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2666 powerpc-*-chorusos*)
2668 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2669 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2670 extra_headers=ppc-asm.h
2671 case x${enable_threads} in
2672 xyes | xpthreads | xposix)
2679 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2680 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2681 extra_headers=ppc-asm.h
2685 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2686 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2687 extra_headers=ppc-asm.h
2691 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2692 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2693 extra_headers=ppc-asm.h
2697 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2698 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2699 extra_headers=ppc-asm.h
2703 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2704 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2705 extra_headers=ppc-asm.h
2706 if test x$enable_threads = xyes; then
2710 powerpc-*-linux*libc1)
2711 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2712 xm_defines='USG POSIX'
2713 out_file=rs6000/rs6000.c
2714 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2716 extra_headers=ppc-asm.h
2717 if test x$enable_threads = xyes; then
2722 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2723 xm_defines="USG ${xm_defines}"
2724 out_file=rs6000/rs6000.c
2725 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2727 extra_headers=ppc-asm.h
2728 if test x$enable_threads = xyes; then
2732 powerpc-wrs-vxworks*)
2734 xm_defines="USG POSIX"
2735 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2736 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2737 extra_headers=ppc-asm.h
2738 thread_file='vxworks'
2740 powerpcle-wrs-vxworks*)
2742 xm_defines="USG POSIX"
2743 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2744 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2745 extra_headers=ppc-asm.h
2746 thread_file='vxworks'
2749 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2750 xm_defines="USG POSIX"
2751 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2752 extra_headers=ppc-asm.h
2756 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2757 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2758 extra_headers=ppc-asm.h
2760 powerpcle-*-eabisim*)
2762 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2763 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2764 extra_headers=ppc-asm.h
2768 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2769 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2770 extra_headers=ppc-asm.h
2772 powerpcle-*-solaris2*)
2773 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2774 xm_defines="USG POSIX"
2775 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2776 extra_headers=ppc-asm.h
2778 rs6000-ibm-aix3.[01]*)
2780 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2781 xmake_file=rs6000/x-aix31
2785 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2787 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2788 tmake_file=rs6000/t-newas
2792 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2794 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2795 tmake_file=rs6000/t-newas
2796 xmake_file=rs6000/x-aix41
2800 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2802 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2803 tmake_file=rs6000/t-aix43
2804 xmake_file=rs6000/x-aix41
2809 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2811 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2812 tmake_file=rs6000/t-aix43
2813 xmake_file=rs6000/x-aix41
2820 tm_file="${tm_file} rs6000/aix.h"
2826 tm_file="${tm_file} rs6000/aix.h"
2831 tm_file=rs6000/mach.h
2836 tm_file=rs6000/lynx.h
2837 tmake_file=rs6000/t-rs6000
2841 tmake_file="sh/t-sh sh/t-elf"
2842 tm_file="sh/sh.h sh/elf.h"
2846 tmake_file="sh/t-sh sh/t-elf t-rtems"
2847 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2849 if test x$enable_threads = xyes; then
2854 tmake_file="sh/t-sh t-rtems"
2855 tm_file="sh/sh.h sh/rtems.h"
2857 if test x$enable_threads = xyes; then
2862 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2863 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2866 if test x$enable_threads = xyes; then
2878 sparc64-wrs-vxworks*)
2879 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2880 tmake_file=sparc/t-vxsparc64
2883 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2884 tm_file=sparc/vxsparc.h
2885 tmake_file=sparc/t-vxsparc
2887 thread_file='vxworks'
2890 tmake_file=sparc/t-sparcbare
2891 tm_file="sparc/aout.h libgloss.h"
2894 tm_file=sparc/netbsd.h
2899 # we need collect2 until our bug is fixed...
2906 tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
2907 tmake_file=sparc/t-chorus-elf
2908 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2910 case x${enable_threads} in
2911 xyes | xpthreads | xposix)
2917 tm_file="sparc/sol2.h sparc/elf.h"
2918 tmake_file=sparc/t-elf
2919 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2923 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2924 tm_file=sparc/linux-aout.h
2928 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2930 tm_file=sparc/linux.h
2931 tmake_file="t-linux t-linux-gnulibc1"
2932 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2936 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2938 tm_file=sparc/linux.h
2939 tmake_file="t-linux"
2940 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2942 if test x$enable_threads = xyes; then
2948 if test x$gas = xyes
2950 tm_file=sparc/lynx.h
2952 tm_file=sparc/lynx-ng.h
2954 tmake_file=sparc/t-sunos41
2957 tmake_file="sparc/t-sparcbare t-rtems"
2958 tm_file=sparc/rtems.h
2959 if test x$enable_threads = xyes; then
2963 sparc-*-rtems*|sparc-*-rtemself*)
2964 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
2965 tmake_file="sparc/t-elf t-rtems"
2966 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2969 if test x$enable_threads = xyes; then
2973 sparcv9-*-solaris2*)
2974 if test x$gnu_ld = xyes
2976 tm_file=sparc/sol2-64.h
2978 tm_file=sparc/sol2-sld-64.h
2980 xm_defines="USG POSIX"
2981 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2982 if test x$gnu_ld = xyes; then
2983 tmake_file="$tmake_file sparc/t-slibgcc"
2985 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2987 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2989 if test x${enable_threads} = x ; then
2990 enable_threads=$have_pthread_h
2991 if test x${enable_threads} = x ; then
2992 enable_threads=$have_thread_h
2995 if test x${enable_threads} = xyes ; then
2996 if test x${have_pthread_h} = xyes ; then
2999 thread_file='solaris'
3003 sparc-hal-solaris2*)
3004 xm_defines="USG POSIX"
3005 tm_file="sparc/sol2.h sparc/hal.h"
3006 tmake_file="sparc/t-halos sparc/t-sol2"
3007 if test x$gnu_ld = xyes; then
3008 tmake_file="$tmake_file sparc/t-slibgcc"
3010 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3012 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3021 thread_file='solaris'
3024 if test x$gnu_ld = xyes
3026 tm_file=sparc/sol2.h
3028 tm_file=sparc/sol2-sld.h
3030 xm_defines="USG POSIX"
3031 tmake_file=sparc/t-sol2
3032 if test x$gnu_ld = xyes; then
3033 tmake_file="$tmake_file sparc/t-slibgcc"
3035 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3037 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3038 # At the moment, 32-to-64 cross compilation doesn't work.
3040 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3042 # if test x$gnu_ld = xyes
3044 # tm_file=sparc/sol2-64.h
3046 # tm_file=sparc/sol2-sld-64.h
3048 # tmake_file="$tmake_file sparc/t-sol2-64"
3059 if test x${enable_threads} = x; then
3060 enable_threads=$have_pthread_h
3061 if test x${enable_threads} = x; then
3062 enable_threads=$have_thread_h
3065 if test x${enable_threads} = xyes; then
3066 if test x${have_pthread_h} = xyes; then
3069 thread_file='solaris'
3074 tm_file=sparc/sunos4.h
3075 tmake_file=sparc/t-sunos40
3079 tm_file=sparc/sunos4.h
3080 tmake_file=sparc/t-sunos41
3082 if test x$gas = xyes; then
3083 tm_file="${tm_file} sparc/sun4gas.h"
3087 tm_file=sparc/sun4o3.h
3091 tm_file=sparc/sysv4.h
3092 xm_defines="USG POSIX"
3094 extra_parts="crtbegin.o crtend.o"
3097 xm_defines="USG POSIX"
3098 tm_file=sparc/vxsim.h
3099 tmake_file=sparc/t-vxsparc
3102 tm_file="sparc/splet.h libgloss.h"
3103 tmake_file=sparc/t-splet
3106 tm_file="sparc/litecoff.h libgloss.h"
3107 tmake_file=sparc/t-sparclite
3110 tm_file="sparc/lite.h aoutos.h libgloss.h"
3111 tmake_file=sparc/t-sparclite
3114 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3115 tmake_file=sparc/t-sparclite
3116 extra_parts="crtbegin.o crtend.o"
3119 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3120 tmake_file=sparc/t-sp86x
3123 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3124 tmake_file=sparc/t-sp86x
3125 extra_parts="crtbegin.o crtend.o"
3128 tmake_file=sparc/t-sp64
3129 tm_file=sparc/sp64-aout.h
3132 tmake_file=sparc/t-sp64
3133 tm_file=sparc/sp64-elf.h
3134 extra_parts="crtbegin.o crtend.o"
3136 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3137 tmake_file="t-linux sparc/t-linux64"
3138 tm_file=sparc/linux64.h
3140 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3142 if test x$enable_threads = xyes; then
3148 tm_file=arm/strongarm-elf.h
3149 tmake_file=arm/t-strongarm-elf
3154 tm_file=arm/strongarm-coff.h
3155 tmake_file=arm/t-strongarm-coff
3160 tm_file=arm/strongarm-pe.h
3161 tmake_file=arm/t-strongarm-pe
3167 { echo "config.gcc: error:
3168 *** The Thumb targets have been deprecated. The equivalent
3169 *** ARM based toolchain can now generate Thumb instructions
3170 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3174 tm_file="v850/rtems.h"
3175 tmake_file="v850/t-v850 t-rtems"
3176 if test x$stabs = xyes
3178 tm_file="${tm_file} dbx.h"
3181 c_target_objs="v850-c.o"
3182 cxx_target_objs="v850-c.o"
3185 target_cpu_default="TARGET_CPU_generic"
3187 tm_file="v850/v850.h"
3188 tmake_file=v850/t-v850
3189 if test x$stabs = xyes
3191 tm_file="${tm_file} dbx.h"
3194 c_target_objs="v850-c.o"
3195 cxx_target_objs="v850-c.o"
3197 vax-*-bsd*) # vaxen running BSD
3201 vax-*-sysv*) # vaxen running system V
3202 tm_file="${tm_file} vax/vaxv.h"
3207 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3213 tmake_file="${tmake_file} vax/t-openbsd"
3214 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3218 vax-*-ultrix*) # vaxen running ultrix
3219 tm_file="${tm_file} vax/ultrix.h"
3222 vax-*-vms*) # vaxen running VMS
3223 xm_file=vax/xm-vms.h
3227 vax-*-*) # vax default entry
3235 tm_file=arm/xscale-elf.h
3236 tmake_file=arm/t-xscale-elf
3241 tm_file=arm/xscale-coff.h
3242 tmake_file=arm/t-xscale-coff
3247 echo "Configuration $machine not supported" 1>&2
3254 xmake_try_sysv=x-sysv
3255 install_headers_dir=install-headers-cpio
3258 install_headers_dir=install-headers-cpio
3262 # Distinguish i[34567]86
3263 # Also, do not run mips-tfile on MIPS if using gas.
3264 # Process --with-cpu= for PowerPC/rs6000
3265 target_cpu_default2=
3268 target_cpu_default2=1
3271 case $target_alias in
3273 target_cpu_default2=4
3276 target_cpu_default2=2
3280 i686-*-* | i786-*-*)
3281 target_cpu_default2=3
3286 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3289 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3292 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3295 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3298 target_cpu_default2="MASK_CPU_EV5"
3302 if test x$gas = xyes
3304 if test "$target_cpu_default2" = ""
3306 target_cpu_default2="MASK_GAS"
3308 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3313 case "x$with_cpu" in
3316 target_cpu_default2="TARGET_CPU_generic"
3319 # Distinguish cores, and major variants
3320 # arm7m doesn't exist, but D & I don't affect code
3321 xarm[236789] | xarm250 | xarm[67][01]0 \
3322 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3323 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3325 | xstrongarm | xstrongarm110 | xstrongarm1100)
3326 target_cpu_default2="TARGET_CPU_$with_cpu"
3330 echo "--with-cpu must be passed a value" 1>&2
3335 if test x$pass2done = xyes
3337 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3344 mips*-*-ecoff* | mips*-*-elf*)
3345 if test x$gas = xyes
3347 if test x$gnu_ld = xyes
3349 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3351 target_cpu_default2="MASK_GAS"
3356 if test x$gas = xyes
3358 target_cpu_default2="MASK_GAS"
3361 powerpc*-*-* | rs6000-*-*)
3362 case "x$with_cpu" in
3366 xcommon | xpower | xpower2 | xpowerpc | xrios \
3367 | xrios1 | xrios2 | xrsc | xrsc1 \
3368 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3369 | xec603e | x740 | x750 | x401 \
3370 | x403 | x505 | x801 | x821 | x823 | x860)
3371 target_cpu_default2="\"$with_cpu\""
3375 echo "--with-cpu must be passed a value" 1>&2
3380 if test x$pass2done = xyes
3382 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3389 case ".$with_cpu" in
3391 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3393 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3394 target_cpu_default2="TARGET_CPU_$with_cpu"
3397 if test x$pass2done = xyes
3399 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3407 if test "$target_cpu_default2" != ""
3409 if test "$target_cpu_default" != ""
3411 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3413 target_cpu_default=$target_cpu_default2
3417 # No need for collect2 if we have the GNU linker.
3418 # Actually, there is now; GNU ld doesn't handle the EH info or
3419 # collecting for shared libraries.
3426 # Save data on machine being used to compile GCC in build_xm_file.
3427 # Save data on host machine in vars host_xm_file and host_xmake_file.
3428 if test x$pass1done = x
3430 if test x$xm_file != x
3431 then build_xm_file=$xm_file
3433 build_xm_defines=$xm_defines
3434 build_install_headers_dir=$install_headers_dir
3435 build_exeext=$exeext
3438 if test x$pass2done = x
3440 if test x$xm_file != x
3441 then host_xm_file=$xm_file
3443 host_xm_defines=$xm_defines
3444 host_xmake_file="$xmake_file"
3445 host_truncate_target=$truncate_target
3446 host_extra_gcc_objs=$extra_gcc_objs
3447 host_extra_objs=$extra_host_objs