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 # extra_objs List of extra target-dependant objects that should
91 # be linked into the compiler proper.
93 # host_extra_gcc_objs List of extra host-dependant objects that should
94 # be linked into the gcc driver.
96 # build_xm_defines List of macros to define when compiling for the
99 # build_xm_file List of files to include when compiling for the
102 # host_xm_defines List of macros to define when compiling for the
105 # host_xm_file List of files to include when compiling for the
108 # xm_defines List of macros to define when compiling for the
111 # xm_file List of files to include when compiling for the
114 # use_collect2 Set to yes or no, depending on whether collect2
117 # target_cpu_default Set to override the default target model.
119 # build_install_headers_dir
120 # Target to use when installing header files.
122 # host_truncate_target
123 # Non-empty if the target name should be truncated
124 # on this host, due to filename length issues.
126 # gdb_needs_out_file_path
127 # Set to yes if gdb needs a dir command with
128 # `dirname $out_file`.
130 # build_exeext Set to the suffix, if the build machine requires
131 # executables to have a file name suffix.
133 # host_exeext Set to the suffix, if the host machine requires
134 # executables to have a file name suffix.
136 # thread_file Set to control which thread package to use.
138 # gas Set to yes or no depending on whether the target
139 # system normally uses GNU as.
141 # The following variables are used in each case-construct to build up the
142 # outgoing variables:
144 # xmake_file Makefile-fragment when this system is as a host,
145 # for host_xmake_file.
147 # extra_host_objs List of extra objects that should be linked into
148 # the compiler proper when this system is a host,
149 # for host_extra_objs.
151 # install_headers_dir Makefile-target for how the header file directory
152 # is installed, when this system is a build system,
153 # for build_install_headers_dir.
155 # truncate_target Non-empty if the target name should be truncated
156 # when this system is a host, due to filename length
157 # issues. For host_truncate_target.
159 # exeext The suffix for executables on this system.
161 # gnu_ld Set to yes or no depending on whether the target
162 # system normally uses GNU ld.
176 # Set this to force installation and use of collect2.
178 # Set this to override the default target model.
180 # Set this to control how the header file directory is installed.
181 install_headers_dir=install-headers-tar
182 # Set this if directory names should be truncated to 14 characters.
184 # Set this if gdb needs a dir command with `dirname $out_file`
185 gdb_needs_out_file_path=
186 # Set this if the build machine requires executables to have a
189 # Set this to control which thread package will be used.
191 # Reinitialize these from the flag values every loop pass, since some
192 # configure entries modify them.
194 gnu_ld="$gnu_ld_flag"
195 enable_threads=$enable_threads_flag
197 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
198 # updated in each machine entry.
200 cpu_type=`echo $machine | sed 's/-.*$//'`
240 tm_file=${cpu_type}/${cpu_type}.h
241 xm_file=${cpu_type}/xm-${cpu_type}.h
242 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
244 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
246 # On a.out targets, we need to use collect2.
253 # Common parts for linux and openbsd systems
256 xm_defines="HAVE_ATEXIT POSIX BSTRING"
259 tm_file=${cpu_type}/openbsd.h
260 tmake_file="t-libc-ok t-openbsd"
261 # avoid surprises, always provide an xm-openbsd file
262 xm_file=${cpu_type}/xm-openbsd.h
263 # don't depend on processor x-fragments as well
265 if test x$enable_threads = xyes; then
267 tmake_file="${tmake_file} t-openbsd-thread"
273 # Support site-specific machine types.
275 cpu_type=`echo $machine | sed -e 's/-.*//'`
276 rest=`echo $machine | sed -e "s/$cpu_type-//"`
277 xm_file=${cpu_type}/xm-$rest.h
278 tm_file=${cpu_type}/$rest.h
279 if test -f $srcdir/config/${cpu_type}/x-$rest; \
280 then xmake_file=${cpu_type}/x-$rest; \
283 if test -f $srcdir/config/${cpu_type}/t-$rest; \
284 then tmake_file=${cpu_type}/t-$rest; \
290 a29k-*-bsd* | a29k-*-sym1*)
291 tm_file="${tm_file} a29k/unix.h"
293 xmake_file=a29k/x-unix
296 a29k-*-udi | a29k-*-coff)
297 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
298 tmake_file=a29k/t-a29kbare
301 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
302 tmake_file=a29k/t-vx29k
303 extra_parts="crtbegin.o crtend.o"
304 thread_file='vxworks'
306 a29k-*-*) # Default a29k environment.
310 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
312 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
313 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
315 # GAS + IEEE_CONFORMANT
316 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
318 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
319 xmake_file="x-interix alpha/t-pe"
320 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
321 if test x$enable_threads = xyes ; then
324 if test x$stabs = xyes ; then
325 tm_file="${tm_file} dbxcoff.h"
327 #prefix='$$INTERIX_ROOT'/usr/contrib
328 #local_prefix='$$INTERIX_ROOT'/usr/contrib
330 alpha*-*-linux*ecoff*)
331 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
332 target_cpu_default="MASK_GAS"
333 tmake_file="alpha/t-alpha alpha/t-ieee"
338 alpha*-*-linux*libc1*)
339 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
340 target_cpu_default="MASK_GAS"
341 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
342 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
345 if test x$enable_threads = xyes; then
350 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
351 target_cpu_default="MASK_GAS"
352 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
353 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
356 if test x$enable_threads = xyes; then
361 tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h"
362 target_cpu_default="MASK_GAS"
363 tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
364 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
368 case x${enable_threads} in
369 xyes | xpthreads | xposix)
371 tmake_file="${tmake_file} t-freebsd-thread"
376 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
377 target_cpu_default="MASK_GAS"
378 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
379 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
385 # default x-alpha is only appropriate for dec-osf.
386 target_cpu_default="MASK_GAS"
387 tmake_file="alpha/t-alpha alpha/t-ieee"
391 if test x$stabs = xyes
393 tm_file="${tm_file} dbx.h"
395 if test x$gas != xyes
397 extra_passes="mips-tfile mips-tdump"
400 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
401 xmake_file=alpha/x-osf
404 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
407 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
410 tm_file="${tm_file} alpha/osf.h"
411 tmake_file="$tmake_file alpha/t-osf4"
412 # Some versions of OSF4 (specifically X4.0-9 296.7) have
413 # a broken tar, so we use cpio instead.
414 install_headers_dir=install-headers-cpio
417 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
418 tmake_file="$tmake_file alpha/t-osf4"
422 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
423 target_cpu_default=MASK_SUPPORT_ARCH
428 tm_file="${tm_file} dbx.h alpha/vxworks.h"
429 tmake_file="alpha/t-alpha alpha/t-ieee"
432 extra_passes="mips-tfile mips-tdump"
435 thread_file='vxworks'
438 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
439 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
440 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
441 xmake_file=winnt/x-winnt
442 extra_host_objs=oldnames.o
443 extra_gcc_objs="spawnv.o oldnames.o"
444 if test x$gnu_ld != xyes
446 extra_programs=ld.exe
448 if test x$enable_threads = xyes; then
454 xm_file="${xm_file} alpha/xm-vms.h"
455 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
458 extra_parts="crtinit.o crtfini.o"
460 arm-*-coff* | armel-*-coff*)
462 tmake_file=arm/t-arm-coff
466 tmake_file=arm/t-arm-coff
467 thread_file='vxworks'
469 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
470 tm_file=arm/riscix1-1.h
473 arm-*-riscix*) # Acorn RISC machine
476 tm_file=arm/rix-gas.h
480 xmake_file=arm/x-riscix
481 tmake_file=arm/t-riscix
484 arm-semi-aout | armel-semi-aout)
486 tmake_file=arm/t-semi
488 arm-semi-aof | armel-semi-aof)
489 tm_file=arm/semiaof.h
490 tmake_file=arm/t-semiaof
494 tmake_file="t-netbsd arm/t-netbsd"
497 arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
498 xm_file=arm/xm-linux.h
500 tm_file="arm/linux-oldld.h arm/linux-elf.h"
503 tm_file="arm/linux-elf26.h $tm_file"
506 tmake_file="t-linux arm/t-linux"
507 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
509 case x${enable_threads} in
510 x | xyes | xpthreads | xposix)
515 arm*-*-linux*) # ARM GNU/Linux with ELF
516 xm_file=arm/xm-linux.h
518 tm_file="arm/linux-elf.h"
521 tm_file="arm/linux-elf26.h $tm_file"
524 tmake_file="t-linux arm/t-linux"
525 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
527 case x${enable_threads} in
528 x | xyes | xpthreads | xposix)
533 arm*-*-uclinux*) # ARM ucLinux
534 tm_file=arm/uclinux-elf.h
535 tmake_file=arm/t-arm-elf
539 tmake_file=arm/t-arm-aout
542 tm_file=arm/ecos-elf.h
543 tmake_file=arm/t-arm-elf
546 tm_file=arm/unknown-elf.h
547 tmake_file=arm/t-arm-elf
550 tm_file=arm/conix-elf.h
551 tmake_file=arm/t-arm-elf
554 tm_file=arm/unknown-elf-oabi.h
555 tmake_file=arm/t-arm-elf
564 c1-convex-*) # Convex C1
568 c2-convex-*) # Convex C2
581 target_cpu_default=16
589 clipper-intergraph-clix*)
590 tm_file="${tm_file} svr3.h clipper/clix.h"
591 xm_file=clipper/xm-clix.h
592 xmake_file=clipper/x-clix
593 extra_headers=va-clipper.h
594 extra_parts="crtbegin.o crtend.o"
595 install_headers_dir=install-headers-cpio
606 tm_file="fr30/fr30.h"
607 tmake_file=fr30/t-fr30
608 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
614 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
615 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
616 tmake_file="t-linux pa/t-linux"
617 extra_parts="crtbegin.o crtend.o"
620 if test x$enable_threads = xyes; then
625 target_cpu_default="MASK_PA_11"
626 tmake_file=pa/t-openbsd
629 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
630 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
631 xm_file=pa/xm-papro.h
635 target_cpu_default="MASK_PA_11"
636 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
640 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
641 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
642 xm_file=pa/xm-papro.h
646 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
650 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
651 target_cpu_default="MASK_PA_11"
655 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
659 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
660 xm_file=pa/xm-pahpux.h
661 xmake_file=pa/x-pa-hpux
664 tm_file="${tm_file} pa/gas.h"
666 install_headers_dir=install-headers-cpio
669 hppa1.0-*-hpux8.0[0-2]*)
670 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
671 xm_file=pa/xm-pahpux.h
672 xmake_file=pa/x-pa-hpux
675 tm_file="${tm_file} pa/pa-gas.h"
677 tm_file="pa/pa-oldas.h ${tm_file}"
679 install_headers_dir=install-headers-cpio
682 hppa1.1-*-hpux8.0[0-2]*)
683 target_cpu_default="MASK_PA_11"
684 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
685 xm_file=pa/xm-pahpux.h
686 xmake_file=pa/x-pa-hpux
689 tm_file="${tm_file} pa/pa-gas.h"
691 tm_file="pa/pa-oldas.h ${tm_file}"
693 install_headers_dir=install-headers-cpio
697 target_cpu_default="MASK_PA_11"
698 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
699 xm_file=pa/xm-pahpux.h
700 xmake_file=pa/x-pa-hpux
703 tm_file="${tm_file} pa/pa-gas.h"
705 install_headers_dir=install-headers-cpio
709 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
710 xm_file=pa/xm-pahpux.h
711 xmake_file=pa/x-pa-hpux
714 tm_file="${tm_file} pa/pa-gas.h"
716 install_headers_dir=install-headers-cpio
719 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
720 target_cpu_default="MASK_PA_11"
721 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
723 xm_file=pa/xm-pahpux.h
724 xmake_file=pa/x-pa-hpux
728 tm_file="${tm_file} pa/pa-gas.h"
730 if test x$enable_threads = x; then
731 enable_threads=$have_pthread_h
733 case x${enable_threads} in
735 tmake_file="${tmake_file} pa/t-dce-thr"
738 install_headers_dir=install-headers-cpio
742 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
744 xm_file=pa/xm-pahpux.h
745 xmake_file=pa/x-pa-hpux
749 tm_file="${tm_file} pa/pa-gas.h"
751 if test x$enable_threads = x; then
752 enable_threads=$have_pthread_h
754 case x${enable_threads} in
756 tmake_file="${tmake_file} pa/t-dce-thr"
759 install_headers_dir=install-headers-cpio
763 target_cpu_default="MASK_PA_11"
764 xm_file=pa/xm-pa64hpux.h
765 xmake_file=pa/x-pa-hpux
767 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"
770 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
774 tm_file="${tm_file} pa/pa-gas.h"
776 # if [ x$enable_threads = x ]; then
777 # enable_threads=$have_pthread_h
779 # if [ x$enable_threads = xyes ]; then
781 # tmake_file="${tmake_file} pa/t-dce-thr"
783 install_headers_dir=install-headers-cpio
786 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
787 target_cpu_default="MASK_PA_11"
788 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
790 xm_file=pa/xm-pahpux.h
791 xmake_file=pa/x-pa-hpux
795 tm_file="${tm_file} pa/pa-gas.h"
797 # if test x$enable_threads = x; then
798 # enable_threads=$have_pthread_h
800 # if test x$enable_threads = xyes; then
802 # tmake_file="${tmake_file} pa/t-dce-thr"
804 install_headers_dir=install-headers-cpio
808 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
810 xm_file=pa/xm-pahpux.h
811 xmake_file=pa/x-pa-hpux
814 tm_file="${tm_file} pa/pa-gas.h"
816 # if test x$enable_threads = x; then
817 # enable_threads=$have_pthread_h
819 # if test x$enable_threads = xyes; then
821 # tmake_file="${tmake_file} pa/t-dce-thr"
823 install_headers_dir=install-headers-cpio
826 hppa1.1-*-hpux* | hppa2*-*-hpux*)
827 target_cpu_default="MASK_PA_11"
828 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
829 xm_file=pa/xm-pahpux.h
830 xmake_file=pa/x-pa-hpux
833 tm_file="${tm_file} pa/pa-gas.h"
835 install_headers_dir=install-headers-cpio
839 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
840 xm_file=pa/xm-pahpux.h
841 xmake_file=pa/x-pa-hpux
844 tm_file="${tm_file} pa/pa-gas.h"
846 install_headers_dir=install-headers-cpio
849 hppa1.1-*-hiux* | hppa2*-*-hiux*)
850 target_cpu_default="MASK_PA_11"
851 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
852 xm_file=pa/xm-pahpux.h
853 xmake_file=pa/x-pa-hpux
856 tm_file="${tm_file} pa/pa-gas.h"
858 install_headers_dir=install-headers-cpio
862 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
863 xm_file=pa/xm-pahpux.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 elfos.h pa/elf.h"
874 target_cpu_default="MASK_PA_11"
878 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
879 xm_file=pa/xm-pampeix.h
880 xmake_file=pa/x-pa-mpeix
881 echo "You must use gas. Assuming it is already installed."
882 install_headers_dir=install-headers-tar
885 i370-*-opened*) # IBM 360/370/390 Architecture
892 xm_file=i370/xm-mvs.h
894 tmake_file=i370/t-mvs
897 xm_file="xm-linux.h i370/xm-linux.h"
899 tm_file="i370/linux.h ${tm_file}"
900 tmake_file="t-linux i370/t-linux"
902 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
903 # extra_parts="crtbegin.o crtend.o"
907 if test x$enable_threads = xyes; then
912 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
913 tm_file=i386/i386elf.h
914 tmake_file=i386/t-i386elf
917 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
920 tm_file=i386/aix386.h
921 extra_parts="crtbegin.o crtend.o"
922 tmake_file=i386/t-crtstuff
924 tm_file=i386/aix386ng.h
927 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
929 xmake_file=i386/x-aix
931 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
932 xm_file="xm-alloca.h ${xm_file}"
933 xm_defines="USG POSIX SMALL_ARG_MAX"
934 xmake_file=i386/x-ncr3000
935 if test x$stabs = xyes -a x$gas = xyes
937 tm_file=i386/sysv4gdb.h
941 extra_parts="crtbegin.o crtend.o"
942 tmake_file=i386/t-crtpic
946 xm_file=i386/xm-next.h
947 tmake_file=i386/t-next
948 xmake_file=i386/x-next
949 extra_objs=nextstep.o
950 extra_parts="crtbegin.o crtend.o"
951 if test x$enable_threads = xyes; then
955 i[34567]86-*-netware) # Intel 80386's running netware
956 tm_file=i386/netware.h
957 tmake_file=i386/t-netware
959 i[34567]86-sequent-bsd*) # 80386 from Sequent
963 tm_file=i386/seq-gas.h
965 tm_file=i386/sequent.h
968 i[34567]86-sequent-ptx1*)
969 xm_defines="USG SVR3"
970 xmake_file=i386/x-sysv3
971 tm_file=i386/seq-sysv3.h
972 tmake_file=i386/t-crtstuff
973 extra_parts="crtbegin.o crtend.o"
974 install_headers_dir=install-headers-cpio
976 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
977 xm_defines="USG SVR3"
978 xmake_file=i386/x-sysv3
979 tm_file=i386/seq2-sysv3.h
980 tmake_file=i386/t-crtstuff
981 extra_parts="crtbegin.o crtend.o"
982 install_headers_dir=install-headers-cpio
984 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
985 xm_file="xm-alloca.h ${xm_file}"
986 xm_defines="USG POSIX SMALL_ARG_MAX"
988 tm_file=i386/ptx4-i.h
990 extra_parts="crtbegin.o crtend.o"
991 install_headers_dir=install-headers-cpio
993 i386-sun-sunos*) # Sun i386 roadrunner
998 i[34567]86-wrs-vxworks*)
999 tm_file=i386/vxi386.h
1000 tmake_file=i386/t-i386bare
1001 thread_file='vxworks'
1004 tm_file=i386/i386-aout.h
1005 tmake_file=i386/t-i386bare
1007 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1008 xm_file=i386/xm-beos.h
1009 tmake_file='i386/t-beos i386/t-crtpic'
1010 tm_file=i386/beos-elf.h
1011 xmake_file=i386/x-beos
1012 extra_parts='crtbegin.o crtend.o'
1014 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1015 tm_file=i386/bsd386.h
1016 # tmake_file=t-libc-ok
1019 tm_file=i386/386bsd.h
1020 # tmake_file=t-libc-ok
1021 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1024 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1025 tm_file="i386/freebsd-aout.h i386/perform.h"
1026 tmake_file=t-freebsd
1028 i[34567]86-*-freebsd*)
1029 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h"
1030 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1031 tmake_file=t-freebsd
1035 case x${enable_threads} in
1036 xyes | xpthreads | xposix)
1038 tmake_file="${tmake_file} t-freebsd-thread"
1042 i[34567]86-*-netbsd*)
1043 tm_file=i386/netbsd.h
1047 i[34567]86-*-openbsd*)
1048 # we need collect2 until our bug is fixed...
1052 tm_file=i386/i386-coff.h
1053 tmake_file=i386/t-i386bare
1055 i[34567]86-*-isc*) # 80386 running ISC system
1056 xm_file="${xm_file} i386/xm-isc.h"
1057 xm_defines="USG SVR3"
1059 i[34567]86-*-isc[34]*)
1060 xmake_file=i386/x-isc3
1063 xmake_file=i386/x-isc
1066 if test x$gas = xyes -a x$stabs = xyes
1068 tm_file=i386/iscdbx.h
1069 tmake_file=i386/t-svr3dbx
1070 extra_parts="svr3.ifile svr3z.ifile"
1072 tm_file=i386/isccoff.h
1073 tmake_file=i386/t-crtstuff
1074 extra_parts="crtbegin.o crtend.o"
1076 tmake_file="$tmake_file i386/t-i386bare"
1077 install_headers_dir=install-headers-cpio
1079 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1080 # with a.out format using
1082 xmake_file=x-linux-aout
1083 tmake_file="t-linux-aout i386/t-crtstuff"
1084 tm_file=i386/linux-oldld.h
1088 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1090 xmake_file=x-linux-aout
1091 tmake_file="t-linux-aout i386/t-crtstuff"
1092 tm_file=i386/linux-aout.h
1096 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1097 # with ELF format using the
1098 # GNU/Linux C library 5
1100 tm_file=i386/linux.h
1101 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1102 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1105 if test x$enable_threads = xyes; then
1106 thread_file='single'
1109 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1110 # with ELF format using glibc 2
1111 # aka GNU/Linux C library 6
1113 tm_file=i386/linux.h
1114 tmake_file="t-linux i386/t-crtstuff"
1115 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1118 if test x$enable_threads = xyes; then
1125 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1126 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1129 i[34567]86-pc-msdosdjgpp*)
1130 xm_file=i386/xm-djgpp.h
1131 tm_file=i386/djgpp.h
1132 tmake_file=i386/t-djgpp
1133 xmake_file=i386/x-djgpp
1138 case $host in *pc-msdosdjgpp*)
1143 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1145 tmake_file=t-libc-ok
1149 i[34567]86-*-lynxos*)
1150 if test x$gas = xyes
1154 tm_file=i386/lynx-ng.h
1156 xm_file=i386/xm-lynx.h
1157 tmake_file=i386/t-i386bare
1162 # tmake_file=t-libc-ok
1165 i[34567]86-*-osfrose*) # 386 using OSF/rose
1166 if test x$elf = xyes
1168 tm_file=i386/osfelf.h
1171 tm_file=i386/osfrose.h
1174 xm_file="i386/xm-osf.h ${xm_file}"
1175 xmake_file=i386/x-osfrose
1176 tmake_file=i386/t-osf
1177 extra_objs=halfpic.o
1179 i[34567]86-go32-rtems*)
1181 xm_file=i386/xm-go32.h
1182 tm_file=i386/go32-rtems.h
1183 tmake_file="i386/t-go32 t-rtems"
1185 i[34567]86-*-rtemscoff*)
1187 tm_file=i386/rtems.h
1188 tmake_file="i386/t-i386bare t-rtems"
1190 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1192 tm_file=i386/rtemself.h
1193 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1194 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1196 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1197 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1198 xm_defines="USG SVR3"
1199 xmake_file=i386/x-sco5
1200 install_headers_dir=install-headers-cpio
1202 if test x$gas = xyes
1204 tm_file="i386/sco5gas.h ${tm_file}"
1205 tmake_file=i386/t-sco5gas
1207 tmake_file=i386/t-sco5
1209 tmake_file="$tmake_file i386/t-i386bare"
1210 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1212 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1213 xm_file="${xm_file} i386/xm-sco.h"
1214 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1215 xmake_file=i386/x-sco4
1216 install_headers_dir=install-headers-cpio
1217 if test x$stabs = xyes
1219 tm_file=i386/sco4dbx.h
1220 tmake_file=i386/t-svr3dbx
1221 extra_parts="svr3.ifile svr3z.rfile"
1224 tmake_file=i386/t-crtstuff
1225 extra_parts="crtbegin.o crtend.o"
1227 tmake_file="$tmake_file i386/t-i386bare"
1228 # The default EAFS filesystem supports long file names.
1229 # Truncating the target makes $host != $target which
1230 # makes gcc think it is doing a cross-compile.
1231 # truncate_target=yes
1233 i[34567]86-*-sco*) # 80386 running SCO system
1234 xm_file=i386/xm-sco.h
1235 xmake_file=i386/x-sco
1236 install_headers_dir=install-headers-cpio
1237 if test x$stabs = xyes
1239 tm_file=i386/scodbx.h
1240 tmake_file=i386/t-svr3dbx
1241 extra_parts="svr3.ifile svr3z.rfile"
1244 extra_parts="crtbegin.o crtend.o"
1245 tmake_file=i386/t-crtstuff
1247 tmake_file="$tmake_file i386/t-i386bare"
1250 i[34567]86-*-solaris2*)
1251 xm_file="xm-alloca.h ${xm_file}"
1252 xm_defines="USG POSIX SMALL_ARG_MAX"
1254 if test x$gas = xyes; then
1255 # Only needed if gas does not support -s
1256 tm_file="i386/sol2gas.h ${tm_file}"
1258 tmake_file="i386/t-i386bare i386/t-sol2"
1259 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1261 if test x${enable_threads} = x; then
1262 enable_threads=$have_pthread_h
1263 if test x${enable_threads} = x; then
1264 enable_threads=$have_thread_h
1267 if test x${enable_threads} = xyes; then
1268 if test x${have_pthread_h} = xyes; then
1271 thread_file='solaris'
1275 [34567]86-*-sysv5*) # Intel x86 on System V Release 5
1276 xm_file="xm-alloca.h ${xm_file}"
1277 xm_defines="USG POSIX"
1278 tm_file=i386/sysv5.h
1279 if test x$stabs = xyes
1281 tm_file="${tm_file} dbx.h"
1283 tmake_file="i386/t-i386bare i386/t-crtpic"
1285 extra_parts="crtbegin.o crtend.o"
1286 if test x$enable_threads = xyes; then
1290 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1291 xm_file="xm-alloca.h ${xm_file}"
1292 xm_defines="USG POSIX SMALL_ARG_MAX"
1293 tm_file=i386/sysv4.h
1294 if test x$stabs = xyes
1296 tm_file="${tm_file} dbx.h"
1298 tmake_file="i386/t-i386bare i386/t-crtpic"
1300 extra_parts="crtbegin.o crtend.o"
1302 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1303 xm_file="xm-alloca.h ${xm_file}"
1304 xm_defines="USG POSIX"
1306 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1308 extra_parts="crtbegin.o crtend.o"
1309 install_headers_dir=install-headers-cpio
1311 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1313 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1314 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1315 if test x$stabs = xyes
1317 tm_file=i386/osf1elfgdb.h
1319 tm_file=i386/osf1elf.h
1321 tmake_file=i386/t-osf1elf
1322 xmake_file=i386/x-osf1elf
1323 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1325 i[34567]86-*-sysv*) # Intel 80386's running system V
1326 xm_defines="USG SVR3"
1327 xmake_file=i386/x-sysv3
1328 if test x$gas = xyes
1330 if test x$stabs = xyes
1332 tm_file=i386/svr3dbx.h
1333 tmake_file=i386/t-svr3dbx
1334 extra_parts="svr3.ifile svr3z.rfile"
1336 tm_file=i386/svr3gas.h
1337 extra_parts="crtbegin.o crtend.o"
1338 tmake_file=i386/t-crtstuff
1341 tm_file=i386/sysv3.h
1342 extra_parts="crtbegin.o crtend.o"
1343 tmake_file=i386/t-crtstuff
1345 tmake_file="$tmake_file i386/t-crtpic"
1347 i386-*-vsta) # Intel 80386's running VSTa kernel
1348 xm_file="${xm_file} i386/xm-vsta.h"
1350 tmake_file=i386/t-vsta
1351 xmake_file=i386/x-vsta
1354 xm_file="${xm_file} i386/xm-cygwin.h"
1355 tmake_file=i386/t-cygwin
1356 tm_file=i386/win32.h
1357 xmake_file=i386/x-cygwin
1359 if test x$enable_threads = xyes; then
1364 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1365 xm_file="${xm_file} i386/xm-cygwin.h"
1366 tmake_file=i386/t-cygwin
1367 tm_file=i386/cygwin.h
1368 xmake_file=i386/x-cygwin
1370 if test x$enable_threads = xyes; then
1375 i[34567]86-*-mingw32*)
1376 tm_file=i386/mingw32.h
1377 xm_file="${xm_file} i386/xm-mingw32.h"
1378 tmake_file="i386/t-cygwin i386/t-mingw32"
1380 xmake_file=i386/x-cygwin
1381 if test x$enable_threads = xyes; then
1388 *minwg32crt* | *mingw32*)
1389 tm_file="${tm_file} i386/crtdll.h"
1395 xm_file="${xm_file} i386/xm-uwin.h"
1396 xm_defines="USG NO_STAB_H"
1397 tmake_file="i386/t-cygwin i386/t-uwin"
1399 xmake_file=i386/x-cygwin
1400 if test x$enable_threads = xyes; then
1405 i[34567]86-*-interix*)
1406 tm_file="i386/i386-interix.h interix.h"
1407 xm_file="i386/xm-i386-interix.h xm-interix.h"
1409 tmake_file="i386/t-interix"
1410 extra_objs=interix.o
1411 xmake_file=x-interix
1412 if test x$enable_threads = xyes ; then
1415 if test x$stabs = xyes ; then
1416 tm_file="${tm_file} dbxcoff.h"
1419 i[34567]86-*-winnt3*)
1420 tm_file=i386/win-nt.h
1421 out_file=i386/i386.c
1422 xm_file="xm-winnt.h ${xm_file}"
1423 xmake_file=winnt/x-winnt
1424 tmake_file=i386/t-winnt
1425 extra_host_objs="winnt.o oldnames.o"
1426 extra_gcc_objs="spawnv.o oldnames.o"
1427 if test x$gnu_ld != xyes
1429 extra_programs=ld.exe
1431 if test x$enable_threads = xyes; then
1435 i[34567]86-dg-dgux*)
1436 xm_file="xm-alloca.h ${xm_file}"
1437 xm_defines="USG POSIX"
1438 out_file=i386/dgux.c
1440 tmake_file=i386/t-dgux
1441 xmake_file=i386/x-dgux
1442 install_headers_dir=install-headers-cpio
1444 i860-alliant-*) # Alliant FX/2800
1445 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1446 xm_file="${xm_file}"
1447 xmake_file=i860/x-fx2800
1448 tmake_file=i860/t-fx2800
1449 extra_parts="crtbegin.o crtend.o"
1452 tm_file="${tm_file} i860/bsd.h"
1453 if test x$gas = xyes
1455 tm_file="${tm_file} i860/bsd-gas.h"
1460 tm_file="${tm_file} i860/mach.h"
1461 tmake_file=t-libc-ok
1463 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1464 tm_file="${tm_file} svr3.h i860/paragon.h"
1465 xm_defines="USG SVR3"
1469 tm_file="${tm_file} svr3.h i860/sysv3.h"
1470 xm_defines="USG SVR3"
1471 xmake_file=i860/x-sysv3
1472 extra_parts="crtbegin.o crtend.o"
1475 tm_file="${tm_file} svr4.h i860/sysv4.h"
1476 xm_defines="USG SVR3"
1477 xmake_file=i860/x-sysv4
1479 extra_parts="crtbegin.o crtend.o"
1481 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1482 tm_file="${tm_file} i960/vx960.h"
1483 tmake_file=i960/t-vxworks960
1485 thread_file='vxworks'
1487 i960-wrs-vxworks5* | i960-wrs-vxworks)
1488 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1489 tmake_file=i960/t-vxworks960
1491 thread_file='vxworks'
1494 tm_file="${tm_file} i960/vx960.h"
1495 tmake_file=i960/t-vxworks960
1497 thread_file='vxworks'
1500 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1501 tmake_file=i960/t-960bare
1505 tmake_file="i960/t-960bare t-rtems"
1506 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1509 i960-*-*) # Default i960 environment.
1514 tmake_file="ia64/t-ia64"
1515 target_cpu_default="0"
1516 if test x$gas = xyes
1518 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1520 if test x$gnu_ld = xyes
1522 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1527 tm_file=ia64/linux.h
1528 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
1529 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1530 if test x$enable_threads = xyes; then
1536 extra_parts="crtinit.o crtfini.o"
1538 # m68hc11 and m68hc12 share the same machine description.
1539 m68hc11-*-*|m6811-*-*)
1540 tm_file="m68hc11/m68hc11.h"
1541 xm_file="m68hc11/xm-m68hc11.h"
1542 tm_p_file="m68hc11/m68hc11-protos.h"
1543 md_file="m68hc11/m68hc11.md"
1544 out_file="m68hc11/m68hc11.c"
1545 tmake_file="m68hc11/t-m68hc11-gas"
1547 m68hc12-*-*|m6812-*-*)
1548 tm_file="m68hc11/m68hc12.h"
1549 tm_p_file="m68hc11/m68hc11-protos.h"
1550 xm_file="m68hc11/xm-m68hc11.h"
1551 md_file="m68hc11/m68hc11.md"
1552 out_file="m68hc11/m68hc11.c"
1553 tmake_file="m68hc11/t-m68hc11-gas"
1555 m68000-convergent-sysv*)
1557 xm_file="m68k/xm-3b1.h ${xm_file}"
1560 extra_headers=math-68881.h
1562 m68000-hp-bsd*) # HP 9000/200 running BSD
1563 tm_file=m68k/hp2bsd.h
1564 xmake_file=m68k/x-hp2bsd
1566 extra_headers=math-68881.h
1568 m68000-hp-hpux*) # HP 9000 series 300
1569 xm_file="xm-alloca.h ${xm_file}"
1571 if test x$gas = xyes
1573 xmake_file=m68k/x-hp320g
1574 tm_file=m68k/hp310g.h
1576 xmake_file=m68k/x-hp320
1577 tm_file=m68k/hp310.h
1579 install_headers_dir=install-headers-cpio
1581 extra_headers=math-68881.h
1586 extra_headers=math-68881.h
1589 tm_file=m68k/sun2o4.h
1591 extra_headers=math-68881.h
1594 xm_file="m68k/xm-3b1.h ${xm_file}"
1596 if test x$gas = xyes
1603 extra_headers=math-68881.h
1605 m68k-apple-aux*) # Apple Macintosh running A/UX
1606 xm_defines="USG AUX"
1607 tmake_file=m68k/t-aux
1608 install_headers_dir=install-headers-cpio
1609 extra_headers=math-68881.h
1610 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1612 if test "$gnu_ld" = yes
1614 tm_file="${tm_file} m68k/auxgld.h"
1616 tm_file="${tm_file} m68k/auxld.h"
1618 if test "$gas" = yes
1620 tm_file="${tm_file} m68k/auxgas.h"
1622 tm_file="${tm_file} m68k/auxas.h"
1624 tm_file="${tm_file} m68k/a-ux.h"
1628 tm_file=m68k/apollo68.h
1629 xmake_file=m68k/x-apollo68
1631 extra_headers=math-68881.h
1634 m68k-altos-sysv*) # Altos 3068
1635 if test x$gas = xyes
1637 tm_file=m68k/altos3068.h
1640 echo "The Altos is supported only with the GNU assembler" 1>&2
1643 extra_headers=math-68881.h
1645 m68k-bull-sysv*) # Bull DPX/2
1646 if test x$gas = xyes
1648 if test x$stabs = xyes
1650 tm_file=m68k/dpx2cdbx.h
1652 tm_file=m68k/dpx2g.h
1657 xm_file="xm-alloca.h ${xm_file}"
1659 xmake_file=m68k/x-dpx2
1661 extra_headers=math-68881.h
1663 m68k-atari-sysv4*) # Atari variant of V.4.
1664 tm_file=m68k/atari.h
1665 xm_file="xm-alloca.h ${xm_file}"
1666 xm_defines="USG FULL_PROTOTYPES"
1668 extra_parts="crtbegin.o crtend.o"
1669 extra_headers=math-68881.h
1672 m68k-motorola-sysv*)
1673 tm_file=m68k/mot3300.h
1674 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1675 if test x$gas = xyes
1677 xmake_file=m68k/x-mot3300-gas
1678 if test x$gnu_ld = xyes
1680 tmake_file=m68k/t-mot3300-gald
1682 tmake_file=m68k/t-mot3300-gas
1686 xmake_file=m68k/x-mot3300
1687 if test x$gnu_ld = xyes
1689 tmake_file=m68k/t-mot3300-gld
1691 tmake_file=m68k/t-mot3300
1695 gdb_needs_out_file_path=yes
1696 extra_parts="crt0.o mcrt0.o"
1697 extra_headers=math-68881.h
1700 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1701 tm_file=m68k/tower-as.h
1702 xm_defines="USG SVR3"
1703 xmake_file=m68k/x-tower
1704 extra_parts="crtbegin.o crtend.o"
1705 extra_headers=math-68881.h
1708 tm_file=m68k/plexus.h
1709 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1712 extra_headers=math-68881.h
1716 xm_file="xm-alloca.h ${xm_file}"
1718 extra_headers=math-68881.h
1721 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1722 xm_defines="USG unos"
1723 xmake_file=m68k/x-crds
1726 extra_headers=math-68881.h
1728 m68k-cbm-sysv4*) # Commodore variant of V.4.
1730 xm_file="xm-alloca.h ${xm_file}"
1731 xm_defines="USG FULL_PROTOTYPES"
1732 xmake_file=m68k/x-amix
1734 extra_parts="crtbegin.o crtend.o"
1735 extra_headers=math-68881.h
1739 tm_file=m68k/ccur-GAS.h
1740 xmake_file=m68k/x-ccur
1741 extra_headers=math-68881.h
1745 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1746 tm_file=m68k/hp3bsd44.h
1747 xmake_file=m68k/x-hp3bsd44
1749 extra_headers=math-68881.h
1752 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1753 tm_file=m68k/hp3bsd.h
1755 extra_headers=math-68881.h
1759 if test x$with_fp = xno
1761 tm_file=m68k/isi-nfp.h
1767 extra_headers=math-68881.h
1769 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1770 xm_file="xm-alloca.h ${xm_file}"
1772 if test x$gas = xyes
1774 xmake_file=m68k/x-hp320g
1775 tm_file=m68k/hp320g.h
1777 xmake_file=m68k/x-hp320
1778 tm_file=m68k/hpux7.h
1780 install_headers_dir=install-headers-cpio
1782 extra_headers=math-68881.h
1785 m68k-hp-hpux*) # HP 9000 series 300
1786 xm_file="xm-alloca.h ${xm_file}"
1788 if test x$gas = xyes
1790 xmake_file=m68k/x-hp320g
1791 tm_file=m68k/hp320g.h
1793 xmake_file=m68k/x-hp320
1794 tm_file=m68k/hp320.h
1796 install_headers_dir=install-headers-cpio
1798 extra_headers=math-68881.h
1802 tm_file=m68k/sun3mach.h
1804 extra_headers=math-68881.h
1808 if test x$gas = xyes
1810 tm_file=m68k/news3gas.h
1812 tm_file=m68k/news3.h
1815 extra_headers=math-68881.h
1818 m68k-sony-bsd* | m68k-sony-newsos*)
1819 if test x$gas = xyes
1821 tm_file=m68k/newsgas.h
1826 extra_headers=math-68881.h
1829 m68k-next-nextstep2*)
1830 tm_file=m68k/next21.h
1831 xm_file="m68k/xm-next.h ${xm_file}"
1832 tmake_file=m68k/t-next
1833 xmake_file=m68k/x-next
1834 extra_objs=nextstep.o
1835 extra_headers=math-68881.h
1839 m68k-next-nextstep[34]*)
1841 xm_file="m68k/xm-next.h ${xm_file}"
1842 tmake_file=m68k/t-next
1843 xmake_file=m68k/x-next
1844 extra_objs=nextstep.o
1845 extra_parts="crtbegin.o crtend.o"
1846 extra_headers=math-68881.h
1848 if test x$enable_threads = xyes; then
1853 if test x$with_fp = xno
1855 tm_file=m68k/sun3n3.h
1857 tm_file=m68k/sun3o3.h
1861 extra_headers=math-68881.h
1863 m68k-sun-sunos*) # For SunOS 4 (the default).
1864 if test x$with_fp = xno
1866 tm_file=m68k/sun3n.h
1872 extra_headers=math-68881.h
1875 tm_file=m68k/vxm68k.h
1876 tmake_file=m68k/t-vxworks68
1877 extra_headers=math-68881.h
1878 thread_file='vxworks'
1882 tmake_file=m68k/t-m68kbare
1883 tm_file="m68k/m68k-aout.h libgloss.h"
1884 extra_headers=math-68881.h
1888 tmake_file=m68k/t-m68kbare
1889 tm_file="m68k/m68k-coff.h dbx.h"
1890 extra_headers=math-68881.h
1893 m68020-*-elf* | m68k-*-elf*)
1894 tm_file="m68k/m68020-elf.h"
1895 xm_file=m68k/xm-m68kv.h
1896 tmake_file=m68k/t-m68kelf
1897 header_files=math-68881.h
1900 if test x$gas = xyes
1904 tm_file=m68k/lynx-ng.h
1906 xm_file=m68k/xm-lynx.h
1908 tmake_file=m68k/t-lynx
1909 extra_headers=math-68881.h
1913 tm_file=m68k/netbsd.h
1920 # we need collect2 until our bug is fixed...
1923 m68k-*-sysv3*) # Motorola m68k's running system V.3
1924 xm_file="xm-alloca.h ${xm_file}"
1926 xmake_file=m68k/x-m68kv
1927 extra_parts="crtbegin.o crtend.o"
1928 extra_headers=math-68881.h
1931 m68k-*-sysv4*) # Motorola m68k's running system V.4
1932 tm_file=m68k/m68kv4.h
1933 xm_file="xm-alloca.h ${xm_file}"
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
1986 m68k-*-rtemself*|m68k-*-rtems*)
1987 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1988 tm_file=m68k/rtemself.h
1989 extra_headers=math-68881.h
1995 tm_file=m88k/dguxbcs.h
1996 tmake_file=m88k/t-dguxbcs
2000 tmake_file=m88k/t-dgux
2003 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2004 xmake_file=m88k/x-dgux
2005 if test x$gas = xyes
2007 tmake_file=m88k/t-dgux-gas
2010 m88k-dolphin-sysv3*)
2011 tm_file=m88k/dolph.h
2012 extra_parts="crtbegin.o crtend.o"
2013 xm_file="m88k/xm-sysv3.h ${xm_file}"
2014 xmake_file=m88k/x-dolph
2015 if test x$gas = xyes
2017 tmake_file=m88k/t-m88k-gas
2020 m88k-tektronix-sysv3)
2021 tm_file=m88k/tekXD88.h
2022 extra_parts="crtbegin.o crtend.o"
2023 xm_file="m88k/xm-sysv3.h ${xm_file}"
2024 xmake_file=m88k/x-tekXD88
2025 if test x$gas = xyes
2027 tmake_file=m88k/t-m88k-gas
2031 tm_file=m88k/m88k-aout.h
2034 tm_file=m88k/m88k-coff.h
2035 tmake_file=m88k/t-bug
2039 extra_parts="crtbegin.o crtend.o"
2040 if test x$gas = xyes
2042 tmake_file=m88k/t-luna-gas
2044 tmake_file=m88k/t-luna
2048 tmake_file="${tmake_file} m88k/t-luna-gas"
2049 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2050 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2053 tm_file=m88k/sysv3.h
2054 extra_parts="crtbegin.o crtend.o"
2055 xm_file="m88k/xm-sysv3.h ${xm_file}"
2056 xmake_file=m88k/x-sysv3
2057 if test x$gas = xyes
2059 tmake_file=m88k/t-m88k-gas
2063 tm_file=m88k/sysv4.h
2064 extra_parts="crtbegin.o crtend.o"
2065 xmake_file=m88k/x-sysv4
2066 tmake_file=m88k/t-sysv4
2069 tm_file=mcore/mcore-elf.h
2070 tmake_file=mcore/t-mcore
2073 tm_file=mcore/mcore-pe.h
2074 tmake_file=mcore/t-mcore-pe
2076 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2077 if test "x$gnu_ld" = xyes
2079 tm_file="mips/iris6.h mips/iris6gld.h"
2081 tm_file=mips/iris6.h
2083 tmake_file=mips/t-iris6
2084 xm_file=mips/xm-iris6.h
2085 xmake_file=mips/x-iris6
2086 # if test x$enable_threads = xyes; then
2087 # thread_file='irix'
2091 tm_file="mips/elf.h mips/vxworks.h"
2092 tmake_file=mips/t-ecoff
2095 extra_parts="crtbegin.o crtend.o"
2096 thread_file='vxworks'
2098 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2099 tm_file="mips/iris6.h mips/cross64.h"
2101 xm_file="mips/xm-iris5.h"
2102 xmake_file=mips/x-iris
2103 tmake_file=mips/t-cross64
2104 # See comment in mips/iris[56].h files.
2106 # if test x$enable_threads = xyes; then
2107 # thread_file='irix'
2111 if test x$gas = xyes
2113 if test x$stabs = xyes
2115 tm_file=mips/iris5gdb.h
2117 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2120 tm_file=mips/sni-svr4.h
2123 xmake_file=mips/x-sni-svr4
2124 tmake_file=mips/t-mips-gas
2125 if test x$gnu_ld != xyes
2130 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2131 if test x$gas = xyes
2133 tm_file="mips/iris5.h mips/iris5gas.h"
2134 if test x$stabs = xyes
2136 tm_file="${tm_file} dbx.h"
2139 tm_file=mips/iris5.h
2142 xm_file="mips/xm-iris5.h"
2143 xmake_file=mips/x-iris
2144 # mips-tfile doesn't work yet
2145 tmake_file=mips/t-mips-gas
2146 # See comment in mips/iris5.h file.
2148 # if test x$enable_threads = xyes; then
2149 # thread_file='irix'
2152 mips-sgi-irix4loser*) # Mostly like a MIPS.
2153 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2154 if test x$stabs = xyes; then
2155 tm_file="${tm_file} dbx.h"
2158 xmake_file=mips/x-iris
2159 if test x$gas = xyes
2161 tmake_file=mips/t-mips-gas
2163 extra_passes="mips-tfile mips-tdump"
2165 if test x$gnu_ld != xyes
2169 # if test x$enable_threads = xyes; then
2170 # thread_file='irix'
2173 mips-sgi-irix4*) # Mostly like a MIPS.
2174 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2175 if test x$stabs = xyes; then
2176 tm_file="${tm_file} dbx.h"
2179 xmake_file=mips/x-iris
2180 if test x$gas = xyes
2182 tmake_file=mips/t-mips-gas
2184 extra_passes="mips-tfile mips-tdump"
2186 if test x$gnu_ld != xyes
2190 # if test x$enable_threads = xyes; then
2191 # thread_file='irix'
2194 mips-sgi-*) # Mostly like a MIPS.
2195 tm_file="mips/iris3.h ${tm_file}"
2196 if test x$stabs = xyes; then
2197 tm_file="${tm_file} dbx.h"
2200 xmake_file=mips/x-iris3
2201 if test x$gas = xyes
2203 tmake_file=mips/t-mips-gas
2205 extra_passes="mips-tfile mips-tdump"
2207 if test x$gnu_ld != xyes
2212 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2213 tm_file="mips/osfrose.h ${tm_file}"
2214 xmake_file=mips/x-osfrose
2215 tmake_file=mips/t-osfrose
2216 extra_objs=halfpic.o
2219 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2220 tm_file=mips/dec-osf1.h
2221 if test x$stabs = xyes; then
2222 tm_file="${tm_file} dbx.h"
2224 xmake_file=mips/x-dec-osf1
2225 if test x$gas = xyes
2227 tmake_file=mips/t-mips-gas
2229 tmake_file=mips/t-ultrix
2230 extra_passes="mips-tfile mips-tdump"
2232 if test x$gnu_ld != xyes
2237 mips-dec-bsd*) # Decstation running 4.4 BSD
2238 tm_file=mips/dec-bsd.h
2239 if test x$gas = xyes
2241 tmake_file=mips/t-mips-gas
2243 tmake_file=mips/t-ultrix
2244 extra_passes="mips-tfile mips-tdump"
2246 if test x$gnu_ld != xyes
2251 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2252 tm_file=mips/netbsd.h
2253 # On NetBSD, the headers are already okay, except for math.h.
2256 mips*-*-linux*) # Linux MIPS, either endian.
2259 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2260 *) tm_file="mips/elf.h mips/linux.h" ;;
2263 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2266 if test x$enable_threads = xyes; then
2270 mips*el-*-openbsd*) # mips little endian
2271 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2273 mips*-*-openbsd*) # mips big endian
2274 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2275 tm_file="mips/openbsd-be.h ${tm_file}"
2277 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2278 tm_file="mips/news4.h ${tm_file}"
2279 if test x$stabs = xyes; then
2280 tm_file="${tm_file} dbx.h"
2282 if test x$gas = xyes
2284 tmake_file=mips/t-mips-gas
2286 extra_passes="mips-tfile mips-tdump"
2288 if test x$gnu_ld != xyes
2292 xmake_file=mips/x-sony
2294 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2295 # That is based on svr4.
2296 # t-svr4 is not right because this system doesn't use ELF.
2297 tm_file="mips/news5.h ${tm_file}"
2298 if test x$stabs = xyes; then
2299 tm_file="${tm_file} dbx.h"
2302 if test x$gas = xyes
2304 tmake_file=mips/t-mips-gas
2306 extra_passes="mips-tfile mips-tdump"
2308 if test x$gnu_ld != xyes
2313 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2314 tm_file="mips/svr4-5.h mips/svr4-t.h"
2315 if test x$stabs = xyes; then
2316 tm_file="${tm_file} dbx.h"
2319 xmake_file=mips/x-sysv
2320 if test x$gas = xyes
2322 tmake_file=mips/t-mips-gas
2323 extra_parts="crtbegin.o crtend.o"
2325 tmake_file=mips/t-mips
2326 extra_passes="mips-tfile mips-tdump"
2328 if test x$gnu_ld != xyes
2333 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2334 tm_file="mips/ultrix.h ${tm_file}"
2335 if test x$stabs = xyes; then
2336 tm_file="${tm_file} dbx.h"
2338 xmake_file=mips/x-ultrix
2339 if test x$gas = xyes
2341 tmake_file=mips/t-mips-gas
2343 tmake_file=mips/t-ultrix
2344 extra_passes="mips-tfile mips-tdump"
2346 if test x$gnu_ld != xyes
2351 mips-*-riscos[56789]bsd*)
2352 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2353 if test x$stabs = xyes; then
2354 tm_file="${tm_file} dbx.h"
2356 if test x$gas = xyes
2358 tmake_file=mips/t-bsd-gas
2360 tmake_file=mips/t-bsd
2361 extra_passes="mips-tfile mips-tdump"
2363 if test x$gnu_ld != xyes
2368 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2369 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2370 if test x$stabs = xyes; then
2371 tm_file="${tm_file} dbx.h"
2373 if test x$gas = xyes
2375 tmake_file=mips/t-bsd-gas
2377 tmake_file=mips/t-bsd
2378 extra_passes="mips-tfile mips-tdump"
2380 if test x$gnu_ld != xyes
2385 mips-*-riscos[56789]sysv4*)
2386 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2387 if test x$stabs = xyes; then
2388 tm_file="${tm_file} dbx.h"
2390 xmake_file=mips/x-sysv
2391 if test x$gas = xyes
2393 tmake_file=mips/t-svr4-gas
2395 tmake_file=mips/t-svr4
2396 extra_passes="mips-tfile mips-tdump"
2398 if test x$gnu_ld != xyes
2403 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2404 tm_file="mips/svr4-4.h ${tm_file}"
2405 if test x$stabs = xyes; then
2406 tm_file="${tm_file} dbx.h"
2409 xmake_file=mips/x-sysv
2410 if test x$gas = xyes
2412 tmake_file=mips/t-svr4-gas
2414 tmake_file=mips/t-svr4
2415 extra_passes="mips-tfile mips-tdump"
2417 if test x$gnu_ld != xyes
2422 mips-*-riscos[56789]sysv*)
2423 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2424 if test x$stabs = xyes; then
2425 tm_file="${tm_file} dbx.h"
2428 xmake_file=mips/x-sysv
2429 if test x$gas = xyes
2431 tmake_file=mips/t-svr3-gas
2433 tmake_file=mips/t-svr3
2434 extra_passes="mips-tfile mips-tdump"
2436 if test x$gnu_ld != xyes
2441 mips-*-sysv* | mips-*-riscos*sysv*)
2442 tm_file="mips/svr3-4.h ${tm_file}"
2443 if test x$stabs = xyes; then
2444 tm_file="${tm_file} dbx.h"
2447 xmake_file=mips/x-sysv
2448 if test x$gas = xyes
2450 tmake_file=mips/t-svr3-gas
2452 tmake_file=mips/t-svr3
2453 extra_passes="mips-tfile mips-tdump"
2455 if test x$gnu_ld != xyes
2460 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2461 tm_file=mips/mips-5.h
2462 if test x$stabs = xyes; then
2463 tm_file="${tm_file} dbx.h"
2465 if test x$gas = xyes
2467 tmake_file=mips/t-mips-gas
2469 extra_passes="mips-tfile mips-tdump"
2471 if test x$gnu_ld != xyes
2479 tm_file=mips/ecoffl.h
2480 if test x$stabs = xyes; then
2481 tm_file="${tm_file} dbx.h"
2483 tmake_file=mips/t-ecoff
2486 tm_file="gofast.h mips/ecoff.h"
2487 if test x$stabs = xyes; then
2488 tm_file="${tm_file} dbx.h"
2490 tmake_file=mips/t-ecoff
2493 tm_file="mips/elfl.h"
2494 tmake_file=mips/t-elf
2497 tm_file="mips/elf.h"
2498 tmake_file=mips/t-elf
2501 tm_file="mips/elfl64.h"
2502 tmake_file=mips/t-elf
2504 mips64orionel-*-elf*)
2505 tm_file="mips/elforion.h mips/elfl64.h"
2506 tmake_file=mips/t-elf
2509 tm_file="mips/elf64.h"
2510 tmake_file=mips/t-elf
2513 tm_file="mips/elforion.h mips/elf64.h"
2514 tmake_file=mips/t-elf
2516 mips64orion-*-rtems*)
2517 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2518 tmake_file="mips/t-elf t-rtems"
2521 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2522 tmake_file=mips/t-r3900
2525 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2526 tmake_file=mips/t-r3900
2528 mips-*-*) # Default MIPS RISC-OS 4.0.
2529 if test x$stabs = xyes; then
2530 tm_file="${tm_file} dbx.h"
2532 if test x$gas = xyes
2534 tmake_file=mips/t-mips-gas
2536 extra_passes="mips-tfile mips-tdump"
2538 if test x$gnu_ld != xyes
2546 tm_file="mn10200/mn10200.h"
2547 if test x$stabs = xyes
2549 tm_file="${tm_file} dbx.h"
2555 tm_file="mn10300/mn10300.h"
2556 if test x$stabs = xyes
2558 tm_file="${tm_file} dbx.h"
2563 tm_file=ns32k/encore.h
2567 tm_file=ns32k/sequent.h
2571 tm_file=ns32k/tek6100.h
2575 tm_file=ns32k/tek6200.h
2579 tm_file=ns32k/merlin.h
2583 tm_file=ns32k/pc532-mach.h
2587 tm_file=ns32k/pc532-min.h
2588 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2593 tm_file=ns32k/netbsd.h
2594 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2595 # On NetBSD, the headers are already okay, except for math.h.
2600 tm_file="${tm_file} pdp11/2bsd.h"
2610 tm_file="svr4.h pj/linux.h ${tm_file}"
2615 tm_file="svr4.h pj/pjl.h ${tm_file}"
2622 xmake_file=romp/x-mach
2629 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2633 tm_file=rs6000/beos.h
2634 xm_file=rs6000/xm-beos.h
2635 tmake_file=rs6000/t-beos
2636 xmake_file=rs6000/x-beos
2639 xm_file="rs6000/xm-rs6000.h rs6000/xm-darwin.h"
2640 xmake_file=rs6000/x-darwin
2643 tm_file=rs6000/sysv4.h
2644 xm_file="rs6000/xm-sysv4.h"
2645 xm_defines="USG POSIX"
2646 extra_headers=ppc-asm.h
2647 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2648 xmake_file=rs6000/x-sysv4
2651 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2652 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2653 extra_headers=ppc-asm.h
2656 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2657 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2658 extra_headers=ppc-asm.h
2661 tm_file="rs6000/sysv4.h"
2662 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2663 extra_headers=ppc-asm.h
2666 tm_file="rs6000/sysv4.h rs6000/eabi.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 rs6000/rtems.h"
2672 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2673 extra_headers=ppc-asm.h
2675 powerpc-*-linux*libc1)
2676 tm_file="rs6000/sysv4.h rs6000/linux.h"
2677 xm_file=rs6000/xm-sysv4.h
2678 out_file=rs6000/rs6000.c
2679 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2681 extra_headers=ppc-asm.h
2682 if test x$enable_threads = xyes; then
2687 tm_file="rs6000/sysv4.h rs6000/linux.h"
2688 xm_file="rs6000/xm-sysv4.h"
2689 xm_defines="USG ${xm_defines}"
2690 out_file=rs6000/rs6000.c
2691 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2693 extra_headers=ppc-asm.h
2694 if test x$enable_threads = xyes; then
2698 powerpc-wrs-vxworks*)
2700 xm_file="rs6000/xm-sysv4.h"
2701 xm_defines="USG POSIX"
2702 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
2703 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2704 extra_headers=ppc-asm.h
2705 thread_file='vxworks'
2707 powerpcle-wrs-vxworks*)
2709 xm_file="rs6000/xm-sysv4.h"
2710 xm_defines="USG POSIX"
2711 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2712 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2713 extra_headers=ppc-asm.h
2714 thread_file='vxworks'
2717 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
2718 xm_file="rs6000/xm-sysv4.h"
2719 xm_defines="USG POSIX"
2720 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2721 xmake_file=rs6000/x-sysv4
2722 extra_headers=ppc-asm.h
2725 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
2726 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2727 extra_headers=ppc-asm.h
2729 powerpcle-*-eabisim*)
2730 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2731 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2732 extra_headers=ppc-asm.h
2735 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2736 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2737 extra_headers=ppc-asm.h
2739 powerpcle-*-solaris2*)
2740 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2741 xm_file="rs6000/xm-sysv4.h"
2742 xm_defines="USG POSIX"
2743 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2744 xmake_file=rs6000/x-sysv4
2745 extra_headers=ppc-asm.h
2747 rs6000-ibm-aix3.[01]*)
2748 tm_file=rs6000/aix31.h
2749 xmake_file=rs6000/x-aix31
2753 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2754 tm_file=rs6000/aix3newas.h
2755 if test x$host != x$target
2757 tmake_file=rs6000/t-xnewas
2759 tmake_file=rs6000/t-newas
2764 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2765 tm_file=rs6000/aix41.h
2766 if test x$host != x$target
2768 tmake_file=rs6000/t-xnewas
2770 tmake_file=rs6000/t-newas
2772 if test "$gnu_ld" = yes
2774 xmake_file=rs6000/x-aix41-gld
2776 tmake_file='rs6000/t-newas'
2778 xmake_file=rs6000/x-aix41
2782 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2783 tm_file=rs6000/aix43.h
2784 tmake_file=rs6000/t-aix43
2785 xmake_file=rs6000/x-aix41
2790 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2791 tm_file=rs6000/aix43.h
2792 tmake_file=rs6000/t-aix43
2793 xmake_file=rs6000/x-aix41
2807 tm_file=rs6000/mach.h
2808 xm_file="${xm_file} rs6000/xm-mach.h"
2809 xmake_file=rs6000/x-mach
2813 tm_file=rs6000/lynx.h
2814 xm_file=rs6000/xm-lynx.h
2815 tmake_file=rs6000/t-rs6000
2816 xmake_file=rs6000/x-lynx
2820 tmake_file="sh/t-sh sh/t-elf"
2821 tm_file="sh/sh.h sh/elf.h"
2825 tmake_file="sh/t-sh sh/t-elf t-rtems"
2826 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2830 tmake_file="sh/t-sh t-rtems"
2831 tm_file="sh/sh.h sh/rtems.h"
2835 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2836 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2839 if test x$enable_threads = xyes; then
2849 xm_file="xm-alloca.h ${xm_file}"
2852 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2853 tm_file=sparc/vxsparc.h
2854 tmake_file=sparc/t-vxsparc
2856 thread_file='vxworks'
2859 tmake_file=sparc/t-sparcbare
2860 tm_file="sparc/aout.h libgloss.h"
2863 tm_file=sparc/netbsd.h
2868 # we need collect2 until our bug is fixed...
2876 tmake_file=sparc/t-elf
2877 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2881 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2882 xm_file="${xm_file} sparc/xm-linux.h"
2883 tm_file=sparc/linux-aout.h
2887 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2888 xm_file="${xm_file} sparc/xm-linux.h"
2890 tm_file=sparc/linux.h
2891 tmake_file="t-linux t-linux-gnulibc1"
2892 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2896 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2897 xm_file="${xm_file} sparc/xm-linux.h"
2899 tm_file=sparc/linux.h
2900 tmake_file="t-linux"
2901 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2903 if test x$enable_threads = xyes; then
2909 if test x$gas = xyes
2911 tm_file=sparc/lynx.h
2913 tm_file=sparc/lynx-ng.h
2915 xm_file=sparc/xm-lynx.h
2916 tmake_file=sparc/t-sunos41
2920 tmake_file="sparc/t-sparcbare t-rtems"
2921 tm_file=sparc/rtems.h
2923 sparc-*-rtems*|sparc-*-rtemself*)
2924 tm_file="sparc/rtemself.h"
2925 tmake_file="sparc/t-elf t-rtems"
2926 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2930 sparcv9-*-solaris2*)
2931 if test x$gnu_ld = xyes
2933 tm_file=sparc/sol2-64.h
2935 tm_file=sparc/sol2-sld-64.h
2937 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
2938 xm_defines="USG POSIX"
2939 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2940 if test x$gnu_ld = xyes; then
2941 tmake_file="$tmake_file sparc/t-slibgcc"
2943 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2945 xmake_file=sparc/x-sysv4
2946 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2948 if test x${enable_threads} = x ; then
2949 enable_threads=$have_pthread_h
2950 if test x${enable_threads} = x ; then
2951 enable_threads=$have_thread_h
2954 if test x${enable_threads} = xyes ; then
2955 if test x${have_pthread_h} = xyes ; then
2958 thread_file='solaris'
2962 sparc-hal-solaris2*)
2963 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
2964 xm_defines="USG POSIX"
2965 tm_file="sparc/sol2.h sparc/hal.h"
2966 tmake_file="sparc/t-halos sparc/t-sol2"
2967 if test x$gnu_ld = xyes; then
2968 tmake_file="$tmake_file sparc/t-slibgcc"
2970 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2972 xmake_file=sparc/x-sysv4
2973 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2982 thread_file='solaris'
2985 if test x$gnu_ld = xyes
2987 tm_file=sparc/sol2.h
2989 tm_file=sparc/sol2-sld.h
2991 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
2992 xm_defines="USG POSIX"
2993 tmake_file=sparc/t-sol2
2994 if test x$gnu_ld = xyes; then
2995 tmake_file="$tmake_file sparc/t-slibgcc"
2997 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2999 xmake_file=sparc/x-sysv4
3000 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3001 # At the moment, 32-to-64 cross compilation doesn't work.
3003 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3005 # if test x$gnu_ld = xyes
3007 # tm_file=sparc/sol2-64.h
3009 # tm_file=sparc/sol2-sld-64.h
3011 # tmake_file="$tmake_file sparc/t-sol2-64"
3022 if test x${enable_threads} = x; then
3023 enable_threads=$have_pthread_h
3024 if test x${enable_threads} = x; then
3025 enable_threads=$have_thread_h
3028 if test x${enable_threads} = xyes; then
3029 if test x${have_pthread_h} = xyes; then
3032 thread_file='solaris'
3037 tm_file=sparc/sunos4.h
3038 tmake_file=sparc/t-sunos40
3042 tm_file=sparc/sunos4.h
3043 tmake_file=sparc/t-sunos41
3045 if test x$gas = xyes; then
3046 tm_file="${tm_file} sparc/sun4gas.h"
3050 tm_file=sparc/sun4o3.h
3054 tm_file=sparc/sysv4.h
3055 xm_file="sparc/xm-sysv4.h"
3056 xm_defines="USG POSIX"
3058 xmake_file=sparc/x-sysv4
3059 extra_parts="crtbegin.o crtend.o"
3062 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3063 xm_defines="USG POSIX"
3064 tm_file=sparc/vxsim.h
3065 tmake_file=sparc/t-vxsparc
3066 xmake_file=sparc/x-sysv4
3069 tm_file="sparc/splet.h libgloss.h"
3070 tmake_file=sparc/t-splet
3073 tm_file="sparc/litecoff.h libgloss.h"
3074 tmake_file=sparc/t-sparclite
3077 tm_file="sparc/lite.h aoutos.h libgloss.h"
3078 tmake_file=sparc/t-sparclite
3081 tm_file="sparc/liteelf.h"
3082 tmake_file=sparc/t-sparclite
3083 extra_parts="crtbegin.o crtend.o"
3086 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3087 tmake_file=sparc/t-sp86x
3090 tm_file="sparc/sp86x-elf.h"
3091 tmake_file=sparc/t-sp86x
3092 extra_parts="crtbegin.o crtend.o"
3095 tmake_file=sparc/t-sp64
3096 tm_file=sparc/sp64-aout.h
3099 tmake_file=sparc/t-sp64
3100 tm_file=sparc/sp64-elf.h
3101 extra_parts="crtbegin.o crtend.o"
3103 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3104 tmake_file="t-linux sparc/t-linux64"
3105 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3106 tm_file=sparc/linux64.h
3108 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3110 if test x$enable_threads = xyes; then
3116 { echo "config.gcc: error:
3117 *** The Thumb targets have been deprecated. The equivalent
3118 *** ARM based toolchain can now generate Thumb instructions
3119 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3123 tm_file="v850/rtems.h"
3124 xm_file="v850/xm-v850.h"
3125 tmake_file="v850/t-v850 t-rtems"
3126 if test x$stabs = xyes
3128 tm_file="${tm_file} dbx.h"
3133 target_cpu_default="TARGET_CPU_generic"
3135 tm_file="v850/v850.h"
3136 xm_file="v850/xm-v850.h"
3137 tmake_file=v850/t-v850
3138 if test x$stabs = xyes
3140 tm_file="${tm_file} dbx.h"
3144 vax-*-bsd*) # vaxen running BSD
3148 vax-*-sysv*) # vaxen running system V
3149 tm_file="${tm_file} vax/vaxv.h"
3154 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3160 tmake_file="${tmake_file} vax/t-openbsd"
3161 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3162 xm_file="xm-openbsd.h vax/xm-vax.h"
3166 vax-*-ultrix*) # vaxen running ultrix
3167 tm_file="${tm_file} vax/ultrix.h"
3170 vax-*-vms*) # vaxen running VMS
3171 xm_file=vax/xm-vms.h
3175 vax-*-*) # vax default entry
3179 xm_file="${xm_file} xm-svr3"
3183 echo "Configuration $machine not supported" 1>&2
3190 ;; # Existing GNU/Linux systems do not use the GNU setup.
3192 # On the GNU system, the setup is just about the same on
3193 # each different CPU. The specific machines that GNU
3194 # supports are matched above and just set $cpu_type.
3195 xm_file="xm-gnu.h ${xm_file}"
3196 tm_file=${cpu_type}/gnu.h
3197 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3198 # GNU always uses ELF.
3200 # GNU tools are the only tools.
3203 xmake_file=x-linux # These details are the same as Linux.
3204 tmake_file=t-gnu # These are not.
3207 xmake_try_sysv=x-sysv
3208 install_headers_dir=install-headers-cpio
3211 install_headers_dir=install-headers-cpio
3215 # Distinguish i[34567]86
3216 # Also, do not run mips-tfile on MIPS if using gas.
3217 # Process --with-cpu= for PowerPC/rs6000
3218 target_cpu_default2=
3221 target_cpu_default2=1
3224 case $target_alias in
3226 target_cpu_default2=4
3229 target_cpu_default2=2
3233 i686-*-* | i786-*-*)
3234 target_cpu_default2=3
3239 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3242 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3245 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3248 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3251 target_cpu_default2="MASK_CPU_EV5"
3255 if test x$gas = xyes
3257 if test "$target_cpu_default2" = ""
3259 target_cpu_default2="MASK_GAS"
3261 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3266 case "x$with_cpu" in
3269 target_cpu_default2="TARGET_CPU_generic"
3272 # Distinguish cores, and major variants
3273 # arm7m doesn't exist, but D & I don't affect code
3274 xarm[236789] | xarm250 | xarm[67][01]0 \
3275 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3276 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3277 | xstrongarm | xstrongarm110 | xstrongarm1100)
3278 target_cpu_default2="TARGET_CPU_$with_cpu"
3282 echo "--with-cpu must be passed a value" 1>&2
3287 if test x$pass2done = xyes
3289 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3296 mips*-*-ecoff* | mips*-*-elf*)
3297 if test x$gas = xyes
3299 if test x$gnu_ld = xyes
3301 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3303 target_cpu_default2="MASK_GAS"
3308 if test x$gas = xyes
3310 target_cpu_default2="MASK_GAS"
3313 powerpc*-*-* | rs6000-*-*)
3314 case "x$with_cpu" in
3318 xcommon | xpower | xpower2 | xpowerpc | xrios \
3319 | xrios1 | xrios2 | xrsc | xrsc1 \
3320 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3321 | xec603e | x740 | x750 | x401 \
3322 | x403 | x505 | x801 | x821 | x823 | x860)
3323 target_cpu_default2="\"$with_cpu\""
3327 echo "--with-cpu must be passed a value" 1>&2
3332 if test x$pass2done = xyes
3334 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3341 case ".$with_cpu" in
3343 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3345 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3346 target_cpu_default2="TARGET_CPU_$with_cpu"
3349 if test x$pass2done = xyes
3351 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3359 if test "$target_cpu_default2" != ""
3361 if test "$target_cpu_default" != ""
3363 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3365 target_cpu_default=$target_cpu_default2
3369 # No need for collect2 if we have the GNU linker.
3370 # Actually, there is now; GNU ld doesn't handle the EH info or
3371 # collecting for shared libraries.
3378 # Save data on machine being used to compile GCC in build_xm_file.
3379 # Save data on host machine in vars host_xm_file and host_xmake_file.
3380 if test x$pass1done = x
3382 if test x"$xm_file" = x
3383 then build_xm_file=$cpu_type/xm-$cpu_type.h
3384 else build_xm_file=$xm_file
3386 build_xm_defines=$xm_defines
3387 build_install_headers_dir=$install_headers_dir
3388 build_exeext=$exeext
3391 if test x$pass2done = x
3393 if test x"$xm_file" = x
3394 then host_xm_file=$cpu_type/xm-$cpu_type.h
3395 else host_xm_file=$xm_file
3397 host_xm_defines=$xm_defines
3398 if test x"$xmake_file" = x
3399 then xmake_file=$cpu_type/x-$cpu_type
3401 host_xmake_file="$xmake_file"
3402 host_truncate_target=$truncate_target
3403 host_extra_gcc_objs=$extra_gcc_objs
3404 host_extra_objs=$extra_host_objs