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/-.*$//'`
225 hppa*-*-* | parisc*-*-*)
245 tm_file=${cpu_type}/${cpu_type}.h
246 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
248 tm_p_file=${cpu_type}/${cpu_type}-protos.h
250 # On a.out targets, we need to use collect2.
257 # Common parts for GNU/Linux, GNU/Hurd, OpenBSD and FreeBSD systems.
263 # On the Hurd, the setup is just about the same on
264 # each different CPU. The specific machines that we
265 # support are matched above and just set $cpu_type.
267 tm_file="${cpu_type}/gnu.h"
268 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
269 # GNU always uses ELF.
271 # GNU tools are the only tools.
274 # These details are the same as for Linux.
276 # But here we need a little extra magic.
277 tmake_file="t-linux t-gnu"
280 tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}"
283 tm_file="svr4.h ${cpu_type}/${cpu_type}.h ${tm_file}"
288 tm_file=${cpu_type}/openbsd.h
289 tmake_file="t-libc-ok t-openbsd"
291 if test x$enable_threads = xyes; then
293 tmake_file="${tmake_file} t-openbsd-thread"
296 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
297 # This is the place-holder for the generic a.out configuration
298 # of FreeBSD. No actual configuration resides here since
299 # there was only ever a bare-bones ix86 configuration for
300 # a.out and it exists solely in the machine-specific section.
301 # This place-holder must exist to avoid dropping into
302 # the generic ELF configuration of FreeBSD (i.e. it must be
303 # ordered before that section).
306 # This is the generic ELF configuration of FreeBSD. Later
307 # machine-specific sections may refine and add to this
310 # Due to tm_file entry ordering issues that vary between cpu
311 # architectures, we only define fbsd_tm_file to allow the
312 # machine-specific section to dictate the final order of all
313 # entries of tm_file with the minor exception that components
314 # of the tm_file set here will always be of the form:
316 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd.h
318 # The machine-specific section should not tamper with this
319 # ordering but may order all other entries of tm_file as it
320 # pleases around the provided core setting.
323 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
325 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
326 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
327 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
328 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
329 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
333 case x${enable_threads} in
334 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
335 x | xyes | xpthreads | xposix)
337 tmake_file="${tmake_file} t-freebsd-thread"
339 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
341 fbsd_tm_file="${fbsd_tm_file} freebsd.h"
346 # Support site-specific machine types.
348 rest=`echo $machine | sed -e "s/$cpu_type-//"`
349 tm_file=${cpu_type}/$rest.h
350 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
351 then xm_file=${cpu_type}/xm-$rest.h
353 if test -f $srcdir/config/${cpu_type}/x-$rest
354 then xmake_file=${cpu_type}/x-$rest
356 if test -f $srcdir/config/${cpu_type}/t-$rest
357 then tmake_file=${cpu_type}/t-$rest
361 # 1750a is only supported as a target.
362 case "$build,$host" in 1750a*,* | *,1750a* )
363 echo "*** $machine is only supported as a target" >&2
367 a29k-*-bsd* | a29k-*-sym1*)
368 tm_file="${tm_file} a29k/unix.h"
372 a29k-*-udi | a29k-*-coff)
373 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
374 tmake_file=a29k/t-a29kbare
378 tmake_file="a29k/t-a29kbare t-rtems"
379 if test x$enable_threads = xyes; then
384 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
385 tmake_file=a29k/t-vx29k
386 extra_parts="crtbegin.o crtend.o"
387 thread_file='vxworks'
389 a29k-*-*) # Default a29k environment.
393 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
395 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
396 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
398 # GAS + IEEE_CONFORMANT
399 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
402 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
404 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
405 if test x$enable_threads = xyes ; then
408 if test x$stabs = xyes ; then
409 tm_file="${tm_file} dbxcoff.h"
411 #prefix='$$INTERIX_ROOT'/usr/contrib
412 #local_prefix='$$INTERIX_ROOT'/usr/contrib
414 alpha*-*-linux*ecoff*)
415 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
416 target_cpu_default="MASK_GAS"
417 tmake_file="alpha/t-alpha alpha/t-ieee"
421 alpha*-*-linux*libc1*)
422 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
423 target_cpu_default="MASK_GAS"
424 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
425 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
427 if test x$enable_threads = xyes; then
432 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
433 target_cpu_default="MASK_GAS"
434 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
435 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
437 if test x$enable_threads = xyes; then
442 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
443 target_cpu_default="MASK_GAS"
444 tmake_file="${tmake_file} alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
448 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
449 target_cpu_default="MASK_GAS"
450 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
451 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
456 # default x-alpha is only appropriate for dec-osf.
457 target_cpu_default="MASK_GAS"
458 tmake_file="alpha/t-alpha alpha/t-ieee"
463 if test x$stabs = xyes
465 tm_file="${tm_file} dbx.h"
467 if test x$gas != xyes
469 extra_passes="mips-tfile mips-tdump"
472 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
475 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
478 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
481 tm_file="${tm_file} alpha/osf.h"
482 tmake_file="$tmake_file alpha/t-osf4"
483 # Some versions of OSF4 (specifically X4.0-9 296.7) have
484 # a broken tar, so we use cpio instead.
485 install_headers_dir=install-headers-cpio
488 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
489 tmake_file="$tmake_file alpha/t-osf4"
494 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
495 target_cpu_default=MASK_SUPPORT_ARCH
501 tm_file="${tm_file} dbx.h alpha/vxworks.h"
502 tmake_file="alpha/t-alpha alpha/t-ieee"
505 extra_passes="mips-tfile mips-tdump"
508 thread_file='vxworks'
513 xm_file=alpha/xm-vms.h
514 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
517 tm_file=arm/rtems-elf.h
518 tmake_file="arm/t-arm-elf t-rtems"
519 if test x$enable_threads = xyes; then
522 extra_parts="crtinit.o crtfini.o"
525 extra_parts="crtinit.o crtfini.o"
527 arm-*-coff* | armel-*-coff*)
529 tmake_file=arm/t-arm-coff
533 tmake_file=arm/t-arm-coff
534 thread_file='vxworks'
536 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
537 tm_file=arm/riscix1-1.h
540 arm-*-riscix*) # Acorn RISC machine
543 tm_file=arm/rix-gas.h
547 xmake_file=arm/x-riscix
548 tmake_file=arm/t-riscix
551 arm-semi-aout | armel-semi-aout)
553 tmake_file=arm/t-semi
555 arm-semi-aof | armel-semi-aof)
556 tm_file=arm/semiaof.h
557 tmake_file=arm/t-semi
561 tmake_file="t-netbsd arm/t-netbsd"
564 arm*-*-linux*) # ARM GNU/Linux with ELF
566 tm_file="arm/linux-elf.h"
567 tmake_file="t-linux arm/t-linux"
568 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
570 case x${enable_threads} in
571 x | xyes | xpthreads | xposix)
576 arm*-*-uclinux*) # ARM ucLinux
577 tm_file=arm/uclinux-elf.h
578 tmake_file=arm/t-arm-elf
582 tmake_file=arm/t-arm-aout
585 tm_file=arm/ecos-elf.h
586 tmake_file=arm/t-arm-elf
589 tm_file=arm/unknown-elf.h
590 tmake_file=arm/t-arm-elf
593 tm_file=arm/conix-elf.h
594 tmake_file=arm/t-arm-elf
597 tm_file=arm/unknown-elf-oabi.h
598 tmake_file=arm/t-arm-elf
607 c1-convex-*) # Convex C1
611 c2-convex-*) # Convex C2
624 target_cpu_default=16
629 tmake_file="c4x/t-c4x t-rtems"
631 if test x$enable_threads = xyes; then
640 clipper-intergraph-clix*)
641 tm_file="${tm_file} svr3.h clipper/clix.h"
643 extra_headers=va-clipper.h
644 extra_parts="crtbegin.o crtend.o"
645 install_headers_dir=install-headers-cpio
656 tm_file="fr30/fr30.h"
657 tmake_file=fr30/t-fr30
658 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
661 tmake_file="h8300/t-h8300 t-rtems"
662 tm_file=h8300/rtems.h
663 if test x$enable_threads = xyes; then
671 hppa*64*-*-linux* | parisc*64*-*-linux*)
672 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
673 tm_file="pa/pa64-start.h ${tm_file} linux.h pa/pa-linux.h \
674 pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
675 tmake_file=pa/t-linux64
678 hppa*-*-linux* | parisc*-*-linux*)
679 target_cpu_default="MASK_PA_11"
680 tm_file="${tm_file} linux.h pa/pa-linux.h \
681 pa/pa32-regs.h pa/pa32-linux.h"
682 tmake_file=pa/t-linux
683 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
685 if test x$enable_threads = xyes; then
690 target_cpu_default="MASK_PA_11"
691 tmake_file=pa/t-openbsd
694 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
695 tmake_file="pa/t-pro t-rtems"
696 if test x$enable_threads = xyes; then
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"
706 target_cpu_default="MASK_PA_11"
707 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
711 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
712 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
716 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
720 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
721 target_cpu_default="MASK_PA_11"
725 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
729 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
731 xmake_file=pa/x-pa-hpux
732 install_headers_dir=install-headers-cpio
735 hppa1.0-*-hpux8.0[0-2]*)
736 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
738 xmake_file=pa/x-pa-hpux
739 if test x$gas != xyes
741 tm_file="pa/pa-oldas.h ${tm_file}"
743 install_headers_dir=install-headers-cpio
746 hppa1.1-*-hpux8.0[0-2]*)
747 target_cpu_default="MASK_PA_11"
748 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
750 xmake_file=pa/x-pa-hpux
751 if test x$gas != xyes
753 tm_file="pa/pa-oldas.h ${tm_file}"
755 install_headers_dir=install-headers-cpio
759 target_cpu_default="MASK_PA_11"
760 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
762 xmake_file=pa/x-pa-hpux
763 install_headers_dir=install-headers-cpio
767 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
769 xmake_file=pa/x-pa-hpux
770 install_headers_dir=install-headers-cpio
773 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
774 target_cpu_default="MASK_PA_11"
775 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
778 xmake_file=pa/x-pa-hpux
780 if test x$enable_threads = x; then
781 enable_threads=$have_pthread_h
783 case x${enable_threads} in
785 tmake_file="${tmake_file} pa/t-dce-thr"
788 install_headers_dir=install-headers-cpio
792 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
795 xmake_file=pa/x-pa-hpux
797 if test x$enable_threads = x; then
798 enable_threads=$have_pthread_h
800 case x${enable_threads} in
802 tmake_file="${tmake_file} pa/t-dce-thr"
805 install_headers_dir=install-headers-cpio
810 xmake_file=pa/x-pa-hpux
812 tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
815 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
817 # if [ x$enable_threads = x ]; then
818 # enable_threads=$have_pthread_h
820 # if [ x$enable_threads = xyes ]; then
822 # tmake_file="${tmake_file} pa/t-dce-thr"
824 install_headers_dir=install-headers-cpio
827 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
828 target_cpu_default="MASK_PA_11"
829 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
832 xmake_file=pa/x-pa-hpux
834 # if test x$enable_threads = x; then
835 # enable_threads=$have_pthread_h
837 # if test x$enable_threads = xyes; then
839 # tmake_file="${tmake_file} pa/t-dce-thr"
841 install_headers_dir=install-headers-cpio
845 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
848 xmake_file=pa/x-pa-hpux
849 # if test x$enable_threads = x; then
850 # enable_threads=$have_pthread_h
852 # if test x$enable_threads = xyes; then
854 # tmake_file="${tmake_file} pa/t-dce-thr"
856 install_headers_dir=install-headers-cpio
859 hppa1.1-*-hpux* | hppa2*-*-hpux*)
860 target_cpu_default="MASK_PA_11"
861 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
863 xmake_file=pa/x-pa-hpux
864 install_headers_dir=install-headers-cpio
868 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
870 xmake_file=pa/x-pa-hpux
871 install_headers_dir=install-headers-cpio
874 hppa1.1-*-hiux* | hppa2*-*-hiux*)
875 target_cpu_default="MASK_PA_11"
876 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
878 xmake_file=pa/x-pa-hpux
879 install_headers_dir=install-headers-cpio
883 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
885 xmake_file=pa/x-pa-hpux
886 install_headers_dir=install-headers-cpio
890 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
891 target_cpu_default="MASK_PA_11"
895 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
896 xmake_file=pa/x-pa-mpeix
897 echo "You must use gas. Assuming it is already installed."
899 install_headers_dir=install-headers-tar
902 i370-*-opened*) # IBM 360/370/390 Architecture
903 xm_defines='POSIX FATAL_EXIT_CODE=12'
908 xm_defines='POSIX FATAL_EXIT_CODE=12'
913 tm_file="i370/linux.h ${tm_file}"
916 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
917 # extra_parts="crtbegin.o crtend.o"
921 if test x$enable_threads = xyes; then
925 i[34567]86-*-chorusos*)
927 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h i386/chorus.h"
928 tmake_file=i386/t-i386elf
930 case x${enable_threads} in
931 xyes | xpthreads | xposix)
938 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h"
939 tmake_file=i386/t-i386elf
942 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
945 tm_file=i386/aix386.h
946 extra_parts="crtbegin.o crtend.o"
947 tmake_file=i386/t-crtstuff
949 tm_file=i386/aix386ng.h
954 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
955 xm_defines="POSIX SMALL_ARG_MAX"
956 if test x$stabs = xyes -a x$gas = xyes
958 tm_file=i386/sysv4gdb.h
962 extra_parts="crtbegin.o crtend.o"
963 tmake_file=i386/t-crtpic
967 tmake_file=i386/t-next
968 extra_objs=nextstep.o
969 extra_parts="crtbegin.o crtend.o"
970 if test x$enable_threads = xyes; then
974 i[34567]86-*-netware) # Intel 80386's running netware
975 tm_file=i386/netware.h
976 tmake_file=i386/t-netware
978 i[34567]86-sequent-bsd*) # 80386 from Sequent
982 tm_file=i386/seq-gas.h
984 tm_file=i386/sequent.h
987 i[34567]86-sequent-ptx1*)
989 tm_file=i386/seq-sysv3.h
990 tmake_file=i386/t-crtstuff
991 extra_parts="crtbegin.o crtend.o"
992 install_headers_dir=install-headers-cpio
994 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
996 tm_file=i386/seq2-sysv3.h
997 tmake_file=i386/t-crtstuff
998 extra_parts="crtbegin.o crtend.o"
999 install_headers_dir=install-headers-cpio
1001 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1002 if test x$gas = xyes
1004 tm_file="${tm_file} usegas.h"
1006 xm_defines="POSIX SMALL_ARG_MAX"
1008 tm_file=i386/ptx4-i.h
1010 extra_parts="crtbegin.o crtend.o"
1011 install_headers_dir=install-headers-cpio
1013 i386-sun-sunos*) # Sun i386 roadrunner
1018 i[34567]86-wrs-vxworks*)
1019 tm_file=i386/vxi386.h
1020 thread_file='vxworks'
1023 tm_file=i386/i386-aout.h
1025 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1027 tmake_file='i386/t-beos i386/t-crtpic'
1028 tm_file=i386/beos-elf.h
1029 xmake_file=i386/x-beos
1030 extra_parts='crtbegin.o crtend.o'
1032 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1033 tm_file=i386/bsd386.h
1034 # tmake_file=t-libc-ok
1037 tm_file=i386/386bsd.h
1038 # tmake_file=t-libc-ok
1039 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1042 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1043 tm_file=i386/freebsd-aout.h
1044 tmake_file=t-freebsd
1046 i[34567]86-*-freebsd*)
1047 tm_file="${tm_file} i386/att.h svr4.h ${fbsd_tm_file} i386/freebsd.h"
1049 i[34567]86-*-netbsd*)
1050 tm_file=i386/netbsd.h
1054 i[34567]86-*-openbsd*)
1055 # we need collect2 until our bug is fixed...
1059 tm_file=i386/i386-coff.h
1061 i[34567]86-*-isc*) # 80386 running ISC system
1063 if test x$gas = xyes -a x$stabs = xyes
1065 tm_file=i386/iscdbx.h
1066 tmake_file=i386/t-svr3dbx
1067 extra_parts="svr3.ifile svr3z.ifile"
1069 tm_file=i386/isccoff.h
1070 tmake_file=i386/t-crtstuff
1071 extra_parts="crtbegin.o crtend.o"
1073 install_headers_dir=install-headers-cpio
1075 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1076 # with a.out format using
1078 tmake_file="t-linux-aout i386/t-crtstuff"
1079 tm_file=i386/linux-oldld.h
1083 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1085 tmake_file="t-linux-aout i386/t-crtstuff"
1086 tm_file=i386/linux-aout.h
1090 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1091 # with ELF format using the
1092 # GNU/Linux C library 5
1094 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1095 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1096 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1099 if test x$enable_threads = xyes; then
1100 thread_file='single'
1103 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1104 # with ELF format using glibc 2
1105 # aka GNU/Linux C library 6
1107 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1108 tmake_file="t-linux i386/t-crtstuff"
1109 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1112 if test x$enable_threads = xyes; then
1119 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1120 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1123 i[34567]86-pc-msdosdjgpp*)
1124 xm_file=i386/xm-djgpp.h
1125 tm_file=i386/djgpp.h
1126 xmake_file=i386/x-djgpp
1131 case $host in *pc-msdosdjgpp*)
1136 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1137 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h"
1138 tmake_file=t-libc-ok
1142 i[34567]86-*-lynxos*)
1143 if test x$gas = xyes
1147 tm_file=i386/lynx-ng.h
1152 # tmake_file=t-libc-ok
1155 i[34567]86-*-osfrose*) # 386 using OSF/rose
1156 if test x$elf = xyes
1158 tm_file=i386/osfelf.h
1161 tm_file=i386/osfrose.h
1164 tmake_file=i386/t-osf
1165 extra_objs=halfpic.o
1167 i[34567]86-go32-rtems*)
1169 tm_file=i386/go32-rtems.h
1171 if test x$enable_threads = xyes; then
1175 i[34567]86-*-rtemscoff*)
1177 tm_file=i386/rtems.h
1179 if test x$enable_threads = xyes; then
1183 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1185 tm_file=i386/rtemself.h
1186 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1187 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1188 if test x$enable_threads = xyes; then
1192 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1194 xmake_file=i386/x-sco5
1195 install_headers_dir=install-headers-cpio
1197 if test x$gas = xyes
1199 tm_file="usegas.h ${tm_file}"
1200 tmake_file=i386/t-sco5gas
1202 tmake_file=i386/t-sco5
1204 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1206 i[34567]86-*-solaris2*)
1207 xm_defines="POSIX SMALL_ARG_MAX"
1209 if test x$gas = xyes; then
1210 # Only needed if gas does not support -s
1211 tm_file="i386/sol2gas.h ${tm_file}"
1213 tmake_file=i386/t-sol2
1214 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1216 if test x${enable_threads} = x; then
1217 enable_threads=$have_pthread_h
1218 if test x${enable_threads} = x; then
1219 enable_threads=$have_thread_h
1222 if test x${enable_threads} = xyes; then
1223 if test x${have_pthread_h} = xyes; then
1226 thread_file='solaris'
1230 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1232 tm_file=i386/sysv5.h
1233 if test x$stabs = xyes
1235 tm_file="${tm_file} dbx.h"
1237 tmake_file=i386/t-crtpic
1239 extra_parts="crtbegin.o crtend.o"
1240 if test x$enable_threads = xyes; then
1244 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1245 xm_defines="POSIX SMALL_ARG_MAX"
1246 tm_file=i386/sysv4.h
1247 if test x$stabs = xyes
1249 tm_file="${tm_file} dbx.h"
1251 tmake_file=i386/t-crtpic
1253 extra_parts="crtbegin.o crtend.o"
1255 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1258 tmake_file="i386/t-crtpic i386/t-udk"
1260 extra_parts="crtbegin.o crtend.o"
1261 install_headers_dir=install-headers-cpio
1263 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1265 xm_file=i386/xm-osf1elf.h
1266 xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1267 if test x$stabs = xyes
1269 tm_file=i386/osf1elfgdb.h
1271 tm_file=i386/osf1elf.h
1273 tmake_file=i386/t-osf1elf
1274 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1276 i[34567]86-*-sysv*) # Intel 80386's running system V
1278 if test x$gas = xyes
1280 if test x$stabs = xyes
1282 tm_file=i386/svr3dbx.h
1283 tmake_file=i386/t-svr3dbx
1284 extra_parts="svr3.ifile svr3z.rfile"
1286 tm_file=i386/svr3gas.h
1287 extra_parts="crtbegin.o crtend.o"
1288 tmake_file=i386/t-crtstuff
1291 tm_file=i386/sysv3.h
1292 extra_parts="crtbegin.o crtend.o"
1293 tmake_file=i386/t-crtstuff
1295 tmake_file="$tmake_file i386/t-crtpic"
1297 i386-*-vsta) # Intel 80386's running VSTa kernel
1298 xm_file=i386/xm-vsta.h
1303 xm_file=i386/xm-cygwin.h
1305 tmake_file=i386/t-cygwin
1306 tm_file=i386/win32.h
1307 xmake_file=i386/x-cygwin
1309 if test x$enable_threads = xyes; then
1314 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1316 xm_file=i386/xm-cygwin.h
1318 tmake_file=i386/t-cygwin
1319 tm_file=i386/cygwin.h
1320 xmake_file=i386/x-cygwin
1322 if test x$enable_threads = xyes; then
1327 i[34567]86-*-mingw32*)
1328 tm_file=i386/mingw32.h
1331 xm_file=i386/xm-mingw32.h
1332 tmake_file="i386/t-cygwin i386/t-mingw32"
1334 xmake_file=i386/x-cygwin
1335 if test x$enable_threads = xyes; then
1342 *minwg32crt* | *mingw32*)
1343 tm_file="${tm_file} i386/crtdll.h"
1349 tmake_file="i386/t-cygwin i386/t-uwin"
1351 xmake_file=i386/x-cygwin
1352 if test x$enable_threads = xyes; then
1357 i[34567]86-*-interix*)
1358 tm_file="i386/i386-interix.h interix.h"
1359 xm_file="i386/xm-i386-interix.h xm-interix.h"
1361 tmake_file="i386/t-interix"
1362 extra_objs=interix.o
1363 xmake_file=x-interix
1364 if test x$enable_threads = xyes ; then
1367 if test x$stabs = xyes ; then
1368 tm_file="${tm_file} dbxcoff.h"
1371 i[34567]86-dg-dgux*)
1373 out_file=i386/dgux.c
1375 tmake_file=i386/t-dgux
1376 xmake_file=i386/x-dgux
1377 install_headers_dir=install-headers-cpio
1379 i860-alliant-*) # Alliant FX/2800
1380 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1381 tmake_file=i860/t-fx2800
1382 extra_parts="crtbegin.o crtend.o"
1385 tm_file="${tm_file} i860/bsd.h"
1386 if test x$gas = xyes
1388 tm_file="${tm_file} i860/bsd-gas.h"
1393 tm_file="${tm_file} i860/mach.h"
1394 tmake_file=t-libc-ok
1396 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1397 tm_file="${tm_file} svr3.h i860/paragon.h"
1401 tm_file="${tm_file} svr3.h i860/sysv3.h"
1403 extra_parts="crtbegin.o crtend.o"
1406 tm_file="${tm_file} svr4.h i860/sysv4.h"
1409 extra_parts="crtbegin.o crtend.o"
1411 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1412 tm_file="${tm_file} i960/vx960.h"
1413 tmake_file=i960/t-vxworks960
1415 thread_file='vxworks'
1416 c_target_objs="i960-c.o"
1417 cxx_target_objs="i960-c.o"
1419 i960-wrs-vxworks5* | i960-wrs-vxworks)
1420 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1421 tmake_file=i960/t-vxworks960
1423 thread_file='vxworks'
1424 c_target_objs="i960-c.o"
1425 cxx_target_objs="i960-c.o"
1428 tm_file="${tm_file} i960/vx960.h"
1429 tmake_file=i960/t-vxworks960
1431 thread_file='vxworks'
1432 c_target_objs="i960-c.o"
1433 cxx_target_objs="i960-c.o"
1436 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1437 tmake_file=i960/t-960bare
1439 c_target_objs="i960-c.o"
1440 cxx_target_objs="i960-c.o"
1443 tmake_file="i960/t-960bare t-rtems"
1444 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1446 if test x$enable_threads = xyes; then
1449 c_target_objs="i960-c.o"
1450 cxx_target_objs="i960-c.o"
1452 i960-*-*) # Default i960 environment.
1454 c_target_objs="i960-c.o"
1455 cxx_target_objs="i960-c.o"
1459 tmake_file="ia64/t-ia64"
1460 target_cpu_default="0"
1461 if test x$gas = xyes
1463 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1465 if test x$gnu_ld = xyes
1467 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1472 tm_file=ia64/linux.h
1473 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
1474 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1475 if test x$enable_threads = xyes; then
1481 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h"
1482 target_cpu_default="MASK_GNU_AS"
1483 if test x$enable_threads = xyes; then
1489 extra_parts="crtinit.o crtfini.o"
1491 # m68hc11 and m68hc12 share the same machine description.
1492 m68hc11-*-*|m6811-*-*)
1493 tm_file="elfos.h m68hc11/m68hc11.h"
1494 tm_p_file="m68hc11/m68hc11-protos.h"
1495 md_file="m68hc11/m68hc11.md"
1496 out_file="m68hc11/m68hc11.c"
1497 tmake_file="m68hc11/t-m68hc11-gas"
1499 m68hc12-*-*|m6812-*-*)
1500 tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1501 tm_p_file="m68hc11/m68hc11-protos.h"
1502 md_file="m68hc11/m68hc11.md"
1503 out_file="m68hc11/m68hc11.c"
1504 tmake_file="m68hc11/t-m68hc11-gas"
1506 m68000-convergent-sysv*)
1510 extra_headers=math-68881.h
1512 m68000-hp-bsd*) # HP 9000/200 running BSD
1513 tm_file=m68k/hp2bsd.h
1515 extra_headers=math-68881.h
1517 m68000-hp-hpux*) # HP 9000 series 300
1519 if test x$gas = xyes
1521 xmake_file=m68k/x-hp320g
1522 tm_file=m68k/hp310g.h
1524 xmake_file=m68k/x-hp320
1525 tm_file=m68k/hp310.h
1527 install_headers_dir=install-headers-cpio
1529 extra_headers=math-68881.h
1534 extra_headers=math-68881.h
1537 tm_file=m68k/sun2o4.h
1539 extra_headers=math-68881.h
1543 if test x$gas = xyes
1550 extra_headers=math-68881.h
1552 m68k-apple-aux*) # Apple Macintosh running A/UX
1554 tmake_file=m68k/t-aux
1555 install_headers_dir=install-headers-cpio
1556 extra_headers=math-68881.h
1557 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1559 if test "$gnu_ld" = yes
1561 tm_file="${tm_file} m68k/auxgld.h"
1563 tm_file="${tm_file} m68k/auxld.h"
1565 if test "$gas" = yes
1567 tm_file="${tm_file} m68k/auxgas.h"
1569 tm_file="${tm_file} m68k/auxas.h"
1571 tm_file="${tm_file} m68k/a-ux.h"
1575 tm_file=m68k/apollo68.h
1577 extra_headers=math-68881.h
1580 m68k-altos-sysv*) # Altos 3068
1581 if test x$gas = xyes
1583 tm_file=m68k/altos3068.h
1586 echo "The Altos is supported only with the GNU assembler" 1>&2
1589 extra_headers=math-68881.h
1591 m68k-bull-sysv*) # Bull DPX/2
1592 if test x$gas = xyes
1594 if test x$stabs = xyes
1596 tm_file=m68k/dpx2cdbx.h
1598 tm_file=m68k/dpx2g.h
1605 extra_headers=math-68881.h
1607 m68k-atari-sysv4*) # Atari variant of V.4.
1608 tm_file=m68k/atari.h
1611 extra_parts="crtbegin.o crtend.o"
1612 extra_headers=math-68881.h
1615 m68k-motorola-sysv*)
1616 tm_file=m68k/mot3300.h
1618 if test x$gas = xyes
1620 if test x$gnu_ld = xyes
1622 tmake_file=m68k/t-mot3300-gald
1624 tmake_file=m68k/t-mot3300-gas
1628 if test x$gnu_ld = xyes
1630 tmake_file=m68k/t-mot3300-gld
1632 tmake_file=m68k/t-mot3300
1636 gdb_needs_out_file_path=yes
1637 extra_parts="crt0.o mcrt0.o"
1638 extra_headers=math-68881.h
1641 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1642 tm_file=m68k/tower-as.h
1644 extra_parts="crtbegin.o crtend.o"
1645 extra_headers=math-68881.h
1648 tm_file=m68k/plexus.h
1651 extra_headers=math-68881.h
1656 extra_headers=math-68881.h
1662 extra_headers=math-68881.h
1664 m68k-cbm-sysv4*) # Commodore variant of V.4.
1668 extra_parts="crtbegin.o crtend.o"
1669 extra_headers=math-68881.h
1673 tm_file=m68k/ccur-GAS.h
1674 extra_headers=math-68881.h
1678 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1679 tm_file=m68k/hp3bsd44.h
1681 extra_headers=math-68881.h
1684 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1685 tm_file=m68k/hp3bsd.h
1687 extra_headers=math-68881.h
1691 if test x$with_fp = xno
1693 tm_file=m68k/isi-nfp.h
1699 extra_headers=math-68881.h
1701 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1703 if test x$gas = xyes
1705 xmake_file=m68k/x-hp320g
1706 tm_file=m68k/hp320g.h
1708 xmake_file=m68k/x-hp320
1709 tm_file=m68k/hpux7.h
1711 install_headers_dir=install-headers-cpio
1713 extra_headers=math-68881.h
1716 m68k-hp-hpux*) # HP 9000 series 300
1718 if test x$gas = xyes
1720 xmake_file=m68k/x-hp320g
1721 tm_file=m68k/hp320g.h
1723 xmake_file=m68k/x-hp320
1724 tm_file=m68k/hp320.h
1726 install_headers_dir=install-headers-cpio
1728 extra_headers=math-68881.h
1732 tm_file=m68k/sun3mach.h
1734 extra_headers=math-68881.h
1738 if test x$gas = xyes
1740 tm_file=m68k/news3gas.h
1742 tm_file=m68k/news3.h
1745 extra_headers=math-68881.h
1748 m68k-sony-bsd* | m68k-sony-newsos*)
1749 if test x$gas = xyes
1751 tm_file=m68k/newsgas.h
1756 extra_headers=math-68881.h
1759 m68k-next-nextstep2*)
1760 tm_file=m68k/next21.h
1761 tmake_file=m68k/t-next
1762 xmake_file=m68k/x-next
1763 extra_objs=nextstep.o
1764 extra_headers=math-68881.h
1768 m68k-next-nextstep[34]*)
1770 tmake_file=m68k/t-next
1771 xmake_file=m68k/x-next
1772 extra_objs=nextstep.o
1773 extra_parts="crtbegin.o crtend.o"
1774 extra_headers=math-68881.h
1776 if test x$enable_threads = xyes; then
1781 if test x$with_fp = xno
1783 tm_file=m68k/sun3n3.h
1785 tm_file=m68k/sun3o3.h
1789 extra_headers=math-68881.h
1791 m68k-sun-sunos*) # For SunOS 4 (the default).
1792 if test x$with_fp = xno
1794 tm_file=m68k/sun3n.h
1800 extra_headers=math-68881.h
1803 tm_file=m68k/vxm68k.h
1804 tmake_file=m68k/t-vxworks68
1805 extra_headers=math-68881.h
1806 thread_file='vxworks'
1810 tmake_file=m68k/t-m68kbare
1811 tm_file="m68k/m68k-aout.h libgloss.h"
1812 extra_headers=math-68881.h
1816 tmake_file=m68k/t-m68kbare
1817 tm_file="m68k/m68k-coff.h dbx.h"
1818 extra_headers=math-68881.h
1821 m68020-*-elf* | m68k-*-elf*)
1822 tm_file="m68k/m68020-elf.h"
1824 tmake_file=m68k/t-m68kelf
1825 header_files=math-68881.h
1828 if test x$gas = xyes
1832 tm_file=m68k/lynx-ng.h
1834 tmake_file=m68k/t-lynx
1835 extra_headers=math-68881.h
1839 tm_file=m68k/netbsd.h
1846 # we need collect2 until our bug is fixed...
1849 m68k-*-sysv3*) # Motorola m68k's running system V.3
1851 extra_parts="crtbegin.o crtend.o"
1852 extra_headers=math-68881.h
1855 m68k-*-sysv4*) # Motorola m68k's running system V.4
1856 tm_file=m68k/m68kv4.h
1859 extra_parts="crtbegin.o crtend.o"
1860 extra_headers=math-68881.h
1863 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1866 tm_file=m68k/linux-aout.h
1867 tmake_file="t-linux-aout m68k/t-linux-aout"
1868 extra_headers=math-68881.h
1872 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1873 # with ELF format using the
1874 # GNU/Linux C library 5
1876 tm_file=m68k/linux.h
1877 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1878 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1879 extra_headers=math-68881.h
1883 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1884 # with ELF format using glibc 2
1885 # aka the GNU/Linux C library 6.
1887 tm_file=m68k/linux.h
1888 tmake_file="t-linux m68k/t-linux"
1889 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1890 extra_headers=math-68881.h
1893 if test x$enable_threads = xyes; then
1898 tmake_file=m68k/t-m68kbare
1899 tm_file=m68k/m68k-psos.h
1900 extra_headers=math-68881.h
1904 tmake_file="m68k/t-m68kbare t-rtems"
1905 tm_file=m68k/rtems.h
1906 extra_headers=math-68881.h
1908 if test x$enable_threads = xyes; then
1912 m68k-*-rtemself*|m68k-*-rtems*)
1913 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1914 tm_file=m68k/rtemself.h
1915 extra_headers=math-68881.h
1917 if test x$enable_threads = xyes; then
1925 tm_file=m88k/dguxbcs.h
1926 tmake_file=m88k/t-dguxbcs
1930 tmake_file=m88k/t-dgux
1933 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1934 xmake_file=m88k/x-dgux
1935 if test x$gas = xyes
1937 tmake_file=m88k/t-dgux-gas
1940 m88k-dolphin-sysv3*)
1942 tm_file=m88k/dolph.h
1943 extra_parts="crtbegin.o crtend.o"
1944 xmake_file=m88k/x-dolph
1945 if test x$gas = xyes
1947 tmake_file=m88k/t-m88k-gas
1950 m88k-tektronix-sysv3)
1952 tm_file=m88k/tekXD88.h
1953 extra_parts="crtbegin.o crtend.o"
1954 xmake_file=m88k/x-tekXD88
1955 if test x$gas = xyes
1957 tmake_file=m88k/t-m88k-gas
1962 tm_file=m88k/m88k-aout.h
1966 tm_file=m88k/m88k-coff.h
1967 tmake_file=m88k/t-bug
1971 extra_parts="crtbegin.o crtend.o"
1972 if test x$gas = xyes
1974 tmake_file=m88k/t-luna-gas
1976 tmake_file=m88k/t-luna
1980 tmake_file="${tmake_file} m88k/t-luna-gas"
1981 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
1985 tm_file=m88k/sysv3.h
1986 extra_parts="crtbegin.o crtend.o"
1987 if test x$gas = xyes
1989 tmake_file=m88k/t-m88k-gas
1994 tm_file=m88k/sysv4.h
1995 extra_parts="crtbegin.o crtend.o"
1996 tmake_file=m88k/t-sysv4
1999 tm_file=mcore/mcore-elf.h
2000 tmake_file=mcore/t-mcore
2003 tm_file=mcore/mcore-pe.h
2004 tmake_file=mcore/t-mcore-pe
2006 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2007 if test "x$gnu_ld" = xyes
2009 tm_file="mips/iris6.h mips/iris6gld.h"
2011 tm_file=mips/iris6.h
2013 tmake_file=mips/t-iris6
2015 xmake_file=mips/x-iris6
2016 # if test x$enable_threads = xyes; then
2017 # thread_file='irix'
2021 tm_file="mips/elf.h mips/vxworks.h"
2022 tmake_file=mips/t-ecoff
2025 extra_parts="crtbegin.o crtend.o"
2026 thread_file='vxworks'
2028 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2029 tm_file="mips/iris6.h mips/cross64.h"
2031 xm_file=mips/xm-iris5.h
2032 xmake_file=mips/x-iris
2033 tmake_file=mips/t-cross64
2034 # See comment in mips/iris[56].h files.
2036 # if test x$enable_threads = xyes; then
2037 # thread_file='irix'
2041 if test x$gas = xyes
2043 if test x$stabs = xyes
2045 tm_file=mips/iris5gdb.h
2047 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2050 tm_file=mips/sni-svr4.h
2053 if test x$gnu_ld != xyes
2058 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2059 if test x$gas = xyes
2061 tm_file="mips/iris5.h mips/iris5gas.h"
2062 if test x$stabs = xyes
2064 tm_file="${tm_file} dbx.h"
2067 tm_file=mips/iris5.h
2070 xm_file=mips/xm-iris5.h
2071 xmake_file=mips/x-iris
2072 # mips-tfile doesn't work yet
2073 # See comment in mips/iris5.h file.
2075 # if test x$enable_threads = xyes; then
2076 # thread_file='irix'
2079 mips-sgi-irix4loser*) # Mostly like a MIPS.
2080 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2081 if test x$stabs = xyes; then
2082 tm_file="${tm_file} dbx.h"
2085 xmake_file=mips/x-iris
2086 if test x$gas = xyes
2089 extra_passes="mips-tfile mips-tdump"
2091 if test x$gnu_ld != xyes
2095 # if test x$enable_threads = xyes; then
2096 # thread_file='irix'
2099 mips-sgi-irix4*) # Mostly like a MIPS.
2100 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2101 if test x$stabs = xyes; then
2102 tm_file="${tm_file} dbx.h"
2105 xmake_file=mips/x-iris
2106 if test x$gas = xyes
2109 extra_passes="mips-tfile mips-tdump"
2111 if test x$gnu_ld != xyes
2115 # if test x$enable_threads = xyes; then
2116 # thread_file='irix'
2119 mips-sgi-*) # Mostly like a MIPS.
2120 tm_file="mips/iris3.h ${tm_file}"
2121 if test x$stabs = xyes; then
2122 tm_file="${tm_file} dbx.h"
2125 if test x$gas = xyes
2128 extra_passes="mips-tfile mips-tdump"
2130 if test x$gnu_ld != xyes
2135 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2136 tm_file="mips/osfrose.h ${tm_file}"
2137 extra_objs=halfpic.o
2140 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2141 tm_file=mips/dec-osf1.h
2142 if test x$stabs = xyes; then
2143 tm_file="${tm_file} dbx.h"
2145 if test x$gas = xyes
2148 tmake_file=mips/t-ultrix
2149 extra_passes="mips-tfile mips-tdump"
2151 if test x$gnu_ld != xyes
2156 mips-dec-bsd*) # Decstation running 4.4 BSD
2157 tm_file=mips/dec-bsd.h
2158 if test x$gas = xyes
2161 tmake_file=mips/t-ultrix
2162 extra_passes="mips-tfile mips-tdump"
2164 if test x$gnu_ld != xyes
2169 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2170 tm_file=mips/netbsd.h
2171 # On NetBSD, the headers are already okay, except for math.h.
2174 mips*-*-linux*) # Linux MIPS, either endian.
2177 mips*el-*) tm_file="elfos.h mips/elfl.h mips/linux.h" ;;
2178 *) tm_file="elfos.h mips/elf.h mips/linux.h" ;;
2181 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2184 if test x$enable_threads = xyes; then
2188 mips*el-*-openbsd*) # mips little endian
2189 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2191 mips*-*-openbsd*) # mips big endian
2192 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2193 tm_file="mips/openbsd-be.h ${tm_file}"
2195 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2196 tm_file="mips/news4.h ${tm_file}"
2197 if test x$stabs = xyes; then
2198 tm_file="${tm_file} dbx.h"
2200 if test x$gas = xyes
2203 extra_passes="mips-tfile mips-tdump"
2205 if test x$gnu_ld != xyes
2210 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2211 # That is based on svr4.
2212 # t-svr4 is not right because this system doesn't use ELF.
2213 tm_file="mips/news5.h ${tm_file}"
2214 if test x$stabs = xyes; then
2215 tm_file="${tm_file} dbx.h"
2218 if test x$gas = xyes
2221 extra_passes="mips-tfile mips-tdump"
2223 if test x$gnu_ld != xyes
2228 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2229 tm_file="mips/svr4-5.h mips/svr4-t.h"
2230 if test x$stabs = xyes; then
2231 tm_file="${tm_file} dbx.h"
2234 if test x$gas = xyes
2236 extra_parts="crtbegin.o crtend.o"
2238 extra_passes="mips-tfile mips-tdump"
2240 if test x$gnu_ld != xyes
2245 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2246 tm_file="mips/ultrix.h ${tm_file}"
2247 if test x$stabs = xyes; then
2248 tm_file="${tm_file} dbx.h"
2250 if test x$gas = xyes
2253 tmake_file=mips/t-ultrix
2254 extra_passes="mips-tfile mips-tdump"
2256 if test x$gnu_ld != xyes
2261 mips-*-riscos[56789]bsd*)
2262 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2263 if test x$stabs = xyes; then
2264 tm_file="${tm_file} dbx.h"
2266 if test x$gas = xyes
2268 tmake_file=mips/t-bsd-gas
2270 tmake_file=mips/t-bsd
2271 extra_passes="mips-tfile mips-tdump"
2273 if test x$gnu_ld != xyes
2278 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2279 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2280 if test x$stabs = xyes; then
2281 tm_file="${tm_file} dbx.h"
2283 if test x$gas = xyes
2285 tmake_file=mips/t-bsd-gas
2287 tmake_file=mips/t-bsd
2288 extra_passes="mips-tfile mips-tdump"
2290 if test x$gnu_ld != xyes
2295 mips-*-riscos[56789]sysv4*)
2296 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2297 if test x$stabs = xyes; then
2298 tm_file="${tm_file} dbx.h"
2300 if test x$gas = xyes
2302 tmake_file=mips/t-svr4-gas
2304 tmake_file=mips/t-svr4
2305 extra_passes="mips-tfile mips-tdump"
2307 if test x$gnu_ld != xyes
2312 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2313 tm_file="mips/svr4-4.h ${tm_file}"
2314 if test x$stabs = xyes; then
2315 tm_file="${tm_file} dbx.h"
2318 if test x$gas = xyes
2320 tmake_file=mips/t-svr4-gas
2322 tmake_file=mips/t-svr4
2323 extra_passes="mips-tfile mips-tdump"
2325 if test x$gnu_ld != xyes
2330 mips-*-riscos[56789]sysv*)
2331 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2332 if test x$stabs = xyes; then
2333 tm_file="${tm_file} dbx.h"
2336 if test x$gas = xyes
2338 tmake_file=mips/t-svr3-gas
2340 tmake_file=mips/t-svr3
2341 extra_passes="mips-tfile mips-tdump"
2343 if test x$gnu_ld != xyes
2348 mips-*-sysv* | mips-*-riscos*sysv*)
2349 tm_file="mips/svr3-4.h ${tm_file}"
2350 if test x$stabs = xyes; then
2351 tm_file="${tm_file} dbx.h"
2354 if test x$gas = xyes
2356 tmake_file=mips/t-svr3-gas
2358 tmake_file=mips/t-svr3
2359 extra_passes="mips-tfile mips-tdump"
2361 if test x$gnu_ld != xyes
2366 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2367 tm_file=mips/mips-5.h
2368 if test x$stabs = xyes; then
2369 tm_file="${tm_file} dbx.h"
2371 if test x$gas = xyes
2374 extra_passes="mips-tfile mips-tdump"
2376 if test x$gnu_ld != xyes
2384 tm_file=mips/ecoffl.h
2385 if test x$stabs = xyes; then
2386 tm_file="${tm_file} dbx.h"
2388 tmake_file=mips/t-ecoff
2391 tm_file="gofast.h mips/ecoff.h"
2392 if test x$stabs = xyes; then
2393 tm_file="${tm_file} dbx.h"
2395 tmake_file=mips/t-ecoff
2398 tm_file="mips/elfl.h"
2399 tmake_file=mips/t-elf
2402 tm_file="mips/elf.h"
2403 tmake_file=mips/t-elf
2406 tm_file="mips/elfl64.h"
2407 tmake_file=mips/t-elf
2409 mips64orionel-*-elf*)
2410 tm_file="mips/elforion.h mips/elfl64.h"
2411 tmake_file=mips/t-elf
2414 tm_file="mips/elf64.h"
2415 tmake_file=mips/t-elf
2418 tm_file="mips/elforion.h mips/elf64.h"
2419 tmake_file=mips/t-elf
2421 mips64orion-*-rtems*)
2422 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2423 tmake_file="mips/t-elf t-rtems"
2424 if test x$enable_threads = xyes; then
2429 tm_file="mips/elf.h mips/rtems.h"
2430 tmake_file="mips/t-elf t-rtems"
2431 if test x$enable_threads = xyes; then
2436 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2437 tmake_file=mips/t-r3900
2440 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2441 tmake_file=mips/t-r3900
2443 mips-*-*) # Default MIPS RISC-OS 4.0.
2444 if test x$stabs = xyes; then
2445 tm_file="${tm_file} dbx.h"
2447 if test x$gas = xyes
2450 extra_passes="mips-tfile mips-tdump"
2452 if test x$gnu_ld != xyes
2460 tm_file="mn10200/mn10200.h"
2461 if test x$stabs = xyes
2463 tm_file="${tm_file} dbx.h"
2469 tm_file="mn10300/mn10300.h"
2470 if test x$stabs = xyes
2472 tm_file="${tm_file} dbx.h"
2477 tm_file=ns32k/encore.h
2481 tm_file=ns32k/sequent.h
2485 tm_file=ns32k/tek6100.h
2489 tm_file=ns32k/tek6200.h
2493 tm_file=ns32k/merlin.h
2497 tm_file=ns32k/pc532-mach.h
2501 tm_file=ns32k/pc532-min.h
2502 xm_defines='POSIX HZ=60'
2506 tm_file=ns32k/netbsd.h
2507 # On NetBSD, the headers are already okay, except for math.h.
2512 tm_file="${tm_file} pdp11/2bsd.h"
2522 tm_file="svr4.h pj/linux.h ${tm_file}"
2527 tm_file="svr4.h pj/pjl.h ${tm_file}"
2540 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2544 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2546 xm_file=rs6000/xm-beos.h
2547 tmake_file=rs6000/t-beos
2551 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2552 tm_p_file="${tm_p_file} darwin-protos.h"
2553 tmake_file=rs6000/t-darwin
2554 xmake_file=rs6000/x-darwin
2555 # Override the usual setting, since Apple's GCC has lame bugs
2556 # and can't handle the initializers. Someday the bugs will be
2557 # fixed and we can get rid of this silliness.
2558 xm_defines="HAVE_DESIGNATED_INITIALIZERS=0"
2559 extra_objs="darwin.o"
2560 # Darwin linker does collect2 functionality
2564 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2566 extra_headers=ppc-asm.h
2567 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2569 powerpc-*-chorusos*)
2571 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2572 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2573 extra_headers=ppc-asm.h
2574 case x${enable_threads} in
2575 xyes | xpthreads | xposix)
2582 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2583 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2584 extra_headers=ppc-asm.h
2588 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2589 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2590 extra_headers=ppc-asm.h
2594 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2595 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2596 extra_headers=ppc-asm.h
2600 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2601 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2602 extra_headers=ppc-asm.h
2606 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2607 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2608 extra_headers=ppc-asm.h
2609 if test x$enable_threads = xyes; then
2613 powerpc-*-linux*libc1)
2614 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2615 out_file=rs6000/rs6000.c
2616 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2618 extra_headers=ppc-asm.h
2619 if test x$enable_threads = xyes; then
2624 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2625 out_file=rs6000/rs6000.c
2626 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2628 extra_headers=ppc-asm.h
2629 if test x$enable_threads = xyes; then
2633 powerpc-wrs-vxworks*)
2636 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2637 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2638 extra_headers=ppc-asm.h
2639 thread_file='vxworks'
2641 powerpcle-wrs-vxworks*)
2644 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2645 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2646 extra_headers=ppc-asm.h
2647 thread_file='vxworks'
2650 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2652 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2653 extra_headers=ppc-asm.h
2657 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2658 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2659 extra_headers=ppc-asm.h
2661 powerpcle-*-eabisim*)
2663 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2664 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2665 extra_headers=ppc-asm.h
2669 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2670 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2671 extra_headers=ppc-asm.h
2673 powerpcle-*-solaris2*)
2674 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2676 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2677 extra_headers=ppc-asm.h
2679 rs6000-ibm-aix3.[01]*)
2681 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2685 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2687 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2688 tmake_file=rs6000/t-newas
2692 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2694 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2695 tmake_file=rs6000/t-newas
2699 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2701 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2702 tmake_file=rs6000/t-aix43
2707 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2709 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2710 tmake_file=rs6000/t-aix43
2717 tm_file="${tm_file} rs6000/aix.h"
2723 tm_file="${tm_file} rs6000/aix.h"
2728 tm_file="rs6000/rs6000.h rs6000/mach.h"
2733 tm_file=rs6000/lynx.h
2734 tmake_file=rs6000/t-rs6000
2738 tmake_file="sh/t-sh sh/t-elf"
2739 tm_file="sh/sh.h sh/elf.h"
2743 tmake_file="sh/t-sh sh/t-elf t-rtems"
2744 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2746 if test x$enable_threads = xyes; then
2751 tmake_file="sh/t-sh t-rtems"
2752 tm_file="sh/sh.h sh/rtems.h"
2754 if test x$enable_threads = xyes; then
2759 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2760 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2763 if test x$enable_threads = xyes; then
2775 sparc64-wrs-vxworks*)
2776 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2777 tmake_file=sparc/t-vxsparc64
2780 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2781 tm_file=sparc/vxsparc.h
2782 tmake_file=sparc/t-vxsparc
2784 thread_file='vxworks'
2787 tmake_file=sparc/t-sparcbare
2788 tm_file="sparc/aout.h libgloss.h"
2791 tm_file=sparc/netbsd.h
2796 # we need collect2 until our bug is fixed...
2803 tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
2804 tmake_file=sparc/t-chorus-elf
2805 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2807 case x${enable_threads} in
2808 xyes | xpthreads | xposix)
2814 tm_file="sparc/sol2.h sparc/elf.h"
2815 tmake_file=sparc/t-elf
2816 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2820 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2821 tm_file=sparc/linux-aout.h
2825 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2827 tm_file=sparc/linux.h
2828 tmake_file="t-linux t-linux-gnulibc1"
2829 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2833 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2835 tm_file=sparc/linux.h
2836 tmake_file="t-linux"
2837 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2839 if test x$enable_threads = xyes; then
2845 if test x$gas = xyes
2847 tm_file=sparc/lynx.h
2849 tm_file=sparc/lynx-ng.h
2851 tmake_file=sparc/t-sunos41
2854 tmake_file="sparc/t-sparcbare t-rtems"
2855 tm_file=sparc/rtems.h
2856 if test x$enable_threads = xyes; then
2860 sparc-*-rtems*|sparc-*-rtemself*)
2861 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
2862 tmake_file="sparc/t-elf t-rtems"
2863 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2866 if test x$enable_threads = xyes; then
2870 sparcv9-*-solaris2*)
2871 if test x$gnu_ld = xyes
2873 tm_file=sparc/sol2-64.h
2875 tm_file=sparc/sol2-sld-64.h
2878 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2879 if test x$gnu_ld = xyes; then
2880 tmake_file="$tmake_file sparc/t-slibgcc"
2882 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2884 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2886 if test x${enable_threads} = x ; then
2887 enable_threads=$have_pthread_h
2888 if test x${enable_threads} = x ; then
2889 enable_threads=$have_thread_h
2892 if test x${enable_threads} = xyes ; then
2893 if test x${have_pthread_h} = xyes ; then
2896 thread_file='solaris'
2900 sparc-hal-solaris2*)
2902 tm_file="sparc/sol2.h sparc/hal.h"
2903 tmake_file="sparc/t-halos sparc/t-sol2"
2904 if test x$gnu_ld = xyes; then
2905 tmake_file="$tmake_file sparc/t-slibgcc"
2907 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2909 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2918 thread_file='solaris'
2921 if test x$gnu_ld = xyes
2923 tm_file=sparc/sol2.h
2925 tm_file=sparc/sol2-sld.h
2928 tmake_file=sparc/t-sol2
2929 if test x$gnu_ld = xyes; then
2930 tmake_file="$tmake_file sparc/t-slibgcc"
2932 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2934 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2935 # At the moment, 32-to-64 cross compilation doesn't work.
2937 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
2939 # if test x$gnu_ld = xyes
2941 # tm_file=sparc/sol2-64.h
2943 # tm_file=sparc/sol2-sld-64.h
2945 # tmake_file="$tmake_file sparc/t-sol2-64"
2956 if test x${enable_threads} = x; then
2957 enable_threads=$have_pthread_h
2958 if test x${enable_threads} = x; then
2959 enable_threads=$have_thread_h
2962 if test x${enable_threads} = xyes; then
2963 if test x${have_pthread_h} = xyes; then
2966 thread_file='solaris'
2971 tm_file=sparc/sunos4.h
2975 tm_file=sparc/sunos4.h
2976 tmake_file=sparc/t-sunos41
2978 if test x$gas = xyes; then
2979 tm_file="${tm_file} sparc/sun4gas.h"
2983 tm_file=sparc/sun4o3.h
2987 tm_file=sparc/sysv4.h
2990 extra_parts="crtbegin.o crtend.o"
2994 tm_file=sparc/vxsim.h
2995 tmake_file=sparc/t-vxsparc
2998 tm_file="sparc/splet.h libgloss.h"
2999 tmake_file=sparc/t-splet
3002 tm_file="sparc/litecoff.h libgloss.h"
3003 tmake_file=sparc/t-sparclite
3006 tm_file="sparc/lite.h aoutos.h libgloss.h"
3007 tmake_file=sparc/t-sparclite
3010 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3011 tmake_file=sparc/t-sparclite
3012 extra_parts="crtbegin.o crtend.o"
3015 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3016 tmake_file=sparc/t-sp86x
3019 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3020 tmake_file=sparc/t-sp86x
3021 extra_parts="crtbegin.o crtend.o"
3024 tm_file=sparc/sp64-aout.h
3027 tm_file=sparc/sp64-elf.h
3028 extra_parts="crtbegin.o crtend.o"
3030 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3031 tmake_file="t-linux sparc/t-linux64"
3032 tm_file=sparc/linux64.h
3034 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3036 if test x$enable_threads = xyes; then
3042 tm_file=arm/strongarm-elf.h
3043 tmake_file=arm/t-strongarm-elf
3048 tm_file=arm/strongarm-coff.h
3049 tmake_file=arm/t-strongarm-coff
3054 tm_file=arm/strongarm-pe.h
3055 tmake_file=arm/t-strongarm-pe
3061 { echo "config.gcc: error:
3062 *** The Thumb targets have been deprecated. The equivalent
3063 *** ARM based toolchain can now generate Thumb instructions
3064 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3068 tm_file="v850/rtems.h"
3069 tmake_file="v850/t-v850 t-rtems"
3070 if test x$stabs = xyes
3072 tm_file="${tm_file} dbx.h"
3075 c_target_objs="v850-c.o"
3076 cxx_target_objs="v850-c.o"
3079 target_cpu_default="TARGET_CPU_generic"
3081 tm_file="v850/v850.h"
3082 tmake_file=v850/t-v850
3083 if test x$stabs = xyes
3085 tm_file="${tm_file} dbx.h"
3088 c_target_objs="v850-c.o"
3089 cxx_target_objs="v850-c.o"
3091 vax-*-bsd*) # vaxen running BSD
3095 vax-*-sysv*) # vaxen running system V
3096 tm_file="${tm_file} vax/vaxv.h"
3101 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3107 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3111 vax-*-ultrix*) # vaxen running ultrix
3112 tm_file="${tm_file} vax/ultrix.h"
3115 vax-*-vms*) # vaxen running VMS
3116 xm_file=vax/xm-vms.h
3120 vax-*-*) # vax default entry
3128 tm_file=arm/xscale-elf.h
3129 tmake_file=arm/t-xscale-elf
3134 tm_file=arm/xscale-coff.h
3135 tmake_file=arm/t-xscale-coff
3140 echo "Configuration $machine not supported" 1>&2
3147 install_headers_dir=install-headers-cpio
3151 # Distinguish i[34567]86
3152 # Also, do not run mips-tfile on MIPS if using gas.
3153 # Process --with-cpu= for PowerPC/rs6000
3154 target_cpu_default2=
3157 target_cpu_default2=1
3160 case $target_alias in
3162 target_cpu_default2=4
3165 target_cpu_default2=2
3169 i686-*-* | i786-*-*)
3170 target_cpu_default2=3
3175 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3178 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3181 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3184 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3187 target_cpu_default2="MASK_CPU_EV5"
3191 if test x$gas = xyes
3193 if test "$target_cpu_default2" = ""
3195 target_cpu_default2="MASK_GAS"
3197 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3202 case "x$with_cpu" in
3205 target_cpu_default2="TARGET_CPU_generic"
3208 # Distinguish cores, and major variants
3209 # arm7m doesn't exist, but D & I don't affect code
3210 xarm[236789] | xarm250 | xarm[67][01]0 \
3211 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3212 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3214 | xstrongarm | xstrongarm110 | xstrongarm1100)
3215 target_cpu_default2="TARGET_CPU_$with_cpu"
3219 echo "--with-cpu must be passed a value" 1>&2
3224 if test x$pass2done = xyes
3226 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3233 hppa*-*-* | parisc*-*-*)
3234 if test x$gas = xyes
3236 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3240 mips*-*-ecoff* | mips*-*-elf*)
3241 if test x$gas = xyes
3243 if test x$gnu_ld = xyes
3245 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3247 target_cpu_default2="MASK_GAS"
3252 if test x$gas = xyes
3254 target_cpu_default2="MASK_GAS"
3257 powerpc*-*-* | rs6000-*-*)
3258 case "x$with_cpu" in
3262 xcommon | xpower | xpower2 | xpowerpc | xrios \
3263 | xrios1 | xrios2 | xrsc | xrsc1 \
3264 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3265 | xec603e | x740 | x750 | x401 \
3266 | x403 | x505 | x801 | x821 | x823 | x860)
3267 target_cpu_default2="\"$with_cpu\""
3271 echo "--with-cpu must be passed a value" 1>&2
3276 if test x$pass2done = xyes
3278 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3285 case ".$with_cpu" in
3287 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3289 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3290 target_cpu_default2="TARGET_CPU_$with_cpu"
3293 if test x$pass2done = xyes
3295 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3303 if test "$target_cpu_default2" != ""
3305 if test "$target_cpu_default" != ""
3307 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3309 target_cpu_default=$target_cpu_default2
3313 # No need for collect2 if we have the GNU linker.
3314 # Actually, there is now; GNU ld doesn't handle the EH info or
3315 # collecting for shared libraries.
3322 # Save data on machine being used to compile GCC in build_xm_file.
3323 # Save data on host machine in vars host_xm_file and host_xmake_file.
3324 if test x$pass1done = x
3326 if test x$xm_file != x
3327 then build_xm_file=$xm_file
3329 build_xm_defines=$xm_defines
3330 build_install_headers_dir=$install_headers_dir
3331 build_exeext=$exeext
3334 if test x$pass2done = x
3336 if test x$xm_file != x
3337 then host_xm_file=$xm_file
3339 host_xm_defines=$xm_defines
3340 host_xmake_file="$xmake_file"
3341 host_truncate_target=$truncate_target
3342 host_extra_gcc_objs=$extra_gcc_objs
3343 host_extra_objs=$extra_host_objs