1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
4 #This file is part of GNU CC.
6 #GNU CC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 2, or (at your option)
11 #GNU CC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GNU CC; see the file COPYING. If not, write to
18 #the Free Software Foundation, 59 Temple Place - Suite 330,
19 #Boston, MA 02111-1307, USA.
21 # This is the GCC build-, host- and target-specific configuration file
22 # where a configuration type, as recognized and generated by config.bfd,
23 # is mapped to different system-specific definitions and files. This is
24 # invoked by the autoconf-generated configure script, called for build,
25 # host and target in that order, setting ${machine} to each. Putting it
26 # in a separate shell file lets us skip running autoconf when modifying
27 # build-, host- and target-specific information.
29 # This file switches on the shell variable ${machine}, and also uses the
30 # following shell variables:
32 # with_* Various variables as set by configure.
34 # enable_threads_flag Either the name, yes or no depending on whether
35 # threads support was requested.
37 # gas_flag Either yes or no depending on whether GNU as was
40 # gnu_ld_flag Either yes or no depending on whether GNU ld was
43 # This file sets the following shell variables for use by the
44 # autoconf-generated configure script:
46 # cpu_type The name of the cpu, if different from machine.
48 # tm_file A list of target macro files, if different from
49 # "$cpu_type/$cpu_type.h".
51 # tm_p_file Location of file with declarations for functions
54 # out_file The name of the machine description C support
55 # file, if different from "$cpu_type/$cpu_type.c".
57 # md_file The name of the machine-description file, if
58 # different from "$cpu_type/$cpu_type.md".
60 # tmake_file A list of machine-description-specific
61 # makefile-fragments, if different from
62 # "$cpu_type/t-$cpu_type".
64 # float_format Set to the symbolic name for the floating-point
65 # formats used for this machine, if different from
66 # "i64". Used to derive a header file name to
67 # include, like "vax" for "float-vax.h". If no such
68 # file is wanted, set to "none".
70 # extra_objs List of extra objects that should be linked into
71 # the compiler proper (cc1, cc1obj, cc1plus)
72 # depending on target.
74 # extra_headers List of used header files from the directory
77 # host_xmake_file List of host-specific makefile-fragments.
79 # extra_passes List of extra executables compiled for this target
80 # machine, used for compiling from source to object.
82 # extra_parts List of extra object files that should be compiled
83 # for this target machine.
85 # extra_programs Like extra_passes, but these are used when linking.
87 # host_extra_objs List of extra host-dependant objects that should
88 # be linked into the compiler proper.
90 # host_extra_gcc_objs List of extra host-dependant objects that should
91 # be linked into the gcc driver.
93 # c_target_objs List of extra target-dependant objects that be
94 # linked into the C compiler only.
96 # cxx_target_objs List of extra target-dependant objects that be
97 # linked into the C++ compiler only.
99 # build_xm_defines List of macros to define when compiling for the
102 # build_xm_file List of files to include when compiling for the
105 # host_xm_defines List of macros to define when compiling for the
108 # host_xm_file List of files to include when compiling for the
111 # xm_defines List of macros to define when compiling for the
114 # xm_file List of files to include when compiling for the
117 # use_collect2 Set to yes or no, depending on whether collect2
120 # target_cpu_default Set to override the default target model.
122 # build_install_headers_dir
123 # Target to use when installing header files.
125 # host_truncate_target
126 # Non-empty if the target name should be truncated
127 # on this host, due to filename length issues.
129 # gdb_needs_out_file_path
130 # Set to yes if gdb needs a dir command with
131 # `dirname $out_file`.
133 # build_exeext Set to the suffix, if the build machine requires
134 # executables to have a file name suffix.
136 # host_exeext Set to the suffix, if the host machine requires
137 # executables to have a file name suffix.
139 # thread_file Set to control which thread package to use.
141 # gas Set to yes or no depending on whether the target
142 # system normally uses GNU as.
144 # The following variables are used in each case-construct to build up the
145 # outgoing variables:
147 # xmake_file Makefile-fragment when this system is as a host,
148 # for host_xmake_file.
150 # extra_host_objs List of extra objects that should be linked into
151 # the compiler proper when this system is a host,
152 # for host_extra_objs.
154 # install_headers_dir Makefile-target for how the header file directory
155 # is installed, when this system is a build system,
156 # for build_install_headers_dir.
158 # truncate_target Non-empty if the target name should be truncated
159 # when this system is a host, due to filename length
160 # issues. For host_truncate_target.
162 # exeext The suffix for executables on this system.
164 # gnu_ld Set to yes or no depending on whether the target
165 # system normally uses GNU ld.
181 # Set this to force installation and use of collect2.
183 # Set this to override the default target model.
185 # Set this to control how the header file directory is installed.
186 install_headers_dir=install-headers-tar
187 # Set this if directory names should be truncated to 14 characters.
189 # Set this if gdb needs a dir command with `dirname $out_file`
190 gdb_needs_out_file_path=
191 # Set this if the build machine requires executables to have a
194 # Set this to control which thread package will be used.
196 # Reinitialize these from the flag values every loop pass, since some
197 # configure entries modify them.
199 gnu_ld="$gnu_ld_flag"
200 enable_threads=$enable_threads_flag
202 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
203 # updated in each machine entry.
205 cpu_type=`echo $machine | sed 's/-.*$//'`
225 hppa*-*-* | parisc*-*-*)
245 tm_file=${cpu_type}/${cpu_type}.h
246 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
248 tm_p_file=${cpu_type}/${cpu_type}-protos.h
250 # On a.out targets, we need to use collect2.
257 # Common parts for GNU/Linux, GNU/Hurd, OpenBSD and FreeBSD systems.
263 # On the Hurd, the setup is just about the same on
264 # each different CPU. The specific machines that we
265 # support are matched above and just set $cpu_type.
267 tm_file="${cpu_type}/gnu.h"
268 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
269 # GNU always uses ELF.
271 # GNU tools are the only tools.
274 # These details are the same as for Linux.
276 # But here we need a little extra magic.
277 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
280 tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}"
283 tm_file="svr4.h ${cpu_type}/${cpu_type}.h ${tm_file}"
288 tm_file=${cpu_type}/openbsd.h
289 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
291 if test x$enable_threads = xyes; then
293 tmake_file="${tmake_file} t-openbsd-thread"
296 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
297 # This is the place-holder for the generic a.out configuration
298 # of FreeBSD. No actual configuration resides here since
299 # there was only ever a bare-bones ix86 configuration for
300 # a.out and it exists solely in the machine-specific section.
301 # This place-holder must exist to avoid dropping into
302 # the generic ELF configuration of FreeBSD (i.e. it must be
303 # ordered before that section).
306 # This is the generic ELF configuration of FreeBSD. Later
307 # machine-specific sections may refine and add to this
310 # Due to tm_file entry ordering issues that vary between cpu
311 # architectures, we only define fbsd_tm_file to allow the
312 # machine-specific section to dictate the final order of all
313 # entries of tm_file with the minor exception that components
314 # of the tm_file set here will always be of the form:
316 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd.h
318 # The machine-specific section should not tamper with this
319 # ordering but may order all other entries of tm_file as it
320 # pleases around the provided core setting.
323 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
325 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
326 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
327 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
328 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
329 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
333 case x${enable_threads} in
334 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
335 x | xyes | xpthreads | xposix)
337 tmake_file="${tmake_file} t-freebsd-thread"
339 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
341 fbsd_tm_file="${fbsd_tm_file} freebsd.h"
342 if test x${thread_file} = xposix; then
343 if test x${enable_libgcj} = xyes; then
344 echo 'FreeBSD does not currently handle --enable-threads (now'
345 echo 'the default to match system compiler) and --enable-libgcj.'
346 echo 'Please explicitly configure with --disable-threads or'
347 echo '--disable-libgcj'
355 # Support site-specific machine types.
357 rest=`echo $machine | sed -e "s/$cpu_type-//"`
358 tm_file=${cpu_type}/$rest.h
359 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
360 then xm_file=${cpu_type}/xm-$rest.h
362 if test -f $srcdir/config/${cpu_type}/x-$rest
363 then xmake_file=${cpu_type}/x-$rest
365 if test -f $srcdir/config/${cpu_type}/t-$rest
366 then tmake_file=${cpu_type}/t-$rest
370 # 1750a is only supported as a target.
371 case "$build,$host" in 1750a*,* | *,1750a* )
372 echo "*** $machine is only supported as a target" >&2
376 a29k-*-bsd* | a29k-*-sym1*)
377 tm_file="${tm_file} a29k/unix.h"
381 a29k-*-udi | a29k-*-coff)
382 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
383 tmake_file=a29k/t-a29kbare
387 tmake_file="a29k/t-a29kbare t-rtems"
388 if test x$enable_threads = xyes; then
393 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
394 tmake_file=a29k/t-vx29k
395 extra_parts="crtbegin.o crtend.o"
396 thread_file='vxworks'
398 a29k-*-*) # Default a29k environment.
402 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
404 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
405 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
407 # GAS + IEEE_CONFORMANT
408 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
411 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
413 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
414 if test x$enable_threads = xyes ; then
417 if test x$stabs = xyes ; then
418 tm_file="${tm_file} dbxcoff.h"
420 #prefix='$$INTERIX_ROOT'/usr/contrib
421 #local_prefix='$$INTERIX_ROOT'/usr/contrib
423 alpha*-*-linux*ecoff*)
424 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
425 target_cpu_default="MASK_GAS"
426 tmake_file="alpha/t-alpha alpha/t-ieee"
430 alpha*-*-linux*libc1*)
431 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
432 target_cpu_default="MASK_GAS"
433 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-crtfm alpha/t-ieee"
435 if test x$enable_threads = xyes; then
440 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
441 target_cpu_default="MASK_GAS"
442 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
444 if test x$enable_threads = xyes; then
449 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
450 target_cpu_default="MASK_GAS"
451 tmake_file="${tmake_file} alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
455 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
456 target_cpu_default="MASK_GAS"
457 tmake_file="alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
462 # default x-alpha is only appropriate for dec-osf.
463 target_cpu_default="MASK_GAS"
464 tmake_file="alpha/t-alpha alpha/t-ieee"
469 if test x$stabs = xyes
471 tm_file="${tm_file} dbx.h"
473 if test x$gas != xyes
475 extra_passes="mips-tfile mips-tdump"
478 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf alpha/t-crtfm"
481 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
484 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
487 tm_file="${tm_file} alpha/osf.h"
488 tmake_file="$tmake_file alpha/t-osf4"
489 # Some versions of OSF4 (specifically X4.0-9 296.7) have
490 # a broken tar, so we use cpio instead.
491 install_headers_dir=install-headers-cpio
494 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
495 tmake_file="$tmake_file alpha/t-osf4"
500 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
501 target_cpu_default=MASK_SUPPORT_ARCH
507 tm_file="${tm_file} dbx.h alpha/vxworks.h"
508 tmake_file="alpha/t-alpha alpha/t-ieee"
511 extra_passes="mips-tfile mips-tdump"
514 thread_file='vxworks'
519 xm_file=alpha/xm-vms.h
520 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
523 tm_file=arm/rtems-elf.h
524 tmake_file="arm/t-arm-elf t-rtems"
525 if test x$enable_threads = xyes; then
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 # needed to unconfuse gdb
1062 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1063 # we need collect2 until our bug is fixed...
1067 tm_file=i386/i386-coff.h
1069 i[34567]86-*-isc*) # 80386 running ISC system
1071 if test x$gas = xyes -a x$stabs = xyes
1073 tm_file=i386/iscdbx.h
1074 tmake_file=i386/t-svr3dbx
1075 extra_parts="svr3.ifile svr3z.ifile"
1077 tm_file=i386/isccoff.h
1078 tmake_file=i386/t-crtstuff
1079 extra_parts="crtbegin.o crtend.o"
1081 install_headers_dir=install-headers-cpio
1083 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1084 # with a.out format using
1086 tmake_file="t-linux-aout i386/t-crtstuff"
1087 tm_file=i386/linux-oldld.h
1091 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1093 tmake_file="t-linux-aout i386/t-crtstuff"
1094 tm_file=i386/linux-aout.h
1098 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1099 # with ELF format using the
1100 # GNU/Linux C library 5
1102 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1103 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1104 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1107 if test x$enable_threads = xyes; then
1108 thread_file='single'
1111 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1112 # with ELF format using glibc 2
1113 # aka GNU/Linux C library 6
1115 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1116 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1117 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1120 if test x$enable_threads = xyes; then
1127 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1128 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1131 i[34567]86-pc-msdosdjgpp*)
1132 xm_file=i386/xm-djgpp.h
1133 tm_file=i386/djgpp.h
1134 xmake_file=i386/x-djgpp
1139 case $host in *pc-msdosdjgpp*)
1144 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1145 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h"
1146 tmake_file=t-libc-ok
1150 i[34567]86-*-lynxos*)
1151 if test x$gas = xyes
1155 tm_file=i386/lynx-ng.h
1160 # tmake_file=t-libc-ok
1163 i[34567]86-*-osfrose*) # 386 using OSF/rose
1164 if test x$elf = xyes
1166 tm_file=i386/osfelf.h
1169 tm_file=i386/osfrose.h
1172 tmake_file=i386/t-osf
1173 extra_objs=halfpic.o
1175 i[34567]86-go32-rtems*)
1177 tm_file=i386/go32-rtems.h
1179 if test x$enable_threads = xyes; then
1183 i[34567]86-*-rtemscoff*)
1185 tm_file=i386/rtems.h
1187 if test x$enable_threads = xyes; then
1191 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1193 tm_file=i386/rtemself.h
1194 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1195 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1196 if test x$enable_threads = xyes; then
1200 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1202 xmake_file=i386/x-sco5
1203 install_headers_dir=install-headers-cpio
1205 if test x$gas = xyes
1207 tm_file="usegas.h ${tm_file}"
1208 tmake_file=i386/t-sco5gas
1210 tmake_file=i386/t-sco5
1212 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1214 i[34567]86-*-solaris2*)
1215 xm_defines="POSIX SMALL_ARG_MAX"
1217 if test x$gas = xyes; then
1218 # Only needed if gas does not support -s
1219 tm_file="i386/sol2gas.h ${tm_file}"
1221 tmake_file=i386/t-sol2
1222 if test x$gnu_ld = xyes; then
1223 tmake_file="$tmake_file t-slibgcc-elf-ver"
1225 tmake_file="$tmake_file t-slibgcc-sld"
1227 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1229 if test x${enable_threads} = x; then
1230 enable_threads=$have_pthread_h
1231 if test x${enable_threads} = x; then
1232 enable_threads=$have_thread_h
1235 if test x${enable_threads} = xyes; then
1236 if test x${have_pthread_h} = xyes; then
1239 thread_file='solaris'
1243 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1245 tm_file=i386/sysv5.h
1246 if test x$stabs = xyes
1248 tm_file="${tm_file} dbx.h"
1250 tmake_file=i386/t-crtpic
1252 extra_parts="crtbegin.o crtend.o"
1253 if test x$enable_threads = xyes; then
1257 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1258 xm_defines="POSIX SMALL_ARG_MAX"
1259 tm_file=i386/sysv4.h
1260 if test x$stabs = xyes
1262 tm_file="${tm_file} dbx.h"
1264 tmake_file=i386/t-crtpic
1266 extra_parts="crtbegin.o crtend.o"
1268 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1271 tmake_file="i386/t-crtpic i386/t-udk"
1273 extra_parts="crtbegin.o crtend.o"
1274 install_headers_dir=install-headers-cpio
1276 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1278 xm_file=i386/xm-osf1elf.h
1279 xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1280 if test x$stabs = xyes
1282 tm_file=i386/osf1elfgdb.h
1284 tm_file=i386/osf1elf.h
1286 tmake_file=i386/t-osf1elf
1287 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1289 i[34567]86-*-sysv*) # Intel 80386's running system V
1291 if test x$gas = xyes
1293 if test x$stabs = xyes
1295 tm_file=i386/svr3dbx.h
1296 tmake_file=i386/t-svr3dbx
1297 extra_parts="svr3.ifile svr3z.rfile"
1299 tm_file=i386/svr3gas.h
1300 extra_parts="crtbegin.o crtend.o"
1301 tmake_file=i386/t-crtstuff
1304 tm_file=i386/sysv3.h
1305 extra_parts="crtbegin.o crtend.o"
1306 tmake_file=i386/t-crtstuff
1308 tmake_file="$tmake_file i386/t-crtpic"
1310 i386-*-vsta) # Intel 80386's running VSTa kernel
1311 xm_file=i386/xm-vsta.h
1316 xm_file=i386/xm-cygwin.h
1318 tmake_file=i386/t-cygwin
1319 tm_file=i386/win32.h
1320 xmake_file=i386/x-cygwin
1322 if test x$enable_threads = xyes; then
1327 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1329 xm_file=i386/xm-cygwin.h
1331 tmake_file=i386/t-cygwin
1332 tm_file=i386/cygwin.h
1333 xmake_file=i386/x-cygwin
1335 if test x$enable_threads = xyes; then
1340 i[34567]86-*-mingw32*)
1341 tm_file=i386/mingw32.h
1344 xm_file=i386/xm-mingw32.h
1345 tmake_file="i386/t-cygwin i386/t-mingw32"
1347 xmake_file=i386/x-cygwin
1348 if test x$enable_threads = xyes; then
1355 *minwg32crt* | *mingw32*)
1356 tm_file="${tm_file} i386/crtdll.h"
1362 tmake_file="i386/t-cygwin i386/t-uwin"
1364 xmake_file=i386/x-cygwin
1365 if test x$enable_threads = xyes; then
1370 i[34567]86-*-interix*)
1371 tm_file="i386/i386-interix.h interix.h"
1372 xm_file="i386/xm-i386-interix.h xm-interix.h"
1374 tmake_file="i386/t-interix"
1375 extra_objs=interix.o
1376 xmake_file=x-interix
1377 if test x$enable_threads = xyes ; then
1380 if test x$stabs = xyes ; then
1381 tm_file="${tm_file} dbxcoff.h"
1384 i[34567]86-dg-dgux*)
1386 out_file=i386/dgux.c
1388 tmake_file=i386/t-dgux
1389 xmake_file=i386/x-dgux
1390 install_headers_dir=install-headers-cpio
1392 i860-alliant-*) # Alliant FX/2800
1393 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1394 tmake_file=i860/t-fx2800
1395 extra_parts="crtbegin.o crtend.o"
1398 tm_file="${tm_file} i860/bsd.h"
1399 if test x$gas = xyes
1401 tm_file="${tm_file} i860/bsd-gas.h"
1406 tm_file="${tm_file} i860/mach.h"
1407 tmake_file=t-libc-ok
1409 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1410 tm_file="${tm_file} svr3.h i860/paragon.h"
1414 tm_file="${tm_file} svr3.h i860/sysv3.h"
1416 extra_parts="crtbegin.o crtend.o"
1419 tm_file="${tm_file} svr4.h i860/sysv4.h"
1422 extra_parts="crtbegin.o crtend.o"
1424 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1425 tm_file="${tm_file} i960/vx960.h"
1426 tmake_file=i960/t-vxworks960
1428 thread_file='vxworks'
1429 c_target_objs="i960-c.o"
1430 cxx_target_objs="i960-c.o"
1432 i960-wrs-vxworks5* | i960-wrs-vxworks)
1433 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1434 tmake_file=i960/t-vxworks960
1436 thread_file='vxworks'
1437 c_target_objs="i960-c.o"
1438 cxx_target_objs="i960-c.o"
1441 tm_file="${tm_file} i960/vx960.h"
1442 tmake_file=i960/t-vxworks960
1444 thread_file='vxworks'
1445 c_target_objs="i960-c.o"
1446 cxx_target_objs="i960-c.o"
1449 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1450 tmake_file=i960/t-960bare
1452 c_target_objs="i960-c.o"
1453 cxx_target_objs="i960-c.o"
1456 tmake_file="i960/t-960bare t-rtems"
1457 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1459 if test x$enable_threads = xyes; then
1462 c_target_objs="i960-c.o"
1463 cxx_target_objs="i960-c.o"
1465 i960-*-*) # Default i960 environment.
1467 c_target_objs="i960-c.o"
1468 cxx_target_objs="i960-c.o"
1471 tm_file="${tm_file} svr4.h ia64/sysv4.h ia64/aix.h"
1472 tmake_file="ia64/t-ia64 ia64/t-aix"
1473 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1477 tmake_file="ia64/t-ia64"
1478 target_cpu_default="0"
1479 if test x$gas = xyes
1481 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1483 if test x$gnu_ld = xyes
1485 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1490 tm_file=ia64/linux.h
1491 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1492 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1493 if test x$enable_threads = xyes; then
1499 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1500 tmake_file="ia64/t-ia64 ia64/t-hpux"
1501 target_cpu_default="MASK_GNU_AS"
1502 if test x$enable_threads = xyes; then
1508 extra_parts="crtinit.o crtfini.o"
1510 # m68hc11 and m68hc12 share the same machine description.
1511 m68hc11-*-*|m6811-*-*)
1512 tm_file="elfos.h m68hc11/m68hc11.h"
1513 tm_p_file="m68hc11/m68hc11-protos.h"
1514 md_file="m68hc11/m68hc11.md"
1515 out_file="m68hc11/m68hc11.c"
1516 tmake_file="m68hc11/t-m68hc11-gas"
1518 m68hc12-*-*|m6812-*-*)
1519 tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1520 tm_p_file="m68hc11/m68hc11-protos.h"
1521 md_file="m68hc11/m68hc11.md"
1522 out_file="m68hc11/m68hc11.c"
1523 tmake_file="m68hc11/t-m68hc11-gas"
1525 m68000-convergent-sysv*)
1529 extra_headers=math-68881.h
1531 m68000-hp-bsd*) # HP 9000/200 running BSD
1532 tm_file=m68k/hp2bsd.h
1534 extra_headers=math-68881.h
1536 m68000-hp-hpux*) # HP 9000 series 300
1538 if test x$gas = xyes
1540 xmake_file=m68k/x-hp320g
1541 tm_file=m68k/hp310g.h
1543 xmake_file=m68k/x-hp320
1544 tm_file=m68k/hp310.h
1546 install_headers_dir=install-headers-cpio
1548 extra_headers=math-68881.h
1553 extra_headers=math-68881.h
1556 tm_file=m68k/sun2o4.h
1558 extra_headers=math-68881.h
1562 if test x$gas = xyes
1569 extra_headers=math-68881.h
1571 m68k-apple-aux*) # Apple Macintosh running A/UX
1573 tmake_file=m68k/t-aux
1574 install_headers_dir=install-headers-cpio
1575 extra_headers=math-68881.h
1576 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1578 if test "$gnu_ld" = yes
1580 tm_file="${tm_file} m68k/auxgld.h"
1582 tm_file="${tm_file} m68k/auxld.h"
1584 if test "$gas" = yes
1586 tm_file="${tm_file} m68k/auxgas.h"
1588 tm_file="${tm_file} m68k/auxas.h"
1590 tm_file="${tm_file} m68k/a-ux.h"
1594 tm_file=m68k/apollo68.h
1596 extra_headers=math-68881.h
1599 m68k-altos-sysv*) # Altos 3068
1600 if test x$gas = xyes
1602 tm_file=m68k/altos3068.h
1605 echo "The Altos is supported only with the GNU assembler" 1>&2
1608 extra_headers=math-68881.h
1610 m68k-bull-sysv*) # Bull DPX/2
1611 if test x$gas = xyes
1613 if test x$stabs = xyes
1615 tm_file=m68k/dpx2cdbx.h
1617 tm_file=m68k/dpx2g.h
1624 extra_headers=math-68881.h
1626 m68k-atari-sysv4*) # Atari variant of V.4.
1627 tm_file=m68k/atari.h
1630 extra_parts="crtbegin.o crtend.o"
1631 extra_headers=math-68881.h
1634 m68k-motorola-sysv*)
1635 tm_file=m68k/mot3300.h
1637 if test x$gas = xyes
1639 if test x$gnu_ld = xyes
1641 tmake_file=m68k/t-mot3300-gald
1643 tmake_file=m68k/t-mot3300-gas
1647 if test x$gnu_ld = xyes
1649 tmake_file=m68k/t-mot3300-gld
1651 tmake_file=m68k/t-mot3300
1655 gdb_needs_out_file_path=yes
1656 extra_parts="crt0.o mcrt0.o"
1657 extra_headers=math-68881.h
1660 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1661 tm_file=m68k/tower-as.h
1663 extra_parts="crtbegin.o crtend.o"
1664 extra_headers=math-68881.h
1667 tm_file=m68k/plexus.h
1670 extra_headers=math-68881.h
1675 extra_headers=math-68881.h
1681 extra_headers=math-68881.h
1683 m68k-cbm-sysv4*) # Commodore variant of V.4.
1687 extra_parts="crtbegin.o crtend.o"
1688 extra_headers=math-68881.h
1692 tm_file=m68k/ccur-GAS.h
1693 extra_headers=math-68881.h
1697 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1698 tm_file=m68k/hp3bsd44.h
1700 extra_headers=math-68881.h
1703 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1704 tm_file=m68k/hp3bsd.h
1706 extra_headers=math-68881.h
1710 if test x$with_fp = xno
1712 tm_file=m68k/isi-nfp.h
1718 extra_headers=math-68881.h
1720 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1722 if test x$gas = xyes
1724 xmake_file=m68k/x-hp320g
1725 tm_file=m68k/hp320g.h
1727 xmake_file=m68k/x-hp320
1728 tm_file=m68k/hpux7.h
1730 install_headers_dir=install-headers-cpio
1732 extra_headers=math-68881.h
1735 m68k-hp-hpux*) # HP 9000 series 300
1737 if test x$gas = xyes
1739 xmake_file=m68k/x-hp320g
1740 tm_file=m68k/hp320g.h
1742 xmake_file=m68k/x-hp320
1743 tm_file=m68k/hp320.h
1745 install_headers_dir=install-headers-cpio
1747 extra_headers=math-68881.h
1751 tm_file=m68k/sun3mach.h
1753 extra_headers=math-68881.h
1757 if test x$gas = xyes
1759 tm_file=m68k/news3gas.h
1761 tm_file=m68k/news3.h
1764 extra_headers=math-68881.h
1767 m68k-sony-bsd* | m68k-sony-newsos*)
1768 if test x$gas = xyes
1770 tm_file=m68k/newsgas.h
1775 extra_headers=math-68881.h
1778 m68k-next-nextstep2*)
1779 tm_file=m68k/next21.h
1780 tmake_file=m68k/t-next
1781 xmake_file=m68k/x-next
1782 extra_objs=nextstep.o
1783 extra_headers=math-68881.h
1787 m68k-next-nextstep[34]*)
1789 tmake_file=m68k/t-next
1790 xmake_file=m68k/x-next
1791 extra_objs=nextstep.o
1792 extra_parts="crtbegin.o crtend.o"
1793 extra_headers=math-68881.h
1795 if test x$enable_threads = xyes; then
1800 if test x$with_fp = xno
1802 tm_file=m68k/sun3n3.h
1804 tm_file=m68k/sun3o3.h
1808 extra_headers=math-68881.h
1810 m68k-sun-sunos*) # For SunOS 4 (the default).
1811 if test x$with_fp = xno
1813 tm_file=m68k/sun3n.h
1819 extra_headers=math-68881.h
1822 tm_file=m68k/vxm68k.h
1823 tmake_file=m68k/t-vxworks68
1824 extra_headers=math-68881.h
1825 thread_file='vxworks'
1829 tmake_file=m68k/t-m68kbare
1830 tm_file="m68k/m68k-aout.h libgloss.h"
1831 extra_headers=math-68881.h
1835 tmake_file=m68k/t-m68kbare
1836 tm_file="m68k/m68k-coff.h dbx.h"
1837 extra_headers=math-68881.h
1840 m68020-*-elf* | m68k-*-elf*)
1841 tm_file="m68k/m68020-elf.h"
1843 tmake_file=m68k/t-m68kelf
1844 header_files=math-68881.h
1847 if test x$gas = xyes
1851 tm_file=m68k/lynx-ng.h
1853 tmake_file=m68k/t-lynx
1854 extra_headers=math-68881.h
1858 tm_file=m68k/netbsd.h
1864 # needed to unconfuse gdb
1865 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1867 # we need collect2 until our bug is fixed...
1870 m68k-*-sysv3*) # Motorola m68k's running system V.3
1872 extra_parts="crtbegin.o crtend.o"
1873 extra_headers=math-68881.h
1876 m68k-*-sysv4*) # Motorola m68k's running system V.4
1877 tm_file=m68k/m68kv4.h
1880 extra_parts="crtbegin.o crtend.o"
1881 extra_headers=math-68881.h
1884 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1887 tm_file=m68k/linux-aout.h
1888 tmake_file="t-linux-aout m68k/t-linux-aout"
1889 extra_headers=math-68881.h
1893 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1894 # with ELF format using the
1895 # GNU/Linux C library 5
1897 tm_file=m68k/linux.h
1898 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
1899 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1900 extra_headers=math-68881.h
1904 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1905 # with ELF format using glibc 2
1906 # aka the GNU/Linux C library 6.
1908 tm_file=m68k/linux.h
1909 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
1910 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1911 extra_headers=math-68881.h
1914 if test x$enable_threads = xyes; then
1919 tmake_file=m68k/t-m68kbare
1920 tm_file=m68k/m68k-psos.h
1921 extra_headers=math-68881.h
1925 tmake_file="m68k/t-m68kbare t-rtems"
1926 tm_file=m68k/rtems.h
1927 extra_headers=math-68881.h
1929 if test x$enable_threads = xyes; then
1933 m68k-*-rtemself*|m68k-*-rtems*)
1934 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1935 tm_file=m68k/rtemself.h
1936 extra_headers=math-68881.h
1938 if test x$enable_threads = xyes; then
1946 tm_file=m88k/dguxbcs.h
1947 tmake_file=m88k/t-dguxbcs
1951 tmake_file=m88k/t-dgux
1954 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1955 xmake_file=m88k/x-dgux
1956 if test x$gas = xyes
1958 tmake_file=m88k/t-dgux-gas
1961 m88k-dolphin-sysv3*)
1963 tm_file=m88k/dolph.h
1964 extra_parts="crtbegin.o crtend.o"
1965 xmake_file=m88k/x-dolph
1966 if test x$gas = xyes
1968 tmake_file=m88k/t-m88k-gas
1971 m88k-tektronix-sysv3)
1973 tm_file=m88k/tekXD88.h
1974 extra_parts="crtbegin.o crtend.o"
1975 xmake_file=m88k/x-tekXD88
1976 if test x$gas = xyes
1978 tmake_file=m88k/t-m88k-gas
1983 tm_file=m88k/m88k-aout.h
1987 tm_file=m88k/m88k-coff.h
1988 tmake_file=m88k/t-bug
1992 extra_parts="crtbegin.o crtend.o"
1993 if test x$gas = xyes
1995 tmake_file=m88k/t-luna-gas
1997 tmake_file=m88k/t-luna
2001 tmake_file="${tmake_file} m88k/t-luna-gas"
2002 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2006 tm_file=m88k/sysv3.h
2007 extra_parts="crtbegin.o crtend.o"
2008 if test x$gas = xyes
2010 tmake_file=m88k/t-m88k-gas
2015 tm_file=m88k/sysv4.h
2016 extra_parts="crtbegin.o crtend.o"
2017 tmake_file=m88k/t-sysv4
2020 tm_file=mcore/mcore-elf.h
2021 tmake_file=mcore/t-mcore
2024 tm_file=mcore/mcore-pe.h
2025 tmake_file=mcore/t-mcore-pe
2027 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2028 if test "x$gnu_ld" = xyes
2030 tm_file="mips/iris6.h mips/iris6gld.h"
2032 tm_file=mips/iris6.h
2034 tmake_file=mips/t-iris6
2036 xmake_file=mips/x-iris6
2037 # if test x$enable_threads = xyes; then
2038 # thread_file='irix'
2042 tm_file="mips/elf.h mips/vxworks.h"
2043 tmake_file=mips/t-ecoff
2046 extra_parts="crtbegin.o crtend.o"
2047 thread_file='vxworks'
2049 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2050 tm_file="mips/iris6.h mips/cross64.h"
2052 xm_file=mips/xm-iris5.h
2053 xmake_file=mips/x-iris
2054 tmake_file=mips/t-cross64
2055 # See comment in mips/iris[56].h files.
2057 # if test x$enable_threads = xyes; then
2058 # thread_file='irix'
2062 if test x$gas = xyes
2064 if test x$stabs = xyes
2066 tm_file=mips/iris5gdb.h
2068 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2071 tm_file=mips/sni-svr4.h
2074 if test x$gnu_ld != xyes
2079 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2080 if test x$gas = xyes
2082 tm_file="mips/iris5.h mips/iris5gas.h"
2083 if test x$stabs = xyes
2085 tm_file="${tm_file} dbx.h"
2088 tm_file=mips/iris5.h
2091 xm_file=mips/xm-iris5.h
2092 xmake_file=mips/x-iris
2093 # mips-tfile doesn't work yet
2094 # See comment in mips/iris5.h file.
2096 # if test x$enable_threads = xyes; then
2097 # thread_file='irix'
2100 mips-sgi-irix4loser*) # Mostly like a MIPS.
2101 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2102 if test x$stabs = xyes; then
2103 tm_file="${tm_file} dbx.h"
2106 xmake_file=mips/x-iris
2107 if test x$gas = xyes
2110 extra_passes="mips-tfile mips-tdump"
2112 if test x$gnu_ld != xyes
2116 # if test x$enable_threads = xyes; then
2117 # thread_file='irix'
2120 mips-sgi-irix4*) # Mostly like a MIPS.
2121 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2122 if test x$stabs = xyes; then
2123 tm_file="${tm_file} dbx.h"
2126 xmake_file=mips/x-iris
2127 if test x$gas = xyes
2130 extra_passes="mips-tfile mips-tdump"
2132 if test x$gnu_ld != xyes
2136 # if test x$enable_threads = xyes; then
2137 # thread_file='irix'
2140 mips-sgi-*) # Mostly like a MIPS.
2141 tm_file="mips/iris3.h ${tm_file}"
2142 if test x$stabs = xyes; then
2143 tm_file="${tm_file} dbx.h"
2146 if test x$gas = xyes
2149 extra_passes="mips-tfile mips-tdump"
2151 if test x$gnu_ld != xyes
2156 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2157 tm_file="mips/osfrose.h ${tm_file}"
2158 extra_objs=halfpic.o
2161 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2162 tm_file=mips/dec-osf1.h
2163 if test x$stabs = xyes; then
2164 tm_file="${tm_file} dbx.h"
2166 if test x$gas = xyes
2169 tmake_file=mips/t-ultrix
2170 extra_passes="mips-tfile mips-tdump"
2172 if test x$gnu_ld != xyes
2177 mips-dec-bsd*) # Decstation running 4.4 BSD
2178 tm_file=mips/dec-bsd.h
2179 if test x$gas = xyes
2182 tmake_file=mips/t-ultrix
2183 extra_passes="mips-tfile mips-tdump"
2185 if test x$gnu_ld != xyes
2190 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2191 tm_file=mips/netbsd.h
2192 # On NetBSD, the headers are already okay, except for math.h.
2195 mips*-*-linux*) # Linux MIPS, either endian.
2198 mips*el-*) tm_file="elfos.h mips/elfl.h mips/linux.h" ;;
2199 *) tm_file="elfos.h mips/elf.h mips/linux.h" ;;
2201 tmake_file="t-slibgcc-elf-ver t-linux"
2202 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2205 if test x$enable_threads = xyes; then
2209 mips*el-*-openbsd*) # mips little endian
2210 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2212 mips*-*-openbsd*) # mips big endian
2213 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2214 tm_file="mips/openbsd-be.h ${tm_file}"
2216 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2217 tm_file="mips/news4.h ${tm_file}"
2218 if test x$stabs = xyes; then
2219 tm_file="${tm_file} dbx.h"
2221 if test x$gas = xyes
2224 extra_passes="mips-tfile mips-tdump"
2226 if test x$gnu_ld != xyes
2231 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2232 # That is based on svr4.
2233 # t-svr4 is not right because this system doesn't use ELF.
2234 tm_file="mips/news5.h ${tm_file}"
2235 if test x$stabs = xyes; then
2236 tm_file="${tm_file} dbx.h"
2239 if test x$gas = xyes
2242 extra_passes="mips-tfile mips-tdump"
2244 if test x$gnu_ld != xyes
2249 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2250 tm_file="mips/svr4-5.h mips/svr4-t.h"
2251 if test x$stabs = xyes; then
2252 tm_file="${tm_file} dbx.h"
2255 if test x$gas = xyes
2257 extra_parts="crtbegin.o crtend.o"
2259 extra_passes="mips-tfile mips-tdump"
2261 if test x$gnu_ld != xyes
2266 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2267 tm_file="mips/ultrix.h ${tm_file}"
2268 if test x$stabs = xyes; then
2269 tm_file="${tm_file} dbx.h"
2271 if test x$gas = xyes
2274 tmake_file=mips/t-ultrix
2275 extra_passes="mips-tfile mips-tdump"
2277 if test x$gnu_ld != xyes
2282 mips-*-riscos[56789]bsd*)
2283 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2284 if test x$stabs = xyes; then
2285 tm_file="${tm_file} dbx.h"
2287 if test x$gas = xyes
2289 tmake_file=mips/t-bsd-gas
2291 tmake_file=mips/t-bsd
2292 extra_passes="mips-tfile mips-tdump"
2294 if test x$gnu_ld != xyes
2299 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2300 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2301 if test x$stabs = xyes; then
2302 tm_file="${tm_file} dbx.h"
2304 if test x$gas = xyes
2306 tmake_file=mips/t-bsd-gas
2308 tmake_file=mips/t-bsd
2309 extra_passes="mips-tfile mips-tdump"
2311 if test x$gnu_ld != xyes
2316 mips-*-riscos[56789]sysv4*)
2317 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2318 if test x$stabs = xyes; then
2319 tm_file="${tm_file} dbx.h"
2321 if test x$gas = xyes
2323 tmake_file=mips/t-svr4-gas
2325 tmake_file=mips/t-svr4
2326 extra_passes="mips-tfile mips-tdump"
2328 if test x$gnu_ld != xyes
2333 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2334 tm_file="mips/svr4-4.h ${tm_file}"
2335 if test x$stabs = xyes; then
2336 tm_file="${tm_file} dbx.h"
2339 if test x$gas = xyes
2341 tmake_file=mips/t-svr4-gas
2343 tmake_file=mips/t-svr4
2344 extra_passes="mips-tfile mips-tdump"
2346 if test x$gnu_ld != xyes
2351 mips-*-riscos[56789]sysv*)
2352 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2353 if test x$stabs = xyes; then
2354 tm_file="${tm_file} dbx.h"
2357 if test x$gas = xyes
2359 tmake_file=mips/t-svr3-gas
2361 tmake_file=mips/t-svr3
2362 extra_passes="mips-tfile mips-tdump"
2364 if test x$gnu_ld != xyes
2369 mips-*-sysv* | mips-*-riscos*sysv*)
2370 tm_file="mips/svr3-4.h ${tm_file}"
2371 if test x$stabs = xyes; then
2372 tm_file="${tm_file} dbx.h"
2375 if test x$gas = xyes
2377 tmake_file=mips/t-svr3-gas
2379 tmake_file=mips/t-svr3
2380 extra_passes="mips-tfile mips-tdump"
2382 if test x$gnu_ld != xyes
2387 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2388 tm_file=mips/mips-5.h
2389 if test x$stabs = xyes; then
2390 tm_file="${tm_file} dbx.h"
2392 if test x$gas = xyes
2395 extra_passes="mips-tfile mips-tdump"
2397 if test x$gnu_ld != xyes
2405 tm_file=mips/ecoffl.h
2406 if test x$stabs = xyes; then
2407 tm_file="${tm_file} dbx.h"
2409 tmake_file=mips/t-ecoff
2412 tm_file="gofast.h mips/ecoff.h"
2413 if test x$stabs = xyes; then
2414 tm_file="${tm_file} dbx.h"
2416 tmake_file=mips/t-ecoff
2419 tm_file="mips/elfl.h"
2420 tmake_file=mips/t-elf
2423 tm_file="mips/elf.h"
2424 tmake_file=mips/t-elf
2427 tm_file="mips/elfl64.h"
2428 tmake_file=mips/t-elf
2430 mips64orionel-*-elf*)
2431 tm_file="mips/elforion.h mips/elfl64.h"
2432 tmake_file=mips/t-elf
2435 tm_file="mips/elf64.h"
2436 tmake_file=mips/t-elf
2439 tm_file="mips/elforion.h mips/elf64.h"
2440 tmake_file=mips/t-elf
2442 mips64orion-*-rtems*)
2443 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2444 tmake_file="mips/t-elf t-rtems"
2445 if test x$enable_threads = xyes; then
2450 tm_file="mips/elf.h mips/rtems.h"
2451 tmake_file="mips/t-elf t-rtems"
2452 if test x$enable_threads = xyes; then
2457 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2458 tmake_file=mips/t-r3900
2461 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2462 tmake_file=mips/t-r3900
2464 mips-*-*) # Default MIPS RISC-OS 4.0.
2465 if test x$stabs = xyes; then
2466 tm_file="${tm_file} dbx.h"
2468 if test x$gas = xyes
2471 extra_passes="mips-tfile mips-tdump"
2473 if test x$gnu_ld != xyes
2481 tm_file="mn10200/mn10200.h"
2482 if test x$stabs = xyes
2484 tm_file="${tm_file} dbx.h"
2490 tm_file="mn10300/mn10300.h"
2491 if test x$stabs = xyes
2493 tm_file="${tm_file} dbx.h"
2498 tm_file=ns32k/encore.h
2502 tm_file=ns32k/sequent.h
2506 tm_file=ns32k/tek6100.h
2510 tm_file=ns32k/tek6200.h
2514 tm_file=ns32k/merlin.h
2518 tm_file=ns32k/pc532-mach.h
2522 tm_file=ns32k/pc532-min.h
2523 xm_defines='POSIX HZ=60'
2527 tm_file=ns32k/netbsd.h
2528 # On NetBSD, the headers are already okay, except for math.h.
2533 tm_file="${tm_file} pdp11/2bsd.h"
2543 tm_file="svr4.h pj/linux.h ${tm_file}"
2548 tm_file="svr4.h pj/pjl.h ${tm_file}"
2561 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2565 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2567 xm_file=rs6000/xm-beos.h
2568 tmake_file=rs6000/t-beos
2572 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2573 tm_p_file="${tm_p_file} darwin-protos.h"
2574 tmake_file=rs6000/t-darwin
2575 xmake_file=rs6000/x-darwin
2576 # Override the usual setting, since Apple's GCC has lame bugs
2577 # and can't handle the initializers. Someday the bugs will be
2578 # fixed and we can get rid of this silliness.
2579 xm_defines="HAVE_DESIGNATED_INITIALIZERS=0"
2580 extra_objs="darwin.o"
2581 c_target_objs="darwin-c.o"
2582 cxx_target_objs="darwin-c.o"
2583 # Darwin linker does collect2 functionality
2587 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2589 extra_headers=ppc-asm.h
2590 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2592 powerpc-*-chorusos*)
2594 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2595 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2596 extra_headers=ppc-asm.h
2597 case x${enable_threads} in
2598 xyes | xpthreads | xposix)
2605 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2606 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2607 extra_headers=ppc-asm.h
2611 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2612 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2613 extra_headers=ppc-asm.h
2617 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2618 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2619 extra_headers=ppc-asm.h
2623 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2624 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2625 extra_headers=ppc-asm.h
2629 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2630 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2631 extra_headers=ppc-asm.h
2632 if test x$enable_threads = xyes; then
2636 powerpc-*-linux*libc1)
2637 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2638 out_file=rs6000/rs6000.c
2639 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2641 extra_headers=ppc-asm.h
2642 if test x$enable_threads = xyes; then
2647 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2648 out_file=rs6000/rs6000.c
2649 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2651 extra_headers=ppc-asm.h
2652 if test x$enable_threads = xyes; then
2656 powerpc-wrs-vxworks*)
2659 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2660 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2661 extra_headers=ppc-asm.h
2662 thread_file='vxworks'
2664 powerpcle-wrs-vxworks*)
2667 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2668 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2669 extra_headers=ppc-asm.h
2670 thread_file='vxworks'
2673 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2675 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2676 extra_headers=ppc-asm.h
2680 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2681 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2682 extra_headers=ppc-asm.h
2684 powerpcle-*-eabisim*)
2686 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2687 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2688 extra_headers=ppc-asm.h
2692 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2693 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2694 extra_headers=ppc-asm.h
2696 powerpcle-*-solaris2*)
2697 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2699 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2700 extra_headers=ppc-asm.h
2702 rs6000-ibm-aix3.[01]*)
2704 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2708 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2710 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2711 tmake_file=rs6000/t-newas
2715 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2717 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2718 tmake_file=rs6000/t-newas
2722 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2724 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2725 tmake_file=rs6000/t-aix43
2730 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2732 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2733 tmake_file=rs6000/t-aix43
2740 tm_file="${tm_file} rs6000/aix.h"
2746 tm_file="${tm_file} rs6000/aix.h"
2751 tm_file="rs6000/rs6000.h rs6000/mach.h"
2756 tm_file=rs6000/lynx.h
2757 tmake_file=rs6000/t-rs6000
2762 tm_file=s390/linux.h
2763 tmake_file="t-linux s390/t-linux"
2764 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2765 if test x$enable_threads = xyes; then
2771 tm_file=s390/linux64.h
2772 tmake_file="t-linux s390/t-linux"
2773 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2774 if test x$enable_threads = xyes; then
2779 tmake_file="sh/t-sh sh/t-elf"
2780 tm_file="sh/sh.h sh/elf.h"
2784 tmake_file="sh/t-sh sh/t-elf t-rtems"
2785 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2787 if test x$enable_threads = xyes; then
2792 tmake_file="sh/t-sh t-rtems"
2793 tm_file="sh/sh.h sh/rtems.h"
2795 if test x$enable_threads = xyes; then
2800 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2801 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2804 if test x$enable_threads = xyes; then
2816 sparc64-wrs-vxworks*)
2817 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2818 tmake_file=sparc/t-vxsparc64
2821 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2822 tm_file=sparc/vxsparc.h
2823 tmake_file=sparc/t-vxsparc
2825 thread_file='vxworks'
2828 tmake_file=sparc/t-sparcbare
2829 tm_file="sparc/aout.h libgloss.h"
2832 tm_file=sparc/netbsd.h
2837 # needed to unconfuse gdb
2838 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
2839 # we need collect2 until our bug is fixed...
2843 tm_file="${tm_file} sparc/bsd.h"
2846 tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
2847 tmake_file=sparc/t-chorus-elf
2848 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2850 case x${enable_threads} in
2851 xyes | xpthreads | xposix)
2857 tm_file="sparc/sol2.h sparc/elf.h"
2858 tmake_file=sparc/t-elf
2859 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2863 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2864 tm_file=sparc/linux-aout.h
2868 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2870 tm_file=sparc/linux.h
2871 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
2872 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2876 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2878 tm_file=sparc/linux.h
2879 tmake_file="t-slibgcc-elf-ver t-linux"
2880 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2882 if test x$enable_threads = xyes; then
2888 if test x$gas = xyes
2890 tm_file=sparc/lynx.h
2892 tm_file=sparc/lynx-ng.h
2894 tmake_file=sparc/t-sunos41
2897 tmake_file="sparc/t-sparcbare t-rtems"
2898 tm_file=sparc/rtems.h
2899 if test x$enable_threads = xyes; then
2903 sparc-*-rtems*|sparc-*-rtemself*)
2904 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
2905 tmake_file="sparc/t-elf t-rtems"
2906 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2909 if test x$enable_threads = xyes; then
2913 sparcv9-*-solaris2*)
2914 if test x$gnu_ld = xyes
2916 tm_file=sparc/sol2-64.h
2918 tm_file=sparc/sol2-sld-64.h
2921 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2922 if test x$gnu_ld = xyes; then
2923 tmake_file="$tmake_file t-slibgcc-elf-ver"
2925 tmake_file="$tmake_file t-slibgcc-sld"
2927 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2929 if test x${enable_threads} = x ; then
2930 enable_threads=$have_pthread_h
2931 if test x${enable_threads} = x ; then
2932 enable_threads=$have_thread_h
2935 if test x${enable_threads} = xyes ; then
2936 if test x${have_pthread_h} = xyes ; then
2939 thread_file='solaris'
2943 sparc-hal-solaris2*)
2945 tm_file="sparc/sol2.h sparc/hal.h"
2946 tmake_file="sparc/t-halos sparc/t-sol2"
2947 if test x$gnu_ld = xyes; then
2948 tmake_file="$tmake_file t-slibgcc-elf-ver"
2950 tmake_file="$tmake_file t-slibgcc-sld"
2952 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2961 thread_file='solaris'
2964 if test x$gnu_ld = xyes
2966 tm_file=sparc/sol2.h
2968 tm_file=sparc/sol2-sld.h
2971 tmake_file=sparc/t-sol2
2972 if test x$gnu_ld = xyes; then
2973 tmake_file="$tmake_file t-slibgcc-elf-ver"
2975 tmake_file="$tmake_file t-slibgcc-sld"
2977 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2979 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
2981 if test x$gnu_ld = xyes
2983 tm_file=sparc/sol2-64.h
2985 tm_file=sparc/sol2-sld-64.h
2987 tmake_file="$tmake_file sparc/t-sol2-64"
2998 if test x${enable_threads} = x; then
2999 enable_threads=$have_pthread_h
3000 if test x${enable_threads} = x; then
3001 enable_threads=$have_thread_h
3004 if test x${enable_threads} = xyes; then
3005 if test x${have_pthread_h} = xyes; then
3008 thread_file='solaris'
3013 tm_file=sparc/sunos4.h
3017 tm_file=sparc/sunos4.h
3018 tmake_file=sparc/t-sunos41
3020 if test x$gas = xyes; then
3021 tm_file="${tm_file} sparc/sun4gas.h"
3025 tm_file=sparc/sun4o3.h
3029 tm_file=sparc/sysv4.h
3032 extra_parts="crtbegin.o crtend.o"
3036 tm_file=sparc/vxsim.h
3037 tmake_file=sparc/t-vxsparc
3040 tm_file="sparc/splet.h libgloss.h"
3041 tmake_file=sparc/t-splet
3044 tm_file="sparc/litecoff.h libgloss.h"
3045 tmake_file=sparc/t-sparclite
3048 tm_file="sparc/lite.h aoutos.h libgloss.h"
3049 tmake_file=sparc/t-sparclite
3052 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3053 tmake_file=sparc/t-sparclite
3054 extra_parts="crtbegin.o crtend.o"
3057 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3058 tmake_file=sparc/t-sp86x
3061 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3062 tmake_file=sparc/t-sp86x
3063 extra_parts="crtbegin.o crtend.o"
3066 tm_file=sparc/sp64-aout.h
3069 tm_file=sparc/sp64-elf.h
3070 extra_parts="crtbegin.o crtend.o"
3072 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3073 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64"
3074 tm_file=sparc/linux64.h
3076 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3078 if test x$enable_threads = xyes; then
3084 tm_file=arm/strongarm-elf.h
3085 tmake_file=arm/t-strongarm-elf
3090 tm_file=arm/strongarm-coff.h
3091 tmake_file=arm/t-strongarm-coff
3096 tm_file=arm/strongarm-pe.h
3097 tmake_file=arm/t-strongarm-pe
3103 { echo "config.gcc: error:
3104 *** The Thumb targets have been deprecated. The equivalent
3105 *** ARM based toolchain can now generate Thumb instructions
3106 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3110 tm_file="v850/rtems.h"
3111 tmake_file="v850/t-v850 t-rtems"
3112 if test x$stabs = xyes
3114 tm_file="${tm_file} dbx.h"
3117 c_target_objs="v850-c.o"
3118 cxx_target_objs="v850-c.o"
3121 target_cpu_default="TARGET_CPU_generic"
3123 tm_file="v850/v850.h"
3124 tmake_file=v850/t-v850
3125 if test x$stabs = xyes
3127 tm_file="${tm_file} dbx.h"
3130 c_target_objs="v850-c.o"
3131 cxx_target_objs="v850-c.o"
3133 vax-*-bsd*) # vaxen running BSD
3137 vax-*-sysv*) # vaxen running system V
3138 tm_file="${tm_file} vax/vaxv.h"
3143 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3149 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3153 vax-*-ultrix*) # vaxen running ultrix
3154 tm_file="${tm_file} vax/ultrix.h"
3157 vax-*-vms*) # vaxen running VMS
3158 xm_file=vax/xm-vms.h
3162 vax-*-*) # vax default entry
3170 tm_file=arm/xscale-elf.h
3171 tmake_file=arm/t-xscale-elf
3176 tm_file=arm/xscale-coff.h
3177 tmake_file=arm/t-xscale-coff
3182 echo "Configuration $machine not supported" 1>&2
3189 install_headers_dir=install-headers-cpio
3193 # Distinguish i[34567]86
3194 # Also, do not run mips-tfile on MIPS if using gas.
3195 # Process --with-cpu= for PowerPC/rs6000
3196 target_cpu_default2=
3199 target_cpu_default2=1
3202 case $target_alias in
3204 target_cpu_default2=4
3207 target_cpu_default2=2
3211 i686-*-* | i786-*-*)
3212 case $target_alias in
3214 target_cpu_default2=5
3217 target_cpu_default2=3
3224 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3227 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3230 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3233 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3236 target_cpu_default2="MASK_CPU_EV5"
3240 if test x$gas = xyes
3242 if test "$target_cpu_default2" = ""
3244 target_cpu_default2="MASK_GAS"
3246 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3251 case "x$with_cpu" in
3254 target_cpu_default2="TARGET_CPU_generic"
3257 # Distinguish cores, and major variants
3258 # arm7m doesn't exist, but D & I don't affect code
3259 xarm[236789] | xarm250 | xarm[67][01]0 \
3260 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3261 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3263 | xstrongarm | xstrongarm110 | xstrongarm1100)
3264 target_cpu_default2="TARGET_CPU_$with_cpu"
3268 echo "--with-cpu must be passed a value" 1>&2
3273 if test x$pass2done = xyes
3275 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3282 hppa*-*-* | parisc*-*-*)
3283 if test x$gas = xyes
3285 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3289 mips*-*-ecoff* | mips*-*-elf*)
3290 if test x$gas = xyes
3292 if test x$gnu_ld = xyes
3294 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3296 target_cpu_default2="MASK_GAS"
3301 if test x$gas = xyes
3303 target_cpu_default2="MASK_GAS"
3306 powerpc*-*-* | rs6000-*-*)
3307 case "x$with_cpu" in
3311 xcommon | xpower | xpower2 | xpowerpc | xrios \
3312 | xrios1 | xrios2 | xrsc | xrsc1 \
3313 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3314 | xec603e | x740 | x750 | x401 \
3315 | x403 | x505 | x801 | x821 | x823 | x860)
3316 target_cpu_default2="\"$with_cpu\""
3320 echo "--with-cpu must be passed a value" 1>&2
3325 if test x$pass2done = xyes
3327 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3334 case ".$with_cpu" in
3336 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3338 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3339 target_cpu_default2="TARGET_CPU_$with_cpu"
3342 if test x$pass2done = xyes
3344 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3352 if test "$target_cpu_default2" != ""
3354 if test "$target_cpu_default" != ""
3356 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3358 target_cpu_default=$target_cpu_default2
3362 # No need for collect2 if we have the GNU linker.
3363 # Actually, there is now; GNU ld doesn't handle the EH info or
3364 # collecting for shared libraries.
3371 # Save data on machine being used to compile GCC in build_xm_file.
3372 # Save data on host machine in vars host_xm_file and host_xmake_file.
3373 if test x$pass1done = x
3375 if test x$xm_file != x
3376 then build_xm_file=$xm_file
3378 build_xm_defines=$xm_defines
3379 build_install_headers_dir=$install_headers_dir
3380 build_exeext=$exeext
3383 if test x$pass2done = x
3385 if test x$xm_file != x
3386 then host_xm_file=$xm_file
3388 host_xm_defines=$xm_defines
3389 host_xmake_file="$xmake_file"
3390 host_truncate_target=$truncate_target
3391 host_extra_gcc_objs=$extra_gcc_objs
3392 host_extra_objs=$extra_host_objs