1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
4 #This file is part of GNU CC.
6 #GNU CC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 2, or (at your option)
11 #GNU CC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GNU CC; see the file COPYING. If not, write to
18 #the Free Software Foundation, 59 Temple Place - Suite 330,
19 #Boston, MA 02111-1307, USA.
21 # This is the GCC build-, host- and target-specific configuration file
22 # where a configuration type, as recognized and generated by config.bfd,
23 # is mapped to different system-specific definitions and files. This is
24 # invoked by the autoconf-generated configure script, called for build,
25 # host and target in that order, setting ${machine} to each. Putting it
26 # in a separate shell file lets us skip running autoconf when modifying
27 # build-, host- and target-specific information.
29 # This file switches on the shell variable ${machine}, and also uses the
30 # following shell variables:
32 # with_* Various variables as set by configure.
34 # enable_threads_flag Either the name, yes or no depending on whether
35 # threads support was requested.
37 # gas_flag Either yes or no depending on whether GNU as was
40 # gnu_ld_flag Either yes or no depending on whether GNU ld was
43 # This file sets the following shell variables for use by the
44 # autoconf-generated configure script:
46 # cpu_type The name of the cpu, if different from machine.
48 # tm_file A list of target macro files, if different from
49 # "$cpu_type/$cpu_type.h".
51 # tm_p_file Location of file with declarations for functions
54 # out_file The name of the machine description C support
55 # file, if different from "$cpu_type/$cpu_type.c".
57 # md_file The name of the machine-description file, if
58 # different from "$cpu_type/$cpu_type.md".
60 # tmake_file A list of machine-description-specific
61 # makefile-fragments, if different from
62 # "$cpu_type/t-$cpu_type".
64 # float_format Set to the symbolic name for the floating-point
65 # formats used for this machine, if different from
66 # "i64". Used to derive a header file name to
67 # include, like "vax" for "float-vax.h". If no such
68 # file is wanted, set to "none".
70 # extra_objs List of extra objects that should be linked into
71 # the compiler proper (cc1, cc1obj, cc1plus)
72 # depending on target.
74 # extra_headers List of used header files from the directory
77 # host_xmake_file List of host-specific makefile-fragments.
79 # extra_passes List of extra executables compiled for this target
80 # machine, used for compiling from source to object.
82 # extra_parts List of extra object files that should be compiled
83 # for this target machine.
85 # extra_programs Like extra_passes, but these are used when linking.
87 # host_extra_objs List of extra host-dependant objects that should
88 # be linked into the compiler proper.
90 # host_extra_gcc_objs List of extra host-dependant objects that should
91 # be linked into the gcc driver.
93 # c_target_objs List of extra target-dependant objects that be
94 # linked into the C compiler only.
96 # cxx_target_objs List of extra target-dependant objects that be
97 # linked into the C++ compiler only.
99 # build_xm_defines List of macros to define when compiling for the
102 # build_xm_file List of files to include when compiling for the
105 # host_xm_defines List of macros to define when compiling for the
108 # host_xm_file List of files to include when compiling for the
111 # xm_defines List of macros to define when compiling for the
114 # xm_file List of files to include when compiling for the
117 # use_collect2 Set to yes or no, depending on whether collect2
120 # target_cpu_default Set to override the default target model.
122 # build_install_headers_dir
123 # Target to use when installing header files.
125 # host_truncate_target
126 # Non-empty if the target name should be truncated
127 # on this host, due to filename length issues.
129 # gdb_needs_out_file_path
130 # Set to yes if gdb needs a dir command with
131 # `dirname $out_file`.
133 # build_exeext Set to the suffix, if the build machine requires
134 # executables to have a file name suffix.
136 # host_exeext Set to the suffix, if the host machine requires
137 # executables to have a file name suffix.
139 # thread_file Set to control which thread package to use.
141 # gas Set to yes or no depending on whether the target
142 # system normally uses GNU as.
144 # The following variables are used in each case-construct to build up the
145 # outgoing variables:
147 # xmake_file Makefile-fragment when this system is as a host,
148 # for host_xmake_file.
150 # extra_host_objs List of extra objects that should be linked into
151 # the compiler proper when this system is a host,
152 # for host_extra_objs.
154 # install_headers_dir Makefile-target for how the header file directory
155 # is installed, when this system is a build system,
156 # for build_install_headers_dir.
158 # truncate_target Non-empty if the target name should be truncated
159 # when this system is a host, due to filename length
160 # issues. For host_truncate_target.
162 # exeext The suffix for executables on this system.
164 # gnu_ld Set to yes or no depending on whether the target
165 # system normally uses GNU ld.
181 # Set this to force installation and use of collect2.
183 # Set this to override the default target model.
185 # Set this to control how the header file directory is installed.
186 install_headers_dir=install-headers-tar
187 # Set this if directory names should be truncated to 14 characters.
189 # Set this if gdb needs a dir command with `dirname $out_file`
190 gdb_needs_out_file_path=
191 # Set this if the build machine requires executables to have a
194 # Set this to control which thread package will be used.
196 # Reinitialize these from the flag values every loop pass, since some
197 # configure entries modify them.
199 gnu_ld="$gnu_ld_flag"
200 enable_threads=$enable_threads_flag
202 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
203 # updated in each machine entry.
205 cpu_type=`echo $machine | sed 's/-.*$//'`
245 tm_file=${cpu_type}/${cpu_type}.h
246 xm_file=${cpu_type}/xm-${cpu_type}.h
247 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
249 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
251 # On a.out targets, we need to use collect2.
258 # Common parts for GNU/Linux, GNU/Hurd and OpenBSD systems.
264 # On the Hurd, the setup is just about the same on
265 # each different CPU. The specific machines that we
266 # support are matched above and just set $cpu_type.
267 xm_file="xm-gnu.h ${xm_file}"
268 tm_file=${cpu_type}/gnu.h
269 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
270 # GNU always uses ELF.
272 # GNU tools are the only tools.
275 # These details are the same as for Linux.
277 # But here we need a little extra magic.
278 tmake_file="t-linux t-gnu"
281 tm_file=${cpu_type}/openbsd.h
282 tmake_file="t-libc-ok t-openbsd"
283 # avoid surprises, always provide an xm-openbsd file
284 xm_file=${cpu_type}/xm-openbsd.h
285 # don't depend on processor x-fragments as well
287 if test x$enable_threads = xyes; then
289 tmake_file="${tmake_file} t-openbsd-thread"
295 # Support site-specific machine types.
297 cpu_type=`echo $machine | sed -e 's/-.*//'`
298 rest=`echo $machine | sed -e "s/$cpu_type-//"`
299 xm_file=${cpu_type}/xm-$rest.h
300 tm_file=${cpu_type}/$rest.h
301 if test -f $srcdir/config/${cpu_type}/x-$rest; \
302 then xmake_file=${cpu_type}/x-$rest; \
305 if test -f $srcdir/config/${cpu_type}/t-$rest; \
306 then tmake_file=${cpu_type}/t-$rest; \
312 a29k-*-bsd* | a29k-*-sym1*)
313 tm_file="${tm_file} a29k/unix.h"
315 xmake_file=a29k/x-unix
318 a29k-*-udi | a29k-*-coff)
319 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
320 tmake_file=a29k/t-a29kbare
324 tmake_file="a29k/t-a29kbare t-rtems"
325 if test x$enable_threads = xyes; then
330 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
331 tmake_file=a29k/t-vx29k
332 extra_parts="crtbegin.o crtend.o"
333 thread_file='vxworks'
335 a29k-*-*) # Default a29k environment.
339 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
341 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
342 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
344 # GAS + IEEE_CONFORMANT
345 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
347 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
348 xmake_file="x-interix alpha/t-pe"
349 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
350 if test x$enable_threads = xyes ; then
353 if test x$stabs = xyes ; then
354 tm_file="${tm_file} dbxcoff.h"
356 #prefix='$$INTERIX_ROOT'/usr/contrib
357 #local_prefix='$$INTERIX_ROOT'/usr/contrib
359 alpha*-*-linux*ecoff*)
360 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
361 target_cpu_default="MASK_GAS"
362 tmake_file="alpha/t-alpha alpha/t-ieee"
367 alpha*-*-linux*libc1*)
368 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
369 target_cpu_default="MASK_GAS"
370 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
371 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
374 if test x$enable_threads = xyes; then
379 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
380 target_cpu_default="MASK_GAS"
381 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
382 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
385 if test x$enable_threads = xyes; then
390 tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h"
391 target_cpu_default="MASK_GAS"
392 tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
393 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
397 case x${enable_threads} in
398 xyes | xpthreads | xposix)
400 tmake_file="${tmake_file} t-freebsd-thread"
405 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
406 target_cpu_default="MASK_GAS"
407 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
408 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
414 # default x-alpha is only appropriate for dec-osf.
415 target_cpu_default="MASK_GAS"
416 tmake_file="alpha/t-alpha alpha/t-ieee"
420 if test x$stabs = xyes
422 tm_file="${tm_file} dbx.h"
424 if test x$gas != xyes
426 extra_passes="mips-tfile mips-tdump"
429 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
430 xmake_file=alpha/x-osf
433 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
436 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
439 tm_file="${tm_file} alpha/osf.h"
440 tmake_file="$tmake_file alpha/t-osf4"
441 # Some versions of OSF4 (specifically X4.0-9 296.7) have
442 # a broken tar, so we use cpio instead.
443 install_headers_dir=install-headers-cpio
446 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
447 tmake_file="$tmake_file alpha/t-osf4"
451 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
452 target_cpu_default=MASK_SUPPORT_ARCH
457 tm_file="${tm_file} dbx.h alpha/vxworks.h"
458 tmake_file="alpha/t-alpha alpha/t-ieee"
461 extra_passes="mips-tfile mips-tdump"
464 thread_file='vxworks'
467 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
468 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
469 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
470 xmake_file=winnt/x-winnt
471 extra_host_objs=oldnames.o
472 extra_gcc_objs="spawnv.o oldnames.o"
473 if test x$gnu_ld != xyes
475 extra_programs=ld.exe
477 if test x$enable_threads = xyes; then
483 xm_file="${xm_file} alpha/xm-vms.h"
484 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
487 tm_file=arm/rtems-elf.h
488 tmake_file="arm/t-arm-elf t-rtems"
489 if test x$enable_threads = xyes; then
492 extra_parts="crtinit.o crtfini.o"
495 extra_parts="crtinit.o crtfini.o"
497 arm-*-coff* | armel-*-coff*)
499 tmake_file=arm/t-arm-coff
503 tmake_file=arm/t-arm-coff
504 thread_file='vxworks'
506 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
507 tm_file=arm/riscix1-1.h
510 arm-*-riscix*) # Acorn RISC machine
513 tm_file=arm/rix-gas.h
517 xmake_file=arm/x-riscix
518 tmake_file=arm/t-riscix
521 arm-semi-aout | armel-semi-aout)
523 tmake_file=arm/t-semi
525 arm-semi-aof | armel-semi-aof)
526 tm_file=arm/semiaof.h
527 tmake_file=arm/t-semiaof
531 tmake_file="t-netbsd arm/t-netbsd"
534 arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
535 xm_file=arm/xm-linux.h
537 tm_file="arm/linux-oldld.h arm/linux-elf.h"
540 tm_file="arm/linux-elf26.h $tm_file"
543 tmake_file="t-linux arm/t-linux"
544 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
546 case x${enable_threads} in
547 x | xyes | xpthreads | xposix)
552 arm*-*-linux*) # ARM GNU/Linux with ELF
553 xm_file=arm/xm-linux.h
555 tm_file="arm/linux-elf.h"
558 tm_file="arm/linux-elf26.h $tm_file"
561 tmake_file="t-linux arm/t-linux"
562 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
564 case x${enable_threads} in
565 x | xyes | xpthreads | xposix)
570 arm*-*-uclinux*) # ARM ucLinux
571 tm_file=arm/uclinux-elf.h
572 tmake_file=arm/t-arm-elf
576 tmake_file=arm/t-arm-aout
579 tm_file=arm/ecos-elf.h
580 tmake_file=arm/t-arm-elf
583 tm_file=arm/unknown-elf.h
584 tmake_file=arm/t-arm-elf
587 tm_file=arm/conix-elf.h
588 tmake_file=arm/t-arm-elf
591 tm_file=arm/unknown-elf-oabi.h
592 tmake_file=arm/t-arm-elf
601 c1-convex-*) # Convex C1
605 c2-convex-*) # Convex C2
618 target_cpu_default=16
623 tmake_file="c4x/t-c4x t-rtems"
625 if test x$enable_threads = xyes; then
634 clipper-intergraph-clix*)
635 tm_file="${tm_file} svr3.h clipper/clix.h"
636 xm_file=clipper/xm-clix.h
637 xmake_file=clipper/x-clix
638 extra_headers=va-clipper.h
639 extra_parts="crtbegin.o crtend.o"
640 install_headers_dir=install-headers-cpio
651 tm_file="fr30/fr30.h"
652 tmake_file=fr30/t-fr30
653 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
656 tmake_file="h8300/t-h8300 t-rtems"
657 tm_file=h8300/rtems.h
658 if test x$enable_threads = xyes; then
667 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
668 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
669 tmake_file="t-linux pa/t-linux"
670 extra_parts="crtbegin.o crtend.o"
673 if test x$enable_threads = xyes; then
678 target_cpu_default="MASK_PA_11"
679 tmake_file=pa/t-openbsd
682 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
683 xm_file=pa/xm-papro.h
684 tmake_file="pa/t-pro t-rtems"
685 if test x$enable_threads = xyes; then
690 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
691 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
692 xm_file=pa/xm-papro.h
696 target_cpu_default="MASK_PA_11"
697 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
701 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
702 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
703 xm_file=pa/xm-papro.h
707 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
711 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
712 target_cpu_default="MASK_PA_11"
716 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
720 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
721 xm_file=pa/xm-pahpux.h
722 xmake_file=pa/x-pa-hpux
725 tm_file="${tm_file} pa/gas.h"
727 install_headers_dir=install-headers-cpio
730 hppa1.0-*-hpux8.0[0-2]*)
731 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
732 xm_file=pa/xm-pahpux.h
733 xmake_file=pa/x-pa-hpux
736 tm_file="${tm_file} pa/pa-gas.h"
738 tm_file="pa/pa-oldas.h ${tm_file}"
740 install_headers_dir=install-headers-cpio
743 hppa1.1-*-hpux8.0[0-2]*)
744 target_cpu_default="MASK_PA_11"
745 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
746 xm_file=pa/xm-pahpux.h
747 xmake_file=pa/x-pa-hpux
750 tm_file="${tm_file} pa/pa-gas.h"
752 tm_file="pa/pa-oldas.h ${tm_file}"
754 install_headers_dir=install-headers-cpio
758 target_cpu_default="MASK_PA_11"
759 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
760 xm_file=pa/xm-pahpux.h
761 xmake_file=pa/x-pa-hpux
764 tm_file="${tm_file} pa/pa-gas.h"
766 install_headers_dir=install-headers-cpio
770 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
771 xm_file=pa/xm-pahpux.h
772 xmake_file=pa/x-pa-hpux
775 tm_file="${tm_file} pa/pa-gas.h"
777 install_headers_dir=install-headers-cpio
780 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
781 target_cpu_default="MASK_PA_11"
782 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
784 xm_file=pa/xm-pahpux.h
785 xmake_file=pa/x-pa-hpux
789 tm_file="${tm_file} pa/pa-gas.h"
791 if test x$enable_threads = x; then
792 enable_threads=$have_pthread_h
794 case x${enable_threads} in
796 tmake_file="${tmake_file} pa/t-dce-thr"
799 install_headers_dir=install-headers-cpio
803 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
805 xm_file=pa/xm-pahpux.h
806 xmake_file=pa/x-pa-hpux
810 tm_file="${tm_file} pa/pa-gas.h"
812 if test x$enable_threads = x; then
813 enable_threads=$have_pthread_h
815 case x${enable_threads} in
817 tmake_file="${tmake_file} pa/t-dce-thr"
820 install_headers_dir=install-headers-cpio
824 target_cpu_default="MASK_PA_11"
825 xm_file=pa/xm-pa64hpux.h
826 xmake_file=pa/x-pa-hpux
828 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"
831 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
835 tm_file="${tm_file} pa/pa-gas.h"
837 # if [ x$enable_threads = x ]; then
838 # enable_threads=$have_pthread_h
840 # if [ x$enable_threads = xyes ]; then
842 # tmake_file="${tmake_file} pa/t-dce-thr"
844 install_headers_dir=install-headers-cpio
847 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
848 target_cpu_default="MASK_PA_11"
849 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
851 xm_file=pa/xm-pahpux.h
852 xmake_file=pa/x-pa-hpux
856 tm_file="${tm_file} pa/pa-gas.h"
858 # if test x$enable_threads = x; then
859 # enable_threads=$have_pthread_h
861 # if test x$enable_threads = xyes; then
863 # tmake_file="${tmake_file} pa/t-dce-thr"
865 install_headers_dir=install-headers-cpio
869 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
871 xm_file=pa/xm-pahpux.h
872 xmake_file=pa/x-pa-hpux
875 tm_file="${tm_file} pa/pa-gas.h"
877 # if test x$enable_threads = x; then
878 # enable_threads=$have_pthread_h
880 # if test x$enable_threads = xyes; then
882 # tmake_file="${tmake_file} pa/t-dce-thr"
884 install_headers_dir=install-headers-cpio
887 hppa1.1-*-hpux* | hppa2*-*-hpux*)
888 target_cpu_default="MASK_PA_11"
889 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
890 xm_file=pa/xm-pahpux.h
891 xmake_file=pa/x-pa-hpux
894 tm_file="${tm_file} pa/pa-gas.h"
896 install_headers_dir=install-headers-cpio
900 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
901 xm_file=pa/xm-pahpux.h
902 xmake_file=pa/x-pa-hpux
905 tm_file="${tm_file} pa/pa-gas.h"
907 install_headers_dir=install-headers-cpio
910 hppa1.1-*-hiux* | hppa2*-*-hiux*)
911 target_cpu_default="MASK_PA_11"
912 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
913 xm_file=pa/xm-pahpux.h
914 xmake_file=pa/x-pa-hpux
917 tm_file="${tm_file} pa/pa-gas.h"
919 install_headers_dir=install-headers-cpio
923 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
924 xm_file=pa/xm-pahpux.h
925 xmake_file=pa/x-pa-hpux
928 tm_file="${tm_file} pa/pa-gas.h"
930 install_headers_dir=install-headers-cpio
934 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
935 target_cpu_default="MASK_PA_11"
939 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
940 xm_file=pa/xm-pampeix.h
941 xmake_file=pa/x-pa-mpeix
942 echo "You must use gas. Assuming it is already installed."
943 install_headers_dir=install-headers-tar
946 i370-*-opened*) # IBM 360/370/390 Architecture
953 xm_file=i370/xm-mvs.h
955 tmake_file=i370/t-mvs
958 xm_file="xm-linux.h i370/xm-linux.h"
960 tm_file="i370/linux.h ${tm_file}"
961 tmake_file="t-linux i370/t-linux"
963 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
964 # extra_parts="crtbegin.o crtend.o"
968 if test x$enable_threads = xyes; then
973 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
974 tm_file=i386/i386elf.h
975 tmake_file=i386/t-i386elf
978 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
981 tm_file=i386/aix386.h
982 extra_parts="crtbegin.o crtend.o"
983 tmake_file=i386/t-crtstuff
985 tm_file=i386/aix386ng.h
988 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
990 xmake_file=i386/x-aix
992 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
993 xm_file="xm-alloca.h ${xm_file}"
994 xm_defines="USG POSIX SMALL_ARG_MAX"
995 xmake_file=i386/x-ncr3000
996 if test x$stabs = xyes -a x$gas = xyes
998 tm_file=i386/sysv4gdb.h
1000 tm_file=i386/sysv4.h
1002 extra_parts="crtbegin.o crtend.o"
1003 tmake_file=i386/t-crtpic
1007 xm_file=i386/xm-next.h
1008 tmake_file=i386/t-next
1009 xmake_file=i386/x-next
1010 extra_objs=nextstep.o
1011 extra_parts="crtbegin.o crtend.o"
1012 if test x$enable_threads = xyes; then
1016 i[34567]86-*-netware) # Intel 80386's running netware
1017 tm_file=i386/netware.h
1018 tmake_file=i386/t-netware
1020 i[34567]86-sequent-bsd*) # 80386 from Sequent
1022 if test x$gas = xyes
1024 tm_file=i386/seq-gas.h
1026 tm_file=i386/sequent.h
1029 i[34567]86-sequent-ptx1*)
1030 xm_defines="USG SVR3"
1031 xmake_file=i386/x-sysv3
1032 tm_file=i386/seq-sysv3.h
1033 tmake_file=i386/t-crtstuff
1034 extra_parts="crtbegin.o crtend.o"
1035 install_headers_dir=install-headers-cpio
1037 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1038 xm_defines="USG SVR3"
1039 xmake_file=i386/x-sysv3
1040 tm_file=i386/seq2-sysv3.h
1041 tmake_file=i386/t-crtstuff
1042 extra_parts="crtbegin.o crtend.o"
1043 install_headers_dir=install-headers-cpio
1045 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1046 xm_file="xm-alloca.h ${xm_file}"
1047 xm_defines="USG POSIX SMALL_ARG_MAX"
1049 tm_file=i386/ptx4-i.h
1051 extra_parts="crtbegin.o crtend.o"
1052 install_headers_dir=install-headers-cpio
1054 i386-sun-sunos*) # Sun i386 roadrunner
1059 i[34567]86-wrs-vxworks*)
1060 tm_file=i386/vxi386.h
1061 tmake_file=i386/t-i386bare
1062 thread_file='vxworks'
1065 tm_file=i386/i386-aout.h
1066 tmake_file=i386/t-i386bare
1068 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1069 xm_file=i386/xm-beos.h
1070 tmake_file='i386/t-beos i386/t-crtpic'
1071 tm_file=i386/beos-elf.h
1072 xmake_file=i386/x-beos
1073 extra_parts='crtbegin.o crtend.o'
1075 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1076 tm_file=i386/bsd386.h
1077 # tmake_file=t-libc-ok
1080 tm_file=i386/386bsd.h
1081 # tmake_file=t-libc-ok
1082 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1085 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1086 tm_file="i386/freebsd-aout.h i386/perform.h"
1087 tmake_file=t-freebsd
1089 i[34567]86-*-freebsd*)
1090 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h"
1091 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1092 tmake_file=t-freebsd
1096 case x${enable_threads} in
1097 xyes | xpthreads | xposix)
1099 tmake_file="${tmake_file} t-freebsd-thread"
1103 i[34567]86-*-netbsd*)
1104 tm_file=i386/netbsd.h
1108 i[34567]86-*-openbsd*)
1109 # we need collect2 until our bug is fixed...
1113 tm_file=i386/i386-coff.h
1114 tmake_file=i386/t-i386bare
1116 i[34567]86-*-isc*) # 80386 running ISC system
1117 xm_file="${xm_file} i386/xm-isc.h"
1118 xm_defines="USG SVR3"
1120 i[34567]86-*-isc[34]*)
1121 xmake_file=i386/x-isc3
1124 xmake_file=i386/x-isc
1127 if test x$gas = xyes -a x$stabs = xyes
1129 tm_file=i386/iscdbx.h
1130 tmake_file=i386/t-svr3dbx
1131 extra_parts="svr3.ifile svr3z.ifile"
1133 tm_file=i386/isccoff.h
1134 tmake_file=i386/t-crtstuff
1135 extra_parts="crtbegin.o crtend.o"
1137 tmake_file="$tmake_file i386/t-i386bare"
1138 install_headers_dir=install-headers-cpio
1140 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1141 # with a.out format using
1143 xmake_file=x-linux-aout
1144 tmake_file="t-linux-aout i386/t-crtstuff"
1145 tm_file=i386/linux-oldld.h
1149 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1151 xmake_file=x-linux-aout
1152 tmake_file="t-linux-aout i386/t-crtstuff"
1153 tm_file=i386/linux-aout.h
1157 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1158 # with ELF format using the
1159 # GNU/Linux C library 5
1161 tm_file=i386/linux.h
1162 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1163 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1166 if test x$enable_threads = xyes; then
1167 thread_file='single'
1170 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1171 # with ELF format using glibc 2
1172 # aka GNU/Linux C library 6
1174 tm_file=i386/linux.h
1175 tmake_file="t-linux i386/t-crtstuff"
1176 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1179 if test x$enable_threads = xyes; then
1186 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1187 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1190 i[34567]86-pc-msdosdjgpp*)
1191 xm_file=i386/xm-djgpp.h
1192 tm_file=i386/djgpp.h
1193 tmake_file=i386/t-djgpp
1194 xmake_file=i386/x-djgpp
1199 case $host in *pc-msdosdjgpp*)
1204 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1206 tmake_file=t-libc-ok
1210 i[34567]86-*-lynxos*)
1211 if test x$gas = xyes
1215 tm_file=i386/lynx-ng.h
1217 xm_file=i386/xm-lynx.h
1218 tmake_file=i386/t-i386bare
1223 # tmake_file=t-libc-ok
1226 i[34567]86-*-osfrose*) # 386 using OSF/rose
1227 if test x$elf = xyes
1229 tm_file=i386/osfelf.h
1232 tm_file=i386/osfrose.h
1235 xm_file="i386/xm-osf.h ${xm_file}"
1236 xmake_file=i386/x-osfrose
1237 tmake_file=i386/t-osf
1238 extra_objs=halfpic.o
1240 i[34567]86-go32-rtems*)
1242 xm_file=i386/xm-go32.h
1243 tm_file=i386/go32-rtems.h
1244 tmake_file="i386/t-go32 t-rtems"
1245 if test x$enable_threads = xyes; then
1249 i[34567]86-*-rtemscoff*)
1251 tm_file=i386/rtems.h
1252 tmake_file="i386/t-i386bare t-rtems"
1253 if test x$enable_threads = xyes; then
1257 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1259 tm_file=i386/rtemself.h
1260 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1261 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1262 if test x$enable_threads = xyes; then
1266 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1267 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1268 xm_defines="USG SVR3"
1269 xmake_file=i386/x-sco5
1270 install_headers_dir=install-headers-cpio
1272 if test x$gas = xyes
1274 tm_file="i386/sco5gas.h ${tm_file}"
1275 tmake_file=i386/t-sco5gas
1277 tmake_file=i386/t-sco5
1279 tmake_file="$tmake_file i386/t-i386bare"
1280 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1282 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1283 xm_file="${xm_file} i386/xm-sco.h"
1284 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1285 xmake_file=i386/x-sco4
1286 install_headers_dir=install-headers-cpio
1287 if test x$stabs = xyes
1289 tm_file=i386/sco4dbx.h
1290 tmake_file=i386/t-svr3dbx
1291 extra_parts="svr3.ifile svr3z.rfile"
1294 tmake_file=i386/t-crtstuff
1295 extra_parts="crtbegin.o crtend.o"
1297 tmake_file="$tmake_file i386/t-i386bare"
1298 # The default EAFS filesystem supports long file names.
1299 # Truncating the target makes $host != $target which
1300 # makes gcc think it is doing a cross-compile.
1301 # truncate_target=yes
1303 i[34567]86-*-sco*) # 80386 running SCO system
1304 xm_file=i386/xm-sco.h
1305 xmake_file=i386/x-sco
1306 install_headers_dir=install-headers-cpio
1307 if test x$stabs = xyes
1309 tm_file=i386/scodbx.h
1310 tmake_file=i386/t-svr3dbx
1311 extra_parts="svr3.ifile svr3z.rfile"
1314 extra_parts="crtbegin.o crtend.o"
1315 tmake_file=i386/t-crtstuff
1317 tmake_file="$tmake_file i386/t-i386bare"
1320 i[34567]86-*-solaris2*)
1321 xm_file="xm-alloca.h ${xm_file}"
1322 xm_defines="USG POSIX SMALL_ARG_MAX"
1324 if test x$gas = xyes; then
1325 # Only needed if gas does not support -s
1326 tm_file="i386/sol2gas.h ${tm_file}"
1328 tmake_file="i386/t-i386bare i386/t-sol2"
1329 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1331 if test x${enable_threads} = x; then
1332 enable_threads=$have_pthread_h
1333 if test x${enable_threads} = x; then
1334 enable_threads=$have_thread_h
1337 if test x${enable_threads} = xyes; then
1338 if test x${have_pthread_h} = xyes; then
1341 thread_file='solaris'
1345 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1346 xm_file="xm-alloca.h ${xm_file}"
1347 xm_defines="USG POSIX"
1348 tm_file=i386/sysv5.h
1349 if test x$stabs = xyes
1351 tm_file="${tm_file} dbx.h"
1353 tmake_file="i386/t-i386bare i386/t-crtpic"
1355 extra_parts="crtbegin.o crtend.o"
1356 if test x$enable_threads = xyes; then
1360 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1361 xm_file="xm-alloca.h ${xm_file}"
1362 xm_defines="USG POSIX SMALL_ARG_MAX"
1363 tm_file=i386/sysv4.h
1364 if test x$stabs = xyes
1366 tm_file="${tm_file} dbx.h"
1368 tmake_file="i386/t-i386bare i386/t-crtpic"
1370 extra_parts="crtbegin.o crtend.o"
1372 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1373 xm_file="xm-alloca.h ${xm_file}"
1374 xm_defines="USG POSIX"
1376 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1378 extra_parts="crtbegin.o crtend.o"
1379 install_headers_dir=install-headers-cpio
1381 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1383 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1384 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1385 if test x$stabs = xyes
1387 tm_file=i386/osf1elfgdb.h
1389 tm_file=i386/osf1elf.h
1391 tmake_file=i386/t-osf1elf
1392 xmake_file=i386/x-osf1elf
1393 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1395 i[34567]86-*-sysv*) # Intel 80386's running system V
1396 xm_defines="USG SVR3"
1397 xmake_file=i386/x-sysv3
1398 if test x$gas = xyes
1400 if test x$stabs = xyes
1402 tm_file=i386/svr3dbx.h
1403 tmake_file=i386/t-svr3dbx
1404 extra_parts="svr3.ifile svr3z.rfile"
1406 tm_file=i386/svr3gas.h
1407 extra_parts="crtbegin.o crtend.o"
1408 tmake_file=i386/t-crtstuff
1411 tm_file=i386/sysv3.h
1412 extra_parts="crtbegin.o crtend.o"
1413 tmake_file=i386/t-crtstuff
1415 tmake_file="$tmake_file i386/t-crtpic"
1417 i386-*-vsta) # Intel 80386's running VSTa kernel
1418 xm_file="${xm_file} i386/xm-vsta.h"
1420 tmake_file=i386/t-vsta
1421 xmake_file=i386/x-vsta
1424 xm_file="${xm_file} i386/xm-cygwin.h"
1426 tmake_file=i386/t-cygwin
1427 tm_file=i386/win32.h
1428 xmake_file=i386/x-cygwin
1430 if test x$enable_threads = xyes; then
1435 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1436 xm_file="${xm_file} i386/xm-cygwin.h"
1438 tmake_file=i386/t-cygwin
1439 tm_file=i386/cygwin.h
1440 xmake_file=i386/x-cygwin
1442 if test x$enable_threads = xyes; then
1447 i[34567]86-*-mingw32*)
1448 tm_file=i386/mingw32.h
1450 xm_file="${xm_file} i386/xm-mingw32.h"
1451 tmake_file="i386/t-cygwin i386/t-mingw32"
1453 xmake_file=i386/x-cygwin
1454 if test x$enable_threads = xyes; then
1461 *minwg32crt* | *mingw32*)
1462 tm_file="${tm_file} i386/crtdll.h"
1468 tmake_file="i386/t-cygwin i386/t-uwin"
1470 xmake_file=i386/x-cygwin
1471 if test x$enable_threads = xyes; then
1476 i[34567]86-*-interix*)
1477 tm_file="i386/i386-interix.h interix.h"
1478 xm_file="i386/xm-i386-interix.h xm-interix.h"
1480 tmake_file="i386/t-interix"
1481 extra_objs=interix.o
1482 xmake_file=x-interix
1483 if test x$enable_threads = xyes ; then
1486 if test x$stabs = xyes ; then
1487 tm_file="${tm_file} dbxcoff.h"
1490 i[34567]86-*-winnt3*)
1491 tm_file=i386/win-nt.h
1492 out_file=i386/i386.c
1493 xm_file="xm-winnt.h ${xm_file}"
1494 xmake_file=winnt/x-winnt
1495 tmake_file=i386/t-winnt
1496 extra_host_objs="winnt.o oldnames.o"
1497 extra_gcc_objs="spawnv.o oldnames.o"
1498 if test x$gnu_ld != xyes
1500 extra_programs=ld.exe
1502 if test x$enable_threads = xyes; then
1506 i[34567]86-dg-dgux*)
1507 xm_file="xm-alloca.h ${xm_file}"
1508 xm_defines="USG POSIX"
1509 out_file=i386/dgux.c
1511 tmake_file=i386/t-dgux
1512 xmake_file=i386/x-dgux
1513 install_headers_dir=install-headers-cpio
1515 i860-alliant-*) # Alliant FX/2800
1516 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1517 xm_file="${xm_file}"
1518 xmake_file=i860/x-fx2800
1519 tmake_file=i860/t-fx2800
1520 extra_parts="crtbegin.o crtend.o"
1523 tm_file="${tm_file} i860/bsd.h"
1524 if test x$gas = xyes
1526 tm_file="${tm_file} i860/bsd-gas.h"
1531 tm_file="${tm_file} i860/mach.h"
1532 tmake_file=t-libc-ok
1534 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1535 tm_file="${tm_file} svr3.h i860/paragon.h"
1536 xm_defines="USG SVR3"
1540 tm_file="${tm_file} svr3.h i860/sysv3.h"
1541 xm_defines="USG SVR3"
1542 xmake_file=i860/x-sysv3
1543 extra_parts="crtbegin.o crtend.o"
1546 tm_file="${tm_file} svr4.h i860/sysv4.h"
1547 xm_defines="USG SVR3"
1548 xmake_file=i860/x-sysv4
1550 extra_parts="crtbegin.o crtend.o"
1552 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1553 tm_file="${tm_file} i960/vx960.h"
1554 tmake_file=i960/t-vxworks960
1556 thread_file='vxworks'
1558 i960-wrs-vxworks5* | i960-wrs-vxworks)
1559 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1560 tmake_file=i960/t-vxworks960
1562 thread_file='vxworks'
1565 tm_file="${tm_file} i960/vx960.h"
1566 tmake_file=i960/t-vxworks960
1568 thread_file='vxworks'
1571 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1572 tmake_file=i960/t-960bare
1576 tmake_file="i960/t-960bare t-rtems"
1577 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1579 if test x$enable_threads = xyes; then
1583 i960-*-*) # Default i960 environment.
1588 tmake_file="ia64/t-ia64"
1589 target_cpu_default="0"
1590 if test x$gas = xyes
1592 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1594 if test x$gnu_ld = xyes
1596 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1601 tm_file=ia64/linux.h
1602 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
1603 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1604 if test x$enable_threads = xyes; then
1610 extra_parts="crtinit.o crtfini.o"
1612 # m68hc11 and m68hc12 share the same machine description.
1613 m68hc11-*-*|m6811-*-*)
1614 tm_file="m68hc11/m68hc11.h"
1615 xm_file="m68hc11/xm-m68hc11.h"
1616 tm_p_file="m68hc11/m68hc11-protos.h"
1617 md_file="m68hc11/m68hc11.md"
1618 out_file="m68hc11/m68hc11.c"
1619 tmake_file="m68hc11/t-m68hc11-gas"
1621 m68hc12-*-*|m6812-*-*)
1622 tm_file="m68hc11/m68hc12.h"
1623 tm_p_file="m68hc11/m68hc11-protos.h"
1624 xm_file="m68hc11/xm-m68hc11.h"
1625 md_file="m68hc11/m68hc11.md"
1626 out_file="m68hc11/m68hc11.c"
1627 tmake_file="m68hc11/t-m68hc11-gas"
1629 m68000-convergent-sysv*)
1631 xm_file="m68k/xm-3b1.h ${xm_file}"
1634 extra_headers=math-68881.h
1636 m68000-hp-bsd*) # HP 9000/200 running BSD
1637 tm_file=m68k/hp2bsd.h
1638 xmake_file=m68k/x-hp2bsd
1640 extra_headers=math-68881.h
1642 m68000-hp-hpux*) # HP 9000 series 300
1643 xm_file="xm-alloca.h ${xm_file}"
1645 if test x$gas = xyes
1647 xmake_file=m68k/x-hp320g
1648 tm_file=m68k/hp310g.h
1650 xmake_file=m68k/x-hp320
1651 tm_file=m68k/hp310.h
1653 install_headers_dir=install-headers-cpio
1655 extra_headers=math-68881.h
1660 extra_headers=math-68881.h
1663 tm_file=m68k/sun2o4.h
1665 extra_headers=math-68881.h
1668 xm_file="m68k/xm-3b1.h ${xm_file}"
1670 if test x$gas = xyes
1677 extra_headers=math-68881.h
1679 m68k-apple-aux*) # Apple Macintosh running A/UX
1680 xm_defines="USG AUX"
1681 tmake_file=m68k/t-aux
1682 install_headers_dir=install-headers-cpio
1683 extra_headers=math-68881.h
1684 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1686 if test "$gnu_ld" = yes
1688 tm_file="${tm_file} m68k/auxgld.h"
1690 tm_file="${tm_file} m68k/auxld.h"
1692 if test "$gas" = yes
1694 tm_file="${tm_file} m68k/auxgas.h"
1696 tm_file="${tm_file} m68k/auxas.h"
1698 tm_file="${tm_file} m68k/a-ux.h"
1702 tm_file=m68k/apollo68.h
1703 xmake_file=m68k/x-apollo68
1705 extra_headers=math-68881.h
1708 m68k-altos-sysv*) # Altos 3068
1709 if test x$gas = xyes
1711 tm_file=m68k/altos3068.h
1714 echo "The Altos is supported only with the GNU assembler" 1>&2
1717 extra_headers=math-68881.h
1719 m68k-bull-sysv*) # Bull DPX/2
1720 if test x$gas = xyes
1722 if test x$stabs = xyes
1724 tm_file=m68k/dpx2cdbx.h
1726 tm_file=m68k/dpx2g.h
1731 xm_file="xm-alloca.h ${xm_file}"
1733 xmake_file=m68k/x-dpx2
1735 extra_headers=math-68881.h
1737 m68k-atari-sysv4*) # Atari variant of V.4.
1738 tm_file=m68k/atari.h
1739 xm_file="xm-alloca.h ${xm_file}"
1740 xm_defines="USG FULL_PROTOTYPES"
1742 extra_parts="crtbegin.o crtend.o"
1743 extra_headers=math-68881.h
1746 m68k-motorola-sysv*)
1747 tm_file=m68k/mot3300.h
1748 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1749 if test x$gas = xyes
1751 xmake_file=m68k/x-mot3300-gas
1752 if test x$gnu_ld = xyes
1754 tmake_file=m68k/t-mot3300-gald
1756 tmake_file=m68k/t-mot3300-gas
1760 xmake_file=m68k/x-mot3300
1761 if test x$gnu_ld = xyes
1763 tmake_file=m68k/t-mot3300-gld
1765 tmake_file=m68k/t-mot3300
1769 gdb_needs_out_file_path=yes
1770 extra_parts="crt0.o mcrt0.o"
1771 extra_headers=math-68881.h
1774 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1775 tm_file=m68k/tower-as.h
1776 xm_defines="USG SVR3"
1777 xmake_file=m68k/x-tower
1778 extra_parts="crtbegin.o crtend.o"
1779 extra_headers=math-68881.h
1782 tm_file=m68k/plexus.h
1783 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1786 extra_headers=math-68881.h
1790 xm_file="xm-alloca.h ${xm_file}"
1792 extra_headers=math-68881.h
1795 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1796 xm_defines="USG unos"
1797 xmake_file=m68k/x-crds
1800 extra_headers=math-68881.h
1802 m68k-cbm-sysv4*) # Commodore variant of V.4.
1804 xm_file="xm-alloca.h ${xm_file}"
1805 xm_defines="USG FULL_PROTOTYPES"
1806 xmake_file=m68k/x-amix
1808 extra_parts="crtbegin.o crtend.o"
1809 extra_headers=math-68881.h
1813 tm_file=m68k/ccur-GAS.h
1814 xmake_file=m68k/x-ccur
1815 extra_headers=math-68881.h
1819 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1820 tm_file=m68k/hp3bsd44.h
1821 xmake_file=m68k/x-hp3bsd44
1823 extra_headers=math-68881.h
1826 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1827 tm_file=m68k/hp3bsd.h
1829 extra_headers=math-68881.h
1833 if test x$with_fp = xno
1835 tm_file=m68k/isi-nfp.h
1841 extra_headers=math-68881.h
1843 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1844 xm_file="xm-alloca.h ${xm_file}"
1846 if test x$gas = xyes
1848 xmake_file=m68k/x-hp320g
1849 tm_file=m68k/hp320g.h
1851 xmake_file=m68k/x-hp320
1852 tm_file=m68k/hpux7.h
1854 install_headers_dir=install-headers-cpio
1856 extra_headers=math-68881.h
1859 m68k-hp-hpux*) # HP 9000 series 300
1860 xm_file="xm-alloca.h ${xm_file}"
1862 if test x$gas = xyes
1864 xmake_file=m68k/x-hp320g
1865 tm_file=m68k/hp320g.h
1867 xmake_file=m68k/x-hp320
1868 tm_file=m68k/hp320.h
1870 install_headers_dir=install-headers-cpio
1872 extra_headers=math-68881.h
1876 tm_file=m68k/sun3mach.h
1878 extra_headers=math-68881.h
1882 if test x$gas = xyes
1884 tm_file=m68k/news3gas.h
1886 tm_file=m68k/news3.h
1889 extra_headers=math-68881.h
1892 m68k-sony-bsd* | m68k-sony-newsos*)
1893 if test x$gas = xyes
1895 tm_file=m68k/newsgas.h
1900 extra_headers=math-68881.h
1903 m68k-next-nextstep2*)
1904 tm_file=m68k/next21.h
1905 xm_file="m68k/xm-next.h ${xm_file}"
1906 tmake_file=m68k/t-next
1907 xmake_file=m68k/x-next
1908 extra_objs=nextstep.o
1909 extra_headers=math-68881.h
1913 m68k-next-nextstep[34]*)
1915 xm_file="m68k/xm-next.h ${xm_file}"
1916 tmake_file=m68k/t-next
1917 xmake_file=m68k/x-next
1918 extra_objs=nextstep.o
1919 extra_parts="crtbegin.o crtend.o"
1920 extra_headers=math-68881.h
1922 if test x$enable_threads = xyes; then
1927 if test x$with_fp = xno
1929 tm_file=m68k/sun3n3.h
1931 tm_file=m68k/sun3o3.h
1935 extra_headers=math-68881.h
1937 m68k-sun-sunos*) # For SunOS 4 (the default).
1938 if test x$with_fp = xno
1940 tm_file=m68k/sun3n.h
1946 extra_headers=math-68881.h
1949 tm_file=m68k/vxm68k.h
1950 tmake_file=m68k/t-vxworks68
1951 extra_headers=math-68881.h
1952 thread_file='vxworks'
1956 tmake_file=m68k/t-m68kbare
1957 tm_file="m68k/m68k-aout.h libgloss.h"
1958 extra_headers=math-68881.h
1962 tmake_file=m68k/t-m68kbare
1963 tm_file="m68k/m68k-coff.h dbx.h"
1964 extra_headers=math-68881.h
1967 m68020-*-elf* | m68k-*-elf*)
1968 tm_file="m68k/m68020-elf.h"
1969 xm_file=m68k/xm-m68kv.h
1970 tmake_file=m68k/t-m68kelf
1971 header_files=math-68881.h
1974 if test x$gas = xyes
1978 tm_file=m68k/lynx-ng.h
1980 xm_file=m68k/xm-lynx.h
1982 tmake_file=m68k/t-lynx
1983 extra_headers=math-68881.h
1987 tm_file=m68k/netbsd.h
1994 # we need collect2 until our bug is fixed...
1997 m68k-*-sysv3*) # Motorola m68k's running system V.3
1998 xm_file="xm-alloca.h ${xm_file}"
2000 xmake_file=m68k/x-m68kv
2001 extra_parts="crtbegin.o crtend.o"
2002 extra_headers=math-68881.h
2005 m68k-*-sysv4*) # Motorola m68k's running system V.4
2006 tm_file=m68k/m68kv4.h
2007 xm_file="xm-alloca.h ${xm_file}"
2010 extra_parts="crtbegin.o crtend.o"
2011 extra_headers=math-68881.h
2014 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2017 tm_file=m68k/linux-aout.h
2018 tmake_file="t-linux-aout m68k/t-linux-aout"
2019 extra_headers=math-68881.h
2023 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2024 # with ELF format using the
2025 # GNU/Linux C library 5
2027 tm_file=m68k/linux.h
2028 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2029 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2030 extra_headers=math-68881.h
2034 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2035 # with ELF format using glibc 2
2036 # aka the GNU/Linux C library 6.
2038 tm_file=m68k/linux.h
2039 tmake_file="t-linux m68k/t-linux"
2040 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2041 extra_headers=math-68881.h
2044 if test x$enable_threads = xyes; then
2049 tmake_file=m68k/t-m68kbare
2050 tm_file=m68k/m68k-psos.h
2051 extra_headers=math-68881.h
2055 tmake_file="m68k/t-m68kbare t-rtems"
2056 tm_file=m68k/rtems.h
2057 extra_headers=math-68881.h
2059 if test x$enable_threads = xyes; then
2063 m68k-*-rtemself*|m68k-*-rtems*)
2064 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2065 tm_file=m68k/rtemself.h
2066 extra_headers=math-68881.h
2068 if test x$enable_threads = xyes; then
2075 tm_file=m88k/dguxbcs.h
2076 tmake_file=m88k/t-dguxbcs
2080 tmake_file=m88k/t-dgux
2083 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2084 xmake_file=m88k/x-dgux
2085 if test x$gas = xyes
2087 tmake_file=m88k/t-dgux-gas
2090 m88k-dolphin-sysv3*)
2091 tm_file=m88k/dolph.h
2092 extra_parts="crtbegin.o crtend.o"
2093 xm_file="m88k/xm-sysv3.h ${xm_file}"
2094 xmake_file=m88k/x-dolph
2095 if test x$gas = xyes
2097 tmake_file=m88k/t-m88k-gas
2100 m88k-tektronix-sysv3)
2101 tm_file=m88k/tekXD88.h
2102 extra_parts="crtbegin.o crtend.o"
2103 xm_file="m88k/xm-sysv3.h ${xm_file}"
2104 xmake_file=m88k/x-tekXD88
2105 if test x$gas = xyes
2107 tmake_file=m88k/t-m88k-gas
2111 tm_file=m88k/m88k-aout.h
2114 tm_file=m88k/m88k-coff.h
2115 tmake_file=m88k/t-bug
2119 extra_parts="crtbegin.o crtend.o"
2120 if test x$gas = xyes
2122 tmake_file=m88k/t-luna-gas
2124 tmake_file=m88k/t-luna
2128 tmake_file="${tmake_file} m88k/t-luna-gas"
2129 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2130 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2133 tm_file=m88k/sysv3.h
2134 extra_parts="crtbegin.o crtend.o"
2135 xm_file="m88k/xm-sysv3.h ${xm_file}"
2136 xmake_file=m88k/x-sysv3
2137 if test x$gas = xyes
2139 tmake_file=m88k/t-m88k-gas
2143 tm_file=m88k/sysv4.h
2144 extra_parts="crtbegin.o crtend.o"
2145 xmake_file=m88k/x-sysv4
2146 tmake_file=m88k/t-sysv4
2149 tm_file=mcore/mcore-elf.h
2150 tmake_file=mcore/t-mcore
2153 tm_file=mcore/mcore-pe.h
2154 tmake_file=mcore/t-mcore-pe
2156 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2157 if test "x$gnu_ld" = xyes
2159 tm_file="mips/iris6.h mips/iris6gld.h"
2161 tm_file=mips/iris6.h
2163 tmake_file=mips/t-iris6
2164 xm_file=mips/xm-iris6.h
2165 xmake_file=mips/x-iris6
2166 # if test x$enable_threads = xyes; then
2167 # thread_file='irix'
2171 tm_file="mips/elf.h mips/vxworks.h"
2172 tmake_file=mips/t-ecoff
2175 extra_parts="crtbegin.o crtend.o"
2176 thread_file='vxworks'
2178 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2179 tm_file="mips/iris6.h mips/cross64.h"
2181 xm_file="mips/xm-iris5.h"
2182 xmake_file=mips/x-iris
2183 tmake_file=mips/t-cross64
2184 # See comment in mips/iris[56].h files.
2186 # if test x$enable_threads = xyes; then
2187 # thread_file='irix'
2191 if test x$gas = xyes
2193 if test x$stabs = xyes
2195 tm_file=mips/iris5gdb.h
2197 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2200 tm_file=mips/sni-svr4.h
2203 xmake_file=mips/x-sni-svr4
2204 tmake_file=mips/t-mips-gas
2205 if test x$gnu_ld != xyes
2210 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2211 if test x$gas = xyes
2213 tm_file="mips/iris5.h mips/iris5gas.h"
2214 if test x$stabs = xyes
2216 tm_file="${tm_file} dbx.h"
2219 tm_file=mips/iris5.h
2222 xm_file="mips/xm-iris5.h"
2223 xmake_file=mips/x-iris
2224 # mips-tfile doesn't work yet
2225 tmake_file=mips/t-mips-gas
2226 # See comment in mips/iris5.h file.
2228 # if test x$enable_threads = xyes; then
2229 # thread_file='irix'
2232 mips-sgi-irix4loser*) # Mostly like a MIPS.
2233 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2234 if test x$stabs = xyes; then
2235 tm_file="${tm_file} dbx.h"
2238 xmake_file=mips/x-iris
2239 if test x$gas = xyes
2241 tmake_file=mips/t-mips-gas
2243 extra_passes="mips-tfile mips-tdump"
2245 if test x$gnu_ld != xyes
2249 # if test x$enable_threads = xyes; then
2250 # thread_file='irix'
2253 mips-sgi-irix4*) # Mostly like a MIPS.
2254 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2255 if test x$stabs = xyes; then
2256 tm_file="${tm_file} dbx.h"
2259 xmake_file=mips/x-iris
2260 if test x$gas = xyes
2262 tmake_file=mips/t-mips-gas
2264 extra_passes="mips-tfile mips-tdump"
2266 if test x$gnu_ld != xyes
2270 # if test x$enable_threads = xyes; then
2271 # thread_file='irix'
2274 mips-sgi-*) # Mostly like a MIPS.
2275 tm_file="mips/iris3.h ${tm_file}"
2276 if test x$stabs = xyes; then
2277 tm_file="${tm_file} dbx.h"
2280 xmake_file=mips/x-iris3
2281 if test x$gas = xyes
2283 tmake_file=mips/t-mips-gas
2285 extra_passes="mips-tfile mips-tdump"
2287 if test x$gnu_ld != xyes
2292 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2293 tm_file="mips/osfrose.h ${tm_file}"
2294 xmake_file=mips/x-osfrose
2295 tmake_file=mips/t-osfrose
2296 extra_objs=halfpic.o
2299 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2300 tm_file=mips/dec-osf1.h
2301 if test x$stabs = xyes; then
2302 tm_file="${tm_file} dbx.h"
2304 xmake_file=mips/x-dec-osf1
2305 if test x$gas = xyes
2307 tmake_file=mips/t-mips-gas
2309 tmake_file=mips/t-ultrix
2310 extra_passes="mips-tfile mips-tdump"
2312 if test x$gnu_ld != xyes
2317 mips-dec-bsd*) # Decstation running 4.4 BSD
2318 tm_file=mips/dec-bsd.h
2319 if test x$gas = xyes
2321 tmake_file=mips/t-mips-gas
2323 tmake_file=mips/t-ultrix
2324 extra_passes="mips-tfile mips-tdump"
2326 if test x$gnu_ld != xyes
2331 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2332 tm_file=mips/netbsd.h
2333 # On NetBSD, the headers are already okay, except for math.h.
2336 mips*-*-linux*) # Linux MIPS, either endian.
2339 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2340 *) tm_file="mips/elf.h mips/linux.h" ;;
2343 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2346 if test x$enable_threads = xyes; then
2350 mips*el-*-openbsd*) # mips little endian
2351 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2353 mips*-*-openbsd*) # mips big endian
2354 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2355 tm_file="mips/openbsd-be.h ${tm_file}"
2357 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2358 tm_file="mips/news4.h ${tm_file}"
2359 if test x$stabs = xyes; then
2360 tm_file="${tm_file} dbx.h"
2362 if test x$gas = xyes
2364 tmake_file=mips/t-mips-gas
2366 extra_passes="mips-tfile mips-tdump"
2368 if test x$gnu_ld != xyes
2372 xmake_file=mips/x-sony
2374 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2375 # That is based on svr4.
2376 # t-svr4 is not right because this system doesn't use ELF.
2377 tm_file="mips/news5.h ${tm_file}"
2378 if test x$stabs = xyes; then
2379 tm_file="${tm_file} dbx.h"
2382 if test x$gas = xyes
2384 tmake_file=mips/t-mips-gas
2386 extra_passes="mips-tfile mips-tdump"
2388 if test x$gnu_ld != xyes
2393 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2394 tm_file="mips/svr4-5.h mips/svr4-t.h"
2395 if test x$stabs = xyes; then
2396 tm_file="${tm_file} dbx.h"
2399 xmake_file=mips/x-sysv
2400 if test x$gas = xyes
2402 tmake_file=mips/t-mips-gas
2403 extra_parts="crtbegin.o crtend.o"
2405 tmake_file=mips/t-mips
2406 extra_passes="mips-tfile mips-tdump"
2408 if test x$gnu_ld != xyes
2413 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2414 tm_file="mips/ultrix.h ${tm_file}"
2415 if test x$stabs = xyes; then
2416 tm_file="${tm_file} dbx.h"
2418 xmake_file=mips/x-ultrix
2419 if test x$gas = xyes
2421 tmake_file=mips/t-mips-gas
2423 tmake_file=mips/t-ultrix
2424 extra_passes="mips-tfile mips-tdump"
2426 if test x$gnu_ld != xyes
2431 mips-*-riscos[56789]bsd*)
2432 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2433 if test x$stabs = xyes; then
2434 tm_file="${tm_file} dbx.h"
2436 if test x$gas = xyes
2438 tmake_file=mips/t-bsd-gas
2440 tmake_file=mips/t-bsd
2441 extra_passes="mips-tfile mips-tdump"
2443 if test x$gnu_ld != xyes
2448 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2449 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2450 if test x$stabs = xyes; then
2451 tm_file="${tm_file} dbx.h"
2453 if test x$gas = xyes
2455 tmake_file=mips/t-bsd-gas
2457 tmake_file=mips/t-bsd
2458 extra_passes="mips-tfile mips-tdump"
2460 if test x$gnu_ld != xyes
2465 mips-*-riscos[56789]sysv4*)
2466 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2467 if test x$stabs = xyes; then
2468 tm_file="${tm_file} dbx.h"
2470 xmake_file=mips/x-sysv
2471 if test x$gas = xyes
2473 tmake_file=mips/t-svr4-gas
2475 tmake_file=mips/t-svr4
2476 extra_passes="mips-tfile mips-tdump"
2478 if test x$gnu_ld != xyes
2483 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2484 tm_file="mips/svr4-4.h ${tm_file}"
2485 if test x$stabs = xyes; then
2486 tm_file="${tm_file} dbx.h"
2489 xmake_file=mips/x-sysv
2490 if test x$gas = xyes
2492 tmake_file=mips/t-svr4-gas
2494 tmake_file=mips/t-svr4
2495 extra_passes="mips-tfile mips-tdump"
2497 if test x$gnu_ld != xyes
2502 mips-*-riscos[56789]sysv*)
2503 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2504 if test x$stabs = xyes; then
2505 tm_file="${tm_file} dbx.h"
2508 xmake_file=mips/x-sysv
2509 if test x$gas = xyes
2511 tmake_file=mips/t-svr3-gas
2513 tmake_file=mips/t-svr3
2514 extra_passes="mips-tfile mips-tdump"
2516 if test x$gnu_ld != xyes
2521 mips-*-sysv* | mips-*-riscos*sysv*)
2522 tm_file="mips/svr3-4.h ${tm_file}"
2523 if test x$stabs = xyes; then
2524 tm_file="${tm_file} dbx.h"
2527 xmake_file=mips/x-sysv
2528 if test x$gas = xyes
2530 tmake_file=mips/t-svr3-gas
2532 tmake_file=mips/t-svr3
2533 extra_passes="mips-tfile mips-tdump"
2535 if test x$gnu_ld != xyes
2540 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2541 tm_file=mips/mips-5.h
2542 if test x$stabs = xyes; then
2543 tm_file="${tm_file} dbx.h"
2545 if test x$gas = xyes
2547 tmake_file=mips/t-mips-gas
2549 extra_passes="mips-tfile mips-tdump"
2551 if test x$gnu_ld != xyes
2559 tm_file=mips/ecoffl.h
2560 if test x$stabs = xyes; then
2561 tm_file="${tm_file} dbx.h"
2563 tmake_file=mips/t-ecoff
2566 tm_file="gofast.h mips/ecoff.h"
2567 if test x$stabs = xyes; then
2568 tm_file="${tm_file} dbx.h"
2570 tmake_file=mips/t-ecoff
2573 tm_file="mips/elfl.h"
2574 tmake_file=mips/t-elf
2577 tm_file="mips/elf.h"
2578 tmake_file=mips/t-elf
2581 tm_file="mips/elfl64.h"
2582 tmake_file=mips/t-elf
2584 mips64orionel-*-elf*)
2585 tm_file="mips/elforion.h mips/elfl64.h"
2586 tmake_file=mips/t-elf
2589 tm_file="mips/elf64.h"
2590 tmake_file=mips/t-elf
2593 tm_file="mips/elforion.h mips/elf64.h"
2594 tmake_file=mips/t-elf
2596 mips64orion-*-rtems*)
2597 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2598 tmake_file="mips/t-elf t-rtems"
2599 if test x$enable_threads = xyes; then
2604 tm_file="mips/elf.h mips/rtems.h"
2605 tmake_file="mips/t-elf t-rtems"
2606 if test x$enable_threads = xyes; then
2611 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2612 tmake_file=mips/t-r3900
2615 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2616 tmake_file=mips/t-r3900
2618 mips-*-*) # Default MIPS RISC-OS 4.0.
2619 if test x$stabs = xyes; then
2620 tm_file="${tm_file} dbx.h"
2622 if test x$gas = xyes
2624 tmake_file=mips/t-mips-gas
2626 extra_passes="mips-tfile mips-tdump"
2628 if test x$gnu_ld != xyes
2636 tm_file="mn10200/mn10200.h"
2637 if test x$stabs = xyes
2639 tm_file="${tm_file} dbx.h"
2645 tm_file="mn10300/mn10300.h"
2646 if test x$stabs = xyes
2648 tm_file="${tm_file} dbx.h"
2653 tm_file=ns32k/encore.h
2657 tm_file=ns32k/sequent.h
2661 tm_file=ns32k/tek6100.h
2665 tm_file=ns32k/tek6200.h
2669 tm_file=ns32k/merlin.h
2673 tm_file=ns32k/pc532-mach.h
2677 tm_file=ns32k/pc532-min.h
2678 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2683 tm_file=ns32k/netbsd.h
2684 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2685 # On NetBSD, the headers are already okay, except for math.h.
2690 tm_file="${tm_file} pdp11/2bsd.h"
2700 tm_file="svr4.h pj/linux.h ${tm_file}"
2705 tm_file="svr4.h pj/pjl.h ${tm_file}"
2712 xmake_file=romp/x-mach
2719 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2723 tm_file=rs6000/beos.h
2724 xm_file=rs6000/xm-beos.h
2725 tmake_file=rs6000/t-beos
2726 xmake_file=rs6000/x-beos
2729 xm_file="rs6000/xm-rs6000.h rs6000/xm-darwin.h"
2730 xmake_file=rs6000/x-darwin
2733 tm_file=rs6000/sysv4.h
2734 xm_file="rs6000/xm-sysv4.h"
2735 xm_defines="USG POSIX"
2736 extra_headers=ppc-asm.h
2737 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2738 xmake_file=rs6000/x-sysv4
2741 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2742 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2743 extra_headers=ppc-asm.h
2746 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2747 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2748 extra_headers=ppc-asm.h
2751 tm_file="rs6000/sysv4.h"
2752 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2753 extra_headers=ppc-asm.h
2756 tm_file="rs6000/sysv4.h rs6000/eabi.h"
2757 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2758 extra_headers=ppc-asm.h
2761 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
2762 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2763 extra_headers=ppc-asm.h
2764 if test x$enable_threads = xyes; then
2768 powerpc-*-linux*libc1)
2769 tm_file="rs6000/sysv4.h rs6000/linux.h"
2770 xm_file=rs6000/xm-sysv4.h
2771 out_file=rs6000/rs6000.c
2772 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2774 extra_headers=ppc-asm.h
2775 if test x$enable_threads = xyes; then
2780 tm_file="rs6000/sysv4.h rs6000/linux.h"
2781 xm_file="rs6000/xm-sysv4.h"
2782 xm_defines="USG ${xm_defines}"
2783 out_file=rs6000/rs6000.c
2784 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2786 extra_headers=ppc-asm.h
2787 if test x$enable_threads = xyes; then
2791 powerpc-wrs-vxworks*)
2793 xm_file="rs6000/xm-sysv4.h"
2794 xm_defines="USG POSIX"
2795 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
2796 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2797 extra_headers=ppc-asm.h
2798 thread_file='vxworks'
2800 powerpcle-wrs-vxworks*)
2802 xm_file="rs6000/xm-sysv4.h"
2803 xm_defines="USG POSIX"
2804 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2805 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2806 extra_headers=ppc-asm.h
2807 thread_file='vxworks'
2810 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
2811 xm_file="rs6000/xm-sysv4.h"
2812 xm_defines="USG POSIX"
2813 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2814 xmake_file=rs6000/x-sysv4
2815 extra_headers=ppc-asm.h
2818 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
2819 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2820 extra_headers=ppc-asm.h
2822 powerpcle-*-eabisim*)
2823 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2824 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2825 extra_headers=ppc-asm.h
2828 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2829 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2830 extra_headers=ppc-asm.h
2832 powerpcle-*-solaris2*)
2833 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2834 xm_file="rs6000/xm-sysv4.h"
2835 xm_defines="USG POSIX"
2836 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2837 xmake_file=rs6000/x-sysv4
2838 extra_headers=ppc-asm.h
2840 rs6000-ibm-aix3.[01]*)
2841 tm_file=rs6000/aix31.h
2842 xmake_file=rs6000/x-aix31
2846 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2847 tm_file=rs6000/aix3newas.h
2848 if test x$host != x$target
2850 tmake_file=rs6000/t-xnewas
2852 tmake_file=rs6000/t-newas
2857 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2858 tm_file=rs6000/aix41.h
2859 if test x$host != x$target
2861 tmake_file=rs6000/t-xnewas
2863 tmake_file=rs6000/t-newas
2865 if test "$gnu_ld" = yes
2867 xmake_file=rs6000/x-aix41-gld
2869 tmake_file='rs6000/t-newas'
2871 xmake_file=rs6000/x-aix41
2875 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2876 tm_file=rs6000/aix43.h
2877 tmake_file=rs6000/t-aix43
2878 xmake_file=rs6000/x-aix41
2883 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2884 tm_file=rs6000/aix43.h
2885 tmake_file=rs6000/t-aix43
2886 xmake_file=rs6000/x-aix41
2900 tm_file=rs6000/mach.h
2901 xm_file="${xm_file} rs6000/xm-mach.h"
2902 xmake_file=rs6000/x-mach
2906 tm_file=rs6000/lynx.h
2907 xm_file=rs6000/xm-lynx.h
2908 tmake_file=rs6000/t-rs6000
2909 xmake_file=rs6000/x-lynx
2913 tmake_file="sh/t-sh sh/t-elf"
2914 tm_file="sh/sh.h sh/elf.h"
2918 tmake_file="sh/t-sh sh/t-elf t-rtems"
2919 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2921 if test x$enable_threads = xyes; then
2926 tmake_file="sh/t-sh t-rtems"
2927 tm_file="sh/sh.h sh/rtems.h"
2929 if test x$enable_threads = xyes; then
2934 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2935 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2938 if test x$enable_threads = xyes; then
2948 xm_file="xm-alloca.h ${xm_file}"
2951 sparc64-wrs-vxworks*)
2952 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2953 tmake_file=sparc/t-vxsparc64
2956 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2957 tm_file=sparc/vxsparc.h
2958 tmake_file=sparc/t-vxsparc
2960 thread_file='vxworks'
2963 tmake_file=sparc/t-sparcbare
2964 tm_file="sparc/aout.h libgloss.h"
2967 tm_file=sparc/netbsd.h
2972 # we need collect2 until our bug is fixed...
2979 tm_file="sparc/sol2.h sparc/elf.h"
2980 tmake_file=sparc/t-elf
2981 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2985 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2986 xm_file="${xm_file} sparc/xm-linux.h"
2987 tm_file=sparc/linux-aout.h
2991 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2992 xm_file="${xm_file} sparc/xm-linux.h"
2994 tm_file=sparc/linux.h
2995 tmake_file="t-linux t-linux-gnulibc1"
2996 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3000 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3001 xm_file="${xm_file} sparc/xm-linux.h"
3003 tm_file=sparc/linux.h
3004 tmake_file="t-linux"
3005 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3007 if test x$enable_threads = xyes; then
3013 if test x$gas = xyes
3015 tm_file=sparc/lynx.h
3017 tm_file=sparc/lynx-ng.h
3019 xm_file=sparc/xm-lynx.h
3020 tmake_file=sparc/t-sunos41
3024 tmake_file="sparc/t-sparcbare t-rtems"
3025 tm_file=sparc/rtems.h
3026 if test x$enable_threads = xyes; then
3030 sparc-*-rtems*|sparc-*-rtemself*)
3031 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
3032 tmake_file="sparc/t-elf t-rtems"
3033 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3036 if test x$enable_threads = xyes; then
3040 sparcv9-*-solaris2*)
3041 if test x$gnu_ld = xyes
3043 tm_file=sparc/sol2-64.h
3045 tm_file=sparc/sol2-sld-64.h
3047 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3048 xm_defines="USG POSIX"
3049 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3050 if test x$gnu_ld = xyes; then
3051 tmake_file="$tmake_file sparc/t-slibgcc"
3053 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3055 xmake_file=sparc/x-sysv4
3056 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3058 if test x${enable_threads} = x ; then
3059 enable_threads=$have_pthread_h
3060 if test x${enable_threads} = x ; then
3061 enable_threads=$have_thread_h
3064 if test x${enable_threads} = xyes ; then
3065 if test x${have_pthread_h} = xyes ; then
3068 thread_file='solaris'
3072 sparc-hal-solaris2*)
3073 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3074 xm_defines="USG POSIX"
3075 tm_file="sparc/sol2.h sparc/hal.h"
3076 tmake_file="sparc/t-halos sparc/t-sol2"
3077 if test x$gnu_ld = xyes; then
3078 tmake_file="$tmake_file sparc/t-slibgcc"
3080 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3082 xmake_file=sparc/x-sysv4
3083 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3092 thread_file='solaris'
3095 if test x$gnu_ld = xyes
3097 tm_file=sparc/sol2.h
3099 tm_file=sparc/sol2-sld.h
3101 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3102 xm_defines="USG POSIX"
3103 tmake_file=sparc/t-sol2
3104 if test x$gnu_ld = xyes; then
3105 tmake_file="$tmake_file sparc/t-slibgcc"
3107 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3109 xmake_file=sparc/x-sysv4
3110 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3111 # At the moment, 32-to-64 cross compilation doesn't work.
3113 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3115 # if test x$gnu_ld = xyes
3117 # tm_file=sparc/sol2-64.h
3119 # tm_file=sparc/sol2-sld-64.h
3121 # tmake_file="$tmake_file sparc/t-sol2-64"
3132 if test x${enable_threads} = x; then
3133 enable_threads=$have_pthread_h
3134 if test x${enable_threads} = x; then
3135 enable_threads=$have_thread_h
3138 if test x${enable_threads} = xyes; then
3139 if test x${have_pthread_h} = xyes; then
3142 thread_file='solaris'
3147 tm_file=sparc/sunos4.h
3148 tmake_file=sparc/t-sunos40
3152 tm_file=sparc/sunos4.h
3153 tmake_file=sparc/t-sunos41
3155 if test x$gas = xyes; then
3156 tm_file="${tm_file} sparc/sun4gas.h"
3160 tm_file=sparc/sun4o3.h
3164 tm_file=sparc/sysv4.h
3165 xm_file="sparc/xm-sysv4.h"
3166 xm_defines="USG POSIX"
3168 xmake_file=sparc/x-sysv4
3169 extra_parts="crtbegin.o crtend.o"
3172 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3173 xm_defines="USG POSIX"
3174 tm_file=sparc/vxsim.h
3175 tmake_file=sparc/t-vxsparc
3176 xmake_file=sparc/x-sysv4
3179 tm_file="sparc/splet.h libgloss.h"
3180 tmake_file=sparc/t-splet
3183 tm_file="sparc/litecoff.h libgloss.h"
3184 tmake_file=sparc/t-sparclite
3187 tm_file="sparc/lite.h aoutos.h libgloss.h"
3188 tmake_file=sparc/t-sparclite
3191 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3192 tmake_file=sparc/t-sparclite
3193 extra_parts="crtbegin.o crtend.o"
3196 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3197 tmake_file=sparc/t-sp86x
3200 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3201 tmake_file=sparc/t-sp86x
3202 extra_parts="crtbegin.o crtend.o"
3205 tmake_file=sparc/t-sp64
3206 tm_file=sparc/sp64-aout.h
3209 tmake_file=sparc/t-sp64
3210 tm_file=sparc/sp64-elf.h
3211 extra_parts="crtbegin.o crtend.o"
3213 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3214 tmake_file="t-linux sparc/t-linux64"
3215 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3216 tm_file=sparc/linux64.h
3218 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3220 if test x$enable_threads = xyes; then
3226 tm_file=arm/strongarm-elf.h
3227 tmake_file=arm/t-strongarm-elf
3229 xm_file=arm/xm-arm.h
3233 tm_file=arm/strongarm-coff.h
3234 tmake_file=arm/t-strongarm-coff
3236 xm_file=arm/xm-arm.h
3240 tm_file=arm/strongarm-pe.h
3241 tmake_file=arm/t-strongarm-pe
3243 xm_file=arm/xm-arm.h
3248 { echo "config.gcc: error:
3249 *** The Thumb targets have been deprecated. The equivalent
3250 *** ARM based toolchain can now generate Thumb instructions
3251 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3255 tm_file="v850/rtems.h"
3256 xm_file="v850/xm-v850.h"
3257 tmake_file="v850/t-v850 t-rtems"
3258 if test x$stabs = xyes
3260 tm_file="${tm_file} dbx.h"
3263 c_target_objs="v850-c.o"
3264 cxx_target_objs="v850-c.o"
3267 target_cpu_default="TARGET_CPU_generic"
3269 tm_file="v850/v850.h"
3270 xm_file="v850/xm-v850.h"
3271 tmake_file=v850/t-v850
3272 if test x$stabs = xyes
3274 tm_file="${tm_file} dbx.h"
3277 c_target_objs="v850-c.o"
3278 cxx_target_objs="v850-c.o"
3280 vax-*-bsd*) # vaxen running BSD
3284 vax-*-sysv*) # vaxen running system V
3285 tm_file="${tm_file} vax/vaxv.h"
3290 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3296 tmake_file="${tmake_file} vax/t-openbsd"
3297 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3298 xm_file="xm-openbsd.h vax/xm-vax.h"
3302 vax-*-ultrix*) # vaxen running ultrix
3303 tm_file="${tm_file} vax/ultrix.h"
3306 vax-*-vms*) # vaxen running VMS
3307 xm_file=vax/xm-vms.h
3311 vax-*-*) # vax default entry
3315 xm_file="${xm_file} xm-svr3"
3319 tm_file=arm/xscale-elf.h
3320 tmake_file=arm/t-xscale-elf
3322 xm_file=arm/xm-arm.h
3326 tm_file=arm/xscale-coff.h
3327 tmake_file=arm/t-xscale-coff
3329 xm_file=arm/xm-arm.h
3333 echo "Configuration $machine not supported" 1>&2
3340 xmake_try_sysv=x-sysv
3341 install_headers_dir=install-headers-cpio
3344 install_headers_dir=install-headers-cpio
3348 # Distinguish i[34567]86
3349 # Also, do not run mips-tfile on MIPS if using gas.
3350 # Process --with-cpu= for PowerPC/rs6000
3351 target_cpu_default2=
3354 target_cpu_default2=1
3357 case $target_alias in
3359 target_cpu_default2=4
3362 target_cpu_default2=2
3366 i686-*-* | i786-*-*)
3367 target_cpu_default2=3
3372 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3375 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3378 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3381 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3384 target_cpu_default2="MASK_CPU_EV5"
3388 if test x$gas = xyes
3390 if test "$target_cpu_default2" = ""
3392 target_cpu_default2="MASK_GAS"
3394 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3399 case "x$with_cpu" in
3402 target_cpu_default2="TARGET_CPU_generic"
3405 # Distinguish cores, and major variants
3406 # arm7m doesn't exist, but D & I don't affect code
3407 xarm[236789] | xarm250 | xarm[67][01]0 \
3408 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3409 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3411 | xstrongarm | xstrongarm110 | xstrongarm1100)
3412 target_cpu_default2="TARGET_CPU_$with_cpu"
3416 echo "--with-cpu must be passed a value" 1>&2
3421 if test x$pass2done = xyes
3423 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3430 mips*-*-ecoff* | mips*-*-elf*)
3431 if test x$gas = xyes
3433 if test x$gnu_ld = xyes
3435 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3437 target_cpu_default2="MASK_GAS"
3442 if test x$gas = xyes
3444 target_cpu_default2="MASK_GAS"
3447 powerpc*-*-* | rs6000-*-*)
3448 case "x$with_cpu" in
3452 xcommon | xpower | xpower2 | xpowerpc | xrios \
3453 | xrios1 | xrios2 | xrsc | xrsc1 \
3454 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3455 | xec603e | x740 | x750 | x401 \
3456 | x403 | x505 | x801 | x821 | x823 | x860)
3457 target_cpu_default2="\"$with_cpu\""
3461 echo "--with-cpu must be passed a value" 1>&2
3466 if test x$pass2done = xyes
3468 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3475 case ".$with_cpu" in
3477 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3479 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3480 target_cpu_default2="TARGET_CPU_$with_cpu"
3483 if test x$pass2done = xyes
3485 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3493 if test "$target_cpu_default2" != ""
3495 if test "$target_cpu_default" != ""
3497 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3499 target_cpu_default=$target_cpu_default2
3503 # No need for collect2 if we have the GNU linker.
3504 # Actually, there is now; GNU ld doesn't handle the EH info or
3505 # collecting for shared libraries.
3512 # Save data on machine being used to compile GCC in build_xm_file.
3513 # Save data on host machine in vars host_xm_file and host_xmake_file.
3514 if test x$pass1done = x
3516 if test x"$xm_file" = x
3517 then build_xm_file=$cpu_type/xm-$cpu_type.h
3518 else build_xm_file=$xm_file
3520 build_xm_defines=$xm_defines
3521 build_install_headers_dir=$install_headers_dir
3522 build_exeext=$exeext
3525 if test x$pass2done = x
3527 if test x"$xm_file" = x
3528 then host_xm_file=$cpu_type/xm-$cpu_type.h
3529 else host_xm_file=$xm_file
3531 host_xm_defines=$xm_defines
3532 if test x"$xmake_file" = x
3533 then xmake_file=$cpu_type/x-$cpu_type
3535 host_xmake_file="$xmake_file"
3536 host_truncate_target=$truncate_target
3537 host_extra_gcc_objs=$extra_gcc_objs
3538 host_extra_objs=$extra_host_objs