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"
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
528 extra_parts="crtinit.o crtfini.o"
531 extra_parts="crtinit.o crtfini.o"
533 arm-*-coff* | armel-*-coff*)
535 tmake_file=arm/t-arm-coff
539 tmake_file=arm/t-arm-coff
540 thread_file='vxworks'
542 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
543 tm_file=arm/riscix1-1.h
546 arm-*-riscix*) # Acorn RISC machine
549 tm_file=arm/rix-gas.h
553 xmake_file=arm/x-riscix
554 tmake_file=arm/t-riscix
557 arm-semi-aout | armel-semi-aout)
559 tmake_file=arm/t-semi
561 arm-semi-aof | armel-semi-aof)
562 tm_file=arm/semiaof.h
563 tmake_file=arm/t-semi
567 tmake_file="t-netbsd arm/t-netbsd"
570 arm*-*-linux*) # ARM GNU/Linux with ELF
572 tm_file="arm/linux-elf.h"
573 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
574 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
576 case x${enable_threads} in
577 x | xyes | xpthreads | xposix)
582 arm*-*-uclinux*) # ARM ucLinux
583 tm_file=arm/uclinux-elf.h
584 tmake_file=arm/t-arm-elf
588 tmake_file=arm/t-arm-aout
591 tm_file=arm/ecos-elf.h
592 tmake_file=arm/t-arm-elf
595 tm_file=arm/unknown-elf.h
596 tmake_file=arm/t-arm-elf
599 tm_file=arm/conix-elf.h
600 tmake_file=arm/t-arm-elf
603 tm_file=arm/unknown-elf-oabi.h
604 tmake_file=arm/t-arm-elf
613 c1-convex-*) # Convex C1
617 c2-convex-*) # Convex C2
630 target_cpu_default=16
635 tmake_file="c4x/t-c4x t-rtems"
637 if test x$enable_threads = xyes; then
646 clipper-intergraph-clix*)
647 tm_file="${tm_file} svr3.h clipper/clix.h"
649 extra_headers=va-clipper.h
650 extra_parts="crtbegin.o crtend.o"
651 install_headers_dir=install-headers-cpio
662 tm_file="fr30/fr30.h"
663 tmake_file=fr30/t-fr30
664 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
667 tmake_file="h8300/t-h8300 t-rtems"
668 tm_file=h8300/rtems.h
669 if test x$enable_threads = xyes; then
677 hppa*64*-*-linux* | parisc*64*-*-linux*)
678 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
679 tm_file="pa/pa64-start.h ${tm_file} linux.h pa/pa-linux.h \
680 pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
681 tmake_file=pa/t-linux64
684 hppa*-*-linux* | parisc*-*-linux*)
685 target_cpu_default="MASK_PA_11"
686 tm_file="${tm_file} linux.h pa/pa-linux.h \
687 pa/pa32-regs.h pa/pa32-linux.h"
688 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
689 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
691 if test x$enable_threads = xyes; then
696 target_cpu_default="MASK_PA_11"
697 tmake_file=pa/t-openbsd
700 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
701 tmake_file="pa/t-pro t-rtems"
702 if test x$enable_threads = xyes; then
707 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
708 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
712 target_cpu_default="MASK_PA_11"
713 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
717 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
718 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
722 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
726 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
727 target_cpu_default="MASK_PA_11"
731 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
735 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
737 xmake_file=pa/x-pa-hpux
738 install_headers_dir=install-headers-cpio
741 hppa1.0-*-hpux8.0[0-2]*)
742 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
744 xmake_file=pa/x-pa-hpux
745 if test x$gas != xyes
747 tm_file="pa/pa-oldas.h ${tm_file}"
749 install_headers_dir=install-headers-cpio
752 hppa1.1-*-hpux8.0[0-2]*)
753 target_cpu_default="MASK_PA_11"
754 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
756 xmake_file=pa/x-pa-hpux
757 if test x$gas != xyes
759 tm_file="pa/pa-oldas.h ${tm_file}"
761 install_headers_dir=install-headers-cpio
765 target_cpu_default="MASK_PA_11"
766 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
768 xmake_file=pa/x-pa-hpux
769 install_headers_dir=install-headers-cpio
773 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
775 xmake_file=pa/x-pa-hpux
776 install_headers_dir=install-headers-cpio
779 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
780 target_cpu_default="MASK_PA_11"
781 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
784 xmake_file=pa/x-pa-hpux
786 if test x$enable_threads = x; then
787 enable_threads=$have_pthread_h
789 case x${enable_threads} in
791 tmake_file="${tmake_file} pa/t-dce-thr"
794 install_headers_dir=install-headers-cpio
798 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
801 xmake_file=pa/x-pa-hpux
803 if test x$enable_threads = x; then
804 enable_threads=$have_pthread_h
806 case x${enable_threads} in
808 tmake_file="${tmake_file} pa/t-dce-thr"
811 install_headers_dir=install-headers-cpio
816 xmake_file=pa/x-pa-hpux
818 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"
821 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
823 # if [ x$enable_threads = x ]; then
824 # enable_threads=$have_pthread_h
826 # if [ x$enable_threads = xyes ]; then
828 # tmake_file="${tmake_file} pa/t-dce-thr"
830 install_headers_dir=install-headers-cpio
833 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
834 target_cpu_default="MASK_PA_11"
835 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
838 xmake_file=pa/x-pa-hpux
840 # if test x$enable_threads = x; then
841 # enable_threads=$have_pthread_h
843 # if test x$enable_threads = xyes; then
845 # tmake_file="${tmake_file} pa/t-dce-thr"
847 install_headers_dir=install-headers-cpio
851 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
854 xmake_file=pa/x-pa-hpux
855 # if test x$enable_threads = x; then
856 # enable_threads=$have_pthread_h
858 # if test x$enable_threads = xyes; then
860 # tmake_file="${tmake_file} pa/t-dce-thr"
862 install_headers_dir=install-headers-cpio
865 hppa1.1-*-hpux* | hppa2*-*-hpux*)
866 target_cpu_default="MASK_PA_11"
867 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
869 xmake_file=pa/x-pa-hpux
870 install_headers_dir=install-headers-cpio
874 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
876 xmake_file=pa/x-pa-hpux
877 install_headers_dir=install-headers-cpio
880 hppa1.1-*-hiux* | hppa2*-*-hiux*)
881 target_cpu_default="MASK_PA_11"
882 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
884 xmake_file=pa/x-pa-hpux
885 install_headers_dir=install-headers-cpio
889 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
891 xmake_file=pa/x-pa-hpux
892 install_headers_dir=install-headers-cpio
896 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
897 target_cpu_default="MASK_PA_11"
901 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
902 xmake_file=pa/x-pa-mpeix
903 echo "You must use gas. Assuming it is already installed."
905 install_headers_dir=install-headers-tar
908 i370-*-opened*) # IBM 360/370/390 Architecture
909 xm_defines='POSIX FATAL_EXIT_CODE=12'
914 xm_defines='POSIX FATAL_EXIT_CODE=12'
919 tm_file="i370/linux.h ${tm_file}"
920 tmake_file="t-slibgcc-elf-ver t-linux"
922 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
923 # extra_parts="crtbegin.o crtend.o"
927 if test x$enable_threads = xyes; then
931 i[34567]86-*-chorusos*)
933 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h i386/chorus.h"
934 tmake_file=i386/t-i386elf
936 case x${enable_threads} in
937 xyes | xpthreads | xposix)
944 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h"
945 tmake_file=i386/t-i386elf
948 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
951 tm_file=i386/aix386.h
952 extra_parts="crtbegin.o crtend.o"
953 tmake_file=i386/t-crtstuff
955 tm_file=i386/aix386ng.h
960 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
961 xm_defines="POSIX SMALL_ARG_MAX"
962 if test x$stabs = xyes -a x$gas = xyes
964 tm_file=i386/sysv4gdb.h
968 extra_parts="crtbegin.o crtend.o"
969 tmake_file=i386/t-crtpic
973 tmake_file=i386/t-next
974 extra_objs=nextstep.o
975 extra_parts="crtbegin.o crtend.o"
976 if test x$enable_threads = xyes; then
980 i[34567]86-*-netware) # Intel 80386's running netware
981 tm_file=i386/netware.h
982 tmake_file=i386/t-netware
984 i[34567]86-sequent-bsd*) # 80386 from Sequent
988 tm_file=i386/seq-gas.h
990 tm_file=i386/sequent.h
993 i[34567]86-sequent-ptx1*)
995 tm_file=i386/seq-sysv3.h
996 tmake_file=i386/t-crtstuff
997 extra_parts="crtbegin.o crtend.o"
998 install_headers_dir=install-headers-cpio
1000 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1002 tm_file=i386/seq2-sysv3.h
1003 tmake_file=i386/t-crtstuff
1004 extra_parts="crtbegin.o crtend.o"
1005 install_headers_dir=install-headers-cpio
1007 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1008 if test x$gas = xyes
1010 tm_file="${tm_file} usegas.h"
1012 xm_defines="POSIX SMALL_ARG_MAX"
1014 tm_file=i386/ptx4-i.h
1016 extra_parts="crtbegin.o crtend.o"
1017 install_headers_dir=install-headers-cpio
1019 i386-sun-sunos*) # Sun i386 roadrunner
1024 i[34567]86-wrs-vxworks*)
1025 tm_file=i386/vxi386.h
1026 thread_file='vxworks'
1029 tm_file=i386/i386-aout.h
1031 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1033 tmake_file='i386/t-beos i386/t-crtpic'
1034 tm_file=i386/beos-elf.h
1035 xmake_file=i386/x-beos
1036 extra_parts='crtbegin.o crtend.o'
1038 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1039 tm_file="i386/386bsd.h i386/bsd386.h"
1040 # tmake_file=t-libc-ok
1043 tm_file=i386/386bsd.h
1044 # tmake_file=t-libc-ok
1045 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1048 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1049 tm_file=i386/freebsd-aout.h
1050 tmake_file=t-freebsd
1052 i[34567]86-*-freebsd*)
1053 tm_file="${tm_file} i386/att.h svr4.h ${fbsd_tm_file} i386/freebsd.h"
1055 i[34567]86-*-netbsd*)
1056 tm_file=i386/netbsd.h
1060 i[34567]86-*-openbsd*)
1061 # we need collect2 until our bug is fixed...
1065 tm_file=i386/i386-coff.h
1067 i[34567]86-*-isc*) # 80386 running ISC system
1069 if test x$gas = xyes -a x$stabs = xyes
1071 tm_file=i386/iscdbx.h
1072 tmake_file=i386/t-svr3dbx
1073 extra_parts="svr3.ifile svr3z.ifile"
1075 tm_file=i386/isccoff.h
1076 tmake_file=i386/t-crtstuff
1077 extra_parts="crtbegin.o crtend.o"
1079 install_headers_dir=install-headers-cpio
1081 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1082 # with a.out format using
1084 tmake_file="t-linux-aout i386/t-crtstuff"
1085 tm_file=i386/linux-oldld.h
1089 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1091 tmake_file="t-linux-aout i386/t-crtstuff"
1092 tm_file=i386/linux-aout.h
1096 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1097 # with ELF format using the
1098 # GNU/Linux C library 5
1100 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1101 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1102 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1105 if test x$enable_threads = xyes; then
1106 thread_file='single'
1109 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1110 # with ELF format using glibc 2
1111 # aka GNU/Linux C library 6
1113 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1114 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1115 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1118 if test x$enable_threads = xyes; then
1125 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1126 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1129 i[34567]86-pc-msdosdjgpp*)
1130 xm_file=i386/xm-djgpp.h
1131 tm_file=i386/djgpp.h
1132 xmake_file=i386/x-djgpp
1137 case $host in *pc-msdosdjgpp*)
1142 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1143 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h"
1144 tmake_file=t-libc-ok
1148 i[34567]86-*-lynxos*)
1149 if test x$gas = xyes
1153 tm_file=i386/lynx-ng.h
1158 # tmake_file=t-libc-ok
1161 i[34567]86-*-osfrose*) # 386 using OSF/rose
1162 if test x$elf = xyes
1164 tm_file=i386/osfelf.h
1167 tm_file=i386/osfrose.h
1170 tmake_file=i386/t-osf
1171 extra_objs=halfpic.o
1173 i[34567]86-go32-rtems*)
1175 tm_file=i386/go32-rtems.h
1177 if test x$enable_threads = xyes; then
1181 i[34567]86-*-rtemscoff*)
1183 tm_file=i386/rtems.h
1185 if test x$enable_threads = xyes; then
1189 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1191 tm_file=i386/rtemself.h
1192 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1193 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1194 if test x$enable_threads = xyes; then
1198 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1200 xmake_file=i386/x-sco5
1201 install_headers_dir=install-headers-cpio
1203 if test x$gas = xyes
1205 tm_file="usegas.h ${tm_file}"
1206 tmake_file=i386/t-sco5gas
1208 tmake_file=i386/t-sco5
1210 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1212 i[34567]86-*-solaris2*)
1213 xm_defines="POSIX SMALL_ARG_MAX"
1215 if test x$gas = xyes; then
1216 # Only needed if gas does not support -s
1217 tm_file="i386/sol2gas.h ${tm_file}"
1219 tmake_file=i386/t-sol2
1220 if test x$gnu_ld = xyes; then
1221 tmake_file="$tmake_file t-slibgcc-elf-ver"
1223 tmake_file="$tmake_file t-slibgcc-sld"
1225 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1227 if test x${enable_threads} = x; then
1228 enable_threads=$have_pthread_h
1229 if test x${enable_threads} = x; then
1230 enable_threads=$have_thread_h
1233 if test x${enable_threads} = xyes; then
1234 if test x${have_pthread_h} = xyes; then
1237 thread_file='solaris'
1241 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1243 tm_file=i386/sysv5.h
1244 if test x$stabs = xyes
1246 tm_file="${tm_file} dbx.h"
1248 tmake_file=i386/t-crtpic
1250 extra_parts="crtbegin.o crtend.o"
1251 if test x$enable_threads = xyes; then
1255 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1256 xm_defines="POSIX SMALL_ARG_MAX"
1257 tm_file=i386/sysv4.h
1258 if test x$stabs = xyes
1260 tm_file="${tm_file} dbx.h"
1262 tmake_file=i386/t-crtpic
1264 extra_parts="crtbegin.o crtend.o"
1266 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1269 tmake_file="i386/t-crtpic i386/t-udk"
1271 extra_parts="crtbegin.o crtend.o"
1272 install_headers_dir=install-headers-cpio
1274 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1276 xm_file=i386/xm-osf1elf.h
1277 xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1278 if test x$stabs = xyes
1280 tm_file=i386/osf1elfgdb.h
1282 tm_file=i386/osf1elf.h
1284 tmake_file=i386/t-osf1elf
1285 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1287 i[34567]86-*-sysv*) # Intel 80386's running system V
1289 if test x$gas = xyes
1291 if test x$stabs = xyes
1293 tm_file=i386/svr3dbx.h
1294 tmake_file=i386/t-svr3dbx
1295 extra_parts="svr3.ifile svr3z.rfile"
1297 tm_file=i386/svr3gas.h
1298 extra_parts="crtbegin.o crtend.o"
1299 tmake_file=i386/t-crtstuff
1302 tm_file=i386/sysv3.h
1303 extra_parts="crtbegin.o crtend.o"
1304 tmake_file=i386/t-crtstuff
1306 tmake_file="$tmake_file i386/t-crtpic"
1308 i386-*-vsta) # Intel 80386's running VSTa kernel
1309 xm_file=i386/xm-vsta.h
1314 xm_file=i386/xm-cygwin.h
1316 tmake_file=i386/t-cygwin
1317 tm_file=i386/win32.h
1318 xmake_file=i386/x-cygwin
1320 if test x$enable_threads = xyes; then
1325 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1327 xm_file=i386/xm-cygwin.h
1329 tmake_file=i386/t-cygwin
1330 tm_file=i386/cygwin.h
1331 xmake_file=i386/x-cygwin
1333 if test x$enable_threads = xyes; then
1338 i[34567]86-*-mingw32*)
1339 tm_file=i386/mingw32.h
1342 xm_file=i386/xm-mingw32.h
1343 tmake_file="i386/t-cygwin i386/t-mingw32"
1345 xmake_file=i386/x-cygwin
1346 if test x$enable_threads = xyes; then
1353 *minwg32crt* | *mingw32*)
1354 tm_file="${tm_file} i386/crtdll.h"
1360 tmake_file="i386/t-cygwin i386/t-uwin"
1362 xmake_file=i386/x-cygwin
1363 if test x$enable_threads = xyes; then
1368 i[34567]86-*-interix*)
1369 tm_file="i386/i386-interix.h interix.h"
1370 xm_file="i386/xm-i386-interix.h xm-interix.h"
1372 tmake_file="i386/t-interix"
1373 extra_objs=interix.o
1374 xmake_file=x-interix
1375 if test x$enable_threads = xyes ; then
1378 if test x$stabs = xyes ; then
1379 tm_file="${tm_file} dbxcoff.h"
1382 i[34567]86-dg-dgux*)
1384 out_file=i386/dgux.c
1386 tmake_file=i386/t-dgux
1387 xmake_file=i386/x-dgux
1388 install_headers_dir=install-headers-cpio
1390 i860-alliant-*) # Alliant FX/2800
1391 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1392 tmake_file=i860/t-fx2800
1393 extra_parts="crtbegin.o crtend.o"
1396 tm_file="${tm_file} i860/bsd.h"
1397 if test x$gas = xyes
1399 tm_file="${tm_file} i860/bsd-gas.h"
1404 tm_file="${tm_file} i860/mach.h"
1405 tmake_file=t-libc-ok
1407 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1408 tm_file="${tm_file} svr3.h i860/paragon.h"
1412 tm_file="${tm_file} svr3.h i860/sysv3.h"
1414 extra_parts="crtbegin.o crtend.o"
1417 tm_file="${tm_file} svr4.h i860/sysv4.h"
1420 extra_parts="crtbegin.o crtend.o"
1422 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1423 tm_file="${tm_file} i960/vx960.h"
1424 tmake_file=i960/t-vxworks960
1426 thread_file='vxworks'
1427 c_target_objs="i960-c.o"
1428 cxx_target_objs="i960-c.o"
1430 i960-wrs-vxworks5* | i960-wrs-vxworks)
1431 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1432 tmake_file=i960/t-vxworks960
1434 thread_file='vxworks'
1435 c_target_objs="i960-c.o"
1436 cxx_target_objs="i960-c.o"
1439 tm_file="${tm_file} i960/vx960.h"
1440 tmake_file=i960/t-vxworks960
1442 thread_file='vxworks'
1443 c_target_objs="i960-c.o"
1444 cxx_target_objs="i960-c.o"
1447 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1448 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"
1457 if test x$enable_threads = xyes; then
1460 c_target_objs="i960-c.o"
1461 cxx_target_objs="i960-c.o"
1463 i960-*-*) # Default i960 environment.
1465 c_target_objs="i960-c.o"
1466 cxx_target_objs="i960-c.o"
1469 tm_file="${tm_file} svr4.h ia64/sysv4.h ia64/aix.h"
1470 tmake_file="ia64/t-ia64 ia64/t-aix"
1471 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1475 tmake_file="ia64/t-ia64"
1476 target_cpu_default="0"
1477 if test x$gas = xyes
1479 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1481 if test x$gnu_ld = xyes
1483 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1488 tm_file=ia64/linux.h
1489 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1490 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1491 if test x$enable_threads = xyes; then
1497 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1498 tmake_file="ia64/t-ia64 ia64/t-hpux"
1499 target_cpu_default="MASK_GNU_AS"
1500 if test x$enable_threads = xyes; then
1506 extra_parts="crtinit.o crtfini.o"
1508 # m68hc11 and m68hc12 share the same machine description.
1509 m68hc11-*-*|m6811-*-*)
1510 tm_file="elfos.h m68hc11/m68hc11.h"
1511 tm_p_file="m68hc11/m68hc11-protos.h"
1512 md_file="m68hc11/m68hc11.md"
1513 out_file="m68hc11/m68hc11.c"
1514 tmake_file="m68hc11/t-m68hc11-gas"
1516 m68hc12-*-*|m6812-*-*)
1517 tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1518 tm_p_file="m68hc11/m68hc11-protos.h"
1519 md_file="m68hc11/m68hc11.md"
1520 out_file="m68hc11/m68hc11.c"
1521 tmake_file="m68hc11/t-m68hc11-gas"
1523 m68000-convergent-sysv*)
1527 extra_headers=math-68881.h
1529 m68000-hp-bsd*) # HP 9000/200 running BSD
1530 tm_file=m68k/hp2bsd.h
1532 extra_headers=math-68881.h
1534 m68000-hp-hpux*) # HP 9000 series 300
1536 if test x$gas = xyes
1538 xmake_file=m68k/x-hp320g
1539 tm_file=m68k/hp310g.h
1541 xmake_file=m68k/x-hp320
1542 tm_file=m68k/hp310.h
1544 install_headers_dir=install-headers-cpio
1546 extra_headers=math-68881.h
1551 extra_headers=math-68881.h
1554 tm_file=m68k/sun2o4.h
1556 extra_headers=math-68881.h
1560 if test x$gas = xyes
1567 extra_headers=math-68881.h
1569 m68k-apple-aux*) # Apple Macintosh running A/UX
1571 tmake_file=m68k/t-aux
1572 install_headers_dir=install-headers-cpio
1573 extra_headers=math-68881.h
1574 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1576 if test "$gnu_ld" = yes
1578 tm_file="${tm_file} m68k/auxgld.h"
1580 tm_file="${tm_file} m68k/auxld.h"
1582 if test "$gas" = yes
1584 tm_file="${tm_file} m68k/auxgas.h"
1586 tm_file="${tm_file} m68k/auxas.h"
1588 tm_file="${tm_file} m68k/a-ux.h"
1592 tm_file=m68k/apollo68.h
1594 extra_headers=math-68881.h
1597 m68k-altos-sysv*) # Altos 3068
1598 if test x$gas = xyes
1600 tm_file=m68k/altos3068.h
1603 echo "The Altos is supported only with the GNU assembler" 1>&2
1606 extra_headers=math-68881.h
1608 m68k-bull-sysv*) # Bull DPX/2
1609 if test x$gas = xyes
1611 if test x$stabs = xyes
1613 tm_file=m68k/dpx2cdbx.h
1615 tm_file=m68k/dpx2g.h
1622 extra_headers=math-68881.h
1624 m68k-atari-sysv4*) # Atari variant of V.4.
1625 tm_file=m68k/atari.h
1628 extra_parts="crtbegin.o crtend.o"
1629 extra_headers=math-68881.h
1632 m68k-motorola-sysv*)
1633 tm_file=m68k/mot3300.h
1635 if test x$gas = xyes
1637 if test x$gnu_ld = xyes
1639 tmake_file=m68k/t-mot3300-gald
1641 tmake_file=m68k/t-mot3300-gas
1645 if test x$gnu_ld = xyes
1647 tmake_file=m68k/t-mot3300-gld
1649 tmake_file=m68k/t-mot3300
1653 gdb_needs_out_file_path=yes
1654 extra_parts="crt0.o mcrt0.o"
1655 extra_headers=math-68881.h
1658 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1659 tm_file=m68k/tower-as.h
1661 extra_parts="crtbegin.o crtend.o"
1662 extra_headers=math-68881.h
1665 tm_file=m68k/plexus.h
1668 extra_headers=math-68881.h
1673 extra_headers=math-68881.h
1679 extra_headers=math-68881.h
1681 m68k-cbm-sysv4*) # Commodore variant of V.4.
1685 extra_parts="crtbegin.o crtend.o"
1686 extra_headers=math-68881.h
1690 tm_file=m68k/ccur-GAS.h
1691 extra_headers=math-68881.h
1695 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1696 tm_file=m68k/hp3bsd44.h
1698 extra_headers=math-68881.h
1701 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1702 tm_file=m68k/hp3bsd.h
1704 extra_headers=math-68881.h
1708 if test x$with_fp = xno
1710 tm_file=m68k/isi-nfp.h
1716 extra_headers=math-68881.h
1718 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1720 if test x$gas = xyes
1722 xmake_file=m68k/x-hp320g
1723 tm_file=m68k/hp320g.h
1725 xmake_file=m68k/x-hp320
1726 tm_file=m68k/hpux7.h
1728 install_headers_dir=install-headers-cpio
1730 extra_headers=math-68881.h
1733 m68k-hp-hpux*) # HP 9000 series 300
1735 if test x$gas = xyes
1737 xmake_file=m68k/x-hp320g
1738 tm_file=m68k/hp320g.h
1740 xmake_file=m68k/x-hp320
1741 tm_file=m68k/hp320.h
1743 install_headers_dir=install-headers-cpio
1745 extra_headers=math-68881.h
1749 tm_file=m68k/sun3mach.h
1751 extra_headers=math-68881.h
1755 if test x$gas = xyes
1757 tm_file=m68k/news3gas.h
1759 tm_file=m68k/news3.h
1762 extra_headers=math-68881.h
1765 m68k-sony-bsd* | m68k-sony-newsos*)
1766 if test x$gas = xyes
1768 tm_file=m68k/newsgas.h
1773 extra_headers=math-68881.h
1776 m68k-next-nextstep2*)
1777 tm_file=m68k/next21.h
1778 tmake_file=m68k/t-next
1779 xmake_file=m68k/x-next
1780 extra_objs=nextstep.o
1781 extra_headers=math-68881.h
1785 m68k-next-nextstep[34]*)
1787 tmake_file=m68k/t-next
1788 xmake_file=m68k/x-next
1789 extra_objs=nextstep.o
1790 extra_parts="crtbegin.o crtend.o"
1791 extra_headers=math-68881.h
1793 if test x$enable_threads = xyes; then
1798 if test x$with_fp = xno
1800 tm_file=m68k/sun3n3.h
1802 tm_file=m68k/sun3o3.h
1806 extra_headers=math-68881.h
1808 m68k-sun-sunos*) # For SunOS 4 (the default).
1809 if test x$with_fp = xno
1811 tm_file=m68k/sun3n.h
1817 extra_headers=math-68881.h
1820 tm_file=m68k/vxm68k.h
1821 tmake_file=m68k/t-vxworks68
1822 extra_headers=math-68881.h
1823 thread_file='vxworks'
1827 tmake_file=m68k/t-m68kbare
1828 tm_file="m68k/m68k-aout.h libgloss.h"
1829 extra_headers=math-68881.h
1833 tmake_file=m68k/t-m68kbare
1834 tm_file="m68k/m68k-coff.h dbx.h"
1835 extra_headers=math-68881.h
1838 m68020-*-elf* | m68k-*-elf*)
1839 tm_file="m68k/m68020-elf.h"
1841 tmake_file=m68k/t-m68kelf
1842 header_files=math-68881.h
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
1863 # we need collect2 until our bug is fixed...
1866 m68k-*-sysv3*) # Motorola m68k's running system V.3
1868 extra_parts="crtbegin.o crtend.o"
1869 extra_headers=math-68881.h
1872 m68k-*-sysv4*) # Motorola m68k's running system V.4
1873 tm_file=m68k/m68kv4.h
1876 extra_parts="crtbegin.o crtend.o"
1877 extra_headers=math-68881.h
1880 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1883 tm_file=m68k/linux-aout.h
1884 tmake_file="t-linux-aout m68k/t-linux-aout"
1885 extra_headers=math-68881.h
1889 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1890 # with ELF format using the
1891 # GNU/Linux C library 5
1893 tm_file=m68k/linux.h
1894 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
1895 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1896 extra_headers=math-68881.h
1900 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1901 # with ELF format using glibc 2
1902 # aka the GNU/Linux C library 6.
1904 tm_file=m68k/linux.h
1905 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
1906 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1907 extra_headers=math-68881.h
1910 if test x$enable_threads = xyes; then
1915 tmake_file=m68k/t-m68kbare
1916 tm_file=m68k/m68k-psos.h
1917 extra_headers=math-68881.h
1921 tmake_file="m68k/t-m68kbare t-rtems"
1922 tm_file=m68k/rtems.h
1923 extra_headers=math-68881.h
1925 if test x$enable_threads = xyes; then
1929 m68k-*-rtemself*|m68k-*-rtems*)
1930 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1931 tm_file=m68k/rtemself.h
1932 extra_headers=math-68881.h
1934 if test x$enable_threads = xyes; then
1942 tm_file=m88k/dguxbcs.h
1943 tmake_file=m88k/t-dguxbcs
1947 tmake_file=m88k/t-dgux
1950 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1951 xmake_file=m88k/x-dgux
1952 if test x$gas = xyes
1954 tmake_file=m88k/t-dgux-gas
1957 m88k-dolphin-sysv3*)
1959 tm_file=m88k/dolph.h
1960 extra_parts="crtbegin.o crtend.o"
1961 xmake_file=m88k/x-dolph
1962 if test x$gas = xyes
1964 tmake_file=m88k/t-m88k-gas
1967 m88k-tektronix-sysv3)
1969 tm_file=m88k/tekXD88.h
1970 extra_parts="crtbegin.o crtend.o"
1971 xmake_file=m88k/x-tekXD88
1972 if test x$gas = xyes
1974 tmake_file=m88k/t-m88k-gas
1979 tm_file=m88k/m88k-aout.h
1983 tm_file=m88k/m88k-coff.h
1984 tmake_file=m88k/t-bug
1988 extra_parts="crtbegin.o crtend.o"
1989 if test x$gas = xyes
1991 tmake_file=m88k/t-luna-gas
1993 tmake_file=m88k/t-luna
1997 tmake_file="${tmake_file} m88k/t-luna-gas"
1998 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2002 tm_file=m88k/sysv3.h
2003 extra_parts="crtbegin.o crtend.o"
2004 if test x$gas = xyes
2006 tmake_file=m88k/t-m88k-gas
2011 tm_file=m88k/sysv4.h
2012 extra_parts="crtbegin.o crtend.o"
2013 tmake_file=m88k/t-sysv4
2016 tm_file=mcore/mcore-elf.h
2017 tmake_file=mcore/t-mcore
2020 tm_file=mcore/mcore-pe.h
2021 tmake_file=mcore/t-mcore-pe
2023 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2024 if test "x$gnu_ld" = xyes
2026 tm_file="mips/iris6.h mips/iris6gld.h"
2028 tm_file=mips/iris6.h
2030 tmake_file=mips/t-iris6
2032 xmake_file=mips/x-iris6
2033 # if test x$enable_threads = xyes; then
2034 # thread_file='irix'
2038 tm_file="mips/elf.h mips/vxworks.h"
2039 tmake_file=mips/t-ecoff
2042 extra_parts="crtbegin.o crtend.o"
2043 thread_file='vxworks'
2045 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2046 tm_file="mips/iris6.h mips/cross64.h"
2048 xm_file=mips/xm-iris5.h
2049 xmake_file=mips/x-iris
2050 tmake_file=mips/t-cross64
2051 # See comment in mips/iris[56].h files.
2053 # if test x$enable_threads = xyes; then
2054 # thread_file='irix'
2058 if test x$gas = xyes
2060 if test x$stabs = xyes
2062 tm_file=mips/iris5gdb.h
2064 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2067 tm_file=mips/sni-svr4.h
2070 if test x$gnu_ld != xyes
2075 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2076 if test x$gas = xyes
2078 tm_file="mips/iris5.h mips/iris5gas.h"
2079 if test x$stabs = xyes
2081 tm_file="${tm_file} dbx.h"
2084 tm_file=mips/iris5.h
2087 xm_file=mips/xm-iris5.h
2088 xmake_file=mips/x-iris
2089 # mips-tfile doesn't work yet
2090 # See comment in mips/iris5.h file.
2092 # if test x$enable_threads = xyes; then
2093 # thread_file='irix'
2096 mips-sgi-irix4loser*) # Mostly like a MIPS.
2097 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2098 if test x$stabs = xyes; then
2099 tm_file="${tm_file} dbx.h"
2102 xmake_file=mips/x-iris
2103 if test x$gas = xyes
2106 extra_passes="mips-tfile mips-tdump"
2108 if test x$gnu_ld != xyes
2112 # if test x$enable_threads = xyes; then
2113 # thread_file='irix'
2116 mips-sgi-irix4*) # Mostly like a MIPS.
2117 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2118 if test x$stabs = xyes; then
2119 tm_file="${tm_file} dbx.h"
2122 xmake_file=mips/x-iris
2123 if test x$gas = xyes
2126 extra_passes="mips-tfile mips-tdump"
2128 if test x$gnu_ld != xyes
2132 # if test x$enable_threads = xyes; then
2133 # thread_file='irix'
2136 mips-sgi-*) # Mostly like a MIPS.
2137 tm_file="mips/iris3.h ${tm_file}"
2138 if test x$stabs = xyes; then
2139 tm_file="${tm_file} dbx.h"
2142 if test x$gas = xyes
2145 extra_passes="mips-tfile mips-tdump"
2147 if test x$gnu_ld != xyes
2152 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2153 tm_file="mips/osfrose.h ${tm_file}"
2154 extra_objs=halfpic.o
2157 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2158 tm_file=mips/dec-osf1.h
2159 if test x$stabs = xyes; then
2160 tm_file="${tm_file} dbx.h"
2162 if test x$gas = xyes
2165 tmake_file=mips/t-ultrix
2166 extra_passes="mips-tfile mips-tdump"
2168 if test x$gnu_ld != xyes
2173 mips-dec-bsd*) # Decstation running 4.4 BSD
2174 tm_file=mips/dec-bsd.h
2175 if test x$gas = xyes
2178 tmake_file=mips/t-ultrix
2179 extra_passes="mips-tfile mips-tdump"
2181 if test x$gnu_ld != xyes
2186 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2187 tm_file=mips/netbsd.h
2188 # On NetBSD, the headers are already okay, except for math.h.
2191 mips*-*-linux*) # Linux MIPS, either endian.
2194 mips*el-*) tm_file="elfos.h mips/elfl.h mips/linux.h" ;;
2195 *) tm_file="elfos.h mips/elf.h mips/linux.h" ;;
2197 tmake_file="t-slibgcc-elf-ver t-linux"
2198 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2201 if test x$enable_threads = xyes; then
2205 mips*el-*-openbsd*) # mips little endian
2206 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2208 mips*-*-openbsd*) # mips big endian
2209 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2210 tm_file="mips/openbsd-be.h ${tm_file}"
2212 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2213 tm_file="mips/news4.h ${tm_file}"
2214 if test x$stabs = xyes; then
2215 tm_file="${tm_file} dbx.h"
2217 if test x$gas = xyes
2220 extra_passes="mips-tfile mips-tdump"
2222 if test x$gnu_ld != xyes
2227 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2228 # That is based on svr4.
2229 # t-svr4 is not right because this system doesn't use ELF.
2230 tm_file="mips/news5.h ${tm_file}"
2231 if test x$stabs = xyes; then
2232 tm_file="${tm_file} dbx.h"
2235 if test x$gas = xyes
2238 extra_passes="mips-tfile mips-tdump"
2240 if test x$gnu_ld != xyes
2245 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2246 tm_file="mips/svr4-5.h mips/svr4-t.h"
2247 if test x$stabs = xyes; then
2248 tm_file="${tm_file} dbx.h"
2251 if test x$gas = xyes
2253 extra_parts="crtbegin.o crtend.o"
2255 extra_passes="mips-tfile mips-tdump"
2257 if test x$gnu_ld != xyes
2262 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2263 tm_file="mips/ultrix.h ${tm_file}"
2264 if test x$stabs = xyes; then
2265 tm_file="${tm_file} dbx.h"
2267 if test x$gas = xyes
2270 tmake_file=mips/t-ultrix
2271 extra_passes="mips-tfile mips-tdump"
2273 if test x$gnu_ld != xyes
2278 mips-*-riscos[56789]bsd*)
2279 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.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-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2296 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.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-bsd-gas
2304 tmake_file=mips/t-bsd
2305 extra_passes="mips-tfile mips-tdump"
2307 if test x$gnu_ld != xyes
2312 mips-*-riscos[56789]sysv4*)
2313 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2314 if test x$stabs = xyes; then
2315 tm_file="${tm_file} dbx.h"
2317 if test x$gas = xyes
2319 tmake_file=mips/t-svr4-gas
2321 tmake_file=mips/t-svr4
2322 extra_passes="mips-tfile mips-tdump"
2324 if test x$gnu_ld != xyes
2329 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2330 tm_file="mips/svr4-4.h ${tm_file}"
2331 if test x$stabs = xyes; then
2332 tm_file="${tm_file} dbx.h"
2335 if test x$gas = xyes
2337 tmake_file=mips/t-svr4-gas
2339 tmake_file=mips/t-svr4
2340 extra_passes="mips-tfile mips-tdump"
2342 if test x$gnu_ld != xyes
2347 mips-*-riscos[56789]sysv*)
2348 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2349 if test x$stabs = xyes; then
2350 tm_file="${tm_file} dbx.h"
2353 if test x$gas = xyes
2355 tmake_file=mips/t-svr3-gas
2357 tmake_file=mips/t-svr3
2358 extra_passes="mips-tfile mips-tdump"
2360 if test x$gnu_ld != xyes
2365 mips-*-sysv* | mips-*-riscos*sysv*)
2366 tm_file="mips/svr3-4.h ${tm_file}"
2367 if test x$stabs = xyes; then
2368 tm_file="${tm_file} dbx.h"
2371 if test x$gas = xyes
2373 tmake_file=mips/t-svr3-gas
2375 tmake_file=mips/t-svr3
2376 extra_passes="mips-tfile mips-tdump"
2378 if test x$gnu_ld != xyes
2383 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2384 tm_file=mips/mips-5.h
2385 if test x$stabs = xyes; then
2386 tm_file="${tm_file} dbx.h"
2388 if test x$gas = xyes
2391 extra_passes="mips-tfile mips-tdump"
2393 if test x$gnu_ld != xyes
2401 tm_file=mips/ecoffl.h
2402 if test x$stabs = xyes; then
2403 tm_file="${tm_file} dbx.h"
2405 tmake_file=mips/t-ecoff
2408 tm_file="gofast.h mips/ecoff.h"
2409 if test x$stabs = xyes; then
2410 tm_file="${tm_file} dbx.h"
2412 tmake_file=mips/t-ecoff
2415 tm_file="mips/elfl.h"
2416 tmake_file=mips/t-elf
2419 tm_file="mips/elf.h"
2420 tmake_file=mips/t-elf
2423 tm_file="mips/elfl64.h"
2424 tmake_file=mips/t-elf
2426 mips64orionel-*-elf*)
2427 tm_file="mips/elforion.h mips/elfl64.h"
2428 tmake_file=mips/t-elf
2431 tm_file="mips/elf64.h"
2432 tmake_file=mips/t-elf
2435 tm_file="mips/elforion.h mips/elf64.h"
2436 tmake_file=mips/t-elf
2438 mips64orion-*-rtems*)
2439 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2440 tmake_file="mips/t-elf t-rtems"
2441 if test x$enable_threads = xyes; then
2446 tm_file="mips/elf.h mips/rtems.h"
2447 tmake_file="mips/t-elf t-rtems"
2448 if test x$enable_threads = xyes; then
2453 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2454 tmake_file=mips/t-r3900
2457 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2458 tmake_file=mips/t-r3900
2460 mips-*-*) # Default MIPS RISC-OS 4.0.
2461 if test x$stabs = xyes; then
2462 tm_file="${tm_file} dbx.h"
2464 if test x$gas = xyes
2467 extra_passes="mips-tfile mips-tdump"
2469 if test x$gnu_ld != xyes
2477 tm_file="mn10200/mn10200.h"
2478 if test x$stabs = xyes
2480 tm_file="${tm_file} dbx.h"
2486 tm_file="mn10300/mn10300.h"
2487 if test x$stabs = xyes
2489 tm_file="${tm_file} dbx.h"
2494 tm_file=ns32k/encore.h
2498 tm_file=ns32k/sequent.h
2502 tm_file=ns32k/tek6100.h
2506 tm_file=ns32k/tek6200.h
2510 tm_file=ns32k/merlin.h
2514 tm_file=ns32k/pc532-mach.h
2518 tm_file=ns32k/pc532-min.h
2519 xm_defines='POSIX HZ=60'
2523 tm_file=ns32k/netbsd.h
2524 # On NetBSD, the headers are already okay, except for math.h.
2529 tm_file="${tm_file} pdp11/2bsd.h"
2539 tm_file="svr4.h pj/linux.h ${tm_file}"
2544 tm_file="svr4.h pj/pjl.h ${tm_file}"
2557 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2561 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2563 xm_file=rs6000/xm-beos.h
2564 tmake_file=rs6000/t-beos
2568 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2569 tm_p_file="${tm_p_file} darwin-protos.h"
2570 tmake_file=rs6000/t-darwin
2571 xmake_file=rs6000/x-darwin
2572 # Override the usual setting, since Apple's GCC has lame bugs
2573 # and can't handle the initializers. Someday the bugs will be
2574 # fixed and we can get rid of this silliness.
2575 xm_defines="HAVE_DESIGNATED_INITIALIZERS=0"
2576 extra_objs="darwin.o"
2577 c_target_objs="darwin-c.o"
2578 cxx_target_objs="darwin-c.o"
2579 # Darwin linker does collect2 functionality
2583 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2585 extra_headers=ppc-asm.h
2586 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2588 powerpc-*-chorusos*)
2590 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2591 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2592 extra_headers=ppc-asm.h
2593 case x${enable_threads} in
2594 xyes | xpthreads | xposix)
2601 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2602 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2603 extra_headers=ppc-asm.h
2607 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2608 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2609 extra_headers=ppc-asm.h
2613 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2614 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2615 extra_headers=ppc-asm.h
2619 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2620 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2621 extra_headers=ppc-asm.h
2625 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2626 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2627 extra_headers=ppc-asm.h
2628 if test x$enable_threads = xyes; then
2632 powerpc-*-linux*libc1)
2633 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2634 out_file=rs6000/rs6000.c
2635 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2637 extra_headers=ppc-asm.h
2638 if test x$enable_threads = xyes; then
2643 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2644 out_file=rs6000/rs6000.c
2645 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2647 extra_headers=ppc-asm.h
2648 if test x$enable_threads = xyes; then
2652 powerpc-wrs-vxworks*)
2655 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2656 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2657 extra_headers=ppc-asm.h
2658 thread_file='vxworks'
2660 powerpcle-wrs-vxworks*)
2663 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2664 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2665 extra_headers=ppc-asm.h
2666 thread_file='vxworks'
2669 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2671 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2672 extra_headers=ppc-asm.h
2676 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2677 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2678 extra_headers=ppc-asm.h
2680 powerpcle-*-eabisim*)
2682 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2683 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2684 extra_headers=ppc-asm.h
2688 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2689 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2690 extra_headers=ppc-asm.h
2692 powerpcle-*-solaris2*)
2693 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2695 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2696 extra_headers=ppc-asm.h
2698 rs6000-ibm-aix3.[01]*)
2700 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2704 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2706 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2707 tmake_file=rs6000/t-newas
2711 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2713 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2714 tmake_file=rs6000/t-newas
2718 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2720 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2721 tmake_file=rs6000/t-aix43
2726 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2728 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2729 tmake_file=rs6000/t-aix43
2736 tm_file="${tm_file} rs6000/aix.h"
2742 tm_file="${tm_file} rs6000/aix.h"
2747 tm_file="rs6000/rs6000.h rs6000/mach.h"
2752 tm_file=rs6000/lynx.h
2753 tmake_file=rs6000/t-rs6000
2757 tmake_file="sh/t-sh sh/t-elf"
2758 tm_file="sh/sh.h sh/elf.h"
2762 tmake_file="sh/t-sh sh/t-elf t-rtems"
2763 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2765 if test x$enable_threads = xyes; then
2770 tmake_file="sh/t-sh t-rtems"
2771 tm_file="sh/sh.h sh/rtems.h"
2773 if test x$enable_threads = xyes; then
2778 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2779 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2782 if test x$enable_threads = xyes; then
2794 sparc64-wrs-vxworks*)
2795 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2796 tmake_file=sparc/t-vxsparc64
2799 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2800 tm_file=sparc/vxsparc.h
2801 tmake_file=sparc/t-vxsparc
2803 thread_file='vxworks'
2806 tmake_file=sparc/t-sparcbare
2807 tm_file="sparc/aout.h libgloss.h"
2810 tm_file=sparc/netbsd.h
2815 # we need collect2 until our bug is fixed...
2819 tm_file="${tm_file} sparc/bsd.h"
2822 tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
2823 tmake_file=sparc/t-chorus-elf
2824 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2826 case x${enable_threads} in
2827 xyes | xpthreads | xposix)
2833 tm_file="sparc/sol2.h sparc/elf.h"
2834 tmake_file=sparc/t-elf
2835 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2839 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2840 tm_file=sparc/linux-aout.h
2844 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2846 tm_file=sparc/linux.h
2847 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
2848 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2852 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2854 tm_file=sparc/linux.h
2855 tmake_file="t-slibgcc-elf-ver t-linux"
2856 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2858 if test x$enable_threads = xyes; then
2864 if test x$gas = xyes
2866 tm_file=sparc/lynx.h
2868 tm_file=sparc/lynx-ng.h
2870 tmake_file=sparc/t-sunos41
2873 tmake_file="sparc/t-sparcbare t-rtems"
2874 tm_file=sparc/rtems.h
2875 if test x$enable_threads = xyes; then
2879 sparc-*-rtems*|sparc-*-rtemself*)
2880 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
2881 tmake_file="sparc/t-elf t-rtems"
2882 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2885 if test x$enable_threads = xyes; then
2889 sparcv9-*-solaris2*)
2890 if test x$gnu_ld = xyes
2892 tm_file=sparc/sol2-64.h
2894 tm_file=sparc/sol2-sld-64.h
2897 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2898 if test x$gnu_ld = xyes; then
2899 tmake_file="$tmake_file t-slibgcc-elf-ver"
2901 tmake_file="$tmake_file t-slibgcc-sld"
2903 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2905 if test x${enable_threads} = x ; then
2906 enable_threads=$have_pthread_h
2907 if test x${enable_threads} = x ; then
2908 enable_threads=$have_thread_h
2911 if test x${enable_threads} = xyes ; then
2912 if test x${have_pthread_h} = xyes ; then
2915 thread_file='solaris'
2919 sparc-hal-solaris2*)
2921 tm_file="sparc/sol2.h sparc/hal.h"
2922 tmake_file="sparc/t-halos sparc/t-sol2"
2923 if test x$gnu_ld = xyes; then
2924 tmake_file="$tmake_file t-slibgcc-elf-ver"
2926 tmake_file="$tmake_file t-slibgcc-sld"
2928 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2937 thread_file='solaris'
2940 if test x$gnu_ld = xyes
2942 tm_file=sparc/sol2.h
2944 tm_file=sparc/sol2-sld.h
2947 tmake_file=sparc/t-sol2
2948 if test x$gnu_ld = xyes; then
2949 tmake_file="$tmake_file t-slibgcc-elf-ver"
2951 tmake_file="$tmake_file t-slibgcc-sld"
2953 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2955 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
2957 if test x$gnu_ld = xyes
2959 tm_file=sparc/sol2-64.h
2961 tm_file=sparc/sol2-sld-64.h
2963 tmake_file="$tmake_file sparc/t-sol2-64"
2974 if test x${enable_threads} = x; then
2975 enable_threads=$have_pthread_h
2976 if test x${enable_threads} = x; then
2977 enable_threads=$have_thread_h
2980 if test x${enable_threads} = xyes; then
2981 if test x${have_pthread_h} = xyes; then
2984 thread_file='solaris'
2989 tm_file=sparc/sunos4.h
2993 tm_file=sparc/sunos4.h
2994 tmake_file=sparc/t-sunos41
2996 if test x$gas = xyes; then
2997 tm_file="${tm_file} sparc/sun4gas.h"
3001 tm_file=sparc/sun4o3.h
3005 tm_file=sparc/sysv4.h
3008 extra_parts="crtbegin.o crtend.o"
3012 tm_file=sparc/vxsim.h
3013 tmake_file=sparc/t-vxsparc
3016 tm_file="sparc/splet.h libgloss.h"
3017 tmake_file=sparc/t-splet
3020 tm_file="sparc/litecoff.h libgloss.h"
3021 tmake_file=sparc/t-sparclite
3024 tm_file="sparc/lite.h aoutos.h libgloss.h"
3025 tmake_file=sparc/t-sparclite
3028 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3029 tmake_file=sparc/t-sparclite
3030 extra_parts="crtbegin.o crtend.o"
3033 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3034 tmake_file=sparc/t-sp86x
3037 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3038 tmake_file=sparc/t-sp86x
3039 extra_parts="crtbegin.o crtend.o"
3042 tm_file=sparc/sp64-aout.h
3045 tm_file=sparc/sp64-elf.h
3046 extra_parts="crtbegin.o crtend.o"
3048 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3049 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64"
3050 tm_file=sparc/linux64.h
3052 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3054 if test x$enable_threads = xyes; then
3060 tm_file=arm/strongarm-elf.h
3061 tmake_file=arm/t-strongarm-elf
3066 tm_file=arm/strongarm-coff.h
3067 tmake_file=arm/t-strongarm-coff
3072 tm_file=arm/strongarm-pe.h
3073 tmake_file=arm/t-strongarm-pe
3079 { echo "config.gcc: error:
3080 *** The Thumb targets have been deprecated. The equivalent
3081 *** ARM based toolchain can now generate Thumb instructions
3082 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3086 tm_file="v850/rtems.h"
3087 tmake_file="v850/t-v850 t-rtems"
3088 if test x$stabs = xyes
3090 tm_file="${tm_file} dbx.h"
3093 c_target_objs="v850-c.o"
3094 cxx_target_objs="v850-c.o"
3097 target_cpu_default="TARGET_CPU_generic"
3099 tm_file="v850/v850.h"
3100 tmake_file=v850/t-v850
3101 if test x$stabs = xyes
3103 tm_file="${tm_file} dbx.h"
3106 c_target_objs="v850-c.o"
3107 cxx_target_objs="v850-c.o"
3109 vax-*-bsd*) # vaxen running BSD
3113 vax-*-sysv*) # vaxen running system V
3114 tm_file="${tm_file} vax/vaxv.h"
3119 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3125 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3129 vax-*-ultrix*) # vaxen running ultrix
3130 tm_file="${tm_file} vax/ultrix.h"
3133 vax-*-vms*) # vaxen running VMS
3134 xm_file=vax/xm-vms.h
3138 vax-*-*) # vax default entry
3146 tm_file=arm/xscale-elf.h
3147 tmake_file=arm/t-xscale-elf
3152 tm_file=arm/xscale-coff.h
3153 tmake_file=arm/t-xscale-coff
3158 echo "Configuration $machine not supported" 1>&2
3165 install_headers_dir=install-headers-cpio
3169 # Distinguish i[34567]86
3170 # Also, do not run mips-tfile on MIPS if using gas.
3171 # Process --with-cpu= for PowerPC/rs6000
3172 target_cpu_default2=
3175 target_cpu_default2=1
3178 case $target_alias in
3180 target_cpu_default2=4
3183 target_cpu_default2=2
3187 i686-*-* | i786-*-*)
3188 case $target_alias in
3190 target_cpu_default2=5
3193 target_cpu_default2=3
3200 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3203 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3206 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3209 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3212 target_cpu_default2="MASK_CPU_EV5"
3216 if test x$gas = xyes
3218 if test "$target_cpu_default2" = ""
3220 target_cpu_default2="MASK_GAS"
3222 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3227 case "x$with_cpu" in
3230 target_cpu_default2="TARGET_CPU_generic"
3233 # Distinguish cores, and major variants
3234 # arm7m doesn't exist, but D & I don't affect code
3235 xarm[236789] | xarm250 | xarm[67][01]0 \
3236 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3237 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3239 | xstrongarm | xstrongarm110 | xstrongarm1100)
3240 target_cpu_default2="TARGET_CPU_$with_cpu"
3244 echo "--with-cpu must be passed a value" 1>&2
3249 if test x$pass2done = xyes
3251 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3258 hppa*-*-* | parisc*-*-*)
3259 if test x$gas = xyes
3261 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3265 mips*-*-ecoff* | mips*-*-elf*)
3266 if test x$gas = xyes
3268 if test x$gnu_ld = xyes
3270 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3272 target_cpu_default2="MASK_GAS"
3277 if test x$gas = xyes
3279 target_cpu_default2="MASK_GAS"
3282 powerpc*-*-* | rs6000-*-*)
3283 case "x$with_cpu" in
3287 xcommon | xpower | xpower2 | xpowerpc | xrios \
3288 | xrios1 | xrios2 | xrsc | xrsc1 \
3289 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3290 | xec603e | x740 | x750 | x401 \
3291 | x403 | x505 | x801 | x821 | x823 | x860)
3292 target_cpu_default2="\"$with_cpu\""
3296 echo "--with-cpu must be passed a value" 1>&2
3301 if test x$pass2done = xyes
3303 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3310 case ".$with_cpu" in
3312 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3314 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3315 target_cpu_default2="TARGET_CPU_$with_cpu"
3318 if test x$pass2done = xyes
3320 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3328 if test "$target_cpu_default2" != ""
3330 if test "$target_cpu_default" != ""
3332 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3334 target_cpu_default=$target_cpu_default2
3338 # No need for collect2 if we have the GNU linker.
3339 # Actually, there is now; GNU ld doesn't handle the EH info or
3340 # collecting for shared libraries.
3347 # Save data on machine being used to compile GCC in build_xm_file.
3348 # Save data on host machine in vars host_xm_file and host_xmake_file.
3349 if test x$pass1done = x
3351 if test x$xm_file != x
3352 then build_xm_file=$xm_file
3354 build_xm_defines=$xm_defines
3355 build_install_headers_dir=$install_headers_dir
3356 build_exeext=$exeext
3359 if test x$pass2done = x
3361 if test x$xm_file != x
3362 then host_xm_file=$xm_file
3364 host_xm_defines=$xm_defines
3365 host_xmake_file="$xmake_file"
3366 host_truncate_target=$truncate_target
3367 host_extra_gcc_objs=$extra_gcc_objs
3368 host_extra_objs=$extra_host_objs