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 GCC.
6 #GCC is free software; you can redistribute it and/or modify it under
7 #the terms of the GNU General Public License as published by the Free
8 #Software Foundation; either version 2, or (at your option) any later
11 #GCC is distributed in the hope that it will be useful, but WITHOUT
12 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING. If not, write to the Free
18 #Software Foundation, 59 Temple Place - Suite 330, Boston, MA
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"
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/vx29k.h"
394 tmake_file=a29k/t-vx29k
395 extra_parts="crtbegin.o crtend.o"
396 thread_file='vxworks'
398 a29k-*-*) # Default a29k environment.
403 tm_file="${tm_file} alpha/unicosmk.h"
405 # Don't include t-ieee for now because we don't support that yet
406 # tmake_file="alpha/t-ieee"
407 tmake_file="alpha/t-unicosmk"
410 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
412 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
413 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
415 # GAS + IEEE_CONFORMANT
416 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
419 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
421 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
422 if test x$enable_threads = xyes ; then
425 if test x$stabs = xyes ; then
426 tm_file="${tm_file} dbxcoff.h"
428 #prefix='$$INTERIX_ROOT'/usr/contrib
429 #local_prefix='$$INTERIX_ROOT'/usr/contrib
431 alpha*-*-linux*ecoff*)
432 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
433 target_cpu_default="MASK_GAS"
434 tmake_file="alpha/t-alpha alpha/t-ieee"
438 alpha*-*-linux*libc1*)
439 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
440 target_cpu_default="MASK_GAS"
441 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-crtfm alpha/t-ieee"
443 if test x$enable_threads = xyes; then
448 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
449 target_cpu_default="MASK_GAS"
450 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
452 if test x$enable_threads = xyes; then
457 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
458 target_cpu_default="MASK_GAS"
459 tmake_file="${tmake_file} alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
463 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
464 target_cpu_default="MASK_GAS"
465 tmake_file="alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
470 # default x-alpha is only appropriate for dec-osf.
471 target_cpu_default="MASK_GAS"
472 tmake_file="alpha/t-alpha alpha/t-ieee"
477 if test x$stabs = xyes
479 tm_file="${tm_file} dbx.h"
481 if test x$gas != xyes
483 extra_passes="mips-tfile mips-tdump"
486 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf alpha/t-crtfm"
489 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
492 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
495 tm_file="${tm_file} alpha/osf.h"
496 tmake_file="$tmake_file alpha/t-osf4"
497 # Some versions of OSF4 (specifically X4.0-9 296.7) have
498 # a broken tar, so we use cpio instead.
499 install_headers_dir=install-headers-cpio
502 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
503 tmake_file="$tmake_file alpha/t-osf4"
508 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
509 target_cpu_default=MASK_SUPPORT_ARCH
515 tm_file="${tm_file} dbx.h alpha/vxworks.h"
516 tmake_file="alpha/t-alpha alpha/t-ieee"
519 extra_passes="mips-tfile mips-tdump"
522 thread_file='vxworks'
527 xm_file=alpha/xm-vms.h
528 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
531 extra_parts="crtinit.o crtfini.o"
534 tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/rtems-elf.h rtems.h"
535 tmake_file="arm/t-arm-elf t-rtems"
536 if test x$enable_threads = xyes; then
540 arm-*-coff* | armel-*-coff*)
542 tmake_file=arm/t-arm-coff
546 tmake_file=arm/t-arm-coff
547 thread_file='vxworks'
549 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
550 tm_file=arm/riscix1-1.h
553 arm-*-riscix*) # Acorn RISC machine
556 tm_file=arm/rix-gas.h
560 xmake_file=arm/x-riscix
561 tmake_file=arm/t-riscix
564 arm-semi-aout | armel-semi-aout)
566 tmake_file=arm/t-semi
568 arm-semi-aof | armel-semi-aof)
569 tm_file=arm/semiaof.h
570 tmake_file=arm/t-semi
574 tmake_file="t-netbsd arm/t-netbsd"
577 arm*-*-linux*) # ARM GNU/Linux with ELF
579 tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
580 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
581 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
583 case x${enable_threads} in
584 x | xyes | xpthreads | xposix)
589 arm*-*-uclinux*) # ARM ucLinux
590 tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h"
591 tmake_file=arm/t-arm-elf
595 tmake_file=arm/t-arm-aout
598 tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/ecos-elf.h"
599 tmake_file=arm/t-arm-elf
602 tm_file="elfos.h arm/unknown-elf.h arm/elf.h"
603 tmake_file=arm/t-arm-elf
606 tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/conix-elf.h"
607 tmake_file=arm/t-arm-elf
610 tm_file="arm/unknown-elf-oabi.h elfos.h arm/unknown-elf.h arm/elf.h"
611 tmake_file=arm/t-arm-elf
620 c1-convex-*) # Convex C1
624 c2-convex-*) # Convex C2
637 target_cpu_default=16
642 tmake_file="c4x/t-c4x t-rtems"
644 if test x$enable_threads = xyes; then
653 clipper-intergraph-clix*)
654 tm_file="${tm_file} svr3.h clipper/clix.h"
656 extra_headers=va-clipper.h
657 extra_parts="crtbegin.o crtend.o"
658 install_headers_dir=install-headers-cpio
669 tm_file="fr30/fr30.h"
670 tmake_file=fr30/t-fr30
671 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
674 tmake_file="h8300/t-h8300 t-rtems"
675 tm_file=h8300/rtems.h
676 if test x$enable_threads = xyes; then
682 tmake_file="h8300/t-h8300 h8300/t-elf"
683 tm_file="h8300/h8300.h h8300/elf.h"
689 hppa*64*-*-linux* | parisc*64*-*-linux*)
690 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
691 tm_file="pa/pa64-start.h ${tm_file} linux.h pa/pa-linux.h \
692 pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
693 tmake_file=pa/t-linux64
696 hppa*-*-linux* | parisc*-*-linux*)
697 target_cpu_default="MASK_PA_11"
698 tm_file="${tm_file} linux.h pa/pa-linux.h \
699 pa/pa32-regs.h pa/pa32-linux.h"
700 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
701 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
703 if test x$enable_threads = xyes; then
708 target_cpu_default="MASK_PA_11"
709 tmake_file=pa/t-openbsd
712 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
713 tmake_file="pa/t-pro t-rtems"
714 if test x$enable_threads = xyes; then
719 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
720 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
724 target_cpu_default="MASK_PA_11"
725 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
729 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
730 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
734 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
738 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
739 target_cpu_default="MASK_PA_11"
743 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
747 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
749 xmake_file=pa/x-pa-hpux
750 install_headers_dir=install-headers-cpio
753 hppa1.0-*-hpux8.0[0-2]*)
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
764 hppa1.1-*-hpux8.0[0-2]*)
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 if test x$gas != xyes
771 tm_file="pa/pa-oldas.h ${tm_file}"
773 install_headers_dir=install-headers-cpio
777 target_cpu_default="MASK_PA_11"
778 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
780 xmake_file=pa/x-pa-hpux
781 install_headers_dir=install-headers-cpio
785 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
787 xmake_file=pa/x-pa-hpux
788 install_headers_dir=install-headers-cpio
791 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
792 target_cpu_default="MASK_PA_11"
793 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
796 xmake_file=pa/x-pa-hpux
798 if test x$enable_threads = x; then
799 enable_threads=$have_pthread_h
801 case x${enable_threads} in
803 tmake_file="${tmake_file} pa/t-dce-thr"
806 install_headers_dir=install-headers-cpio
810 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
813 xmake_file=pa/x-pa-hpux
815 if test x$enable_threads = x; then
816 enable_threads=$have_pthread_h
818 case x${enable_threads} in
820 tmake_file="${tmake_file} pa/t-dce-thr"
823 install_headers_dir=install-headers-cpio
828 xmake_file=pa/x-pa-hpux
830 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"
833 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
835 # if [ x$enable_threads = x ]; then
836 # enable_threads=$have_pthread_h
838 # if [ x$enable_threads = xyes ]; then
840 # tmake_file="${tmake_file} pa/t-dce-thr"
842 install_headers_dir=install-headers-cpio
845 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
846 target_cpu_default="MASK_PA_11"
847 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
850 xmake_file=pa/x-pa-hpux
852 # if test x$enable_threads = x; then
853 # enable_threads=$have_pthread_h
855 # if test x$enable_threads = xyes; then
857 # tmake_file="${tmake_file} pa/t-dce-thr"
859 install_headers_dir=install-headers-cpio
863 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
866 xmake_file=pa/x-pa-hpux
867 # if test x$enable_threads = x; then
868 # enable_threads=$have_pthread_h
870 # if test x$enable_threads = xyes; then
872 # tmake_file="${tmake_file} pa/t-dce-thr"
874 install_headers_dir=install-headers-cpio
877 hppa1.1-*-hpux* | hppa2*-*-hpux*)
878 target_cpu_default="MASK_PA_11"
879 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
881 xmake_file=pa/x-pa-hpux
882 install_headers_dir=install-headers-cpio
886 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
888 xmake_file=pa/x-pa-hpux
889 install_headers_dir=install-headers-cpio
892 hppa1.1-*-hiux* | hppa2*-*-hiux*)
893 target_cpu_default="MASK_PA_11"
894 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
896 xmake_file=pa/x-pa-hpux
897 install_headers_dir=install-headers-cpio
901 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
903 xmake_file=pa/x-pa-hpux
904 install_headers_dir=install-headers-cpio
908 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
909 target_cpu_default="MASK_PA_11"
913 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
914 xmake_file=pa/x-pa-mpeix
915 echo "You must use gas. Assuming it is already installed."
917 install_headers_dir=install-headers-tar
920 i370-*-opened*) # IBM 360/370/390 Architecture
921 xm_defines='POSIX FATAL_EXIT_CODE=12'
926 xm_defines='POSIX FATAL_EXIT_CODE=12'
931 tm_file="i370/linux.h ${tm_file}"
932 tmake_file="t-slibgcc-elf-ver t-linux"
934 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
935 # extra_parts="crtbegin.o crtend.o"
939 if test x$enable_threads = xyes; then
943 i[34567]86-*-chorusos*)
945 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h chorus.h"
946 tmake_file=i386/t-i386elf
948 case x${enable_threads} in
949 xyes | xpthreads | xposix)
956 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h"
957 tmake_file=i386/t-i386elf
960 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
963 tm_file=i386/aix386.h
964 extra_parts="crtbegin.o crtend.o"
965 tmake_file=i386/t-crtstuff
967 tm_file=i386/aix386ng.h
972 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
973 xm_defines="POSIX SMALL_ARG_MAX"
974 if test x$stabs = xyes -a x$gas = xyes
976 tm_file=i386/sysv4gdb.h
980 extra_parts="crtbegin.o crtend.o"
981 tmake_file=i386/t-crtpic
985 tmake_file=i386/t-next
986 extra_objs=nextstep.o
987 extra_parts="crtbegin.o crtend.o"
988 if test x$enable_threads = xyes; then
992 i[34567]86-*-netware) # Intel 80386's running netware
993 tm_file=i386/netware.h
994 tmake_file=i386/t-netware
996 i[34567]86-sequent-bsd*) # 80386 from Sequent
1000 tm_file=i386/seq-gas.h
1002 tm_file=i386/sequent.h
1005 i[34567]86-sequent-ptx1*)
1007 tm_file=i386/seq-sysv3.h
1008 tmake_file=i386/t-crtstuff
1009 extra_parts="crtbegin.o crtend.o"
1010 install_headers_dir=install-headers-cpio
1012 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1014 tm_file=i386/seq2-sysv3.h
1015 tmake_file=i386/t-crtstuff
1016 extra_parts="crtbegin.o crtend.o"
1017 install_headers_dir=install-headers-cpio
1019 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1020 if test x$gas = xyes
1022 tm_file="${tm_file} usegas.h"
1024 xm_defines="POSIX SMALL_ARG_MAX"
1026 tm_file=i386/ptx4-i.h
1028 extra_parts="crtbegin.o crtend.o"
1029 install_headers_dir=install-headers-cpio
1031 i386-sun-sunos*) # Sun i386 roadrunner
1036 i[34567]86-wrs-vxworks*)
1037 tm_file=i386/vxi386.h
1038 thread_file='vxworks'
1041 tm_file=i386/i386-aout.h
1043 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1045 tmake_file='i386/t-beos i386/t-crtpic'
1046 tm_file=i386/beos-elf.h
1047 xmake_file=i386/x-beos
1048 extra_parts='crtbegin.o crtend.o'
1050 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1051 tm_file="i386/386bsd.h i386/bsd386.h"
1052 # tmake_file=t-libc-ok
1055 tm_file=i386/386bsd.h
1056 # tmake_file=t-libc-ok
1057 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1060 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1061 tm_file=i386/freebsd-aout.h
1062 tmake_file=t-freebsd
1064 i[34567]86-*-freebsd*)
1065 tm_file="${tm_file} i386/att.h svr4.h ${fbsd_tm_file} i386/freebsd.h"
1067 i[34567]86-*-netbsdelf*)
1069 tm_file="${tm_file} i386/att.h svr4.h i386/netbsd-elf.h"
1074 i[34567]86-*-netbsd*)
1075 tm_file=i386/netbsd.h
1079 i[34567]86-*-openbsd*)
1080 # needed to unconfuse gdb
1081 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1082 # we need collect2 until our bug is fixed...
1086 tm_file=i386/i386-coff.h
1088 i[34567]86-*-isc*) # 80386 running ISC system
1090 if test x$gas = xyes -a x$stabs = xyes
1092 tm_file=i386/iscdbx.h
1093 tmake_file=i386/t-svr3dbx
1094 extra_parts="svr3.ifile svr3z.ifile"
1096 tm_file=i386/isccoff.h
1097 tmake_file=i386/t-crtstuff
1098 extra_parts="crtbegin.o crtend.o"
1100 install_headers_dir=install-headers-cpio
1102 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1103 # with a.out format using
1105 tmake_file="t-linux-aout i386/t-crtstuff"
1106 tm_file=i386/linux-oldld.h
1110 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1112 tmake_file="t-linux-aout i386/t-crtstuff"
1113 tm_file=i386/linux-aout.h
1117 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1118 # with ELF format using the
1119 # GNU/Linux C library 5
1121 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1122 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1123 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1126 if test x$enable_threads = xyes; then
1127 thread_file='single'
1130 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1131 # with ELF format using glibc 2
1132 # aka GNU/Linux C library 6
1134 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1135 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1136 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1139 if test x$enable_threads = xyes; then
1146 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1147 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1150 i[34567]86-pc-msdosdjgpp*)
1151 xm_file=i386/xm-djgpp.h
1152 tm_file=i386/djgpp.h
1153 xmake_file=i386/x-djgpp
1158 case $host in *pc-msdosdjgpp*)
1163 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1164 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h"
1165 tmake_file=t-libc-ok
1169 i[34567]86-*-lynxos*)
1170 if test x$gas = xyes
1174 tm_file=i386/lynx-ng.h
1179 # tmake_file=t-libc-ok
1182 i[34567]86-*-osfrose*) # 386 using OSF/rose
1183 if test x$elf = xyes
1185 tm_file=i386/osfelf.h
1188 tm_file=i386/osfrose.h
1191 tmake_file=i386/t-osf
1192 extra_objs=halfpic.o
1194 i[34567]86-go32-rtems*)
1196 tm_file=i386/go32-rtems.h
1198 if test x$enable_threads = xyes; then
1202 i[34567]86-*-rtemscoff*)
1204 tm_file=i386/rtems.h
1206 if test x$enable_threads = xyes; then
1210 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1212 tm_file=i386/rtemself.h
1213 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1214 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1215 if test x$enable_threads = xyes; then
1219 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1221 xmake_file=i386/x-sco5
1222 install_headers_dir=install-headers-cpio
1224 if test x$gas = xyes
1226 tm_file="usegas.h ${tm_file}"
1227 tmake_file=i386/t-sco5gas
1229 tmake_file=i386/t-sco5
1231 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1233 i[34567]86-*-solaris2*)
1234 xm_defines="POSIX SMALL_ARG_MAX"
1236 if test x$gas = xyes; then
1237 # Only needed if gas does not support -s
1238 tm_file="i386/sol2gas.h ${tm_file}"
1240 tmake_file=i386/t-sol2
1241 if test x$gnu_ld = xyes; then
1242 tmake_file="$tmake_file t-slibgcc-elf-ver"
1244 tmake_file="$tmake_file t-slibgcc-sld"
1246 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1248 if test x${enable_threads} = x; then
1249 enable_threads=$have_pthread_h
1250 if test x${enable_threads} = x; then
1251 enable_threads=$have_thread_h
1254 if test x${enable_threads} = xyes; then
1255 if test x${have_pthread_h} = xyes; then
1258 thread_file='solaris'
1262 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1264 tm_file=i386/sysv5.h
1265 if test x$stabs = xyes
1267 tm_file="${tm_file} dbx.h"
1269 tmake_file=i386/t-crtpic
1271 extra_parts="crtbegin.o crtend.o"
1272 if test x$enable_threads = xyes; then
1276 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1277 xm_defines="POSIX SMALL_ARG_MAX"
1278 tm_file=i386/sysv4.h
1279 if test x$stabs = xyes
1281 tm_file="${tm_file} dbx.h"
1283 tmake_file=i386/t-crtpic
1285 extra_parts="crtbegin.o crtend.o"
1287 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1290 tmake_file="i386/t-crtpic i386/t-udk"
1292 extra_parts="crtbegin.o crtend.o"
1293 install_headers_dir=install-headers-cpio
1295 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1297 xm_file=i386/xm-osf1elf.h
1298 xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1299 if test x$stabs = xyes
1301 tm_file=i386/osf1elfgdb.h
1303 tm_file=i386/osf1elf.h
1305 tmake_file=i386/t-osf1elf
1306 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1308 i[34567]86-*-sysv*) # Intel 80386's running system V
1310 if test x$gas = xyes
1312 if test x$stabs = xyes
1314 tm_file=i386/svr3dbx.h
1315 tmake_file=i386/t-svr3dbx
1316 extra_parts="svr3.ifile svr3z.rfile"
1318 tm_file=i386/svr3gas.h
1319 extra_parts="crtbegin.o crtend.o"
1320 tmake_file=i386/t-crtstuff
1323 tm_file=i386/sysv3.h
1324 extra_parts="crtbegin.o crtend.o"
1325 tmake_file=i386/t-crtstuff
1327 tmake_file="$tmake_file i386/t-crtpic"
1329 i386-*-vsta) # Intel 80386's running VSTa kernel
1330 xm_file=i386/xm-vsta.h
1335 xm_file=i386/xm-cygwin.h
1337 tmake_file=i386/t-cygwin
1338 tm_file=i386/win32.h
1339 xmake_file=i386/x-cygwin
1341 if test x$enable_threads = xyes; then
1346 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1348 xm_file=i386/xm-cygwin.h
1350 tmake_file=i386/t-cygwin
1351 tm_file=i386/cygwin.h
1352 xmake_file=i386/x-cygwin
1354 if test x$enable_threads = xyes; then
1359 i[34567]86-*-mingw32*)
1360 tm_file=i386/mingw32.h
1363 xm_file=i386/xm-mingw32.h
1364 tmake_file="i386/t-cygwin i386/t-mingw32"
1366 xmake_file=i386/x-cygwin
1367 if test x$enable_threads = xyes; then
1374 *minwg32crt* | *mingw32*)
1375 tm_file="${tm_file} i386/crtdll.h"
1381 tmake_file="i386/t-cygwin i386/t-uwin"
1383 xmake_file=i386/x-cygwin
1384 if test x$enable_threads = xyes; then
1389 i[34567]86-*-interix*)
1390 tm_file="i386/i386-interix.h interix.h"
1391 xm_file="i386/xm-i386-interix.h xm-interix.h"
1393 tmake_file="i386/t-interix"
1394 extra_objs=interix.o
1395 xmake_file=x-interix
1396 if test x$enable_threads = xyes ; then
1399 if test x$stabs = xyes ; then
1400 tm_file="${tm_file} dbxcoff.h"
1403 i[34567]86-dg-dgux*)
1405 out_file=i386/dgux.c
1407 tmake_file=i386/t-dgux
1408 xmake_file=i386/x-dgux
1409 install_headers_dir=install-headers-cpio
1411 i860-alliant-*) # Alliant FX/2800
1412 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1413 tmake_file=i860/t-fx2800
1414 extra_parts="crtbegin.o crtend.o"
1417 tm_file="${tm_file} i860/bsd.h"
1418 if test x$gas = xyes
1420 tm_file="${tm_file} i860/bsd-gas.h"
1425 tm_file="${tm_file} i860/mach.h"
1426 tmake_file=t-libc-ok
1428 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1429 tm_file="${tm_file} svr3.h i860/paragon.h"
1433 tm_file="${tm_file} svr3.h i860/sysv3.h"
1435 extra_parts="crtbegin.o crtend.o"
1438 tm_file="${tm_file} svr4.h i860/sysv4.h"
1441 extra_parts="crtbegin.o crtend.o"
1443 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1444 tm_file="${tm_file} i960/vx960.h"
1445 tmake_file=i960/t-vxworks960
1447 thread_file='vxworks'
1448 c_target_objs="i960-c.o"
1449 cxx_target_objs="i960-c.o"
1451 i960-wrs-vxworks5* | i960-wrs-vxworks)
1452 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1453 tmake_file=i960/t-vxworks960
1455 thread_file='vxworks'
1456 c_target_objs="i960-c.o"
1457 cxx_target_objs="i960-c.o"
1460 tm_file="${tm_file} i960/vx960.h"
1461 tmake_file=i960/t-vxworks960
1463 thread_file='vxworks'
1464 c_target_objs="i960-c.o"
1465 cxx_target_objs="i960-c.o"
1468 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1469 tmake_file=i960/t-960bare
1470 c_target_objs="i960-c.o"
1471 cxx_target_objs="i960-c.o"
1474 tmake_file="i960/t-960bare t-rtems"
1475 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1476 if test x$enable_threads = xyes; then
1479 c_target_objs="i960-c.o"
1480 cxx_target_objs="i960-c.o"
1482 i960-*-*) # Default i960 environment.
1484 c_target_objs="i960-c.o"
1485 cxx_target_objs="i960-c.o"
1488 tm_file="${tm_file} svr4.h ia64/sysv4.h ia64/aix.h"
1489 tmake_file="ia64/t-ia64 ia64/t-aix"
1490 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1494 tmake_file="ia64/t-ia64"
1495 target_cpu_default="0"
1496 if test x$gas = xyes
1498 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1500 if test x$gnu_ld = xyes
1502 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1507 tm_file=ia64/linux.h
1508 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1509 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1510 if test x$enable_threads = xyes; then
1516 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1517 tmake_file="ia64/t-ia64 ia64/t-hpux"
1518 target_cpu_default="MASK_GNU_AS"
1519 if test x$enable_threads = xyes; then
1525 extra_parts="crtinit.o crtfini.o"
1527 # m68hc11 and m68hc12 share the same machine description.
1528 m68hc11-*-*|m6811-*-*)
1529 tm_file="elfos.h m68hc11/m68hc11.h"
1530 tm_p_file="m68hc11/m68hc11-protos.h"
1531 md_file="m68hc11/m68hc11.md"
1532 out_file="m68hc11/m68hc11.c"
1533 tmake_file="m68hc11/t-m68hc11-gas"
1535 m68hc12-*-*|m6812-*-*)
1536 tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1537 tm_p_file="m68hc11/m68hc11-protos.h"
1538 md_file="m68hc11/m68hc11.md"
1539 out_file="m68hc11/m68hc11.c"
1540 tmake_file="m68hc11/t-m68hc11-gas"
1542 m68000-convergent-sysv*)
1546 extra_headers=math-68881.h
1548 m68000-hp-bsd*) # HP 9000/200 running BSD
1549 tm_file=m68k/hp2bsd.h
1551 extra_headers=math-68881.h
1553 m68000-hp-hpux*) # HP 9000 series 300
1555 if test x$gas = xyes
1557 xmake_file=m68k/x-hp320g
1558 tm_file=m68k/hp310g.h
1560 xmake_file=m68k/x-hp320
1561 tm_file=m68k/hp310.h
1563 install_headers_dir=install-headers-cpio
1565 extra_headers=math-68881.h
1570 extra_headers=math-68881.h
1573 tm_file=m68k/sun2o4.h
1575 extra_headers=math-68881.h
1579 if test x$gas = xyes
1586 extra_headers=math-68881.h
1588 m68k-apple-aux*) # Apple Macintosh running A/UX
1590 tmake_file=m68k/t-aux
1591 install_headers_dir=install-headers-cpio
1592 extra_headers=math-68881.h
1593 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1595 if test "$gnu_ld" = yes
1597 tm_file="${tm_file} m68k/auxgld.h"
1599 tm_file="${tm_file} m68k/auxld.h"
1601 if test "$gas" = yes
1603 tm_file="${tm_file} m68k/auxgas.h"
1605 tm_file="${tm_file} m68k/auxas.h"
1607 tm_file="${tm_file} m68k/a-ux.h"
1611 tm_file=m68k/apollo68.h
1613 extra_headers=math-68881.h
1616 m68k-altos-sysv*) # Altos 3068
1617 if test x$gas = xyes
1619 tm_file=m68k/altos3068.h
1622 echo "The Altos is supported only with the GNU assembler" 1>&2
1625 extra_headers=math-68881.h
1627 m68k-bull-sysv*) # Bull DPX/2
1628 if test x$gas = xyes
1630 if test x$stabs = xyes
1632 tm_file=m68k/dpx2cdbx.h
1634 tm_file=m68k/dpx2g.h
1641 extra_headers=math-68881.h
1643 m68k-atari-sysv4*) # Atari variant of V.4.
1644 tm_file=m68k/atari.h
1647 extra_parts="crtbegin.o crtend.o"
1648 extra_headers=math-68881.h
1651 m68k-motorola-sysv*)
1652 tm_file=m68k/mot3300.h
1654 if test x$gas = xyes
1656 if test x$gnu_ld = xyes
1658 tmake_file=m68k/t-mot3300-gald
1660 tmake_file=m68k/t-mot3300-gas
1664 if test x$gnu_ld = xyes
1666 tmake_file=m68k/t-mot3300-gld
1668 tmake_file=m68k/t-mot3300
1672 gdb_needs_out_file_path=yes
1673 extra_parts="crt0.o mcrt0.o"
1674 extra_headers=math-68881.h
1677 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1678 tm_file=m68k/tower-as.h
1680 extra_parts="crtbegin.o crtend.o"
1681 extra_headers=math-68881.h
1684 tm_file=m68k/plexus.h
1687 extra_headers=math-68881.h
1692 extra_headers=math-68881.h
1698 extra_headers=math-68881.h
1700 m68k-cbm-sysv4*) # Commodore variant of V.4.
1704 extra_parts="crtbegin.o crtend.o"
1705 extra_headers=math-68881.h
1709 tm_file=m68k/ccur-GAS.h
1710 extra_headers=math-68881.h
1714 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1715 tm_file=m68k/hp3bsd44.h
1717 extra_headers=math-68881.h
1720 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1721 tm_file=m68k/hp3bsd.h
1723 extra_headers=math-68881.h
1727 if test x$with_fp = xno
1729 tm_file=m68k/isi-nfp.h
1735 extra_headers=math-68881.h
1737 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1739 if test x$gas = xyes
1741 xmake_file=m68k/x-hp320g
1742 tm_file=m68k/hp320g.h
1744 xmake_file=m68k/x-hp320
1745 tm_file=m68k/hpux7.h
1747 install_headers_dir=install-headers-cpio
1749 extra_headers=math-68881.h
1752 m68k-hp-hpux*) # HP 9000 series 300
1754 if test x$gas = xyes
1756 xmake_file=m68k/x-hp320g
1757 tm_file=m68k/hp320g.h
1759 xmake_file=m68k/x-hp320
1760 tm_file=m68k/hp320.h
1762 install_headers_dir=install-headers-cpio
1764 extra_headers=math-68881.h
1768 tm_file=m68k/sun3mach.h
1770 extra_headers=math-68881.h
1774 if test x$gas = xyes
1776 tm_file=m68k/news3gas.h
1778 tm_file=m68k/news3.h
1781 extra_headers=math-68881.h
1784 m68k-sony-bsd* | m68k-sony-newsos*)
1785 if test x$gas = xyes
1787 tm_file=m68k/newsgas.h
1792 extra_headers=math-68881.h
1795 m68k-next-nextstep2*)
1796 tm_file=m68k/next21.h
1797 tmake_file=m68k/t-next
1798 xmake_file=m68k/x-next
1799 extra_objs=nextstep.o
1800 extra_headers=math-68881.h
1804 m68k-next-nextstep[34]*)
1806 tmake_file=m68k/t-next
1807 xmake_file=m68k/x-next
1808 extra_objs=nextstep.o
1809 extra_parts="crtbegin.o crtend.o"
1810 extra_headers=math-68881.h
1812 if test x$enable_threads = xyes; then
1817 if test x$with_fp = xno
1819 tm_file=m68k/sun3n3.h
1821 tm_file=m68k/sun3o3.h
1825 extra_headers=math-68881.h
1827 m68k-sun-sunos*) # For SunOS 4 (the default).
1828 if test x$with_fp = xno
1830 tm_file=m68k/sun3n.h
1836 extra_headers=math-68881.h
1839 tm_file=m68k/vxm68k.h
1840 tmake_file=m68k/t-vxworks68
1841 extra_headers=math-68881.h
1842 thread_file='vxworks'
1846 tmake_file=m68k/t-m68kbare
1847 tm_file="m68k/m68k-aout.h libgloss.h"
1848 extra_headers=math-68881.h
1852 tmake_file=m68k/t-m68kbare
1853 tm_file="m68k/m68k-coff.h dbx.h"
1854 extra_headers=math-68881.h
1857 m68020-*-elf* | m68k-*-elf*)
1858 tm_file="m68k/m68020-elf.h"
1860 tmake_file=m68k/t-m68kelf
1861 header_files=math-68881.h
1862 extra_parts="crtbegin.o crtend.o"
1865 if test x$gas = xyes
1869 tm_file=m68k/lynx-ng.h
1871 tmake_file=m68k/t-lynx
1872 extra_headers=math-68881.h
1876 tm_file=m68k/netbsd.h
1882 # needed to unconfuse gdb
1883 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1885 # we need collect2 until our bug is fixed...
1888 m68k-*-sysv3*) # Motorola m68k's running system V.3
1890 extra_parts="crtbegin.o crtend.o"
1891 extra_headers=math-68881.h
1894 m68k-*-sysv4*) # Motorola m68k's running system V.4
1895 tm_file=m68k/m68kv4.h
1898 extra_parts="crtbegin.o crtend.o"
1899 extra_headers=math-68881.h
1902 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1905 tm_file=m68k/linux-aout.h
1906 tmake_file="t-linux-aout m68k/t-linux-aout"
1907 extra_headers=math-68881.h
1911 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1912 # with ELF format using the
1913 # GNU/Linux C library 5
1915 tm_file=m68k/linux.h
1916 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
1917 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1918 extra_headers=math-68881.h
1922 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1923 # with ELF format using glibc 2
1924 # aka the GNU/Linux C library 6.
1926 tm_file=m68k/linux.h
1927 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
1928 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1929 extra_headers=math-68881.h
1932 if test x$enable_threads = xyes; then
1937 tmake_file=m68k/t-m68kbare
1938 tm_file=m68k/m68k-psos.h
1939 extra_headers=math-68881.h
1943 tmake_file="m68k/t-m68kbare t-rtems"
1944 tm_file=m68k/rtems.h
1945 extra_headers=math-68881.h
1947 if test x$enable_threads = xyes; then
1951 m68k-*-rtemself*|m68k-*-rtems*)
1952 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1953 tm_file=m68k/rtemself.h
1954 extra_headers=math-68881.h
1956 extra_parts="crtbegin.o crtend.o"
1957 if test x$enable_threads = xyes; then
1965 tm_file=m88k/dguxbcs.h
1966 tmake_file=m88k/t-dguxbcs
1970 tmake_file=m88k/t-dgux
1973 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1974 xmake_file=m88k/x-dgux
1975 if test x$gas = xyes
1977 tmake_file=m88k/t-dgux-gas
1980 m88k-dolphin-sysv3*)
1982 tm_file=m88k/dolph.h
1983 extra_parts="crtbegin.o crtend.o"
1984 xmake_file=m88k/x-dolph
1985 if test x$gas = xyes
1987 tmake_file=m88k/t-m88k-gas
1990 m88k-tektronix-sysv3)
1992 tm_file=m88k/tekXD88.h
1993 extra_parts="crtbegin.o crtend.o"
1994 xmake_file=m88k/x-tekXD88
1995 if test x$gas = xyes
1997 tmake_file=m88k/t-m88k-gas
2002 tm_file=m88k/m88k-aout.h
2006 tm_file=m88k/m88k-coff.h
2007 tmake_file=m88k/t-bug
2011 extra_parts="crtbegin.o crtend.o"
2012 if test x$gas = xyes
2014 tmake_file=m88k/t-luna-gas
2016 tmake_file=m88k/t-luna
2020 tmake_file="${tmake_file} m88k/t-luna-gas"
2021 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2025 tm_file=m88k/sysv3.h
2026 extra_parts="crtbegin.o crtend.o"
2027 if test x$gas = xyes
2029 tmake_file=m88k/t-m88k-gas
2034 tm_file=m88k/sysv4.h
2035 extra_parts="crtbegin.o crtend.o"
2036 tmake_file=m88k/t-sysv4
2039 tm_file=mcore/mcore-elf.h
2040 tmake_file=mcore/t-mcore
2043 tm_file=mcore/mcore-pe.h
2044 tmake_file=mcore/t-mcore-pe
2046 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2047 if test "x$gnu_ld" = xyes
2049 tm_file="mips/iris6.h mips/iris6gld.h"
2051 tm_file=mips/iris6.h
2053 tmake_file=mips/t-iris6
2055 xmake_file=mips/x-iris6
2056 # if test x$enable_threads = xyes; then
2057 # thread_file='irix'
2061 tm_file="mips/elf.h mips/vxworks.h"
2062 tmake_file=mips/t-ecoff
2065 extra_parts="crtbegin.o crtend.o"
2066 thread_file='vxworks'
2068 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2069 tm_file="mips/iris6.h mips/cross64.h"
2071 xm_file=mips/xm-iris5.h
2072 xmake_file=mips/x-iris
2073 tmake_file=mips/t-cross64
2074 # See comment in mips/iris[56].h files.
2076 # if test x$enable_threads = xyes; then
2077 # thread_file='irix'
2081 if test x$gas = xyes
2083 if test x$stabs = xyes
2085 tm_file=mips/iris5gdb.h
2087 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2090 tm_file=mips/sni-svr4.h
2093 if test x$gnu_ld != xyes
2098 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2099 if test x$gas = xyes
2101 tm_file="mips/iris5.h mips/iris5gas.h"
2102 if test x$stabs = xyes
2104 tm_file="${tm_file} dbx.h"
2107 tm_file=mips/iris5.h
2110 xm_file=mips/xm-iris5.h
2111 xmake_file=mips/x-iris
2112 # mips-tfile doesn't work yet
2113 # See comment in mips/iris5.h file.
2115 # if test x$enable_threads = xyes; then
2116 # thread_file='irix'
2119 mips-sgi-irix4loser*) # Mostly like a MIPS.
2120 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2121 if test x$stabs = xyes; then
2122 tm_file="${tm_file} dbx.h"
2125 xmake_file=mips/x-iris
2126 if test x$gas = xyes
2129 extra_passes="mips-tfile mips-tdump"
2131 if test x$gnu_ld != xyes
2135 # if test x$enable_threads = xyes; then
2136 # thread_file='irix'
2139 mips-sgi-irix4*) # Mostly like a MIPS.
2140 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2141 if test x$stabs = xyes; then
2142 tm_file="${tm_file} dbx.h"
2145 xmake_file=mips/x-iris
2146 if test x$gas = xyes
2149 extra_passes="mips-tfile mips-tdump"
2151 if test x$gnu_ld != xyes
2155 # if test x$enable_threads = xyes; then
2156 # thread_file='irix'
2159 mips-sgi-*) # Mostly like a MIPS.
2160 tm_file="mips/iris3.h ${tm_file}"
2161 if test x$stabs = xyes; then
2162 tm_file="${tm_file} dbx.h"
2165 if test x$gas = xyes
2168 extra_passes="mips-tfile mips-tdump"
2170 if test x$gnu_ld != xyes
2175 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2176 tm_file="mips/osfrose.h ${tm_file}"
2177 extra_objs=halfpic.o
2180 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2181 tm_file=mips/dec-osf1.h
2182 if test x$stabs = xyes; then
2183 tm_file="${tm_file} dbx.h"
2185 if test x$gas = xyes
2188 tmake_file=mips/t-ultrix
2189 extra_passes="mips-tfile mips-tdump"
2191 if test x$gnu_ld != xyes
2196 mips-dec-bsd*) # Decstation running 4.4 BSD
2197 tm_file=mips/dec-bsd.h
2198 if test x$gas = xyes
2201 tmake_file=mips/t-ultrix
2202 extra_passes="mips-tfile mips-tdump"
2204 if test x$gnu_ld != xyes
2209 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2210 tm_file=mips/netbsd.h
2211 # On NetBSD, the headers are already okay, except for math.h.
2214 mips*-*-linux*) # Linux MIPS, either endian.
2216 tm_file="linux.h mips/linux.h"
2219 tm_file="mips/little.h $tm_file mips/isa32-linux.h";;
2221 tm_file="$tm_file mips/isa32-linux.h";;
2222 mips*el-*) tm_file="mips/little.h $tm_file" ;;
2224 tmake_file="t-slibgcc-elf-ver t-linux"
2225 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2228 if test x$enable_threads = xyes; then
2232 mips*el-*-openbsd*) # mips little endian
2233 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2235 mips*-*-openbsd*) # mips big endian
2236 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2237 tm_file="mips/openbsd-be.h ${tm_file}"
2239 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2240 tm_file="mips/news4.h ${tm_file}"
2241 if test x$stabs = xyes; then
2242 tm_file="${tm_file} dbx.h"
2244 if test x$gas = xyes
2247 extra_passes="mips-tfile mips-tdump"
2249 if test x$gnu_ld != xyes
2254 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2255 # That is based on svr4.
2256 # t-svr4 is not right because this system doesn't use ELF.
2257 tm_file="mips/news5.h ${tm_file}"
2258 if test x$stabs = xyes; then
2259 tm_file="${tm_file} dbx.h"
2262 if test x$gas = xyes
2265 extra_passes="mips-tfile mips-tdump"
2267 if test x$gnu_ld != xyes
2272 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2273 tm_file="mips/svr4-5.h mips/svr4-t.h"
2274 if test x$stabs = xyes; then
2275 tm_file="${tm_file} dbx.h"
2278 if test x$gas = xyes
2280 extra_parts="crtbegin.o crtend.o"
2282 extra_passes="mips-tfile mips-tdump"
2284 if test x$gnu_ld != xyes
2289 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2290 tm_file="mips/ultrix.h ${tm_file}"
2291 if test x$stabs = xyes; then
2292 tm_file="${tm_file} dbx.h"
2294 if test x$gas = xyes
2297 tmake_file=mips/t-ultrix
2298 extra_passes="mips-tfile mips-tdump"
2300 if test x$gnu_ld != xyes
2305 mips-*-riscos[56789]bsd*)
2306 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2307 if test x$stabs = xyes; then
2308 tm_file="${tm_file} dbx.h"
2310 if test x$gas = xyes
2312 tmake_file=mips/t-bsd-gas
2314 tmake_file=mips/t-bsd
2315 extra_passes="mips-tfile mips-tdump"
2317 if test x$gnu_ld != xyes
2322 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2323 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2324 if test x$stabs = xyes; then
2325 tm_file="${tm_file} dbx.h"
2327 if test x$gas = xyes
2329 tmake_file=mips/t-bsd-gas
2331 tmake_file=mips/t-bsd
2332 extra_passes="mips-tfile mips-tdump"
2334 if test x$gnu_ld != xyes
2339 mips-*-riscos[56789]sysv4*)
2340 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2341 if test x$stabs = xyes; then
2342 tm_file="${tm_file} dbx.h"
2344 if test x$gas = xyes
2346 tmake_file=mips/t-svr4-gas
2348 tmake_file=mips/t-svr4
2349 extra_passes="mips-tfile mips-tdump"
2351 if test x$gnu_ld != xyes
2356 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2357 tm_file="mips/svr4-4.h ${tm_file}"
2358 if test x$stabs = xyes; then
2359 tm_file="${tm_file} dbx.h"
2362 if test x$gas = xyes
2364 tmake_file=mips/t-svr4-gas
2366 tmake_file=mips/t-svr4
2367 extra_passes="mips-tfile mips-tdump"
2369 if test x$gnu_ld != xyes
2374 mips-*-riscos[56789]sysv*)
2375 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2376 if test x$stabs = xyes; then
2377 tm_file="${tm_file} dbx.h"
2380 if test x$gas = xyes
2382 tmake_file=mips/t-svr3-gas
2384 tmake_file=mips/t-svr3
2385 extra_passes="mips-tfile mips-tdump"
2387 if test x$gnu_ld != xyes
2392 mips-*-sysv* | mips-*-riscos*sysv*)
2393 tm_file="mips/svr3-4.h ${tm_file}"
2394 if test x$stabs = xyes; then
2395 tm_file="${tm_file} dbx.h"
2398 if test x$gas = xyes
2400 tmake_file=mips/t-svr3-gas
2402 tmake_file=mips/t-svr3
2403 extra_passes="mips-tfile mips-tdump"
2405 if test x$gnu_ld != xyes
2410 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2411 tm_file=mips/mips-5.h
2412 if test x$stabs = xyes; then
2413 tm_file="${tm_file} dbx.h"
2415 if test x$gas = xyes
2418 extra_passes="mips-tfile mips-tdump"
2420 if test x$gnu_ld != xyes
2428 tm_file=mips/ecoffl.h
2429 if test x$stabs = xyes; then
2430 tm_file="${tm_file} dbx.h"
2432 tmake_file=mips/t-ecoff
2435 tm_file="gofast.h mips/ecoff.h"
2436 if test x$stabs = xyes; then
2437 tm_file="${tm_file} dbx.h"
2439 tmake_file=mips/t-ecoff
2442 tm_file="mips/isa3264.h mips/abi64.h"
2443 tmake_file=mips/t-isa3264
2446 tm_file="mips/elfl.h"
2447 tmake_file=mips/t-elf
2450 tm_file="mips/elf.h"
2451 tmake_file=mips/t-elf
2454 tm_file="mips/elfl64.h"
2455 tmake_file=mips/t-elf
2457 mips64orionel-*-elf*)
2458 tm_file="mips/elforion.h mips/elfl64.h"
2459 tmake_file=mips/t-elf
2462 tm_file="mips/elf64.h"
2463 tmake_file=mips/t-elf
2466 tm_file="mips/elforion.h mips/elf64.h"
2467 tmake_file=mips/t-elf
2469 mips64orion-*-rtems*)
2470 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2471 tmake_file="mips/t-elf t-rtems"
2472 if test x$enable_threads = xyes; then
2477 tm_file="mips/elf.h mips/rtems.h"
2478 tmake_file="mips/t-elf t-rtems"
2479 if test x$enable_threads = xyes; then
2484 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2485 tmake_file=mips/t-r3900
2488 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2489 tmake_file=mips/t-r3900
2491 mips-*-*) # Default MIPS RISC-OS 4.0.
2492 if test x$stabs = xyes; then
2493 tm_file="${tm_file} dbx.h"
2495 if test x$gas = xyes
2498 extra_passes="mips-tfile mips-tdump"
2500 if test x$gnu_ld != xyes
2508 tm_file="mn10200/mn10200.h"
2509 if test x$stabs = xyes
2511 tm_file="${tm_file} dbx.h"
2517 tm_file="mn10300/mn10300.h"
2518 if test x$stabs = xyes
2520 tm_file="${tm_file} dbx.h"
2525 tm_file=ns32k/encore.h
2529 tm_file=ns32k/sequent.h
2533 tm_file=ns32k/tek6100.h
2537 tm_file=ns32k/tek6200.h
2541 tm_file=ns32k/merlin.h
2545 tm_file=ns32k/pc532-mach.h
2549 tm_file=ns32k/pc532-min.h
2550 xm_defines='POSIX HZ=60'
2554 tm_file=ns32k/netbsd.h
2555 # On NetBSD, the headers are already okay, except for math.h.
2560 tm_file="${tm_file} pdp11/2bsd.h"
2570 tm_file="svr4.h pj/linux.h ${tm_file}"
2575 tm_file="svr4.h pj/pjl.h ${tm_file}"
2588 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2591 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux64.h"
2592 out_file=rs6000/rs6000.c
2593 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2595 extra_headers=ppc-asm.h
2599 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
2601 xm_file=rs6000/xm-beos.h
2602 tmake_file=rs6000/t-beos
2606 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2607 tm_p_file="${tm_p_file} darwin-protos.h"
2608 tmake_file=rs6000/t-darwin
2609 xmake_file=rs6000/x-darwin
2610 # Override the usual setting, since Apple's GCC has lame bugs
2611 # and can't handle the initializers. Someday the bugs will be
2612 # fixed and we can get rid of this silliness.
2613 xm_defines="HAVE_DESIGNATED_INITIALIZERS=0"
2614 extra_objs="darwin.o"
2615 c_target_objs="darwin-c.o"
2616 cxx_target_objs="darwin-c.o"
2617 # Darwin linker does collect2 functionality
2621 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2623 extra_headers=ppc-asm.h
2624 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2628 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/netbsd.h"
2629 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2630 extra_headers=ppc-asm.h
2632 powerpc-*-chorusos*)
2634 tm_file="${tm_file} svr4.h rs6000/sysv4.h chorus.h"
2635 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2636 extra_headers=ppc-asm.h
2637 case x${enable_threads} in
2638 xyes | xpthreads | xposix)
2645 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2646 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2647 extra_headers=ppc-asm.h
2651 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2652 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2653 extra_headers=ppc-asm.h
2657 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2658 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2659 extra_headers=ppc-asm.h
2663 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2664 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2665 extra_headers=ppc-asm.h
2669 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2670 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2671 extra_headers=ppc-asm.h
2672 if test x$enable_threads = xyes; then
2676 powerpc-*-linux*libc1)
2677 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2678 out_file=rs6000/rs6000.c
2679 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2681 extra_headers=ppc-asm.h
2682 if test x$enable_threads = xyes; then
2687 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2688 out_file=rs6000/rs6000.c
2689 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2691 extra_headers=ppc-asm.h
2692 if test x$enable_threads = xyes; then
2696 powerpc-wrs-vxworks*)
2699 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2700 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2701 extra_headers=ppc-asm.h
2702 thread_file='vxworks'
2704 powerpcle-wrs-vxworks*)
2707 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2708 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2709 extra_headers=ppc-asm.h
2710 thread_file='vxworks'
2713 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2715 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2716 extra_headers=ppc-asm.h
2720 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2721 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2722 extra_headers=ppc-asm.h
2724 powerpcle-*-eabisim*)
2726 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2727 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2728 extra_headers=ppc-asm.h
2732 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2733 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2734 extra_headers=ppc-asm.h
2736 powerpcle-*-solaris2*)
2737 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2739 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2740 extra_headers=ppc-asm.h
2742 rs6000-ibm-aix3.[01]*)
2744 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h"
2748 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2750 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h"
2751 tmake_file=rs6000/t-newas
2755 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2757 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
2758 tmake_file=rs6000/t-newas
2762 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2764 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
2765 tmake_file=rs6000/t-aix43
2770 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2772 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
2773 tmake_file=rs6000/t-aix43
2780 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2786 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2791 tm_file="rs6000/rs6000.h rs6000/mach.h"
2796 tm_file=rs6000/lynx.h
2797 tmake_file=rs6000/t-rs6000
2802 tm_file=s390/linux.h
2803 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2804 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2805 if test x$enable_threads = xyes; then
2811 tm_file=s390/linux64.h
2812 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2813 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2814 if test x$enable_threads = xyes; then
2819 tmake_file="sh/t-sh sh/t-elf"
2820 tm_file="sh/sh.h sh/elf.h"
2824 tmake_file="sh/t-sh sh/t-elf t-rtems"
2825 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2827 if test x$enable_threads = xyes; then
2832 tmake_file="sh/t-sh t-rtems"
2833 tm_file="sh/sh.h sh/rtems.h"
2835 if test x$enable_threads = xyes; then
2840 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2841 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2844 if test x$enable_threads = xyes; then
2856 sparc64-wrs-vxworks*)
2857 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2858 tmake_file=sparc/t-vxsparc64
2861 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2862 tm_file=sparc/vxsparc.h
2863 tmake_file=sparc/t-vxsparc
2865 thread_file='vxworks'
2868 tmake_file=sparc/t-sparcbare
2869 tm_file="sparc/aout.h libgloss.h"
2872 tm_file=sparc/netbsd.h
2877 # needed to unconfuse gdb
2878 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
2879 # we need collect2 until our bug is fixed...
2883 tm_file="${tm_file} sparc/bsd.h"
2886 tm_file="sparc/sol2.h sparc/elf.h chorus.h"
2887 tmake_file=sparc/t-chorus-elf
2888 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2890 case x${enable_threads} in
2891 xyes | xpthreads | xposix)
2897 tm_file="sparc/sol2.h sparc/elf.h"
2898 tmake_file=sparc/t-elf
2899 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2903 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2904 tm_file=sparc/linux-aout.h
2908 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2910 tm_file=sparc/linux.h
2911 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
2912 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2916 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2918 tm_file=sparc/linux.h
2919 tmake_file="t-slibgcc-elf-ver t-linux"
2920 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2922 if test x$enable_threads = xyes; then
2928 if test x$gas = xyes
2930 tm_file=sparc/lynx.h
2932 tm_file=sparc/lynx-ng.h
2934 tmake_file=sparc/t-sunos41
2937 tmake_file="sparc/t-sparcbare t-rtems"
2938 tm_file=sparc/rtems.h
2939 if test x$enable_threads = xyes; then
2943 sparc-*-rtems*|sparc-*-rtemself*)
2944 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
2945 tmake_file="sparc/t-elf t-rtems"
2946 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2949 if test x$enable_threads = xyes; then
2953 sparcv9-*-solaris2* | sparc64-*-solaris2*)
2954 if test x$gnu_ld = xyes
2956 tm_file=sparc/sol2-64.h
2958 tm_file=sparc/sol2-sld-64.h
2961 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2962 if test x$gnu_ld = xyes; then
2963 tmake_file="$tmake_file t-slibgcc-elf-ver"
2965 tmake_file="$tmake_file t-slibgcc-sld"
2967 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2969 if test x${enable_threads} = x ; then
2970 enable_threads=$have_pthread_h
2971 if test x${enable_threads} = x ; then
2972 enable_threads=$have_thread_h
2975 if test x${enable_threads} = xyes ; then
2976 if test x${have_pthread_h} = xyes ; then
2979 thread_file='solaris'
2983 sparc-hal-solaris2*)
2985 tm_file="sparc/sol2.h sparc/hal.h"
2986 tmake_file="sparc/t-halos sparc/t-sol2"
2987 if test x$gnu_ld = xyes; then
2988 tmake_file="$tmake_file t-slibgcc-elf-ver"
2990 tmake_file="$tmake_file t-slibgcc-sld"
2992 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3001 thread_file='solaris'
3004 if test x$gnu_ld = xyes
3006 tm_file=sparc/sol2.h
3008 tm_file=sparc/sol2-sld.h
3011 tmake_file=sparc/t-sol2
3012 if test x$gnu_ld = xyes; then
3013 tmake_file="$tmake_file t-slibgcc-elf-ver"
3015 tmake_file="$tmake_file t-slibgcc-sld"
3017 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3019 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3021 if test x$gnu_ld = xyes
3023 tm_file=sparc/sol2-64.h
3025 tm_file=sparc/sol2-sld-64.h
3027 tmake_file="$tmake_file sparc/t-sol2-64"
3038 if test x${enable_threads} = x; then
3039 enable_threads=$have_pthread_h
3040 if test x${enable_threads} = x; then
3041 enable_threads=$have_thread_h
3044 if test x${enable_threads} = xyes; then
3045 if test x${have_pthread_h} = xyes; then
3048 thread_file='solaris'
3053 tm_file=sparc/sunos4.h
3057 tm_file=sparc/sunos4.h
3058 tmake_file=sparc/t-sunos41
3060 if test x$gas = xyes; then
3061 tm_file="${tm_file} sparc/sun4gas.h"
3065 tm_file=sparc/sun4o3.h
3069 tm_file=sparc/sysv4.h
3072 extra_parts="crtbegin.o crtend.o"
3076 tm_file=sparc/vxsim.h
3077 tmake_file=sparc/t-vxsparc
3080 tm_file="sparc/splet.h libgloss.h"
3081 tmake_file=sparc/t-splet
3084 tm_file="sparc/litecoff.h libgloss.h"
3085 tmake_file=sparc/t-sparclite
3088 tm_file="sparc/lite.h aoutos.h libgloss.h"
3089 tmake_file=sparc/t-sparclite
3092 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3093 tmake_file=sparc/t-sparclite
3094 extra_parts="crtbegin.o crtend.o"
3097 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3098 tmake_file=sparc/t-sp86x
3101 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3102 tmake_file=sparc/t-sp86x
3103 extra_parts="crtbegin.o crtend.o"
3106 tm_file=sparc/sp64-aout.h
3109 tm_file=sparc/sp64-elf.h
3110 extra_parts="crtbegin.o crtend.o"
3112 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3113 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64"
3114 tm_file=sparc/linux64.h
3116 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3118 if test x$enable_threads = xyes; then
3124 tmake_file="stormy16/t-stormy16"
3125 extra_parts="crtbegin.o crtend.o"
3128 tm_file="arm/strongarm-elf.h elfos.h arm/unknown-elf.h arm/elf.h"
3129 tmake_file=arm/t-strongarm-elf
3134 tm_file=arm/strongarm-coff.h
3135 tmake_file=arm/t-strongarm-coff
3140 tm_file=arm/strongarm-pe.h
3141 tmake_file=arm/t-strongarm-pe
3147 { echo "config.gcc: error:
3148 *** The Thumb targets have been deprecated. The equivalent
3149 *** ARM based toolchain can now generate Thumb instructions
3150 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3154 tm_file="v850/rtems.h"
3155 tmake_file="v850/t-v850 t-rtems"
3156 if test x$stabs = xyes
3158 tm_file="${tm_file} dbx.h"
3161 c_target_objs="v850-c.o"
3162 cxx_target_objs="v850-c.o"
3165 target_cpu_default="TARGET_CPU_generic"
3167 tm_file="v850/v850.h"
3168 tmake_file=v850/t-v850
3169 if test x$stabs = xyes
3171 tm_file="${tm_file} dbx.h"
3174 c_target_objs="v850-c.o"
3175 cxx_target_objs="v850-c.o"
3177 vax-*-bsd*) # VAXen running BSD
3181 vax-*-sysv*) # VAXen running system V
3182 tm_file="${tm_file} vax/vaxv.h"
3187 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3193 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3197 vax-*-ultrix*) # VAXen running ultrix
3198 tm_file="${tm_file} vax/ultrix.h"
3201 vax-*-vms*) # VAXen running VMS
3202 xm_file=vax/xm-vms.h
3206 vax-*-*) # VAX default entry
3214 tm_file="arm/xscale-elf.h elfos.h arm/unknown-elf.h arm/elf.h"
3215 tmake_file=arm/t-xscale-elf
3220 tm_file=arm/xscale-coff.h
3221 tmake_file=arm/t-xscale-coff
3226 echo "Configuration $machine not supported" 1>&2
3233 install_headers_dir=install-headers-cpio
3237 # Distinguish i[34567]86
3238 # Also, do not run mips-tfile on MIPS if using gas.
3239 # Process --with-cpu= for PowerPC/rs6000
3240 target_cpu_default2=
3243 target_cpu_default2=1
3246 case $target_alias in
3248 target_cpu_default2=4
3251 target_cpu_default2=2
3255 i686-*-* | i786-*-*)
3256 case $target_alias in
3258 target_cpu_default2=5
3261 target_cpu_default2=3
3268 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3271 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3274 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3277 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3280 target_cpu_default2="MASK_CPU_EV5"
3284 if test x$gas = xyes
3286 if test "$target_cpu_default2" = ""
3288 target_cpu_default2="MASK_GAS"
3290 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3295 case "x$with_cpu" in
3298 target_cpu_default2="TARGET_CPU_generic"
3301 # Distinguish cores, and major variants
3302 # arm7m doesn't exist, but D & I don't affect code
3303 xarm[236789] | xarm250 | xarm[67][01]0 \
3304 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3305 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3307 | xstrongarm | xstrongarm110 | xstrongarm1100)
3308 target_cpu_default2="TARGET_CPU_$with_cpu"
3312 echo "--with-cpu must be passed a value" 1>&2
3317 if test x$pass2done = xyes
3319 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3326 hppa*-*-* | parisc*-*-*)
3327 if test x$gas = xyes
3329 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3333 mips*-*-ecoff* | mips*-*-elf*)
3334 if test x$gas = xyes
3336 if test x$gnu_ld = xyes
3338 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3340 target_cpu_default2="MASK_GAS"
3345 if test x$gas = xyes
3347 target_cpu_default2="MASK_GAS"
3350 powerpc*-*-* | rs6000-*-*)
3351 case "x$with_cpu" in
3355 xcommon | xpower | xpower2 | xpowerpc | xrios \
3356 | xrios1 | xrios2 | xrsc | xrsc1 \
3357 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3358 | xec603e | x740 | x750 | x401 \
3359 | x403 | x505 | x801 | x821 | x823 | x860)
3360 target_cpu_default2="\\\"$with_cpu\\\""
3364 echo "--with-cpu must be passed a value" 1>&2
3369 if test x$pass2done = xyes
3371 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3378 case ".$with_cpu" in
3380 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3382 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3383 target_cpu_default2="TARGET_CPU_$with_cpu"
3386 if test x$pass2done = xyes
3388 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3396 if test "$target_cpu_default2" != ""
3398 if test "$target_cpu_default" != ""
3400 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3402 target_cpu_default=$target_cpu_default2
3406 # Save data on machine being used to compile GCC in build_xm_file.
3407 # Save data on host machine in vars host_xm_file and host_xmake_file.
3408 if test x$pass1done = x
3410 if test x$xm_file != x
3411 then build_xm_file=$xm_file
3413 build_xm_defines=$xm_defines
3414 build_install_headers_dir=$install_headers_dir
3415 build_exeext=$exeext
3418 if test x$pass2done = x
3420 if test x$xm_file != x
3421 then host_xm_file=$xm_file
3423 host_xm_defines=$xm_defines
3424 host_xmake_file="$xmake_file"
3425 host_truncate_target=$truncate_target
3426 host_extra_gcc_objs=$extra_gcc_objs
3427 host_extra_objs=$extra_host_objs