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-slibgcc-elf-ver 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 t-libgcc-pic"
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"
342 if test x${thread_file} = xposix; then
343 if test x${enable_libgcj} = xyes; then
344 echo 'FreeBSD does not currently handle --enable-threads (now'
345 echo 'the default to match system compiler) and --enable-libgcj.'
346 echo 'Please explicitly configure with --disable-threads or'
347 echo '--disable-libgcj'
355 # Support site-specific machine types.
357 rest=`echo $machine | sed -e "s/$cpu_type-//"`
358 tm_file=${cpu_type}/$rest.h
359 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
360 then xm_file=${cpu_type}/xm-$rest.h
362 if test -f $srcdir/config/${cpu_type}/x-$rest
363 then xmake_file=${cpu_type}/x-$rest
365 if test -f $srcdir/config/${cpu_type}/t-$rest
366 then tmake_file=${cpu_type}/t-$rest
370 # 1750a is only supported as a target.
371 case "$build,$host" in 1750a*,* | *,1750a* )
372 echo "*** $machine is only supported as a target" >&2
376 a29k-*-bsd* | a29k-*-sym1*)
377 tm_file="${tm_file} a29k/unix.h"
381 a29k-*-udi | a29k-*-coff)
382 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
383 tmake_file=a29k/t-a29kbare
387 tmake_file="a29k/t-a29kbare t-rtems"
388 if test x$enable_threads = xyes; then
393 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
394 tmake_file=a29k/t-vx29k
395 extra_parts="crtbegin.o crtend.o"
396 thread_file='vxworks'
398 a29k-*-*) # Default a29k environment.
402 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
404 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
405 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
407 # GAS + IEEE_CONFORMANT
408 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
411 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
413 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
414 if test x$enable_threads = xyes ; then
417 if test x$stabs = xyes ; then
418 tm_file="${tm_file} dbxcoff.h"
420 #prefix='$$INTERIX_ROOT'/usr/contrib
421 #local_prefix='$$INTERIX_ROOT'/usr/contrib
423 alpha*-*-linux*ecoff*)
424 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
425 target_cpu_default="MASK_GAS"
426 tmake_file="alpha/t-alpha alpha/t-ieee"
430 alpha*-*-linux*libc1*)
431 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
432 target_cpu_default="MASK_GAS"
433 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-crtfm alpha/t-ieee"
435 if test x$enable_threads = xyes; then
440 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
441 target_cpu_default="MASK_GAS"
442 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
444 if test x$enable_threads = xyes; then
449 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
450 target_cpu_default="MASK_GAS"
451 tmake_file="${tmake_file} alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
455 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
456 target_cpu_default="MASK_GAS"
457 tmake_file="alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
462 # default x-alpha is only appropriate for dec-osf.
463 target_cpu_default="MASK_GAS"
464 tmake_file="alpha/t-alpha alpha/t-ieee"
469 if test x$stabs = xyes
471 tm_file="${tm_file} dbx.h"
473 if test x$gas != xyes
475 extra_passes="mips-tfile mips-tdump"
478 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf alpha/t-crtfm"
481 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
484 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
487 tm_file="${tm_file} alpha/osf.h"
488 tmake_file="$tmake_file alpha/t-osf4"
489 # Some versions of OSF4 (specifically X4.0-9 296.7) have
490 # a broken tar, so we use cpio instead.
491 install_headers_dir=install-headers-cpio
494 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
495 tmake_file="$tmake_file alpha/t-osf4"
500 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
501 target_cpu_default=MASK_SUPPORT_ARCH
507 tm_file="${tm_file} dbx.h alpha/vxworks.h"
508 tmake_file="alpha/t-alpha alpha/t-ieee"
511 extra_passes="mips-tfile mips-tdump"
514 thread_file='vxworks'
519 xm_file=alpha/xm-vms.h
520 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
523 tm_file=arm/rtems-elf.h
524 tmake_file="arm/t-arm-elf t-rtems"
525 if test x$enable_threads = xyes; then
530 extra_parts="crtinit.o crtfini.o"
532 arm-*-coff* | armel-*-coff*)
534 tmake_file=arm/t-arm-coff
538 tmake_file=arm/t-arm-coff
539 thread_file='vxworks'
541 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
542 tm_file=arm/riscix1-1.h
545 arm-*-riscix*) # Acorn RISC machine
548 tm_file=arm/rix-gas.h
552 xmake_file=arm/x-riscix
553 tmake_file=arm/t-riscix
556 arm-semi-aout | armel-semi-aout)
558 tmake_file=arm/t-semi
560 arm-semi-aof | armel-semi-aof)
561 tm_file=arm/semiaof.h
562 tmake_file=arm/t-semi
566 tmake_file="t-netbsd arm/t-netbsd"
569 arm*-*-linux*) # ARM GNU/Linux with ELF
571 tm_file="arm/linux-elf.h"
572 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
573 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
575 case x${enable_threads} in
576 x | xyes | xpthreads | xposix)
581 arm*-*-uclinux*) # ARM ucLinux
582 tm_file=arm/uclinux-elf.h
583 tmake_file=arm/t-arm-elf
587 tmake_file=arm/t-arm-aout
590 tm_file=arm/ecos-elf.h
591 tmake_file=arm/t-arm-elf
594 tm_file=arm/unknown-elf.h
595 tmake_file=arm/t-arm-elf
598 tm_file=arm/conix-elf.h
599 tmake_file=arm/t-arm-elf
602 tm_file=arm/unknown-elf-oabi.h
603 tmake_file=arm/t-arm-elf
612 c1-convex-*) # Convex C1
616 c2-convex-*) # Convex C2
629 target_cpu_default=16
634 tmake_file="c4x/t-c4x t-rtems"
636 if test x$enable_threads = xyes; then
645 clipper-intergraph-clix*)
646 tm_file="${tm_file} svr3.h clipper/clix.h"
648 extra_headers=va-clipper.h
649 extra_parts="crtbegin.o crtend.o"
650 install_headers_dir=install-headers-cpio
661 tm_file="fr30/fr30.h"
662 tmake_file=fr30/t-fr30
663 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
666 tmake_file="h8300/t-h8300 t-rtems"
667 tm_file=h8300/rtems.h
668 if test x$enable_threads = xyes; then
676 hppa*64*-*-linux* | parisc*64*-*-linux*)
677 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
678 tm_file="pa/pa64-start.h ${tm_file} linux.h pa/pa-linux.h \
679 pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
680 tmake_file=pa/t-linux64
683 hppa*-*-linux* | parisc*-*-linux*)
684 target_cpu_default="MASK_PA_11"
685 tm_file="${tm_file} linux.h pa/pa-linux.h \
686 pa/pa32-regs.h pa/pa32-linux.h"
687 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
688 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
690 if test x$enable_threads = xyes; then
695 target_cpu_default="MASK_PA_11"
696 tmake_file=pa/t-openbsd
699 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
700 tmake_file="pa/t-pro t-rtems"
701 if test x$enable_threads = xyes; then
706 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
707 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
711 target_cpu_default="MASK_PA_11"
712 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
716 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
717 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
721 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
725 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
726 target_cpu_default="MASK_PA_11"
730 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
734 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
736 xmake_file=pa/x-pa-hpux
737 install_headers_dir=install-headers-cpio
740 hppa1.0-*-hpux8.0[0-2]*)
741 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
743 xmake_file=pa/x-pa-hpux
744 if test x$gas != xyes
746 tm_file="pa/pa-oldas.h ${tm_file}"
748 install_headers_dir=install-headers-cpio
751 hppa1.1-*-hpux8.0[0-2]*)
752 target_cpu_default="MASK_PA_11"
753 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
755 xmake_file=pa/x-pa-hpux
756 if test x$gas != xyes
758 tm_file="pa/pa-oldas.h ${tm_file}"
760 install_headers_dir=install-headers-cpio
764 target_cpu_default="MASK_PA_11"
765 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
767 xmake_file=pa/x-pa-hpux
768 install_headers_dir=install-headers-cpio
772 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
774 xmake_file=pa/x-pa-hpux
775 install_headers_dir=install-headers-cpio
778 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
779 target_cpu_default="MASK_PA_11"
780 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
783 xmake_file=pa/x-pa-hpux
785 if test x$enable_threads = x; then
786 enable_threads=$have_pthread_h
788 case x${enable_threads} in
790 tmake_file="${tmake_file} pa/t-dce-thr"
793 install_headers_dir=install-headers-cpio
797 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
800 xmake_file=pa/x-pa-hpux
802 if test x$enable_threads = x; then
803 enable_threads=$have_pthread_h
805 case x${enable_threads} in
807 tmake_file="${tmake_file} pa/t-dce-thr"
810 install_headers_dir=install-headers-cpio
815 xmake_file=pa/x-pa-hpux
817 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"
820 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
822 # if [ x$enable_threads = x ]; then
823 # enable_threads=$have_pthread_h
825 # if [ x$enable_threads = xyes ]; then
827 # tmake_file="${tmake_file} pa/t-dce-thr"
829 install_headers_dir=install-headers-cpio
832 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
833 target_cpu_default="MASK_PA_11"
834 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
837 xmake_file=pa/x-pa-hpux
839 # if test x$enable_threads = x; then
840 # enable_threads=$have_pthread_h
842 # if test x$enable_threads = xyes; then
844 # tmake_file="${tmake_file} pa/t-dce-thr"
846 install_headers_dir=install-headers-cpio
850 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
853 xmake_file=pa/x-pa-hpux
854 # if test x$enable_threads = x; then
855 # enable_threads=$have_pthread_h
857 # if test x$enable_threads = xyes; then
859 # tmake_file="${tmake_file} pa/t-dce-thr"
861 install_headers_dir=install-headers-cpio
864 hppa1.1-*-hpux* | hppa2*-*-hpux*)
865 target_cpu_default="MASK_PA_11"
866 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
868 xmake_file=pa/x-pa-hpux
869 install_headers_dir=install-headers-cpio
873 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
875 xmake_file=pa/x-pa-hpux
876 install_headers_dir=install-headers-cpio
879 hppa1.1-*-hiux* | hppa2*-*-hiux*)
880 target_cpu_default="MASK_PA_11"
881 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
883 xmake_file=pa/x-pa-hpux
884 install_headers_dir=install-headers-cpio
888 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
890 xmake_file=pa/x-pa-hpux
891 install_headers_dir=install-headers-cpio
895 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
896 target_cpu_default="MASK_PA_11"
900 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
901 xmake_file=pa/x-pa-mpeix
902 echo "You must use gas. Assuming it is already installed."
904 install_headers_dir=install-headers-tar
907 i370-*-opened*) # IBM 360/370/390 Architecture
908 xm_defines='POSIX FATAL_EXIT_CODE=12'
913 xm_defines='POSIX FATAL_EXIT_CODE=12'
918 tm_file="i370/linux.h ${tm_file}"
919 tmake_file="t-slibgcc-elf-ver t-linux"
921 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
922 # extra_parts="crtbegin.o crtend.o"
926 if test x$enable_threads = xyes; then
930 i[34567]86-*-chorusos*)
932 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h chorus.h"
933 tmake_file=i386/t-i386elf
935 case x${enable_threads} in
936 xyes | xpthreads | xposix)
943 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h"
944 tmake_file=i386/t-i386elf
947 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
950 tm_file=i386/aix386.h
951 extra_parts="crtbegin.o crtend.o"
952 tmake_file=i386/t-crtstuff
954 tm_file=i386/aix386ng.h
959 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
960 xm_defines="POSIX SMALL_ARG_MAX"
961 if test x$stabs = xyes -a x$gas = xyes
963 tm_file=i386/sysv4gdb.h
967 extra_parts="crtbegin.o crtend.o"
968 tmake_file=i386/t-crtpic
972 tmake_file=i386/t-next
973 extra_objs=nextstep.o
974 extra_parts="crtbegin.o crtend.o"
975 if test x$enable_threads = xyes; then
979 i[34567]86-*-netware) # Intel 80386's running netware
980 tm_file=i386/netware.h
981 tmake_file=i386/t-netware
983 i[34567]86-sequent-bsd*) # 80386 from Sequent
987 tm_file=i386/seq-gas.h
989 tm_file=i386/sequent.h
992 i[34567]86-sequent-ptx1*)
994 tm_file=i386/seq-sysv3.h
995 tmake_file=i386/t-crtstuff
996 extra_parts="crtbegin.o crtend.o"
997 install_headers_dir=install-headers-cpio
999 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1001 tm_file=i386/seq2-sysv3.h
1002 tmake_file=i386/t-crtstuff
1003 extra_parts="crtbegin.o crtend.o"
1004 install_headers_dir=install-headers-cpio
1006 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1007 if test x$gas = xyes
1009 tm_file="${tm_file} usegas.h"
1011 xm_defines="POSIX SMALL_ARG_MAX"
1013 tm_file=i386/ptx4-i.h
1015 extra_parts="crtbegin.o crtend.o"
1016 install_headers_dir=install-headers-cpio
1018 i386-sun-sunos*) # Sun i386 roadrunner
1023 i[34567]86-wrs-vxworks*)
1024 tm_file=i386/vxi386.h
1025 thread_file='vxworks'
1028 tm_file=i386/i386-aout.h
1030 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1032 tmake_file='i386/t-beos i386/t-crtpic'
1033 tm_file=i386/beos-elf.h
1034 xmake_file=i386/x-beos
1035 extra_parts='crtbegin.o crtend.o'
1037 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1038 tm_file="i386/386bsd.h i386/bsd386.h"
1039 # tmake_file=t-libc-ok
1042 tm_file=i386/386bsd.h
1043 # tmake_file=t-libc-ok
1044 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1047 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1048 tm_file=i386/freebsd-aout.h
1049 tmake_file=t-freebsd
1051 i[34567]86-*-freebsd*)
1052 tm_file="${tm_file} i386/att.h svr4.h ${fbsd_tm_file} i386/freebsd.h"
1054 i[34567]86-*-netbsd*)
1055 tm_file=i386/netbsd.h
1059 i[34567]86-*-openbsd*)
1060 # needed to unconfuse gdb
1061 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1062 # we need collect2 until our bug is fixed...
1066 tm_file=i386/i386-coff.h
1068 i[34567]86-*-isc*) # 80386 running ISC system
1070 if test x$gas = xyes -a x$stabs = xyes
1072 tm_file=i386/iscdbx.h
1073 tmake_file=i386/t-svr3dbx
1074 extra_parts="svr3.ifile svr3z.ifile"
1076 tm_file=i386/isccoff.h
1077 tmake_file=i386/t-crtstuff
1078 extra_parts="crtbegin.o crtend.o"
1080 install_headers_dir=install-headers-cpio
1082 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1083 # with a.out format using
1085 tmake_file="t-linux-aout i386/t-crtstuff"
1086 tm_file=i386/linux-oldld.h
1090 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1092 tmake_file="t-linux-aout i386/t-crtstuff"
1093 tm_file=i386/linux-aout.h
1097 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1098 # with ELF format using the
1099 # GNU/Linux C library 5
1101 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1102 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1103 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1106 if test x$enable_threads = xyes; then
1107 thread_file='single'
1110 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1111 # with ELF format using glibc 2
1112 # aka GNU/Linux C library 6
1114 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1115 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1116 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1119 if test x$enable_threads = xyes; then
1126 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1127 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1130 i[34567]86-pc-msdosdjgpp*)
1131 xm_file=i386/xm-djgpp.h
1132 tm_file=i386/djgpp.h
1133 xmake_file=i386/x-djgpp
1138 case $host in *pc-msdosdjgpp*)
1143 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1144 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h"
1145 tmake_file=t-libc-ok
1149 i[34567]86-*-lynxos*)
1150 if test x$gas = xyes
1154 tm_file=i386/lynx-ng.h
1159 # tmake_file=t-libc-ok
1162 i[34567]86-*-osfrose*) # 386 using OSF/rose
1163 if test x$elf = xyes
1165 tm_file=i386/osfelf.h
1168 tm_file=i386/osfrose.h
1171 tmake_file=i386/t-osf
1172 extra_objs=halfpic.o
1174 i[34567]86-go32-rtems*)
1176 tm_file=i386/go32-rtems.h
1178 if test x$enable_threads = xyes; then
1182 i[34567]86-*-rtemscoff*)
1184 tm_file=i386/rtems.h
1186 if test x$enable_threads = xyes; then
1190 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1192 tm_file=i386/rtemself.h
1193 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1194 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1195 if test x$enable_threads = xyes; then
1199 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1201 xmake_file=i386/x-sco5
1202 install_headers_dir=install-headers-cpio
1204 if test x$gas = xyes
1206 tm_file="usegas.h ${tm_file}"
1207 tmake_file=i386/t-sco5gas
1209 tmake_file=i386/t-sco5
1211 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1213 i[34567]86-*-solaris2*)
1214 xm_defines="POSIX SMALL_ARG_MAX"
1216 if test x$gas = xyes; then
1217 # Only needed if gas does not support -s
1218 tm_file="i386/sol2gas.h ${tm_file}"
1220 tmake_file=i386/t-sol2
1221 if test x$gnu_ld = xyes; then
1222 tmake_file="$tmake_file t-slibgcc-elf-ver"
1224 tmake_file="$tmake_file t-slibgcc-sld"
1226 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1228 if test x${enable_threads} = x; then
1229 enable_threads=$have_pthread_h
1230 if test x${enable_threads} = x; then
1231 enable_threads=$have_thread_h
1234 if test x${enable_threads} = xyes; then
1235 if test x${have_pthread_h} = xyes; then
1238 thread_file='solaris'
1242 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1244 tm_file=i386/sysv5.h
1245 if test x$stabs = xyes
1247 tm_file="${tm_file} dbx.h"
1249 tmake_file=i386/t-crtpic
1251 extra_parts="crtbegin.o crtend.o"
1252 if test x$enable_threads = xyes; then
1256 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1257 xm_defines="POSIX SMALL_ARG_MAX"
1258 tm_file=i386/sysv4.h
1259 if test x$stabs = xyes
1261 tm_file="${tm_file} dbx.h"
1263 tmake_file=i386/t-crtpic
1265 extra_parts="crtbegin.o crtend.o"
1267 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1270 tmake_file="i386/t-crtpic i386/t-udk"
1272 extra_parts="crtbegin.o crtend.o"
1273 install_headers_dir=install-headers-cpio
1275 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1277 xm_file=i386/xm-osf1elf.h
1278 xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1279 if test x$stabs = xyes
1281 tm_file=i386/osf1elfgdb.h
1283 tm_file=i386/osf1elf.h
1285 tmake_file=i386/t-osf1elf
1286 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1288 i[34567]86-*-sysv*) # Intel 80386's running system V
1290 if test x$gas = xyes
1292 if test x$stabs = xyes
1294 tm_file=i386/svr3dbx.h
1295 tmake_file=i386/t-svr3dbx
1296 extra_parts="svr3.ifile svr3z.rfile"
1298 tm_file=i386/svr3gas.h
1299 extra_parts="crtbegin.o crtend.o"
1300 tmake_file=i386/t-crtstuff
1303 tm_file=i386/sysv3.h
1304 extra_parts="crtbegin.o crtend.o"
1305 tmake_file=i386/t-crtstuff
1307 tmake_file="$tmake_file i386/t-crtpic"
1309 i386-*-vsta) # Intel 80386's running VSTa kernel
1310 xm_file=i386/xm-vsta.h
1315 xm_file=i386/xm-cygwin.h
1317 tmake_file=i386/t-cygwin
1318 tm_file=i386/win32.h
1319 xmake_file=i386/x-cygwin
1321 if test x$enable_threads = xyes; then
1326 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1328 xm_file=i386/xm-cygwin.h
1330 tmake_file=i386/t-cygwin
1331 tm_file=i386/cygwin.h
1332 xmake_file=i386/x-cygwin
1334 if test x$enable_threads = xyes; then
1339 i[34567]86-*-mingw32*)
1340 tm_file=i386/mingw32.h
1343 xm_file=i386/xm-mingw32.h
1344 tmake_file="i386/t-cygwin i386/t-mingw32"
1346 xmake_file=i386/x-cygwin
1347 if test x$enable_threads = xyes; then
1354 *minwg32crt* | *mingw32*)
1355 tm_file="${tm_file} i386/crtdll.h"
1361 tmake_file="i386/t-cygwin i386/t-uwin"
1363 xmake_file=i386/x-cygwin
1364 if test x$enable_threads = xyes; then
1369 i[34567]86-*-interix*)
1370 tm_file="i386/i386-interix.h interix.h"
1371 xm_file="i386/xm-i386-interix.h xm-interix.h"
1373 tmake_file="i386/t-interix"
1374 extra_objs=interix.o
1375 xmake_file=x-interix
1376 if test x$enable_threads = xyes ; then
1379 if test x$stabs = xyes ; then
1380 tm_file="${tm_file} dbxcoff.h"
1383 i[34567]86-dg-dgux*)
1385 out_file=i386/dgux.c
1387 tmake_file=i386/t-dgux
1388 xmake_file=i386/x-dgux
1389 install_headers_dir=install-headers-cpio
1391 i860-alliant-*) # Alliant FX/2800
1392 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1393 tmake_file=i860/t-fx2800
1394 extra_parts="crtbegin.o crtend.o"
1397 tm_file="${tm_file} i860/bsd.h"
1398 if test x$gas = xyes
1400 tm_file="${tm_file} i860/bsd-gas.h"
1405 tm_file="${tm_file} i860/mach.h"
1406 tmake_file=t-libc-ok
1408 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1409 tm_file="${tm_file} svr3.h i860/paragon.h"
1413 tm_file="${tm_file} svr3.h i860/sysv3.h"
1415 extra_parts="crtbegin.o crtend.o"
1418 tm_file="${tm_file} svr4.h i860/sysv4.h"
1421 extra_parts="crtbegin.o crtend.o"
1423 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1424 tm_file="${tm_file} i960/vx960.h"
1425 tmake_file=i960/t-vxworks960
1427 thread_file='vxworks'
1428 c_target_objs="i960-c.o"
1429 cxx_target_objs="i960-c.o"
1431 i960-wrs-vxworks5* | i960-wrs-vxworks)
1432 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1433 tmake_file=i960/t-vxworks960
1435 thread_file='vxworks'
1436 c_target_objs="i960-c.o"
1437 cxx_target_objs="i960-c.o"
1440 tm_file="${tm_file} i960/vx960.h"
1441 tmake_file=i960/t-vxworks960
1443 thread_file='vxworks'
1444 c_target_objs="i960-c.o"
1445 cxx_target_objs="i960-c.o"
1448 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1449 tmake_file=i960/t-960bare
1450 c_target_objs="i960-c.o"
1451 cxx_target_objs="i960-c.o"
1454 tmake_file="i960/t-960bare t-rtems"
1455 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1456 if test x$enable_threads = xyes; then
1459 c_target_objs="i960-c.o"
1460 cxx_target_objs="i960-c.o"
1462 i960-*-*) # Default i960 environment.
1464 c_target_objs="i960-c.o"
1465 cxx_target_objs="i960-c.o"
1468 tm_file="${tm_file} svr4.h ia64/sysv4.h ia64/aix.h"
1469 tmake_file="ia64/t-ia64 ia64/t-aix"
1470 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1474 tmake_file="ia64/t-ia64"
1475 target_cpu_default="0"
1476 if test x$gas = xyes
1478 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1480 if test x$gnu_ld = xyes
1482 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1487 tm_file=ia64/linux.h
1488 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1489 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1490 if test x$enable_threads = xyes; then
1496 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1497 tmake_file="ia64/t-ia64 ia64/t-hpux"
1498 target_cpu_default="MASK_GNU_AS"
1499 if test x$enable_threads = xyes; then
1505 extra_parts="crtinit.o crtfini.o"
1507 # m68hc11 and m68hc12 share the same machine description.
1508 m68hc11-*-*|m6811-*-*)
1509 tm_file="elfos.h m68hc11/m68hc11.h"
1510 tm_p_file="m68hc11/m68hc11-protos.h"
1511 md_file="m68hc11/m68hc11.md"
1512 out_file="m68hc11/m68hc11.c"
1513 tmake_file="m68hc11/t-m68hc11-gas"
1515 m68hc12-*-*|m6812-*-*)
1516 tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1517 tm_p_file="m68hc11/m68hc11-protos.h"
1518 md_file="m68hc11/m68hc11.md"
1519 out_file="m68hc11/m68hc11.c"
1520 tmake_file="m68hc11/t-m68hc11-gas"
1522 m68000-convergent-sysv*)
1526 extra_headers=math-68881.h
1528 m68000-hp-bsd*) # HP 9000/200 running BSD
1529 tm_file=m68k/hp2bsd.h
1531 extra_headers=math-68881.h
1533 m68000-hp-hpux*) # HP 9000 series 300
1535 if test x$gas = xyes
1537 xmake_file=m68k/x-hp320g
1538 tm_file=m68k/hp310g.h
1540 xmake_file=m68k/x-hp320
1541 tm_file=m68k/hp310.h
1543 install_headers_dir=install-headers-cpio
1545 extra_headers=math-68881.h
1550 extra_headers=math-68881.h
1553 tm_file=m68k/sun2o4.h
1555 extra_headers=math-68881.h
1559 if test x$gas = xyes
1566 extra_headers=math-68881.h
1568 m68k-apple-aux*) # Apple Macintosh running A/UX
1570 tmake_file=m68k/t-aux
1571 install_headers_dir=install-headers-cpio
1572 extra_headers=math-68881.h
1573 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1575 if test "$gnu_ld" = yes
1577 tm_file="${tm_file} m68k/auxgld.h"
1579 tm_file="${tm_file} m68k/auxld.h"
1581 if test "$gas" = yes
1583 tm_file="${tm_file} m68k/auxgas.h"
1585 tm_file="${tm_file} m68k/auxas.h"
1587 tm_file="${tm_file} m68k/a-ux.h"
1591 tm_file=m68k/apollo68.h
1593 extra_headers=math-68881.h
1596 m68k-altos-sysv*) # Altos 3068
1597 if test x$gas = xyes
1599 tm_file=m68k/altos3068.h
1602 echo "The Altos is supported only with the GNU assembler" 1>&2
1605 extra_headers=math-68881.h
1607 m68k-bull-sysv*) # Bull DPX/2
1608 if test x$gas = xyes
1610 if test x$stabs = xyes
1612 tm_file=m68k/dpx2cdbx.h
1614 tm_file=m68k/dpx2g.h
1621 extra_headers=math-68881.h
1623 m68k-atari-sysv4*) # Atari variant of V.4.
1624 tm_file=m68k/atari.h
1627 extra_parts="crtbegin.o crtend.o"
1628 extra_headers=math-68881.h
1631 m68k-motorola-sysv*)
1632 tm_file=m68k/mot3300.h
1634 if test x$gas = xyes
1636 if test x$gnu_ld = xyes
1638 tmake_file=m68k/t-mot3300-gald
1640 tmake_file=m68k/t-mot3300-gas
1644 if test x$gnu_ld = xyes
1646 tmake_file=m68k/t-mot3300-gld
1648 tmake_file=m68k/t-mot3300
1652 gdb_needs_out_file_path=yes
1653 extra_parts="crt0.o mcrt0.o"
1654 extra_headers=math-68881.h
1657 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1658 tm_file=m68k/tower-as.h
1660 extra_parts="crtbegin.o crtend.o"
1661 extra_headers=math-68881.h
1664 tm_file=m68k/plexus.h
1667 extra_headers=math-68881.h
1672 extra_headers=math-68881.h
1678 extra_headers=math-68881.h
1680 m68k-cbm-sysv4*) # Commodore variant of V.4.
1684 extra_parts="crtbegin.o crtend.o"
1685 extra_headers=math-68881.h
1689 tm_file=m68k/ccur-GAS.h
1690 extra_headers=math-68881.h
1694 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1695 tm_file=m68k/hp3bsd44.h
1697 extra_headers=math-68881.h
1700 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1701 tm_file=m68k/hp3bsd.h
1703 extra_headers=math-68881.h
1707 if test x$with_fp = xno
1709 tm_file=m68k/isi-nfp.h
1715 extra_headers=math-68881.h
1717 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1719 if test x$gas = xyes
1721 xmake_file=m68k/x-hp320g
1722 tm_file=m68k/hp320g.h
1724 xmake_file=m68k/x-hp320
1725 tm_file=m68k/hpux7.h
1727 install_headers_dir=install-headers-cpio
1729 extra_headers=math-68881.h
1732 m68k-hp-hpux*) # HP 9000 series 300
1734 if test x$gas = xyes
1736 xmake_file=m68k/x-hp320g
1737 tm_file=m68k/hp320g.h
1739 xmake_file=m68k/x-hp320
1740 tm_file=m68k/hp320.h
1742 install_headers_dir=install-headers-cpio
1744 extra_headers=math-68881.h
1748 tm_file=m68k/sun3mach.h
1750 extra_headers=math-68881.h
1754 if test x$gas = xyes
1756 tm_file=m68k/news3gas.h
1758 tm_file=m68k/news3.h
1761 extra_headers=math-68881.h
1764 m68k-sony-bsd* | m68k-sony-newsos*)
1765 if test x$gas = xyes
1767 tm_file=m68k/newsgas.h
1772 extra_headers=math-68881.h
1775 m68k-next-nextstep2*)
1776 tm_file=m68k/next21.h
1777 tmake_file=m68k/t-next
1778 xmake_file=m68k/x-next
1779 extra_objs=nextstep.o
1780 extra_headers=math-68881.h
1784 m68k-next-nextstep[34]*)
1786 tmake_file=m68k/t-next
1787 xmake_file=m68k/x-next
1788 extra_objs=nextstep.o
1789 extra_parts="crtbegin.o crtend.o"
1790 extra_headers=math-68881.h
1792 if test x$enable_threads = xyes; then
1797 if test x$with_fp = xno
1799 tm_file=m68k/sun3n3.h
1801 tm_file=m68k/sun3o3.h
1805 extra_headers=math-68881.h
1807 m68k-sun-sunos*) # For SunOS 4 (the default).
1808 if test x$with_fp = xno
1810 tm_file=m68k/sun3n.h
1816 extra_headers=math-68881.h
1819 tm_file=m68k/vxm68k.h
1820 tmake_file=m68k/t-vxworks68
1821 extra_headers=math-68881.h
1822 thread_file='vxworks'
1826 tmake_file=m68k/t-m68kbare
1827 tm_file="m68k/m68k-aout.h libgloss.h"
1828 extra_headers=math-68881.h
1832 tmake_file=m68k/t-m68kbare
1833 tm_file="m68k/m68k-coff.h dbx.h"
1834 extra_headers=math-68881.h
1837 m68020-*-elf* | m68k-*-elf*)
1838 tm_file="m68k/m68020-elf.h"
1840 tmake_file=m68k/t-m68kelf
1841 header_files=math-68881.h
1842 extra_parts="crtbegin.o crtend.o"
1845 if test x$gas = xyes
1849 tm_file=m68k/lynx-ng.h
1851 tmake_file=m68k/t-lynx
1852 extra_headers=math-68881.h
1856 tm_file=m68k/netbsd.h
1862 # needed to unconfuse gdb
1863 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1865 # we need collect2 until our bug is fixed...
1868 m68k-*-sysv3*) # Motorola m68k's running system V.3
1870 extra_parts="crtbegin.o crtend.o"
1871 extra_headers=math-68881.h
1874 m68k-*-sysv4*) # Motorola m68k's running system V.4
1875 tm_file=m68k/m68kv4.h
1878 extra_parts="crtbegin.o crtend.o"
1879 extra_headers=math-68881.h
1882 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1885 tm_file=m68k/linux-aout.h
1886 tmake_file="t-linux-aout m68k/t-linux-aout"
1887 extra_headers=math-68881.h
1891 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1892 # with ELF format using the
1893 # GNU/Linux C library 5
1895 tm_file=m68k/linux.h
1896 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
1897 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1898 extra_headers=math-68881.h
1902 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1903 # with ELF format using glibc 2
1904 # aka the GNU/Linux C library 6.
1906 tm_file=m68k/linux.h
1907 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
1908 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1909 extra_headers=math-68881.h
1912 if test x$enable_threads = xyes; then
1917 tmake_file=m68k/t-m68kbare
1918 tm_file=m68k/m68k-psos.h
1919 extra_headers=math-68881.h
1923 tmake_file="m68k/t-m68kbare t-rtems"
1924 tm_file=m68k/rtems.h
1925 extra_headers=math-68881.h
1927 if test x$enable_threads = xyes; then
1931 m68k-*-rtemself*|m68k-*-rtems*)
1932 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1933 tm_file=m68k/rtemself.h
1934 extra_headers=math-68881.h
1936 extra_parts="crtbegin.o crtend.o"
1937 if test x$enable_threads = xyes; then
1945 tm_file=m88k/dguxbcs.h
1946 tmake_file=m88k/t-dguxbcs
1950 tmake_file=m88k/t-dgux
1953 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1954 xmake_file=m88k/x-dgux
1955 if test x$gas = xyes
1957 tmake_file=m88k/t-dgux-gas
1960 m88k-dolphin-sysv3*)
1962 tm_file=m88k/dolph.h
1963 extra_parts="crtbegin.o crtend.o"
1964 xmake_file=m88k/x-dolph
1965 if test x$gas = xyes
1967 tmake_file=m88k/t-m88k-gas
1970 m88k-tektronix-sysv3)
1972 tm_file=m88k/tekXD88.h
1973 extra_parts="crtbegin.o crtend.o"
1974 xmake_file=m88k/x-tekXD88
1975 if test x$gas = xyes
1977 tmake_file=m88k/t-m88k-gas
1982 tm_file=m88k/m88k-aout.h
1986 tm_file=m88k/m88k-coff.h
1987 tmake_file=m88k/t-bug
1991 extra_parts="crtbegin.o crtend.o"
1992 if test x$gas = xyes
1994 tmake_file=m88k/t-luna-gas
1996 tmake_file=m88k/t-luna
2000 tmake_file="${tmake_file} m88k/t-luna-gas"
2001 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2005 tm_file=m88k/sysv3.h
2006 extra_parts="crtbegin.o crtend.o"
2007 if test x$gas = xyes
2009 tmake_file=m88k/t-m88k-gas
2014 tm_file=m88k/sysv4.h
2015 extra_parts="crtbegin.o crtend.o"
2016 tmake_file=m88k/t-sysv4
2019 tm_file=mcore/mcore-elf.h
2020 tmake_file=mcore/t-mcore
2023 tm_file=mcore/mcore-pe.h
2024 tmake_file=mcore/t-mcore-pe
2026 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2027 if test "x$gnu_ld" = xyes
2029 tm_file="mips/iris6.h mips/iris6gld.h"
2031 tm_file=mips/iris6.h
2033 tmake_file=mips/t-iris6
2035 xmake_file=mips/x-iris6
2036 # if test x$enable_threads = xyes; then
2037 # thread_file='irix'
2041 tm_file="mips/elf.h mips/vxworks.h"
2042 tmake_file=mips/t-ecoff
2045 extra_parts="crtbegin.o crtend.o"
2046 thread_file='vxworks'
2048 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2049 tm_file="mips/iris6.h mips/cross64.h"
2051 xm_file=mips/xm-iris5.h
2052 xmake_file=mips/x-iris
2053 tmake_file=mips/t-cross64
2054 # See comment in mips/iris[56].h files.
2056 # if test x$enable_threads = xyes; then
2057 # thread_file='irix'
2061 if test x$gas = xyes
2063 if test x$stabs = xyes
2065 tm_file=mips/iris5gdb.h
2067 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2070 tm_file=mips/sni-svr4.h
2073 if test x$gnu_ld != xyes
2078 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2079 if test x$gas = xyes
2081 tm_file="mips/iris5.h mips/iris5gas.h"
2082 if test x$stabs = xyes
2084 tm_file="${tm_file} dbx.h"
2087 tm_file=mips/iris5.h
2090 xm_file=mips/xm-iris5.h
2091 xmake_file=mips/x-iris
2092 # mips-tfile doesn't work yet
2093 # See comment in mips/iris5.h file.
2095 # if test x$enable_threads = xyes; then
2096 # thread_file='irix'
2099 mips-sgi-irix4loser*) # Mostly like a MIPS.
2100 tm_file="mips/iris4loser.h 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-irix4*) # Mostly like a MIPS.
2120 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2121 if test x$stabs = xyes; then
2122 tm_file="${tm_file} dbx.h"
2125 xmake_file=mips/x-iris
2126 if test x$gas = xyes
2129 extra_passes="mips-tfile mips-tdump"
2131 if test x$gnu_ld != xyes
2135 # if test x$enable_threads = xyes; then
2136 # thread_file='irix'
2139 mips-sgi-*) # Mostly like a MIPS.
2140 tm_file="mips/iris3.h ${tm_file}"
2141 if test x$stabs = xyes; then
2142 tm_file="${tm_file} dbx.h"
2145 if test x$gas = xyes
2148 extra_passes="mips-tfile mips-tdump"
2150 if test x$gnu_ld != xyes
2155 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2156 tm_file="mips/osfrose.h ${tm_file}"
2157 extra_objs=halfpic.o
2160 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2161 tm_file=mips/dec-osf1.h
2162 if test x$stabs = xyes; then
2163 tm_file="${tm_file} dbx.h"
2165 if test x$gas = xyes
2168 tmake_file=mips/t-ultrix
2169 extra_passes="mips-tfile mips-tdump"
2171 if test x$gnu_ld != xyes
2176 mips-dec-bsd*) # Decstation running 4.4 BSD
2177 tm_file=mips/dec-bsd.h
2178 if test x$gas = xyes
2181 tmake_file=mips/t-ultrix
2182 extra_passes="mips-tfile mips-tdump"
2184 if test x$gnu_ld != xyes
2189 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2190 tm_file=mips/netbsd.h
2191 # On NetBSD, the headers are already okay, except for math.h.
2194 mips*-*-linux*) # Linux MIPS, either endian.
2197 mips*el-*) tm_file="elfos.h mips/elfl.h mips/linux.h" ;;
2198 *) tm_file="elfos.h mips/elf.h mips/linux.h" ;;
2200 tmake_file="t-slibgcc-elf-ver t-linux"
2201 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2204 if test x$enable_threads = xyes; then
2208 mips*el-*-openbsd*) # mips little endian
2209 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2211 mips*-*-openbsd*) # mips big endian
2212 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2213 tm_file="mips/openbsd-be.h ${tm_file}"
2215 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2216 tm_file="mips/news4.h ${tm_file}"
2217 if test x$stabs = xyes; then
2218 tm_file="${tm_file} dbx.h"
2220 if test x$gas = xyes
2223 extra_passes="mips-tfile mips-tdump"
2225 if test x$gnu_ld != xyes
2230 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2231 # That is based on svr4.
2232 # t-svr4 is not right because this system doesn't use ELF.
2233 tm_file="mips/news5.h ${tm_file}"
2234 if test x$stabs = xyes; then
2235 tm_file="${tm_file} dbx.h"
2238 if test x$gas = xyes
2241 extra_passes="mips-tfile mips-tdump"
2243 if test x$gnu_ld != xyes
2248 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2249 tm_file="mips/svr4-5.h mips/svr4-t.h"
2250 if test x$stabs = xyes; then
2251 tm_file="${tm_file} dbx.h"
2254 if test x$gas = xyes
2256 extra_parts="crtbegin.o crtend.o"
2258 extra_passes="mips-tfile mips-tdump"
2260 if test x$gnu_ld != xyes
2265 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2266 tm_file="mips/ultrix.h ${tm_file}"
2267 if test x$stabs = xyes; then
2268 tm_file="${tm_file} dbx.h"
2270 if test x$gas = xyes
2273 tmake_file=mips/t-ultrix
2274 extra_passes="mips-tfile mips-tdump"
2276 if test x$gnu_ld != xyes
2281 mips-*-riscos[56789]bsd*)
2282 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2283 if test x$stabs = xyes; then
2284 tm_file="${tm_file} dbx.h"
2286 if test x$gas = xyes
2288 tmake_file=mips/t-bsd-gas
2290 tmake_file=mips/t-bsd
2291 extra_passes="mips-tfile mips-tdump"
2293 if test x$gnu_ld != xyes
2298 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2299 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2300 if test x$stabs = xyes; then
2301 tm_file="${tm_file} dbx.h"
2303 if test x$gas = xyes
2305 tmake_file=mips/t-bsd-gas
2307 tmake_file=mips/t-bsd
2308 extra_passes="mips-tfile mips-tdump"
2310 if test x$gnu_ld != xyes
2315 mips-*-riscos[56789]sysv4*)
2316 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2317 if test x$stabs = xyes; then
2318 tm_file="${tm_file} dbx.h"
2320 if test x$gas = xyes
2322 tmake_file=mips/t-svr4-gas
2324 tmake_file=mips/t-svr4
2325 extra_passes="mips-tfile mips-tdump"
2327 if test x$gnu_ld != xyes
2332 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2333 tm_file="mips/svr4-4.h ${tm_file}"
2334 if test x$stabs = xyes; then
2335 tm_file="${tm_file} dbx.h"
2338 if test x$gas = xyes
2340 tmake_file=mips/t-svr4-gas
2342 tmake_file=mips/t-svr4
2343 extra_passes="mips-tfile mips-tdump"
2345 if test x$gnu_ld != xyes
2350 mips-*-riscos[56789]sysv*)
2351 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2352 if test x$stabs = xyes; then
2353 tm_file="${tm_file} dbx.h"
2356 if test x$gas = xyes
2358 tmake_file=mips/t-svr3-gas
2360 tmake_file=mips/t-svr3
2361 extra_passes="mips-tfile mips-tdump"
2363 if test x$gnu_ld != xyes
2368 mips-*-sysv* | mips-*-riscos*sysv*)
2369 tm_file="mips/svr3-4.h ${tm_file}"
2370 if test x$stabs = xyes; then
2371 tm_file="${tm_file} dbx.h"
2374 if test x$gas = xyes
2376 tmake_file=mips/t-svr3-gas
2378 tmake_file=mips/t-svr3
2379 extra_passes="mips-tfile mips-tdump"
2381 if test x$gnu_ld != xyes
2386 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2387 tm_file=mips/mips-5.h
2388 if test x$stabs = xyes; then
2389 tm_file="${tm_file} dbx.h"
2391 if test x$gas = xyes
2394 extra_passes="mips-tfile mips-tdump"
2396 if test x$gnu_ld != xyes
2404 tm_file=mips/ecoffl.h
2405 if test x$stabs = xyes; then
2406 tm_file="${tm_file} dbx.h"
2408 tmake_file=mips/t-ecoff
2411 tm_file="gofast.h mips/ecoff.h"
2412 if test x$stabs = xyes; then
2413 tm_file="${tm_file} dbx.h"
2415 tmake_file=mips/t-ecoff
2418 tm_file="mips/elfl.h"
2419 tmake_file=mips/t-elf
2422 tm_file="mips/elf.h"
2423 tmake_file=mips/t-elf
2426 tm_file="mips/elfl64.h"
2427 tmake_file=mips/t-elf
2429 mips64orionel-*-elf*)
2430 tm_file="mips/elforion.h mips/elfl64.h"
2431 tmake_file=mips/t-elf
2434 tm_file="mips/elf64.h"
2435 tmake_file=mips/t-elf
2438 tm_file="mips/elforion.h mips/elf64.h"
2439 tmake_file=mips/t-elf
2441 mips64orion-*-rtems*)
2442 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2443 tmake_file="mips/t-elf t-rtems"
2444 if test x$enable_threads = xyes; then
2449 tm_file="mips/elf.h mips/rtems.h"
2450 tmake_file="mips/t-elf t-rtems"
2451 if test x$enable_threads = xyes; then
2456 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2457 tmake_file=mips/t-r3900
2460 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2461 tmake_file=mips/t-r3900
2463 mips-*-*) # Default MIPS RISC-OS 4.0.
2464 if test x$stabs = xyes; then
2465 tm_file="${tm_file} dbx.h"
2467 if test x$gas = xyes
2470 extra_passes="mips-tfile mips-tdump"
2472 if test x$gnu_ld != xyes
2480 tm_file="mn10200/mn10200.h"
2481 if test x$stabs = xyes
2483 tm_file="${tm_file} dbx.h"
2489 tm_file="mn10300/mn10300.h"
2490 if test x$stabs = xyes
2492 tm_file="${tm_file} dbx.h"
2497 tm_file=ns32k/encore.h
2501 tm_file=ns32k/sequent.h
2505 tm_file=ns32k/tek6100.h
2509 tm_file=ns32k/tek6200.h
2513 tm_file=ns32k/merlin.h
2517 tm_file=ns32k/pc532-mach.h
2521 tm_file=ns32k/pc532-min.h
2522 xm_defines='POSIX HZ=60'
2526 tm_file=ns32k/netbsd.h
2527 # On NetBSD, the headers are already okay, except for math.h.
2532 tm_file="${tm_file} pdp11/2bsd.h"
2542 tm_file="svr4.h pj/linux.h ${tm_file}"
2547 tm_file="svr4.h pj/pjl.h ${tm_file}"
2560 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2564 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2566 xm_file=rs6000/xm-beos.h
2567 tmake_file=rs6000/t-beos
2571 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2572 tm_p_file="${tm_p_file} darwin-protos.h"
2573 tmake_file=rs6000/t-darwin
2574 xmake_file=rs6000/x-darwin
2575 # Override the usual setting, since Apple's GCC has lame bugs
2576 # and can't handle the initializers. Someday the bugs will be
2577 # fixed and we can get rid of this silliness.
2578 xm_defines="HAVE_DESIGNATED_INITIALIZERS=0"
2579 extra_objs="darwin.o"
2580 c_target_objs="darwin-c.o"
2581 cxx_target_objs="darwin-c.o"
2582 # Darwin linker does collect2 functionality
2586 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2588 extra_headers=ppc-asm.h
2589 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2591 powerpc-*-chorusos*)
2593 tm_file="${tm_file} svr4.h rs6000/sysv4.h chorus.h"
2594 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2595 extra_headers=ppc-asm.h
2596 case x${enable_threads} in
2597 xyes | xpthreads | xposix)
2604 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2605 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2606 extra_headers=ppc-asm.h
2610 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2611 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2612 extra_headers=ppc-asm.h
2616 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2617 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2618 extra_headers=ppc-asm.h
2622 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2623 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2624 extra_headers=ppc-asm.h
2628 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2629 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2630 extra_headers=ppc-asm.h
2631 if test x$enable_threads = xyes; then
2635 powerpc-*-linux*libc1)
2636 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2637 out_file=rs6000/rs6000.c
2638 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2640 extra_headers=ppc-asm.h
2641 if test x$enable_threads = xyes; then
2646 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2647 out_file=rs6000/rs6000.c
2648 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2650 extra_headers=ppc-asm.h
2651 if test x$enable_threads = xyes; then
2655 powerpc-wrs-vxworks*)
2658 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2659 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2660 extra_headers=ppc-asm.h
2661 thread_file='vxworks'
2663 powerpcle-wrs-vxworks*)
2666 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2667 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2668 extra_headers=ppc-asm.h
2669 thread_file='vxworks'
2672 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2674 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2675 extra_headers=ppc-asm.h
2679 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2680 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2681 extra_headers=ppc-asm.h
2683 powerpcle-*-eabisim*)
2685 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2686 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2687 extra_headers=ppc-asm.h
2691 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2692 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2693 extra_headers=ppc-asm.h
2695 powerpcle-*-solaris2*)
2696 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2698 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2699 extra_headers=ppc-asm.h
2701 rs6000-ibm-aix3.[01]*)
2703 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2707 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2709 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2710 tmake_file=rs6000/t-newas
2714 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2716 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2717 tmake_file=rs6000/t-newas
2721 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2723 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2724 tmake_file=rs6000/t-aix43
2729 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2731 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2732 tmake_file=rs6000/t-aix43
2739 tm_file="${tm_file} rs6000/aix.h"
2745 tm_file="${tm_file} rs6000/aix.h"
2750 tm_file="rs6000/rs6000.h rs6000/mach.h"
2755 tm_file=rs6000/lynx.h
2756 tmake_file=rs6000/t-rs6000
2761 tm_file=s390/linux.h
2762 tmake_file="t-linux s390/t-linux"
2763 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2764 if test x$enable_threads = xyes; then
2770 tm_file=s390/linux64.h
2771 tmake_file="t-linux s390/t-linux"
2772 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2773 if test x$enable_threads = xyes; then
2778 tmake_file="sh/t-sh sh/t-elf"
2779 tm_file="sh/sh.h sh/elf.h"
2783 tmake_file="sh/t-sh sh/t-elf t-rtems"
2784 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2786 if test x$enable_threads = xyes; then
2791 tmake_file="sh/t-sh t-rtems"
2792 tm_file="sh/sh.h sh/rtems.h"
2794 if test x$enable_threads = xyes; then
2799 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2800 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2803 if test x$enable_threads = xyes; then
2815 sparc64-wrs-vxworks*)
2816 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2817 tmake_file=sparc/t-vxsparc64
2820 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2821 tm_file=sparc/vxsparc.h
2822 tmake_file=sparc/t-vxsparc
2824 thread_file='vxworks'
2827 tmake_file=sparc/t-sparcbare
2828 tm_file="sparc/aout.h libgloss.h"
2831 tm_file=sparc/netbsd.h
2836 # needed to unconfuse gdb
2837 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
2838 # we need collect2 until our bug is fixed...
2842 tm_file="${tm_file} sparc/bsd.h"
2845 tm_file="sparc/sol2.h sparc/elf.h chorus.h"
2846 tmake_file=sparc/t-chorus-elf
2847 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2849 case x${enable_threads} in
2850 xyes | xpthreads | xposix)
2856 tm_file="sparc/sol2.h sparc/elf.h"
2857 tmake_file=sparc/t-elf
2858 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2862 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2863 tm_file=sparc/linux-aout.h
2867 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2869 tm_file=sparc/linux.h
2870 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
2871 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2875 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2877 tm_file=sparc/linux.h
2878 tmake_file="t-slibgcc-elf-ver t-linux"
2879 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2881 if test x$enable_threads = xyes; then
2887 if test x$gas = xyes
2889 tm_file=sparc/lynx.h
2891 tm_file=sparc/lynx-ng.h
2893 tmake_file=sparc/t-sunos41
2896 tmake_file="sparc/t-sparcbare t-rtems"
2897 tm_file=sparc/rtems.h
2898 if test x$enable_threads = xyes; then
2902 sparc-*-rtems*|sparc-*-rtemself*)
2903 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
2904 tmake_file="sparc/t-elf t-rtems"
2905 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2908 if test x$enable_threads = xyes; then
2912 sparcv9-*-solaris2*)
2913 if test x$gnu_ld = xyes
2915 tm_file=sparc/sol2-64.h
2917 tm_file=sparc/sol2-sld-64.h
2920 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2921 if test x$gnu_ld = xyes; then
2922 tmake_file="$tmake_file t-slibgcc-elf-ver"
2924 tmake_file="$tmake_file t-slibgcc-sld"
2926 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2928 if test x${enable_threads} = x ; then
2929 enable_threads=$have_pthread_h
2930 if test x${enable_threads} = x ; then
2931 enable_threads=$have_thread_h
2934 if test x${enable_threads} = xyes ; then
2935 if test x${have_pthread_h} = xyes ; then
2938 thread_file='solaris'
2942 sparc-hal-solaris2*)
2944 tm_file="sparc/sol2.h sparc/hal.h"
2945 tmake_file="sparc/t-halos sparc/t-sol2"
2946 if test x$gnu_ld = xyes; then
2947 tmake_file="$tmake_file t-slibgcc-elf-ver"
2949 tmake_file="$tmake_file t-slibgcc-sld"
2951 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2960 thread_file='solaris'
2963 if test x$gnu_ld = xyes
2965 tm_file=sparc/sol2.h
2967 tm_file=sparc/sol2-sld.h
2970 tmake_file=sparc/t-sol2
2971 if test x$gnu_ld = xyes; then
2972 tmake_file="$tmake_file t-slibgcc-elf-ver"
2974 tmake_file="$tmake_file t-slibgcc-sld"
2976 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2978 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
2980 if test x$gnu_ld = xyes
2982 tm_file=sparc/sol2-64.h
2984 tm_file=sparc/sol2-sld-64.h
2986 tmake_file="$tmake_file sparc/t-sol2-64"
2997 if test x${enable_threads} = x; then
2998 enable_threads=$have_pthread_h
2999 if test x${enable_threads} = x; then
3000 enable_threads=$have_thread_h
3003 if test x${enable_threads} = xyes; then
3004 if test x${have_pthread_h} = xyes; then
3007 thread_file='solaris'
3012 tm_file=sparc/sunos4.h
3016 tm_file=sparc/sunos4.h
3017 tmake_file=sparc/t-sunos41
3019 if test x$gas = xyes; then
3020 tm_file="${tm_file} sparc/sun4gas.h"
3024 tm_file=sparc/sun4o3.h
3028 tm_file=sparc/sysv4.h
3031 extra_parts="crtbegin.o crtend.o"
3035 tm_file=sparc/vxsim.h
3036 tmake_file=sparc/t-vxsparc
3039 tm_file="sparc/splet.h libgloss.h"
3040 tmake_file=sparc/t-splet
3043 tm_file="sparc/litecoff.h libgloss.h"
3044 tmake_file=sparc/t-sparclite
3047 tm_file="sparc/lite.h aoutos.h libgloss.h"
3048 tmake_file=sparc/t-sparclite
3051 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3052 tmake_file=sparc/t-sparclite
3053 extra_parts="crtbegin.o crtend.o"
3056 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3057 tmake_file=sparc/t-sp86x
3060 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3061 tmake_file=sparc/t-sp86x
3062 extra_parts="crtbegin.o crtend.o"
3065 tm_file=sparc/sp64-aout.h
3068 tm_file=sparc/sp64-elf.h
3069 extra_parts="crtbegin.o crtend.o"
3071 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3072 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64"
3073 tm_file=sparc/linux64.h
3075 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3077 if test x$enable_threads = xyes; then
3083 tm_file=arm/strongarm-elf.h
3084 tmake_file=arm/t-strongarm-elf
3089 tm_file=arm/strongarm-coff.h
3090 tmake_file=arm/t-strongarm-coff
3095 tm_file=arm/strongarm-pe.h
3096 tmake_file=arm/t-strongarm-pe
3102 { echo "config.gcc: error:
3103 *** The Thumb targets have been deprecated. The equivalent
3104 *** ARM based toolchain can now generate Thumb instructions
3105 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3109 tm_file="v850/rtems.h"
3110 tmake_file="v850/t-v850 t-rtems"
3111 if test x$stabs = xyes
3113 tm_file="${tm_file} dbx.h"
3116 c_target_objs="v850-c.o"
3117 cxx_target_objs="v850-c.o"
3120 target_cpu_default="TARGET_CPU_generic"
3122 tm_file="v850/v850.h"
3123 tmake_file=v850/t-v850
3124 if test x$stabs = xyes
3126 tm_file="${tm_file} dbx.h"
3129 c_target_objs="v850-c.o"
3130 cxx_target_objs="v850-c.o"
3132 vax-*-bsd*) # vaxen running BSD
3136 vax-*-sysv*) # vaxen running system V
3137 tm_file="${tm_file} vax/vaxv.h"
3142 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3148 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3152 vax-*-ultrix*) # vaxen running ultrix
3153 tm_file="${tm_file} vax/ultrix.h"
3156 vax-*-vms*) # vaxen running VMS
3157 xm_file=vax/xm-vms.h
3161 vax-*-*) # vax default entry
3169 tm_file=arm/xscale-elf.h
3170 tmake_file=arm/t-xscale-elf
3175 tm_file=arm/xscale-coff.h
3176 tmake_file=arm/t-xscale-coff
3181 echo "Configuration $machine not supported" 1>&2
3188 install_headers_dir=install-headers-cpio
3192 # Distinguish i[34567]86
3193 # Also, do not run mips-tfile on MIPS if using gas.
3194 # Process --with-cpu= for PowerPC/rs6000
3195 target_cpu_default2=
3198 target_cpu_default2=1
3201 case $target_alias in
3203 target_cpu_default2=4
3206 target_cpu_default2=2
3210 i686-*-* | i786-*-*)
3211 case $target_alias in
3213 target_cpu_default2=5
3216 target_cpu_default2=3
3223 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3226 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3229 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3232 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3235 target_cpu_default2="MASK_CPU_EV5"
3239 if test x$gas = xyes
3241 if test "$target_cpu_default2" = ""
3243 target_cpu_default2="MASK_GAS"
3245 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3250 case "x$with_cpu" in
3253 target_cpu_default2="TARGET_CPU_generic"
3256 # Distinguish cores, and major variants
3257 # arm7m doesn't exist, but D & I don't affect code
3258 xarm[236789] | xarm250 | xarm[67][01]0 \
3259 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3260 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3262 | xstrongarm | xstrongarm110 | xstrongarm1100)
3263 target_cpu_default2="TARGET_CPU_$with_cpu"
3267 echo "--with-cpu must be passed a value" 1>&2
3272 if test x$pass2done = xyes
3274 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3281 hppa*-*-* | parisc*-*-*)
3282 if test x$gas = xyes
3284 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3288 mips*-*-ecoff* | mips*-*-elf*)
3289 if test x$gas = xyes
3291 if test x$gnu_ld = xyes
3293 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3295 target_cpu_default2="MASK_GAS"
3300 if test x$gas = xyes
3302 target_cpu_default2="MASK_GAS"
3305 powerpc*-*-* | rs6000-*-*)
3306 case "x$with_cpu" in
3310 xcommon | xpower | xpower2 | xpowerpc | xrios \
3311 | xrios1 | xrios2 | xrsc | xrsc1 \
3312 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3313 | xec603e | x740 | x750 | x401 \
3314 | x403 | x505 | x801 | x821 | x823 | x860)
3315 target_cpu_default2="\"$with_cpu\""
3319 echo "--with-cpu must be passed a value" 1>&2
3324 if test x$pass2done = xyes
3326 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3333 case ".$with_cpu" in
3335 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3337 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3338 target_cpu_default2="TARGET_CPU_$with_cpu"
3341 if test x$pass2done = xyes
3343 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3351 if test "$target_cpu_default2" != ""
3353 if test "$target_cpu_default" != ""
3355 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3357 target_cpu_default=$target_cpu_default2
3361 # No need for collect2 if we have the GNU linker.
3362 # Actually, there is now; GNU ld doesn't handle the EH info or
3363 # collecting for shared libraries.
3370 # Save data on machine being used to compile GCC in build_xm_file.
3371 # Save data on host machine in vars host_xm_file and host_xmake_file.
3372 if test x$pass1done = x
3374 if test x$xm_file != x
3375 then build_xm_file=$xm_file
3377 build_xm_defines=$xm_defines
3378 build_install_headers_dir=$install_headers_dir
3379 build_exeext=$exeext
3382 if test x$pass2done = x
3384 if test x$xm_file != x
3385 then host_xm_file=$xm_file
3387 host_xm_defines=$xm_defines
3388 host_xmake_file="$xmake_file"
3389 host_truncate_target=$truncate_target
3390 host_extra_gcc_objs=$extra_gcc_objs
3391 host_extra_objs=$extra_host_objs