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-ieee"
434 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
436 if test x$enable_threads = xyes; then
441 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
442 target_cpu_default="MASK_GAS"
443 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
444 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
446 if test x$enable_threads = xyes; then
451 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
452 target_cpu_default="MASK_GAS"
453 tmake_file="${tmake_file} alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
457 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
458 target_cpu_default="MASK_GAS"
459 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
460 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
465 # default x-alpha is only appropriate for dec-osf.
466 target_cpu_default="MASK_GAS"
467 tmake_file="alpha/t-alpha alpha/t-ieee"
472 if test x$stabs = xyes
474 tm_file="${tm_file} dbx.h"
476 if test x$gas != xyes
478 extra_passes="mips-tfile mips-tdump"
481 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
484 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
487 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
490 tm_file="${tm_file} alpha/osf.h"
491 tmake_file="$tmake_file alpha/t-osf4"
492 # Some versions of OSF4 (specifically X4.0-9 296.7) have
493 # a broken tar, so we use cpio instead.
494 install_headers_dir=install-headers-cpio
497 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
498 tmake_file="$tmake_file alpha/t-osf4"
503 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
504 target_cpu_default=MASK_SUPPORT_ARCH
510 tm_file="${tm_file} dbx.h alpha/vxworks.h"
511 tmake_file="alpha/t-alpha alpha/t-ieee"
514 extra_passes="mips-tfile mips-tdump"
517 thread_file='vxworks'
522 xm_file=alpha/xm-vms.h
523 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
526 tm_file=arm/rtems-elf.h
527 tmake_file="arm/t-arm-elf t-rtems"
528 if test x$enable_threads = xyes; then
531 extra_parts="crtinit.o crtfini.o"
534 extra_parts="crtinit.o crtfini.o"
536 arm-*-coff* | armel-*-coff*)
538 tmake_file=arm/t-arm-coff
542 tmake_file=arm/t-arm-coff
543 thread_file='vxworks'
545 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
546 tm_file=arm/riscix1-1.h
549 arm-*-riscix*) # Acorn RISC machine
552 tm_file=arm/rix-gas.h
556 xmake_file=arm/x-riscix
557 tmake_file=arm/t-riscix
560 arm-semi-aout | armel-semi-aout)
562 tmake_file=arm/t-semi
564 arm-semi-aof | armel-semi-aof)
565 tm_file=arm/semiaof.h
566 tmake_file=arm/t-semi
570 tmake_file="t-netbsd arm/t-netbsd"
573 arm*-*-linux*) # ARM GNU/Linux with ELF
575 tm_file="arm/linux-elf.h"
576 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
577 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
579 case x${enable_threads} in
580 x | xyes | xpthreads | xposix)
585 arm*-*-uclinux*) # ARM ucLinux
586 tm_file=arm/uclinux-elf.h
587 tmake_file=arm/t-arm-elf
591 tmake_file=arm/t-arm-aout
594 tm_file=arm/ecos-elf.h
595 tmake_file=arm/t-arm-elf
598 tm_file=arm/unknown-elf.h
599 tmake_file=arm/t-arm-elf
602 tm_file=arm/conix-elf.h
603 tmake_file=arm/t-arm-elf
606 tm_file=arm/unknown-elf-oabi.h
607 tmake_file=arm/t-arm-elf
616 c1-convex-*) # Convex C1
620 c2-convex-*) # Convex C2
633 target_cpu_default=16
638 tmake_file="c4x/t-c4x t-rtems"
640 if test x$enable_threads = xyes; then
649 clipper-intergraph-clix*)
650 tm_file="${tm_file} svr3.h clipper/clix.h"
652 extra_headers=va-clipper.h
653 extra_parts="crtbegin.o crtend.o"
654 install_headers_dir=install-headers-cpio
665 tm_file="fr30/fr30.h"
666 tmake_file=fr30/t-fr30
667 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
670 tmake_file="h8300/t-h8300 t-rtems"
671 tm_file=h8300/rtems.h
672 if test x$enable_threads = xyes; then
680 hppa*64*-*-linux* | parisc*64*-*-linux*)
681 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
682 tm_file="pa/pa64-start.h ${tm_file} linux.h pa/pa-linux.h \
683 pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
684 tmake_file=pa/t-linux64
687 hppa*-*-linux* | parisc*-*-linux*)
688 target_cpu_default="MASK_PA_11"
689 tm_file="${tm_file} linux.h pa/pa-linux.h \
690 pa/pa32-regs.h pa/pa32-linux.h"
691 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
692 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
694 if test x$enable_threads = xyes; then
699 target_cpu_default="MASK_PA_11"
700 tmake_file=pa/t-openbsd
703 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
704 tmake_file="pa/t-pro t-rtems"
705 if test x$enable_threads = xyes; then
710 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
711 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
715 target_cpu_default="MASK_PA_11"
716 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
720 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
721 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
725 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
729 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
730 target_cpu_default="MASK_PA_11"
734 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
738 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
740 xmake_file=pa/x-pa-hpux
741 install_headers_dir=install-headers-cpio
744 hppa1.0-*-hpux8.0[0-2]*)
745 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
747 xmake_file=pa/x-pa-hpux
748 if test x$gas != xyes
750 tm_file="pa/pa-oldas.h ${tm_file}"
752 install_headers_dir=install-headers-cpio
755 hppa1.1-*-hpux8.0[0-2]*)
756 target_cpu_default="MASK_PA_11"
757 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
759 xmake_file=pa/x-pa-hpux
760 if test x$gas != xyes
762 tm_file="pa/pa-oldas.h ${tm_file}"
764 install_headers_dir=install-headers-cpio
768 target_cpu_default="MASK_PA_11"
769 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
771 xmake_file=pa/x-pa-hpux
772 install_headers_dir=install-headers-cpio
776 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
778 xmake_file=pa/x-pa-hpux
779 install_headers_dir=install-headers-cpio
782 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
783 target_cpu_default="MASK_PA_11"
784 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
787 xmake_file=pa/x-pa-hpux
789 if test x$enable_threads = x; then
790 enable_threads=$have_pthread_h
792 case x${enable_threads} in
794 tmake_file="${tmake_file} pa/t-dce-thr"
797 install_headers_dir=install-headers-cpio
801 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
804 xmake_file=pa/x-pa-hpux
806 if test x$enable_threads = x; then
807 enable_threads=$have_pthread_h
809 case x${enable_threads} in
811 tmake_file="${tmake_file} pa/t-dce-thr"
814 install_headers_dir=install-headers-cpio
819 xmake_file=pa/x-pa-hpux
821 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"
824 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
826 # if [ x$enable_threads = x ]; then
827 # enable_threads=$have_pthread_h
829 # if [ x$enable_threads = xyes ]; then
831 # tmake_file="${tmake_file} pa/t-dce-thr"
833 install_headers_dir=install-headers-cpio
836 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
837 target_cpu_default="MASK_PA_11"
838 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
841 xmake_file=pa/x-pa-hpux
843 # if test x$enable_threads = x; then
844 # enable_threads=$have_pthread_h
846 # if test x$enable_threads = xyes; then
848 # tmake_file="${tmake_file} pa/t-dce-thr"
850 install_headers_dir=install-headers-cpio
854 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
857 xmake_file=pa/x-pa-hpux
858 # if test x$enable_threads = x; then
859 # enable_threads=$have_pthread_h
861 # if test x$enable_threads = xyes; then
863 # tmake_file="${tmake_file} pa/t-dce-thr"
865 install_headers_dir=install-headers-cpio
868 hppa1.1-*-hpux* | hppa2*-*-hpux*)
869 target_cpu_default="MASK_PA_11"
870 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
872 xmake_file=pa/x-pa-hpux
873 install_headers_dir=install-headers-cpio
877 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
879 xmake_file=pa/x-pa-hpux
880 install_headers_dir=install-headers-cpio
883 hppa1.1-*-hiux* | hppa2*-*-hiux*)
884 target_cpu_default="MASK_PA_11"
885 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
887 xmake_file=pa/x-pa-hpux
888 install_headers_dir=install-headers-cpio
892 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
894 xmake_file=pa/x-pa-hpux
895 install_headers_dir=install-headers-cpio
899 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
900 target_cpu_default="MASK_PA_11"
904 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
905 xmake_file=pa/x-pa-mpeix
906 echo "You must use gas. Assuming it is already installed."
908 install_headers_dir=install-headers-tar
911 i370-*-opened*) # IBM 360/370/390 Architecture
912 xm_defines='POSIX FATAL_EXIT_CODE=12'
917 xm_defines='POSIX FATAL_EXIT_CODE=12'
922 tm_file="i370/linux.h ${tm_file}"
923 tmake_file="t-slibgcc-elf-ver t-linux"
925 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
926 # extra_parts="crtbegin.o crtend.o"
930 if test x$enable_threads = xyes; then
934 i[34567]86-*-chorusos*)
936 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h i386/chorus.h"
937 tmake_file=i386/t-i386elf
939 case x${enable_threads} in
940 xyes | xpthreads | xposix)
947 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h"
948 tmake_file=i386/t-i386elf
951 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
954 tm_file=i386/aix386.h
955 extra_parts="crtbegin.o crtend.o"
956 tmake_file=i386/t-crtstuff
958 tm_file=i386/aix386ng.h
963 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
964 xm_defines="POSIX SMALL_ARG_MAX"
965 if test x$stabs = xyes -a x$gas = xyes
967 tm_file=i386/sysv4gdb.h
971 extra_parts="crtbegin.o crtend.o"
972 tmake_file=i386/t-crtpic
976 tmake_file=i386/t-next
977 extra_objs=nextstep.o
978 extra_parts="crtbegin.o crtend.o"
979 if test x$enable_threads = xyes; then
983 i[34567]86-*-netware) # Intel 80386's running netware
984 tm_file=i386/netware.h
985 tmake_file=i386/t-netware
987 i[34567]86-sequent-bsd*) # 80386 from Sequent
991 tm_file=i386/seq-gas.h
993 tm_file=i386/sequent.h
996 i[34567]86-sequent-ptx1*)
998 tm_file=i386/seq-sysv3.h
999 tmake_file=i386/t-crtstuff
1000 extra_parts="crtbegin.o crtend.o"
1001 install_headers_dir=install-headers-cpio
1003 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1005 tm_file=i386/seq2-sysv3.h
1006 tmake_file=i386/t-crtstuff
1007 extra_parts="crtbegin.o crtend.o"
1008 install_headers_dir=install-headers-cpio
1010 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1011 if test x$gas = xyes
1013 tm_file="${tm_file} usegas.h"
1015 xm_defines="POSIX SMALL_ARG_MAX"
1017 tm_file=i386/ptx4-i.h
1019 extra_parts="crtbegin.o crtend.o"
1020 install_headers_dir=install-headers-cpio
1022 i386-sun-sunos*) # Sun i386 roadrunner
1027 i[34567]86-wrs-vxworks*)
1028 tm_file=i386/vxi386.h
1029 thread_file='vxworks'
1032 tm_file=i386/i386-aout.h
1034 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1036 tmake_file='i386/t-beos i386/t-crtpic'
1037 tm_file=i386/beos-elf.h
1038 xmake_file=i386/x-beos
1039 extra_parts='crtbegin.o crtend.o'
1041 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1042 tm_file="i386/386bsd.h i386/bsd386.h"
1043 # tmake_file=t-libc-ok
1046 tm_file=i386/386bsd.h
1047 # tmake_file=t-libc-ok
1048 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1051 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1052 tm_file=i386/freebsd-aout.h
1053 tmake_file=t-freebsd
1055 i[34567]86-*-freebsd*)
1056 tm_file="${tm_file} i386/att.h svr4.h ${fbsd_tm_file} i386/freebsd.h"
1058 i[34567]86-*-netbsd*)
1059 tm_file=i386/netbsd.h
1063 i[34567]86-*-openbsd*)
1064 # we need collect2 until our bug is fixed...
1068 tm_file=i386/i386-coff.h
1070 i[34567]86-*-isc*) # 80386 running ISC system
1072 if test x$gas = xyes -a x$stabs = xyes
1074 tm_file=i386/iscdbx.h
1075 tmake_file=i386/t-svr3dbx
1076 extra_parts="svr3.ifile svr3z.ifile"
1078 tm_file=i386/isccoff.h
1079 tmake_file=i386/t-crtstuff
1080 extra_parts="crtbegin.o crtend.o"
1082 install_headers_dir=install-headers-cpio
1084 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1085 # with a.out format using
1087 tmake_file="t-linux-aout i386/t-crtstuff"
1088 tm_file=i386/linux-oldld.h
1092 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1094 tmake_file="t-linux-aout i386/t-crtstuff"
1095 tm_file=i386/linux-aout.h
1099 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1100 # with ELF format using the
1101 # GNU/Linux C library 5
1103 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1104 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1105 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1108 if test x$enable_threads = xyes; then
1109 thread_file='single'
1112 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1113 # with ELF format using glibc 2
1114 # aka GNU/Linux C library 6
1116 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1117 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1118 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1121 if test x$enable_threads = xyes; then
1128 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1129 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1132 i[34567]86-pc-msdosdjgpp*)
1133 xm_file=i386/xm-djgpp.h
1134 tm_file=i386/djgpp.h
1135 xmake_file=i386/x-djgpp
1140 case $host in *pc-msdosdjgpp*)
1145 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1146 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h"
1147 tmake_file=t-libc-ok
1151 i[34567]86-*-lynxos*)
1152 if test x$gas = xyes
1156 tm_file=i386/lynx-ng.h
1161 # tmake_file=t-libc-ok
1164 i[34567]86-*-osfrose*) # 386 using OSF/rose
1165 if test x$elf = xyes
1167 tm_file=i386/osfelf.h
1170 tm_file=i386/osfrose.h
1173 tmake_file=i386/t-osf
1174 extra_objs=halfpic.o
1176 i[34567]86-go32-rtems*)
1178 tm_file=i386/go32-rtems.h
1180 if test x$enable_threads = xyes; then
1184 i[34567]86-*-rtemscoff*)
1186 tm_file=i386/rtems.h
1188 if test x$enable_threads = xyes; then
1192 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1194 tm_file=i386/rtemself.h
1195 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1196 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1197 if test x$enable_threads = xyes; then
1201 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1203 xmake_file=i386/x-sco5
1204 install_headers_dir=install-headers-cpio
1206 if test x$gas = xyes
1208 tm_file="usegas.h ${tm_file}"
1209 tmake_file=i386/t-sco5gas
1211 tmake_file=i386/t-sco5
1213 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1215 i[34567]86-*-solaris2*)
1216 xm_defines="POSIX SMALL_ARG_MAX"
1218 if test x$gas = xyes; then
1219 # Only needed if gas does not support -s
1220 tm_file="i386/sol2gas.h ${tm_file}"
1222 tmake_file=i386/t-sol2
1223 if test x$gnu_ld = xyes; then
1224 tmake_file="$tmake_file t-slibgcc-elf-ver"
1226 tmake_file="$tmake_file t-slibgcc-sld"
1228 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1230 if test x${enable_threads} = x; then
1231 enable_threads=$have_pthread_h
1232 if test x${enable_threads} = x; then
1233 enable_threads=$have_thread_h
1236 if test x${enable_threads} = xyes; then
1237 if test x${have_pthread_h} = xyes; then
1240 thread_file='solaris'
1244 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1246 tm_file=i386/sysv5.h
1247 if test x$stabs = xyes
1249 tm_file="${tm_file} dbx.h"
1251 tmake_file=i386/t-crtpic
1253 extra_parts="crtbegin.o crtend.o"
1254 if test x$enable_threads = xyes; then
1258 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1259 xm_defines="POSIX SMALL_ARG_MAX"
1260 tm_file=i386/sysv4.h
1261 if test x$stabs = xyes
1263 tm_file="${tm_file} dbx.h"
1265 tmake_file=i386/t-crtpic
1267 extra_parts="crtbegin.o crtend.o"
1269 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1272 tmake_file="i386/t-crtpic i386/t-udk"
1274 extra_parts="crtbegin.o crtend.o"
1275 install_headers_dir=install-headers-cpio
1277 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1279 xm_file=i386/xm-osf1elf.h
1280 xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1281 if test x$stabs = xyes
1283 tm_file=i386/osf1elfgdb.h
1285 tm_file=i386/osf1elf.h
1287 tmake_file=i386/t-osf1elf
1288 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1290 i[34567]86-*-sysv*) # Intel 80386's running system V
1292 if test x$gas = xyes
1294 if test x$stabs = xyes
1296 tm_file=i386/svr3dbx.h
1297 tmake_file=i386/t-svr3dbx
1298 extra_parts="svr3.ifile svr3z.rfile"
1300 tm_file=i386/svr3gas.h
1301 extra_parts="crtbegin.o crtend.o"
1302 tmake_file=i386/t-crtstuff
1305 tm_file=i386/sysv3.h
1306 extra_parts="crtbegin.o crtend.o"
1307 tmake_file=i386/t-crtstuff
1309 tmake_file="$tmake_file i386/t-crtpic"
1311 i386-*-vsta) # Intel 80386's running VSTa kernel
1312 xm_file=i386/xm-vsta.h
1317 xm_file=i386/xm-cygwin.h
1319 tmake_file=i386/t-cygwin
1320 tm_file=i386/win32.h
1321 xmake_file=i386/x-cygwin
1323 if test x$enable_threads = xyes; then
1328 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1330 xm_file=i386/xm-cygwin.h
1332 tmake_file=i386/t-cygwin
1333 tm_file=i386/cygwin.h
1334 xmake_file=i386/x-cygwin
1336 if test x$enable_threads = xyes; then
1341 i[34567]86-*-mingw32*)
1342 tm_file=i386/mingw32.h
1345 xm_file=i386/xm-mingw32.h
1346 tmake_file="i386/t-cygwin i386/t-mingw32"
1348 xmake_file=i386/x-cygwin
1349 if test x$enable_threads = xyes; then
1356 *minwg32crt* | *mingw32*)
1357 tm_file="${tm_file} i386/crtdll.h"
1363 tmake_file="i386/t-cygwin i386/t-uwin"
1365 xmake_file=i386/x-cygwin
1366 if test x$enable_threads = xyes; then
1371 i[34567]86-*-interix*)
1372 tm_file="i386/i386-interix.h interix.h"
1373 xm_file="i386/xm-i386-interix.h xm-interix.h"
1375 tmake_file="i386/t-interix"
1376 extra_objs=interix.o
1377 xmake_file=x-interix
1378 if test x$enable_threads = xyes ; then
1381 if test x$stabs = xyes ; then
1382 tm_file="${tm_file} dbxcoff.h"
1385 i[34567]86-dg-dgux*)
1387 out_file=i386/dgux.c
1389 tmake_file=i386/t-dgux
1390 xmake_file=i386/x-dgux
1391 install_headers_dir=install-headers-cpio
1393 i860-alliant-*) # Alliant FX/2800
1394 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1395 tmake_file=i860/t-fx2800
1396 extra_parts="crtbegin.o crtend.o"
1399 tm_file="${tm_file} i860/bsd.h"
1400 if test x$gas = xyes
1402 tm_file="${tm_file} i860/bsd-gas.h"
1407 tm_file="${tm_file} i860/mach.h"
1408 tmake_file=t-libc-ok
1410 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1411 tm_file="${tm_file} svr3.h i860/paragon.h"
1415 tm_file="${tm_file} svr3.h i860/sysv3.h"
1417 extra_parts="crtbegin.o crtend.o"
1420 tm_file="${tm_file} svr4.h i860/sysv4.h"
1423 extra_parts="crtbegin.o crtend.o"
1425 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1426 tm_file="${tm_file} i960/vx960.h"
1427 tmake_file=i960/t-vxworks960
1429 thread_file='vxworks'
1430 c_target_objs="i960-c.o"
1431 cxx_target_objs="i960-c.o"
1433 i960-wrs-vxworks5* | i960-wrs-vxworks)
1434 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1435 tmake_file=i960/t-vxworks960
1437 thread_file='vxworks'
1438 c_target_objs="i960-c.o"
1439 cxx_target_objs="i960-c.o"
1442 tm_file="${tm_file} i960/vx960.h"
1443 tmake_file=i960/t-vxworks960
1445 thread_file='vxworks'
1446 c_target_objs="i960-c.o"
1447 cxx_target_objs="i960-c.o"
1450 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1451 tmake_file=i960/t-960bare
1453 c_target_objs="i960-c.o"
1454 cxx_target_objs="i960-c.o"
1457 tmake_file="i960/t-960bare t-rtems"
1458 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1460 if test x$enable_threads = xyes; then
1463 c_target_objs="i960-c.o"
1464 cxx_target_objs="i960-c.o"
1466 i960-*-*) # Default i960 environment.
1468 c_target_objs="i960-c.o"
1469 cxx_target_objs="i960-c.o"
1473 tmake_file="ia64/t-ia64"
1474 target_cpu_default="0"
1475 if test x$gas = xyes
1477 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1479 if test x$gnu_ld = xyes
1481 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1486 tm_file=ia64/linux.h
1487 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1488 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1489 if test x$enable_threads = xyes; then
1495 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h"
1496 target_cpu_default="MASK_GNU_AS"
1497 if test x$enable_threads = xyes; then
1503 extra_parts="crtinit.o crtfini.o"
1505 # m68hc11 and m68hc12 share the same machine description.
1506 m68hc11-*-*|m6811-*-*)
1507 tm_file="elfos.h m68hc11/m68hc11.h"
1508 tm_p_file="m68hc11/m68hc11-protos.h"
1509 md_file="m68hc11/m68hc11.md"
1510 out_file="m68hc11/m68hc11.c"
1511 tmake_file="m68hc11/t-m68hc11-gas"
1513 m68hc12-*-*|m6812-*-*)
1514 tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1515 tm_p_file="m68hc11/m68hc11-protos.h"
1516 md_file="m68hc11/m68hc11.md"
1517 out_file="m68hc11/m68hc11.c"
1518 tmake_file="m68hc11/t-m68hc11-gas"
1520 m68000-convergent-sysv*)
1524 extra_headers=math-68881.h
1526 m68000-hp-bsd*) # HP 9000/200 running BSD
1527 tm_file=m68k/hp2bsd.h
1529 extra_headers=math-68881.h
1531 m68000-hp-hpux*) # HP 9000 series 300
1533 if test x$gas = xyes
1535 xmake_file=m68k/x-hp320g
1536 tm_file=m68k/hp310g.h
1538 xmake_file=m68k/x-hp320
1539 tm_file=m68k/hp310.h
1541 install_headers_dir=install-headers-cpio
1543 extra_headers=math-68881.h
1548 extra_headers=math-68881.h
1551 tm_file=m68k/sun2o4.h
1553 extra_headers=math-68881.h
1557 if test x$gas = xyes
1564 extra_headers=math-68881.h
1566 m68k-apple-aux*) # Apple Macintosh running A/UX
1568 tmake_file=m68k/t-aux
1569 install_headers_dir=install-headers-cpio
1570 extra_headers=math-68881.h
1571 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1573 if test "$gnu_ld" = yes
1575 tm_file="${tm_file} m68k/auxgld.h"
1577 tm_file="${tm_file} m68k/auxld.h"
1579 if test "$gas" = yes
1581 tm_file="${tm_file} m68k/auxgas.h"
1583 tm_file="${tm_file} m68k/auxas.h"
1585 tm_file="${tm_file} m68k/a-ux.h"
1589 tm_file=m68k/apollo68.h
1591 extra_headers=math-68881.h
1594 m68k-altos-sysv*) # Altos 3068
1595 if test x$gas = xyes
1597 tm_file=m68k/altos3068.h
1600 echo "The Altos is supported only with the GNU assembler" 1>&2
1603 extra_headers=math-68881.h
1605 m68k-bull-sysv*) # Bull DPX/2
1606 if test x$gas = xyes
1608 if test x$stabs = xyes
1610 tm_file=m68k/dpx2cdbx.h
1612 tm_file=m68k/dpx2g.h
1619 extra_headers=math-68881.h
1621 m68k-atari-sysv4*) # Atari variant of V.4.
1622 tm_file=m68k/atari.h
1625 extra_parts="crtbegin.o crtend.o"
1626 extra_headers=math-68881.h
1629 m68k-motorola-sysv*)
1630 tm_file=m68k/mot3300.h
1632 if test x$gas = xyes
1634 if test x$gnu_ld = xyes
1636 tmake_file=m68k/t-mot3300-gald
1638 tmake_file=m68k/t-mot3300-gas
1642 if test x$gnu_ld = xyes
1644 tmake_file=m68k/t-mot3300-gld
1646 tmake_file=m68k/t-mot3300
1650 gdb_needs_out_file_path=yes
1651 extra_parts="crt0.o mcrt0.o"
1652 extra_headers=math-68881.h
1655 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1656 tm_file=m68k/tower-as.h
1658 extra_parts="crtbegin.o crtend.o"
1659 extra_headers=math-68881.h
1662 tm_file=m68k/plexus.h
1665 extra_headers=math-68881.h
1670 extra_headers=math-68881.h
1676 extra_headers=math-68881.h
1678 m68k-cbm-sysv4*) # Commodore variant of V.4.
1682 extra_parts="crtbegin.o crtend.o"
1683 extra_headers=math-68881.h
1687 tm_file=m68k/ccur-GAS.h
1688 extra_headers=math-68881.h
1692 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1693 tm_file=m68k/hp3bsd44.h
1695 extra_headers=math-68881.h
1698 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1699 tm_file=m68k/hp3bsd.h
1701 extra_headers=math-68881.h
1705 if test x$with_fp = xno
1707 tm_file=m68k/isi-nfp.h
1713 extra_headers=math-68881.h
1715 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1717 if test x$gas = xyes
1719 xmake_file=m68k/x-hp320g
1720 tm_file=m68k/hp320g.h
1722 xmake_file=m68k/x-hp320
1723 tm_file=m68k/hpux7.h
1725 install_headers_dir=install-headers-cpio
1727 extra_headers=math-68881.h
1730 m68k-hp-hpux*) # HP 9000 series 300
1732 if test x$gas = xyes
1734 xmake_file=m68k/x-hp320g
1735 tm_file=m68k/hp320g.h
1737 xmake_file=m68k/x-hp320
1738 tm_file=m68k/hp320.h
1740 install_headers_dir=install-headers-cpio
1742 extra_headers=math-68881.h
1746 tm_file=m68k/sun3mach.h
1748 extra_headers=math-68881.h
1752 if test x$gas = xyes
1754 tm_file=m68k/news3gas.h
1756 tm_file=m68k/news3.h
1759 extra_headers=math-68881.h
1762 m68k-sony-bsd* | m68k-sony-newsos*)
1763 if test x$gas = xyes
1765 tm_file=m68k/newsgas.h
1770 extra_headers=math-68881.h
1773 m68k-next-nextstep2*)
1774 tm_file=m68k/next21.h
1775 tmake_file=m68k/t-next
1776 xmake_file=m68k/x-next
1777 extra_objs=nextstep.o
1778 extra_headers=math-68881.h
1782 m68k-next-nextstep[34]*)
1784 tmake_file=m68k/t-next
1785 xmake_file=m68k/x-next
1786 extra_objs=nextstep.o
1787 extra_parts="crtbegin.o crtend.o"
1788 extra_headers=math-68881.h
1790 if test x$enable_threads = xyes; then
1795 if test x$with_fp = xno
1797 tm_file=m68k/sun3n3.h
1799 tm_file=m68k/sun3o3.h
1803 extra_headers=math-68881.h
1805 m68k-sun-sunos*) # For SunOS 4 (the default).
1806 if test x$with_fp = xno
1808 tm_file=m68k/sun3n.h
1814 extra_headers=math-68881.h
1817 tm_file=m68k/vxm68k.h
1818 tmake_file=m68k/t-vxworks68
1819 extra_headers=math-68881.h
1820 thread_file='vxworks'
1824 tmake_file=m68k/t-m68kbare
1825 tm_file="m68k/m68k-aout.h libgloss.h"
1826 extra_headers=math-68881.h
1830 tmake_file=m68k/t-m68kbare
1831 tm_file="m68k/m68k-coff.h dbx.h"
1832 extra_headers=math-68881.h
1835 m68020-*-elf* | m68k-*-elf*)
1836 tm_file="m68k/m68020-elf.h"
1838 tmake_file=m68k/t-m68kelf
1839 header_files=math-68881.h
1842 if test x$gas = xyes
1846 tm_file=m68k/lynx-ng.h
1848 tmake_file=m68k/t-lynx
1849 extra_headers=math-68881.h
1853 tm_file=m68k/netbsd.h
1860 # we need collect2 until our bug is fixed...
1863 m68k-*-sysv3*) # Motorola m68k's running system V.3
1865 extra_parts="crtbegin.o crtend.o"
1866 extra_headers=math-68881.h
1869 m68k-*-sysv4*) # Motorola m68k's running system V.4
1870 tm_file=m68k/m68kv4.h
1873 extra_parts="crtbegin.o crtend.o"
1874 extra_headers=math-68881.h
1877 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1880 tm_file=m68k/linux-aout.h
1881 tmake_file="t-linux-aout m68k/t-linux-aout"
1882 extra_headers=math-68881.h
1886 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1887 # with ELF format using the
1888 # GNU/Linux C library 5
1890 tm_file=m68k/linux.h
1891 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
1892 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1893 extra_headers=math-68881.h
1897 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1898 # with ELF format using glibc 2
1899 # aka the GNU/Linux C library 6.
1901 tm_file=m68k/linux.h
1902 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
1903 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1904 extra_headers=math-68881.h
1907 if test x$enable_threads = xyes; then
1912 tmake_file=m68k/t-m68kbare
1913 tm_file=m68k/m68k-psos.h
1914 extra_headers=math-68881.h
1918 tmake_file="m68k/t-m68kbare t-rtems"
1919 tm_file=m68k/rtems.h
1920 extra_headers=math-68881.h
1922 if test x$enable_threads = xyes; then
1926 m68k-*-rtemself*|m68k-*-rtems*)
1927 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1928 tm_file=m68k/rtemself.h
1929 extra_headers=math-68881.h
1931 if test x$enable_threads = xyes; then
1939 tm_file=m88k/dguxbcs.h
1940 tmake_file=m88k/t-dguxbcs
1944 tmake_file=m88k/t-dgux
1947 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1948 xmake_file=m88k/x-dgux
1949 if test x$gas = xyes
1951 tmake_file=m88k/t-dgux-gas
1954 m88k-dolphin-sysv3*)
1956 tm_file=m88k/dolph.h
1957 extra_parts="crtbegin.o crtend.o"
1958 xmake_file=m88k/x-dolph
1959 if test x$gas = xyes
1961 tmake_file=m88k/t-m88k-gas
1964 m88k-tektronix-sysv3)
1966 tm_file=m88k/tekXD88.h
1967 extra_parts="crtbegin.o crtend.o"
1968 xmake_file=m88k/x-tekXD88
1969 if test x$gas = xyes
1971 tmake_file=m88k/t-m88k-gas
1976 tm_file=m88k/m88k-aout.h
1980 tm_file=m88k/m88k-coff.h
1981 tmake_file=m88k/t-bug
1985 extra_parts="crtbegin.o crtend.o"
1986 if test x$gas = xyes
1988 tmake_file=m88k/t-luna-gas
1990 tmake_file=m88k/t-luna
1994 tmake_file="${tmake_file} m88k/t-luna-gas"
1995 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
1999 tm_file=m88k/sysv3.h
2000 extra_parts="crtbegin.o crtend.o"
2001 if test x$gas = xyes
2003 tmake_file=m88k/t-m88k-gas
2008 tm_file=m88k/sysv4.h
2009 extra_parts="crtbegin.o crtend.o"
2010 tmake_file=m88k/t-sysv4
2013 tm_file=mcore/mcore-elf.h
2014 tmake_file=mcore/t-mcore
2017 tm_file=mcore/mcore-pe.h
2018 tmake_file=mcore/t-mcore-pe
2020 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2021 if test "x$gnu_ld" = xyes
2023 tm_file="mips/iris6.h mips/iris6gld.h"
2025 tm_file=mips/iris6.h
2027 tmake_file=mips/t-iris6
2029 xmake_file=mips/x-iris6
2030 # if test x$enable_threads = xyes; then
2031 # thread_file='irix'
2035 tm_file="mips/elf.h mips/vxworks.h"
2036 tmake_file=mips/t-ecoff
2039 extra_parts="crtbegin.o crtend.o"
2040 thread_file='vxworks'
2042 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2043 tm_file="mips/iris6.h mips/cross64.h"
2045 xm_file=mips/xm-iris5.h
2046 xmake_file=mips/x-iris
2047 tmake_file=mips/t-cross64
2048 # See comment in mips/iris[56].h files.
2050 # if test x$enable_threads = xyes; then
2051 # thread_file='irix'
2055 if test x$gas = xyes
2057 if test x$stabs = xyes
2059 tm_file=mips/iris5gdb.h
2061 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2064 tm_file=mips/sni-svr4.h
2067 if test x$gnu_ld != xyes
2072 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2073 if test x$gas = xyes
2075 tm_file="mips/iris5.h mips/iris5gas.h"
2076 if test x$stabs = xyes
2078 tm_file="${tm_file} dbx.h"
2081 tm_file=mips/iris5.h
2084 xm_file=mips/xm-iris5.h
2085 xmake_file=mips/x-iris
2086 # mips-tfile doesn't work yet
2087 # See comment in mips/iris5.h file.
2089 # if test x$enable_threads = xyes; then
2090 # thread_file='irix'
2093 mips-sgi-irix4loser*) # Mostly like a MIPS.
2094 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2095 if test x$stabs = xyes; then
2096 tm_file="${tm_file} dbx.h"
2099 xmake_file=mips/x-iris
2100 if test x$gas = xyes
2103 extra_passes="mips-tfile mips-tdump"
2105 if test x$gnu_ld != xyes
2109 # if test x$enable_threads = xyes; then
2110 # thread_file='irix'
2113 mips-sgi-irix4*) # Mostly like a MIPS.
2114 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2115 if test x$stabs = xyes; then
2116 tm_file="${tm_file} dbx.h"
2119 xmake_file=mips/x-iris
2120 if test x$gas = xyes
2123 extra_passes="mips-tfile mips-tdump"
2125 if test x$gnu_ld != xyes
2129 # if test x$enable_threads = xyes; then
2130 # thread_file='irix'
2133 mips-sgi-*) # Mostly like a MIPS.
2134 tm_file="mips/iris3.h ${tm_file}"
2135 if test x$stabs = xyes; then
2136 tm_file="${tm_file} dbx.h"
2139 if test x$gas = xyes
2142 extra_passes="mips-tfile mips-tdump"
2144 if test x$gnu_ld != xyes
2149 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2150 tm_file="mips/osfrose.h ${tm_file}"
2151 extra_objs=halfpic.o
2154 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2155 tm_file=mips/dec-osf1.h
2156 if test x$stabs = xyes; then
2157 tm_file="${tm_file} dbx.h"
2159 if test x$gas = xyes
2162 tmake_file=mips/t-ultrix
2163 extra_passes="mips-tfile mips-tdump"
2165 if test x$gnu_ld != xyes
2170 mips-dec-bsd*) # Decstation running 4.4 BSD
2171 tm_file=mips/dec-bsd.h
2172 if test x$gas = xyes
2175 tmake_file=mips/t-ultrix
2176 extra_passes="mips-tfile mips-tdump"
2178 if test x$gnu_ld != xyes
2183 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2184 tm_file=mips/netbsd.h
2185 # On NetBSD, the headers are already okay, except for math.h.
2188 mips*-*-linux*) # Linux MIPS, either endian.
2191 mips*el-*) tm_file="elfos.h mips/elfl.h mips/linux.h" ;;
2192 *) tm_file="elfos.h mips/elf.h mips/linux.h" ;;
2194 tmake_file="t-slibgcc-elf-ver t-linux"
2195 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2198 if test x$enable_threads = xyes; then
2202 mips*el-*-openbsd*) # mips little endian
2203 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2205 mips*-*-openbsd*) # mips big endian
2206 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2207 tm_file="mips/openbsd-be.h ${tm_file}"
2209 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2210 tm_file="mips/news4.h ${tm_file}"
2211 if test x$stabs = xyes; then
2212 tm_file="${tm_file} dbx.h"
2214 if test x$gas = xyes
2217 extra_passes="mips-tfile mips-tdump"
2219 if test x$gnu_ld != xyes
2224 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2225 # That is based on svr4.
2226 # t-svr4 is not right because this system doesn't use ELF.
2227 tm_file="mips/news5.h ${tm_file}"
2228 if test x$stabs = xyes; then
2229 tm_file="${tm_file} dbx.h"
2232 if test x$gas = xyes
2235 extra_passes="mips-tfile mips-tdump"
2237 if test x$gnu_ld != xyes
2242 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2243 tm_file="mips/svr4-5.h mips/svr4-t.h"
2244 if test x$stabs = xyes; then
2245 tm_file="${tm_file} dbx.h"
2248 if test x$gas = xyes
2250 extra_parts="crtbegin.o crtend.o"
2252 extra_passes="mips-tfile mips-tdump"
2254 if test x$gnu_ld != xyes
2259 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2260 tm_file="mips/ultrix.h ${tm_file}"
2261 if test x$stabs = xyes; then
2262 tm_file="${tm_file} dbx.h"
2264 if test x$gas = xyes
2267 tmake_file=mips/t-ultrix
2268 extra_passes="mips-tfile mips-tdump"
2270 if test x$gnu_ld != xyes
2275 mips-*-riscos[56789]bsd*)
2276 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2277 if test x$stabs = xyes; then
2278 tm_file="${tm_file} dbx.h"
2280 if test x$gas = xyes
2282 tmake_file=mips/t-bsd-gas
2284 tmake_file=mips/t-bsd
2285 extra_passes="mips-tfile mips-tdump"
2287 if test x$gnu_ld != xyes
2292 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2293 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2294 if test x$stabs = xyes; then
2295 tm_file="${tm_file} dbx.h"
2297 if test x$gas = xyes
2299 tmake_file=mips/t-bsd-gas
2301 tmake_file=mips/t-bsd
2302 extra_passes="mips-tfile mips-tdump"
2304 if test x$gnu_ld != xyes
2309 mips-*-riscos[56789]sysv4*)
2310 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2311 if test x$stabs = xyes; then
2312 tm_file="${tm_file} dbx.h"
2314 if test x$gas = xyes
2316 tmake_file=mips/t-svr4-gas
2318 tmake_file=mips/t-svr4
2319 extra_passes="mips-tfile mips-tdump"
2321 if test x$gnu_ld != xyes
2326 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2327 tm_file="mips/svr4-4.h ${tm_file}"
2328 if test x$stabs = xyes; then
2329 tm_file="${tm_file} dbx.h"
2332 if test x$gas = xyes
2334 tmake_file=mips/t-svr4-gas
2336 tmake_file=mips/t-svr4
2337 extra_passes="mips-tfile mips-tdump"
2339 if test x$gnu_ld != xyes
2344 mips-*-riscos[56789]sysv*)
2345 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2346 if test x$stabs = xyes; then
2347 tm_file="${tm_file} dbx.h"
2350 if test x$gas = xyes
2352 tmake_file=mips/t-svr3-gas
2354 tmake_file=mips/t-svr3
2355 extra_passes="mips-tfile mips-tdump"
2357 if test x$gnu_ld != xyes
2362 mips-*-sysv* | mips-*-riscos*sysv*)
2363 tm_file="mips/svr3-4.h ${tm_file}"
2364 if test x$stabs = xyes; then
2365 tm_file="${tm_file} dbx.h"
2368 if test x$gas = xyes
2370 tmake_file=mips/t-svr3-gas
2372 tmake_file=mips/t-svr3
2373 extra_passes="mips-tfile mips-tdump"
2375 if test x$gnu_ld != xyes
2380 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2381 tm_file=mips/mips-5.h
2382 if test x$stabs = xyes; then
2383 tm_file="${tm_file} dbx.h"
2385 if test x$gas = xyes
2388 extra_passes="mips-tfile mips-tdump"
2390 if test x$gnu_ld != xyes
2398 tm_file=mips/ecoffl.h
2399 if test x$stabs = xyes; then
2400 tm_file="${tm_file} dbx.h"
2402 tmake_file=mips/t-ecoff
2405 tm_file="gofast.h mips/ecoff.h"
2406 if test x$stabs = xyes; then
2407 tm_file="${tm_file} dbx.h"
2409 tmake_file=mips/t-ecoff
2412 tm_file="mips/elfl.h"
2413 tmake_file=mips/t-elf
2416 tm_file="mips/elf.h"
2417 tmake_file=mips/t-elf
2420 tm_file="mips/elfl64.h"
2421 tmake_file=mips/t-elf
2423 mips64orionel-*-elf*)
2424 tm_file="mips/elforion.h mips/elfl64.h"
2425 tmake_file=mips/t-elf
2428 tm_file="mips/elf64.h"
2429 tmake_file=mips/t-elf
2432 tm_file="mips/elforion.h mips/elf64.h"
2433 tmake_file=mips/t-elf
2435 mips64orion-*-rtems*)
2436 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2437 tmake_file="mips/t-elf t-rtems"
2438 if test x$enable_threads = xyes; then
2443 tm_file="mips/elf.h mips/rtems.h"
2444 tmake_file="mips/t-elf t-rtems"
2445 if test x$enable_threads = xyes; then
2450 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2451 tmake_file=mips/t-r3900
2454 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2455 tmake_file=mips/t-r3900
2457 mips-*-*) # Default MIPS RISC-OS 4.0.
2458 if test x$stabs = xyes; then
2459 tm_file="${tm_file} dbx.h"
2461 if test x$gas = xyes
2464 extra_passes="mips-tfile mips-tdump"
2466 if test x$gnu_ld != xyes
2474 tm_file="mn10200/mn10200.h"
2475 if test x$stabs = xyes
2477 tm_file="${tm_file} dbx.h"
2483 tm_file="mn10300/mn10300.h"
2484 if test x$stabs = xyes
2486 tm_file="${tm_file} dbx.h"
2491 tm_file=ns32k/encore.h
2495 tm_file=ns32k/sequent.h
2499 tm_file=ns32k/tek6100.h
2503 tm_file=ns32k/tek6200.h
2507 tm_file=ns32k/merlin.h
2511 tm_file=ns32k/pc532-mach.h
2515 tm_file=ns32k/pc532-min.h
2516 xm_defines='POSIX HZ=60'
2520 tm_file=ns32k/netbsd.h
2521 # On NetBSD, the headers are already okay, except for math.h.
2526 tm_file="${tm_file} pdp11/2bsd.h"
2536 tm_file="svr4.h pj/linux.h ${tm_file}"
2541 tm_file="svr4.h pj/pjl.h ${tm_file}"
2554 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2558 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2560 xm_file=rs6000/xm-beos.h
2561 tmake_file=rs6000/t-beos
2565 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2566 tm_p_file="${tm_p_file} darwin-protos.h"
2567 tmake_file=rs6000/t-darwin
2568 xmake_file=rs6000/x-darwin
2569 # Override the usual setting, since Apple's GCC has lame bugs
2570 # and can't handle the initializers. Someday the bugs will be
2571 # fixed and we can get rid of this silliness.
2572 xm_defines="HAVE_DESIGNATED_INITIALIZERS=0"
2573 extra_objs="darwin.o"
2574 # Darwin linker does collect2 functionality
2578 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2580 extra_headers=ppc-asm.h
2581 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2583 powerpc-*-chorusos*)
2585 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2586 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2587 extra_headers=ppc-asm.h
2588 case x${enable_threads} in
2589 xyes | xpthreads | xposix)
2596 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2597 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2598 extra_headers=ppc-asm.h
2602 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2603 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2604 extra_headers=ppc-asm.h
2608 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2609 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2610 extra_headers=ppc-asm.h
2614 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2615 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2616 extra_headers=ppc-asm.h
2620 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2621 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2622 extra_headers=ppc-asm.h
2623 if test x$enable_threads = xyes; then
2627 powerpc-*-linux*libc1)
2628 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2629 out_file=rs6000/rs6000.c
2630 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2632 extra_headers=ppc-asm.h
2633 if test x$enable_threads = xyes; then
2638 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2639 out_file=rs6000/rs6000.c
2640 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2642 extra_headers=ppc-asm.h
2643 if test x$enable_threads = xyes; then
2647 powerpc-wrs-vxworks*)
2650 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2651 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2652 extra_headers=ppc-asm.h
2653 thread_file='vxworks'
2655 powerpcle-wrs-vxworks*)
2658 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2659 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2660 extra_headers=ppc-asm.h
2661 thread_file='vxworks'
2664 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2666 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2667 extra_headers=ppc-asm.h
2671 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2672 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2673 extra_headers=ppc-asm.h
2675 powerpcle-*-eabisim*)
2677 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2678 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2679 extra_headers=ppc-asm.h
2683 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2684 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2685 extra_headers=ppc-asm.h
2687 powerpcle-*-solaris2*)
2688 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2690 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2691 extra_headers=ppc-asm.h
2693 rs6000-ibm-aix3.[01]*)
2695 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2699 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2701 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2702 tmake_file=rs6000/t-newas
2706 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2708 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2709 tmake_file=rs6000/t-newas
2713 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2715 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2716 tmake_file=rs6000/t-aix43
2721 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2723 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2724 tmake_file=rs6000/t-aix43
2731 tm_file="${tm_file} rs6000/aix.h"
2737 tm_file="${tm_file} rs6000/aix.h"
2742 tm_file="rs6000/rs6000.h rs6000/mach.h"
2747 tm_file=rs6000/lynx.h
2748 tmake_file=rs6000/t-rs6000
2752 tmake_file="sh/t-sh sh/t-elf"
2753 tm_file="sh/sh.h sh/elf.h"
2757 tmake_file="sh/t-sh sh/t-elf t-rtems"
2758 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2760 if test x$enable_threads = xyes; then
2765 tmake_file="sh/t-sh t-rtems"
2766 tm_file="sh/sh.h sh/rtems.h"
2768 if test x$enable_threads = xyes; then
2773 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2774 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2777 if test x$enable_threads = xyes; then
2789 sparc64-wrs-vxworks*)
2790 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2791 tmake_file=sparc/t-vxsparc64
2794 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2795 tm_file=sparc/vxsparc.h
2796 tmake_file=sparc/t-vxsparc
2798 thread_file='vxworks'
2801 tmake_file=sparc/t-sparcbare
2802 tm_file="sparc/aout.h libgloss.h"
2805 tm_file=sparc/netbsd.h
2810 # we need collect2 until our bug is fixed...
2814 tm_file="${tm_file} sparc/bsd.h"
2817 tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
2818 tmake_file=sparc/t-chorus-elf
2819 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2821 case x${enable_threads} in
2822 xyes | xpthreads | xposix)
2828 tm_file="sparc/sol2.h sparc/elf.h"
2829 tmake_file=sparc/t-elf
2830 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2834 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2835 tm_file=sparc/linux-aout.h
2839 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2841 tm_file=sparc/linux.h
2842 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
2843 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2847 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2849 tm_file=sparc/linux.h
2850 tmake_file="t-slibgcc-elf-ver t-linux"
2851 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2853 if test x$enable_threads = xyes; then
2859 if test x$gas = xyes
2861 tm_file=sparc/lynx.h
2863 tm_file=sparc/lynx-ng.h
2865 tmake_file=sparc/t-sunos41
2868 tmake_file="sparc/t-sparcbare t-rtems"
2869 tm_file=sparc/rtems.h
2870 if test x$enable_threads = xyes; then
2874 sparc-*-rtems*|sparc-*-rtemself*)
2875 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
2876 tmake_file="sparc/t-elf t-rtems"
2877 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2880 if test x$enable_threads = xyes; then
2884 sparcv9-*-solaris2*)
2885 if test x$gnu_ld = xyes
2887 tm_file=sparc/sol2-64.h
2889 tm_file=sparc/sol2-sld-64.h
2892 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2893 if test x$gnu_ld = xyes; then
2894 tmake_file="$tmake_file t-slibgcc-elf-ver"
2896 tmake_file="$tmake_file t-slibgcc-sld"
2898 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2900 if test x${enable_threads} = x ; then
2901 enable_threads=$have_pthread_h
2902 if test x${enable_threads} = x ; then
2903 enable_threads=$have_thread_h
2906 if test x${enable_threads} = xyes ; then
2907 if test x${have_pthread_h} = xyes ; then
2910 thread_file='solaris'
2914 sparc-hal-solaris2*)
2916 tm_file="sparc/sol2.h sparc/hal.h"
2917 tmake_file="sparc/t-halos sparc/t-sol2"
2918 if test x$gnu_ld = xyes; then
2919 tmake_file="$tmake_file t-slibgcc-elf-ver"
2921 tmake_file="$tmake_file t-slibgcc-sld"
2923 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2932 thread_file='solaris'
2935 if test x$gnu_ld = xyes
2937 tm_file=sparc/sol2.h
2939 tm_file=sparc/sol2-sld.h
2942 tmake_file=sparc/t-sol2
2943 if test x$gnu_ld = xyes; then
2944 tmake_file="$tmake_file t-slibgcc-elf-ver"
2946 tmake_file="$tmake_file t-slibgcc-sld"
2948 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2949 # At the moment, 32-to-64 cross compilation doesn't work.
2951 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
2953 # if test x$gnu_ld = xyes
2955 # tm_file=sparc/sol2-64.h
2957 # tm_file=sparc/sol2-sld-64.h
2959 # tmake_file="$tmake_file sparc/t-sol2-64"
2970 if test x${enable_threads} = x; then
2971 enable_threads=$have_pthread_h
2972 if test x${enable_threads} = x; then
2973 enable_threads=$have_thread_h
2976 if test x${enable_threads} = xyes; then
2977 if test x${have_pthread_h} = xyes; then
2980 thread_file='solaris'
2985 tm_file=sparc/sunos4.h
2989 tm_file=sparc/sunos4.h
2990 tmake_file=sparc/t-sunos41
2992 if test x$gas = xyes; then
2993 tm_file="${tm_file} sparc/sun4gas.h"
2997 tm_file=sparc/sun4o3.h
3001 tm_file=sparc/sysv4.h
3004 extra_parts="crtbegin.o crtend.o"
3008 tm_file=sparc/vxsim.h
3009 tmake_file=sparc/t-vxsparc
3012 tm_file="sparc/splet.h libgloss.h"
3013 tmake_file=sparc/t-splet
3016 tm_file="sparc/litecoff.h libgloss.h"
3017 tmake_file=sparc/t-sparclite
3020 tm_file="sparc/lite.h aoutos.h libgloss.h"
3021 tmake_file=sparc/t-sparclite
3024 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3025 tmake_file=sparc/t-sparclite
3026 extra_parts="crtbegin.o crtend.o"
3029 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3030 tmake_file=sparc/t-sp86x
3033 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3034 tmake_file=sparc/t-sp86x
3035 extra_parts="crtbegin.o crtend.o"
3038 tm_file=sparc/sp64-aout.h
3041 tm_file=sparc/sp64-elf.h
3042 extra_parts="crtbegin.o crtend.o"
3044 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3045 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64"
3046 tm_file=sparc/linux64.h
3048 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3050 if test x$enable_threads = xyes; then
3056 tm_file=arm/strongarm-elf.h
3057 tmake_file=arm/t-strongarm-elf
3062 tm_file=arm/strongarm-coff.h
3063 tmake_file=arm/t-strongarm-coff
3068 tm_file=arm/strongarm-pe.h
3069 tmake_file=arm/t-strongarm-pe
3075 { echo "config.gcc: error:
3076 *** The Thumb targets have been deprecated. The equivalent
3077 *** ARM based toolchain can now generate Thumb instructions
3078 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3082 tm_file="v850/rtems.h"
3083 tmake_file="v850/t-v850 t-rtems"
3084 if test x$stabs = xyes
3086 tm_file="${tm_file} dbx.h"
3089 c_target_objs="v850-c.o"
3090 cxx_target_objs="v850-c.o"
3093 target_cpu_default="TARGET_CPU_generic"
3095 tm_file="v850/v850.h"
3096 tmake_file=v850/t-v850
3097 if test x$stabs = xyes
3099 tm_file="${tm_file} dbx.h"
3102 c_target_objs="v850-c.o"
3103 cxx_target_objs="v850-c.o"
3105 vax-*-bsd*) # vaxen running BSD
3109 vax-*-sysv*) # vaxen running system V
3110 tm_file="${tm_file} vax/vaxv.h"
3115 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3121 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3125 vax-*-ultrix*) # vaxen running ultrix
3126 tm_file="${tm_file} vax/ultrix.h"
3129 vax-*-vms*) # vaxen running VMS
3130 xm_file=vax/xm-vms.h
3134 vax-*-*) # vax default entry
3142 tm_file=arm/xscale-elf.h
3143 tmake_file=arm/t-xscale-elf
3148 tm_file=arm/xscale-coff.h
3149 tmake_file=arm/t-xscale-coff
3154 echo "Configuration $machine not supported" 1>&2
3161 install_headers_dir=install-headers-cpio
3165 # Distinguish i[34567]86
3166 # Also, do not run mips-tfile on MIPS if using gas.
3167 # Process --with-cpu= for PowerPC/rs6000
3168 target_cpu_default2=
3171 target_cpu_default2=1
3174 case $target_alias in
3176 target_cpu_default2=4
3179 target_cpu_default2=2
3183 i686-*-* | i786-*-*)
3184 target_cpu_default2=3
3189 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3192 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3195 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3198 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3201 target_cpu_default2="MASK_CPU_EV5"
3205 if test x$gas = xyes
3207 if test "$target_cpu_default2" = ""
3209 target_cpu_default2="MASK_GAS"
3211 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3216 case "x$with_cpu" in
3219 target_cpu_default2="TARGET_CPU_generic"
3222 # Distinguish cores, and major variants
3223 # arm7m doesn't exist, but D & I don't affect code
3224 xarm[236789] | xarm250 | xarm[67][01]0 \
3225 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3226 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3228 | xstrongarm | xstrongarm110 | xstrongarm1100)
3229 target_cpu_default2="TARGET_CPU_$with_cpu"
3233 echo "--with-cpu must be passed a value" 1>&2
3238 if test x$pass2done = xyes
3240 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3247 hppa*-*-* | parisc*-*-*)
3248 if test x$gas = xyes
3250 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3254 mips*-*-ecoff* | mips*-*-elf*)
3255 if test x$gas = xyes
3257 if test x$gnu_ld = xyes
3259 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3261 target_cpu_default2="MASK_GAS"
3266 if test x$gas = xyes
3268 target_cpu_default2="MASK_GAS"
3271 powerpc*-*-* | rs6000-*-*)
3272 case "x$with_cpu" in
3276 xcommon | xpower | xpower2 | xpowerpc | xrios \
3277 | xrios1 | xrios2 | xrsc | xrsc1 \
3278 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3279 | xec603e | x740 | x750 | x401 \
3280 | x403 | x505 | x801 | x821 | x823 | x860)
3281 target_cpu_default2="\"$with_cpu\""
3285 echo "--with-cpu must be passed a value" 1>&2
3290 if test x$pass2done = xyes
3292 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3299 case ".$with_cpu" in
3301 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3303 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3304 target_cpu_default2="TARGET_CPU_$with_cpu"
3307 if test x$pass2done = xyes
3309 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3317 if test "$target_cpu_default2" != ""
3319 if test "$target_cpu_default" != ""
3321 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3323 target_cpu_default=$target_cpu_default2
3327 # No need for collect2 if we have the GNU linker.
3328 # Actually, there is now; GNU ld doesn't handle the EH info or
3329 # collecting for shared libraries.
3336 # Save data on machine being used to compile GCC in build_xm_file.
3337 # Save data on host machine in vars host_xm_file and host_xmake_file.
3338 if test x$pass1done = x
3340 if test x$xm_file != x
3341 then build_xm_file=$xm_file
3343 build_xm_defines=$xm_defines
3344 build_install_headers_dir=$install_headers_dir
3345 build_exeext=$exeext
3348 if test x$pass2done = x
3350 if test x$xm_file != x
3351 then host_xm_file=$xm_file
3353 host_xm_defines=$xm_defines
3354 host_xmake_file="$xmake_file"
3355 host_truncate_target=$truncate_target
3356 host_extra_gcc_objs=$extra_gcc_objs
3357 host_extra_objs=$extra_host_objs