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/-.*$//'`
228 hppa*-*-* | parisc*-*-*)
248 tm_file=${cpu_type}/${cpu_type}.h
249 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
251 tm_p_file=${cpu_type}/${cpu_type}-protos.h
253 # On a.out targets, we need to use collect2.
260 # Common parts for GNU/Linux, GNU/Hurd, OpenBSD and FreeBSD systems.
266 # On the Hurd, the setup is just about the same on
267 # each different CPU. The specific machines that we
268 # support are matched above and just set $cpu_type.
270 tm_file="${cpu_type}/gnu.h"
271 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
272 # GNU always uses ELF.
274 # GNU tools are the only tools.
277 # These details are the same as for Linux.
279 # But here we need a little extra magic.
280 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
283 tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.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
661 tm_file="dbxelf.h cris/cris.h cris/aout.h"
663 tmake_file="cris/t-cris cris/t-aout"
665 cris-*-elf | cris-*-none)
666 tm_file="elfos.h cris/cris.h"
667 tmake_file="cris/t-cris cris/t-elfmulti"
671 tm_file="linux.h cris/cris.h cris/linux.h"
672 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
673 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
674 case x${enable_threads} in
675 x | xyes | xpthreads | xposix)
690 tm_file="fr30/fr30.h"
691 tmake_file=fr30/t-fr30
692 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
695 tmake_file="h8300/t-h8300 t-rtems"
696 tm_file=h8300/rtems.h
697 if test x$enable_threads = xyes; then
703 tmake_file="h8300/t-h8300 h8300/t-elf"
704 tm_file="h8300/h8300.h h8300/elf.h"
710 hppa*64*-*-linux* | parisc*64*-*-linux*)
711 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
712 tm_file="pa/pa64-start.h ${tm_file} linux.h pa/pa-linux.h \
713 pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
714 tmake_file=pa/t-linux64
717 hppa*-*-linux* | parisc*-*-linux*)
718 target_cpu_default="MASK_PA_11"
719 tm_file="${tm_file} linux.h pa/pa-linux.h \
720 pa/pa32-regs.h pa/pa32-linux.h"
721 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
722 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
724 if test x$enable_threads = xyes; then
729 target_cpu_default="MASK_PA_11"
730 tmake_file=pa/t-openbsd
733 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
734 tmake_file="pa/t-pro t-rtems"
735 if test x$enable_threads = xyes; then
740 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
741 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
745 target_cpu_default="MASK_PA_11"
746 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
750 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
751 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
755 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
759 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
760 target_cpu_default="MASK_PA_11"
764 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
768 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
770 xmake_file=pa/x-pa-hpux
771 install_headers_dir=install-headers-cpio
774 hppa1.0-*-hpux8.0[0-2]*)
775 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
777 xmake_file=pa/x-pa-hpux
778 if test x$gas != xyes
780 tm_file="pa/pa-oldas.h ${tm_file}"
782 install_headers_dir=install-headers-cpio
785 hppa1.1-*-hpux8.0[0-2]*)
786 target_cpu_default="MASK_PA_11"
787 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
789 xmake_file=pa/x-pa-hpux
790 if test x$gas != xyes
792 tm_file="pa/pa-oldas.h ${tm_file}"
794 install_headers_dir=install-headers-cpio
798 target_cpu_default="MASK_PA_11"
799 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
801 xmake_file=pa/x-pa-hpux
802 install_headers_dir=install-headers-cpio
806 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
808 xmake_file=pa/x-pa-hpux
809 install_headers_dir=install-headers-cpio
812 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
813 target_cpu_default="MASK_PA_11"
814 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
817 xmake_file=pa/x-pa-hpux
819 if test x$enable_threads = x; then
820 enable_threads=$have_pthread_h
822 case x${enable_threads} in
824 tmake_file="${tmake_file} pa/t-dce-thr"
827 install_headers_dir=install-headers-cpio
831 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
834 xmake_file=pa/x-pa-hpux
836 if test x$enable_threads = x; then
837 enable_threads=$have_pthread_h
839 case x${enable_threads} in
841 tmake_file="${tmake_file} pa/t-dce-thr"
844 install_headers_dir=install-headers-cpio
849 xmake_file=pa/x-pa-hpux
851 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"
854 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
856 # if [ x$enable_threads = x ]; then
857 # enable_threads=$have_pthread_h
859 # if [ x$enable_threads = xyes ]; then
861 # tmake_file="${tmake_file} pa/t-dce-thr"
863 install_headers_dir=install-headers-cpio
866 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
867 target_cpu_default="MASK_PA_11"
868 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
871 xmake_file=pa/x-pa-hpux
873 # if test x$enable_threads = x; then
874 # enable_threads=$have_pthread_h
876 # if test x$enable_threads = xyes; then
878 # tmake_file="${tmake_file} pa/t-dce-thr"
880 install_headers_dir=install-headers-cpio
884 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
887 xmake_file=pa/x-pa-hpux
888 # if test x$enable_threads = x; then
889 # enable_threads=$have_pthread_h
891 # if test x$enable_threads = xyes; then
893 # tmake_file="${tmake_file} pa/t-dce-thr"
895 install_headers_dir=install-headers-cpio
898 hppa1.1-*-hpux* | hppa2*-*-hpux*)
899 target_cpu_default="MASK_PA_11"
900 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
902 xmake_file=pa/x-pa-hpux
903 install_headers_dir=install-headers-cpio
907 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
909 xmake_file=pa/x-pa-hpux
910 install_headers_dir=install-headers-cpio
913 hppa1.1-*-hiux* | hppa2*-*-hiux*)
914 target_cpu_default="MASK_PA_11"
915 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
917 xmake_file=pa/x-pa-hpux
918 install_headers_dir=install-headers-cpio
922 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
924 xmake_file=pa/x-pa-hpux
925 install_headers_dir=install-headers-cpio
929 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
930 target_cpu_default="MASK_PA_11"
934 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
935 xmake_file=pa/x-pa-mpeix
936 echo "You must use gas. Assuming it is already installed."
938 install_headers_dir=install-headers-tar
941 i370-*-opened*) # IBM 360/370/390 Architecture
942 xm_defines='POSIX FATAL_EXIT_CODE=12'
947 xm_defines='POSIX FATAL_EXIT_CODE=12'
952 tm_file="i370/linux.h ${tm_file}"
953 tmake_file="t-slibgcc-elf-ver t-linux"
955 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
956 # extra_parts="crtbegin.o crtend.o"
960 if test x$enable_threads = xyes; then
964 i[34567]86-*-chorusos*)
966 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h chorus.h"
967 tmake_file=i386/t-i386elf
969 case x${enable_threads} in
970 xyes | xpthreads | xposix)
977 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h"
978 tmake_file=i386/t-i386elf
981 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
984 tm_file=i386/aix386.h
985 extra_parts="crtbegin.o crtend.o"
986 tmake_file=i386/t-crtstuff
988 tm_file=i386/aix386ng.h
993 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
994 xm_defines="POSIX SMALL_ARG_MAX"
995 if test x$stabs = xyes -a x$gas = xyes
997 tm_file=i386/sysv4gdb.h
1001 extra_parts="crtbegin.o crtend.o"
1002 tmake_file=i386/t-crtpic
1006 tmake_file=i386/t-next
1007 extra_objs=nextstep.o
1008 extra_parts="crtbegin.o crtend.o"
1009 if test x$enable_threads = xyes; then
1013 i[34567]86-*-netware) # Intel 80386's running netware
1014 tm_file=i386/netware.h
1015 tmake_file=i386/t-netware
1017 i[34567]86-sequent-bsd*) # 80386 from Sequent
1019 if test x$gas = xyes
1021 tm_file=i386/seq-gas.h
1023 tm_file=i386/sequent.h
1026 i[34567]86-sequent-ptx1*)
1028 tm_file=i386/seq-sysv3.h
1029 tmake_file=i386/t-crtstuff
1030 extra_parts="crtbegin.o crtend.o"
1031 install_headers_dir=install-headers-cpio
1033 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1035 tm_file=i386/seq2-sysv3.h
1036 tmake_file=i386/t-crtstuff
1037 extra_parts="crtbegin.o crtend.o"
1038 install_headers_dir=install-headers-cpio
1040 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1041 if test x$gas = xyes
1043 tm_file="${tm_file} usegas.h"
1045 xm_defines="POSIX SMALL_ARG_MAX"
1047 tm_file=i386/ptx4-i.h
1049 extra_parts="crtbegin.o crtend.o"
1050 install_headers_dir=install-headers-cpio
1052 i386-sun-sunos*) # Sun i386 roadrunner
1057 i[34567]86-wrs-vxworks*)
1058 tm_file=i386/vxi386.h
1059 thread_file='vxworks'
1062 tm_file=i386/i386-aout.h
1064 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1066 tmake_file='i386/t-beos i386/t-crtpic'
1067 tm_file=i386/beos-elf.h
1068 xmake_file=i386/x-beos
1069 extra_parts='crtbegin.o crtend.o'
1071 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1072 tm_file="i386/386bsd.h i386/bsd386.h"
1073 # tmake_file=t-libc-ok
1076 tm_file=i386/386bsd.h
1077 # tmake_file=t-libc-ok
1078 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1081 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1082 tm_file=i386/freebsd-aout.h
1083 tmake_file=t-freebsd
1085 i[34567]86-*-freebsd*)
1086 tm_file="${tm_file} i386/att.h svr4.h ${fbsd_tm_file} i386/freebsd.h"
1088 i[34567]86-*-netbsdelf*)
1090 tm_file="${tm_file} i386/att.h svr4.h i386/netbsd-elf.h"
1095 i[34567]86-*-netbsd*)
1096 tm_file=i386/netbsd.h
1100 i[34567]86-*-openbsd*)
1101 # needed to unconfuse gdb
1102 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1103 # we need collect2 until our bug is fixed...
1107 tm_file=i386/i386-coff.h
1109 i[34567]86-*-isc*) # 80386 running ISC system
1111 if test x$gas = xyes -a x$stabs = xyes
1113 tm_file=i386/iscdbx.h
1114 tmake_file=i386/t-svr3dbx
1115 extra_parts="svr3.ifile svr3z.ifile"
1117 tm_file=i386/isccoff.h
1118 tmake_file=i386/t-crtstuff
1119 extra_parts="crtbegin.o crtend.o"
1121 install_headers_dir=install-headers-cpio
1123 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1124 # with a.out format using
1126 tmake_file="t-linux-aout i386/t-crtstuff"
1127 tm_file=i386/linux-oldld.h
1131 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1133 tmake_file="t-linux-aout i386/t-crtstuff"
1134 tm_file=i386/linux-aout.h
1138 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1139 # with ELF format using the
1140 # GNU/Linux C library 5
1142 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1143 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1144 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1147 if test x$enable_threads = xyes; then
1148 thread_file='single'
1151 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1152 # with ELF format using glibc 2
1153 # aka GNU/Linux C library 6
1155 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1156 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1157 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1160 if test x$enable_threads = xyes; then
1166 tm_file="i386/biarch64.h i386/i386.h i386/att.h linux.h i386/x86-64.h \
1168 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1169 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1172 if test x$enable_threads = xyes; then
1179 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1180 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1183 i[34567]86-pc-msdosdjgpp*)
1184 xm_file=i386/xm-djgpp.h
1185 tm_file=i386/djgpp.h
1186 xmake_file=i386/x-djgpp
1191 case $host in *pc-msdosdjgpp*)
1196 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1197 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h"
1198 tmake_file=t-libc-ok
1202 i[34567]86-*-lynxos*)
1203 if test x$gas = xyes
1207 tm_file=i386/lynx-ng.h
1212 # tmake_file=t-libc-ok
1215 i[34567]86-*-osfrose*) # 386 using OSF/rose
1216 if test x$elf = xyes
1218 tm_file=i386/osfelf.h
1221 tm_file=i386/osfrose.h
1224 tmake_file=i386/t-osf
1225 extra_objs=halfpic.o
1227 i[34567]86-go32-rtems*)
1229 tm_file=i386/go32-rtems.h
1231 if test x$enable_threads = xyes; then
1235 i[34567]86-*-rtemscoff*)
1237 tm_file=i386/rtems.h
1239 if test x$enable_threads = xyes; then
1243 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1245 tm_file=i386/rtemself.h
1246 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1247 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1248 if test x$enable_threads = xyes; then
1252 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1254 xmake_file=i386/x-sco5
1255 install_headers_dir=install-headers-cpio
1257 if test x$gas = xyes
1259 tm_file="usegas.h ${tm_file}"
1260 tmake_file=i386/t-sco5gas
1262 tmake_file=i386/t-sco5
1264 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1266 i[34567]86-*-solaris2*)
1267 xm_defines="POSIX SMALL_ARG_MAX"
1269 if test x$gas = xyes; then
1270 # Only needed if gas does not support -s
1271 tm_file="i386/sol2gas.h ${tm_file}"
1273 tmake_file=i386/t-sol2
1274 if test x$gnu_ld = xyes; then
1275 tmake_file="$tmake_file t-slibgcc-elf-ver"
1277 tmake_file="$tmake_file t-slibgcc-sld"
1279 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1281 if test x${enable_threads} = x; then
1282 enable_threads=$have_pthread_h
1283 if test x${enable_threads} = x; then
1284 enable_threads=$have_thread_h
1287 if test x${enable_threads} = xyes; then
1288 if test x${have_pthread_h} = xyes; then
1291 thread_file='solaris'
1295 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1297 tm_file=i386/sysv5.h
1298 if test x$stabs = xyes
1300 tm_file="${tm_file} dbx.h"
1302 tmake_file=i386/t-crtpic
1304 extra_parts="crtbegin.o crtend.o"
1305 if test x$enable_threads = xyes; then
1309 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1310 xm_defines="POSIX SMALL_ARG_MAX"
1311 tm_file=i386/sysv4.h
1312 if test x$stabs = xyes
1314 tm_file="${tm_file} dbx.h"
1316 tmake_file=i386/t-crtpic
1318 extra_parts="crtbegin.o crtend.o"
1320 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1323 tmake_file="i386/t-crtpic i386/t-udk"
1325 extra_parts="crtbegin.o crtend.o"
1326 install_headers_dir=install-headers-cpio
1328 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1330 xm_file=i386/xm-osf1elf.h
1331 xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1332 if test x$stabs = xyes
1334 tm_file=i386/osf1elfgdb.h
1336 tm_file=i386/osf1elf.h
1338 tmake_file=i386/t-osf1elf
1339 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1341 i[34567]86-*-sysv*) # Intel 80386's running system V
1343 if test x$gas = xyes
1345 if test x$stabs = xyes
1347 tm_file=i386/svr3dbx.h
1348 tmake_file=i386/t-svr3dbx
1349 extra_parts="svr3.ifile svr3z.rfile"
1351 tm_file=i386/svr3gas.h
1352 extra_parts="crtbegin.o crtend.o"
1353 tmake_file=i386/t-crtstuff
1356 tm_file=i386/sysv3.h
1357 extra_parts="crtbegin.o crtend.o"
1358 tmake_file=i386/t-crtstuff
1360 tmake_file="$tmake_file i386/t-crtpic"
1362 i386-*-vsta) # Intel 80386's running VSTa kernel
1363 xm_file=i386/xm-vsta.h
1368 xm_file=i386/xm-cygwin.h
1370 tmake_file=i386/t-cygwin
1371 tm_file=i386/win32.h
1372 xmake_file=i386/x-cygwin
1374 if test x$enable_threads = xyes; then
1379 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1381 xm_file=i386/xm-cygwin.h
1383 tmake_file=i386/t-cygwin
1384 tm_file=i386/cygwin.h
1385 xmake_file=i386/x-cygwin
1387 if test x$enable_threads = xyes; then
1392 i[34567]86-*-mingw32*)
1393 tm_file=i386/mingw32.h
1396 xm_file=i386/xm-mingw32.h
1397 tmake_file="i386/t-cygwin i386/t-mingw32"
1399 xmake_file=i386/x-cygwin
1400 if test x$enable_threads = xyes; then
1406 tm_file="${tm_file} i386/crtdll.h"
1408 *minwg32msv* | *mingw32*)
1414 tmake_file="i386/t-cygwin i386/t-uwin"
1416 xmake_file=i386/x-cygwin
1417 if test x$enable_threads = xyes; then
1422 i[34567]86-*-interix*)
1423 tm_file="i386/i386-interix.h interix.h"
1424 xm_file="i386/xm-i386-interix.h xm-interix.h"
1426 tmake_file="i386/t-interix"
1427 extra_objs=interix.o
1428 xmake_file=x-interix
1429 if test x$enable_threads = xyes ; then
1432 if test x$stabs = xyes ; then
1433 tm_file="${tm_file} dbxcoff.h"
1436 i[34567]86-dg-dgux*)
1438 out_file=i386/dgux.c
1440 tmake_file=i386/t-dgux
1441 xmake_file=i386/x-dgux
1442 install_headers_dir=install-headers-cpio
1444 i860-alliant-*) # Alliant FX/2800
1445 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1446 tmake_file=i860/t-fx2800
1447 extra_parts="crtbegin.o crtend.o"
1450 tm_file="${tm_file} i860/bsd.h"
1451 if test x$gas = xyes
1453 tm_file="${tm_file} i860/bsd-gas.h"
1458 tm_file="${tm_file} i860/mach.h"
1459 tmake_file=t-libc-ok
1461 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1462 tm_file="${tm_file} svr3.h i860/paragon.h"
1466 tm_file="${tm_file} svr3.h i860/sysv3.h"
1468 extra_parts="crtbegin.o crtend.o"
1471 tm_file="${tm_file} svr4.h i860/sysv4.h"
1474 extra_parts="crtbegin.o crtend.o"
1476 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1477 tm_file="${tm_file} i960/vx960.h"
1478 tmake_file=i960/t-vxworks960
1480 thread_file='vxworks'
1481 c_target_objs="i960-c.o"
1482 cxx_target_objs="i960-c.o"
1484 i960-wrs-vxworks5* | i960-wrs-vxworks)
1485 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1486 tmake_file=i960/t-vxworks960
1488 thread_file='vxworks'
1489 c_target_objs="i960-c.o"
1490 cxx_target_objs="i960-c.o"
1493 tm_file="${tm_file} i960/vx960.h"
1494 tmake_file=i960/t-vxworks960
1496 thread_file='vxworks'
1497 c_target_objs="i960-c.o"
1498 cxx_target_objs="i960-c.o"
1501 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1502 tmake_file=i960/t-960bare
1503 c_target_objs="i960-c.o"
1504 cxx_target_objs="i960-c.o"
1507 tmake_file="i960/t-960bare t-rtems"
1508 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1509 if test x$enable_threads = xyes; then
1512 c_target_objs="i960-c.o"
1513 cxx_target_objs="i960-c.o"
1515 i960-*-*) # Default i960 environment.
1517 c_target_objs="i960-c.o"
1518 cxx_target_objs="i960-c.o"
1521 tm_file="${tm_file} svr4.h ia64/sysv4.h ia64/aix.h"
1522 tmake_file="ia64/t-ia64 ia64/t-aix"
1523 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1527 tmake_file="ia64/t-ia64"
1528 target_cpu_default="0"
1529 if test x$gas = xyes
1531 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1533 if test x$gnu_ld = xyes
1535 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1540 tm_file=ia64/linux.h
1541 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1542 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1543 if test x$enable_threads = xyes; then
1549 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1550 tmake_file="ia64/t-ia64 ia64/t-hpux"
1551 target_cpu_default="MASK_GNU_AS"
1552 if test x$enable_threads = xyes; then
1558 extra_parts="crtinit.o crtfini.o"
1560 # m68hc11 and m68hc12 share the same machine description.
1561 m68hc11-*-*|m6811-*-*)
1562 tm_file="elfos.h m68hc11/m68hc11.h"
1563 tm_p_file="m68hc11/m68hc11-protos.h"
1564 md_file="m68hc11/m68hc11.md"
1565 out_file="m68hc11/m68hc11.c"
1566 tmake_file="m68hc11/t-m68hc11-gas"
1568 m68hc12-*-*|m6812-*-*)
1569 tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1570 tm_p_file="m68hc11/m68hc11-protos.h"
1571 md_file="m68hc11/m68hc11.md"
1572 out_file="m68hc11/m68hc11.c"
1573 tmake_file="m68hc11/t-m68hc11-gas"
1575 m68000-convergent-sysv*)
1579 extra_headers=math-68881.h
1581 m68000-hp-bsd*) # HP 9000/200 running BSD
1582 tm_file=m68k/hp2bsd.h
1584 extra_headers=math-68881.h
1586 m68000-hp-hpux*) # HP 9000 series 300
1588 if test x$gas = xyes
1590 xmake_file=m68k/x-hp320g
1591 tm_file=m68k/hp310g.h
1593 xmake_file=m68k/x-hp320
1594 tm_file=m68k/hp310.h
1596 install_headers_dir=install-headers-cpio
1598 extra_headers=math-68881.h
1603 extra_headers=math-68881.h
1606 tm_file=m68k/sun2o4.h
1608 extra_headers=math-68881.h
1612 if test x$gas = xyes
1619 extra_headers=math-68881.h
1621 m68k-apple-aux*) # Apple Macintosh running A/UX
1623 tmake_file=m68k/t-aux
1624 install_headers_dir=install-headers-cpio
1625 extra_headers=math-68881.h
1626 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1628 if test "$gnu_ld" = yes
1630 tm_file="${tm_file} m68k/auxgld.h"
1632 tm_file="${tm_file} m68k/auxld.h"
1634 if test "$gas" = yes
1636 tm_file="${tm_file} m68k/auxgas.h"
1638 tm_file="${tm_file} m68k/auxas.h"
1640 tm_file="${tm_file} m68k/a-ux.h"
1644 tm_file=m68k/apollo68.h
1646 extra_headers=math-68881.h
1649 m68k-altos-sysv*) # Altos 3068
1650 if test x$gas = xyes
1652 tm_file=m68k/altos3068.h
1655 echo "The Altos is supported only with the GNU assembler" 1>&2
1658 extra_headers=math-68881.h
1660 m68k-bull-sysv*) # Bull DPX/2
1661 if test x$gas = xyes
1663 if test x$stabs = xyes
1665 tm_file=m68k/dpx2cdbx.h
1667 tm_file=m68k/dpx2g.h
1674 extra_headers=math-68881.h
1676 m68k-atari-sysv4*) # Atari variant of V.4.
1677 tm_file=m68k/atari.h
1680 extra_parts="crtbegin.o crtend.o"
1681 extra_headers=math-68881.h
1684 m68k-motorola-sysv*)
1685 tm_file=m68k/mot3300.h
1687 if test x$gas = xyes
1689 if test x$gnu_ld = xyes
1691 tmake_file=m68k/t-mot3300-gald
1693 tmake_file=m68k/t-mot3300-gas
1697 if test x$gnu_ld = xyes
1699 tmake_file=m68k/t-mot3300-gld
1701 tmake_file=m68k/t-mot3300
1705 gdb_needs_out_file_path=yes
1706 extra_parts="crt0.o mcrt0.o"
1707 extra_headers=math-68881.h
1710 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1711 tm_file=m68k/tower-as.h
1713 extra_parts="crtbegin.o crtend.o"
1714 extra_headers=math-68881.h
1717 tm_file=m68k/plexus.h
1720 extra_headers=math-68881.h
1725 extra_headers=math-68881.h
1731 extra_headers=math-68881.h
1733 m68k-cbm-sysv4*) # Commodore variant of V.4.
1737 extra_parts="crtbegin.o crtend.o"
1738 extra_headers=math-68881.h
1742 tm_file=m68k/ccur-GAS.h
1743 extra_headers=math-68881.h
1747 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1748 tm_file=m68k/hp3bsd44.h
1750 extra_headers=math-68881.h
1753 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1754 tm_file=m68k/hp3bsd.h
1756 extra_headers=math-68881.h
1760 if test x$with_fp = xno
1762 tm_file=m68k/isi-nfp.h
1768 extra_headers=math-68881.h
1770 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1772 if test x$gas = xyes
1774 xmake_file=m68k/x-hp320g
1775 tm_file=m68k/hp320g.h
1777 xmake_file=m68k/x-hp320
1778 tm_file=m68k/hpux7.h
1780 install_headers_dir=install-headers-cpio
1782 extra_headers=math-68881.h
1785 m68k-hp-hpux*) # HP 9000 series 300
1787 if test x$gas = xyes
1789 xmake_file=m68k/x-hp320g
1790 tm_file=m68k/hp320g.h
1792 xmake_file=m68k/x-hp320
1793 tm_file=m68k/hp320.h
1795 install_headers_dir=install-headers-cpio
1797 extra_headers=math-68881.h
1801 tm_file=m68k/sun3mach.h
1803 extra_headers=math-68881.h
1807 if test x$gas = xyes
1809 tm_file=m68k/news3gas.h
1811 tm_file=m68k/news3.h
1814 extra_headers=math-68881.h
1817 m68k-sony-bsd* | m68k-sony-newsos*)
1818 if test x$gas = xyes
1820 tm_file=m68k/newsgas.h
1825 extra_headers=math-68881.h
1828 m68k-next-nextstep2*)
1829 tm_file=m68k/next21.h
1830 tmake_file=m68k/t-next
1831 xmake_file=m68k/x-next
1832 extra_objs=nextstep.o
1833 extra_headers=math-68881.h
1837 m68k-next-nextstep[34]*)
1839 tmake_file=m68k/t-next
1840 xmake_file=m68k/x-next
1841 extra_objs=nextstep.o
1842 extra_parts="crtbegin.o crtend.o"
1843 extra_headers=math-68881.h
1845 if test x$enable_threads = xyes; then
1850 if test x$with_fp = xno
1852 tm_file=m68k/sun3n3.h
1854 tm_file=m68k/sun3o3.h
1858 extra_headers=math-68881.h
1860 m68k-sun-sunos*) # For SunOS 4 (the default).
1861 if test x$with_fp = xno
1863 tm_file=m68k/sun3n.h
1869 extra_headers=math-68881.h
1872 tm_file=m68k/vxm68k.h
1873 tmake_file=m68k/t-vxworks68
1874 extra_headers=math-68881.h
1875 thread_file='vxworks'
1879 tmake_file=m68k/t-m68kbare
1880 tm_file="m68k/m68k-aout.h libgloss.h"
1881 extra_headers=math-68881.h
1885 tmake_file=m68k/t-m68kbare
1886 tm_file="m68k/m68k-coff.h dbx.h"
1887 extra_headers=math-68881.h
1890 m68020-*-elf* | m68k-*-elf*)
1891 tm_file="m68k/m68020-elf.h"
1893 tmake_file=m68k/t-m68kelf
1894 header_files=math-68881.h
1895 extra_parts="crtbegin.o crtend.o"
1898 if test x$gas = xyes
1902 tm_file=m68k/lynx-ng.h
1904 tmake_file=m68k/t-lynx
1905 extra_headers=math-68881.h
1909 tm_file=m68k/netbsd.h
1915 # needed to unconfuse gdb
1916 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1918 # we need collect2 until our bug is fixed...
1921 m68k-*-sysv3*) # Motorola m68k's running system V.3
1923 extra_parts="crtbegin.o crtend.o"
1924 extra_headers=math-68881.h
1927 m68k-*-sysv4*) # Motorola m68k's running system V.4
1928 tm_file=m68k/m68kv4.h
1931 extra_parts="crtbegin.o crtend.o"
1932 extra_headers=math-68881.h
1935 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1938 tm_file=m68k/linux-aout.h
1939 tmake_file="t-linux-aout m68k/t-linux-aout"
1940 extra_headers=math-68881.h
1944 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1945 # with ELF format using the
1946 # GNU/Linux C library 5
1948 tm_file=m68k/linux.h
1949 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
1950 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1951 extra_headers=math-68881.h
1955 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1956 # with ELF format using glibc 2
1957 # aka the GNU/Linux C library 6.
1959 tm_file=m68k/linux.h
1960 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
1961 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1962 extra_headers=math-68881.h
1965 if test x$enable_threads = xyes; then
1970 tmake_file=m68k/t-m68kbare
1971 tm_file=m68k/m68k-psos.h
1972 extra_headers=math-68881.h
1976 tmake_file="m68k/t-m68kbare t-rtems"
1977 tm_file=m68k/rtems.h
1978 extra_headers=math-68881.h
1980 if test x$enable_threads = xyes; then
1984 m68k-*-rtemself*|m68k-*-rtems*)
1985 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1986 tm_file=m68k/rtemself.h
1987 extra_headers=math-68881.h
1989 extra_parts="crtbegin.o crtend.o"
1990 if test x$enable_threads = xyes; then
1998 tm_file=m88k/dguxbcs.h
1999 tmake_file=m88k/t-dguxbcs
2003 tmake_file=m88k/t-dgux
2006 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2007 xmake_file=m88k/x-dgux
2008 if test x$gas = xyes
2010 tmake_file=m88k/t-dgux-gas
2013 m88k-dolphin-sysv3*)
2015 tm_file=m88k/dolph.h
2016 extra_parts="crtbegin.o crtend.o"
2017 xmake_file=m88k/x-dolph
2018 if test x$gas = xyes
2020 tmake_file=m88k/t-m88k-gas
2023 m88k-tektronix-sysv3)
2025 tm_file=m88k/tekXD88.h
2026 extra_parts="crtbegin.o crtend.o"
2027 xmake_file=m88k/x-tekXD88
2028 if test x$gas = xyes
2030 tmake_file=m88k/t-m88k-gas
2035 tm_file=m88k/m88k-aout.h
2039 tm_file=m88k/m88k-coff.h
2040 tmake_file=m88k/t-bug
2044 extra_parts="crtbegin.o crtend.o"
2045 if test x$gas = xyes
2047 tmake_file=m88k/t-luna-gas
2049 tmake_file=m88k/t-luna
2053 tmake_file="${tmake_file} m88k/t-luna-gas"
2054 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2058 tm_file=m88k/sysv3.h
2059 extra_parts="crtbegin.o crtend.o"
2060 if test x$gas = xyes
2062 tmake_file=m88k/t-m88k-gas
2067 tm_file=m88k/sysv4.h
2068 extra_parts="crtbegin.o crtend.o"
2069 tmake_file=m88k/t-sysv4
2072 tm_file=mcore/mcore-elf.h
2073 tmake_file=mcore/t-mcore
2076 tm_file=mcore/mcore-pe.h
2077 tmake_file=mcore/t-mcore-pe
2079 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2080 if test "x$gnu_ld" = xyes
2082 tm_file="mips/iris6.h mips/iris6gld.h"
2084 tm_file=mips/iris6.h
2086 tmake_file=mips/t-iris6
2088 xmake_file=mips/x-iris6
2089 # if test x$enable_threads = xyes; then
2090 # thread_file='irix'
2094 tm_file="mips/elf.h mips/vxworks.h"
2095 tmake_file=mips/t-ecoff
2098 extra_parts="crtbegin.o crtend.o"
2099 thread_file='vxworks'
2101 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2102 tm_file="mips/iris6.h mips/cross64.h"
2104 xm_file=mips/xm-iris5.h
2105 xmake_file=mips/x-iris
2106 tmake_file=mips/t-cross64
2107 # See comment in mips/iris[56].h files.
2109 # if test x$enable_threads = xyes; then
2110 # thread_file='irix'
2114 if test x$gas = xyes
2116 if test x$stabs = xyes
2118 tm_file=mips/iris5gdb.h
2120 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2123 tm_file=mips/sni-svr4.h
2126 if test x$gnu_ld != xyes
2131 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2132 if test x$gas = xyes
2134 tm_file="mips/iris5.h mips/iris5gas.h"
2135 if test x$stabs = xyes
2137 tm_file="${tm_file} dbx.h"
2140 tm_file=mips/iris5.h
2143 xm_file=mips/xm-iris5.h
2144 xmake_file=mips/x-iris
2145 # mips-tfile doesn't work yet
2146 # See comment in mips/iris5.h file.
2148 # if test x$enable_threads = xyes; then
2149 # thread_file='irix'
2152 mips-sgi-irix4loser*) # Mostly like a MIPS.
2153 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2154 if test x$stabs = xyes; then
2155 tm_file="${tm_file} dbx.h"
2158 xmake_file=mips/x-iris
2159 if test x$gas = xyes
2162 extra_passes="mips-tfile mips-tdump"
2164 if test x$gnu_ld != xyes
2168 # if test x$enable_threads = xyes; then
2169 # thread_file='irix'
2172 mips-sgi-irix4*) # Mostly like a MIPS.
2173 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2174 if test x$stabs = xyes; then
2175 tm_file="${tm_file} dbx.h"
2178 xmake_file=mips/x-iris
2179 if test x$gas = xyes
2182 extra_passes="mips-tfile mips-tdump"
2184 if test x$gnu_ld != xyes
2188 # if test x$enable_threads = xyes; then
2189 # thread_file='irix'
2192 mips-sgi-*) # Mostly like a MIPS.
2193 tm_file="mips/iris3.h ${tm_file}"
2194 if test x$stabs = xyes; then
2195 tm_file="${tm_file} dbx.h"
2198 if test x$gas = xyes
2201 extra_passes="mips-tfile mips-tdump"
2203 if test x$gnu_ld != xyes
2208 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2209 tm_file="mips/osfrose.h ${tm_file}"
2210 extra_objs=halfpic.o
2213 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2214 tm_file=mips/dec-osf1.h
2215 if test x$stabs = xyes; then
2216 tm_file="${tm_file} dbx.h"
2218 if test x$gas = xyes
2221 tmake_file=mips/t-ultrix
2222 extra_passes="mips-tfile mips-tdump"
2224 if test x$gnu_ld != xyes
2229 mips-dec-bsd*) # Decstation running 4.4 BSD
2230 tm_file=mips/dec-bsd.h
2231 if test x$gas = xyes
2234 tmake_file=mips/t-ultrix
2235 extra_passes="mips-tfile mips-tdump"
2237 if test x$gnu_ld != xyes
2242 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2243 tm_file=mips/netbsd.h
2244 # On NetBSD, the headers are already okay, except for math.h.
2247 mips*-*-linux*) # Linux MIPS, either endian.
2251 tm_file="elfos.h mips/elfl.h mips/linux.h mips/isa32-linux.h"
2252 target_cpu_default="MASK_SOFT_FLOAT"
2255 tm_file="elfos.h mips/elf.h mips/linux.h mips/isa32-linux.h"
2256 target_cpu_default="MASK_SOFT_FLOAT"
2258 mips*el-*) tm_file="elfos.h mips/elfl.h mips/linux.h" ;;
2259 *) tm_file="elfos.h mips/elf.h mips/linux.h"
2261 tmake_file="t-slibgcc-elf-ver t-linux"
2262 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2265 if test x$enable_threads = xyes; then
2269 mips*el-*-openbsd*) # mips little endian
2270 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2272 mips*-*-openbsd*) # mips big endian
2273 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2274 tm_file="mips/openbsd-be.h ${tm_file}"
2276 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2277 tm_file="mips/news4.h ${tm_file}"
2278 if test x$stabs = xyes; then
2279 tm_file="${tm_file} dbx.h"
2281 if test x$gas = xyes
2284 extra_passes="mips-tfile mips-tdump"
2286 if test x$gnu_ld != xyes
2291 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2292 # That is based on svr4.
2293 # t-svr4 is not right because this system doesn't use ELF.
2294 tm_file="mips/news5.h ${tm_file}"
2295 if test x$stabs = xyes; then
2296 tm_file="${tm_file} dbx.h"
2299 if test x$gas = xyes
2302 extra_passes="mips-tfile mips-tdump"
2304 if test x$gnu_ld != xyes
2309 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2310 tm_file="mips/svr4-5.h mips/svr4-t.h"
2311 if test x$stabs = xyes; then
2312 tm_file="${tm_file} dbx.h"
2315 if test x$gas = xyes
2317 extra_parts="crtbegin.o crtend.o"
2319 extra_passes="mips-tfile mips-tdump"
2321 if test x$gnu_ld != xyes
2326 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2327 tm_file="mips/ultrix.h ${tm_file}"
2328 if test x$stabs = xyes; then
2329 tm_file="${tm_file} dbx.h"
2331 if test x$gas = xyes
2334 tmake_file=mips/t-ultrix
2335 extra_passes="mips-tfile mips-tdump"
2337 if test x$gnu_ld != xyes
2342 mips-*-riscos[56789]bsd*)
2343 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2344 if test x$stabs = xyes; then
2345 tm_file="${tm_file} dbx.h"
2347 if test x$gas = xyes
2349 tmake_file=mips/t-bsd-gas
2351 tmake_file=mips/t-bsd
2352 extra_passes="mips-tfile mips-tdump"
2354 if test x$gnu_ld != xyes
2359 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2360 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2361 if test x$stabs = xyes; then
2362 tm_file="${tm_file} dbx.h"
2364 if test x$gas = xyes
2366 tmake_file=mips/t-bsd-gas
2368 tmake_file=mips/t-bsd
2369 extra_passes="mips-tfile mips-tdump"
2371 if test x$gnu_ld != xyes
2376 mips-*-riscos[56789]sysv4*)
2377 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2378 if test x$stabs = xyes; then
2379 tm_file="${tm_file} dbx.h"
2381 if test x$gas = xyes
2383 tmake_file=mips/t-svr4-gas
2385 tmake_file=mips/t-svr4
2386 extra_passes="mips-tfile mips-tdump"
2388 if test x$gnu_ld != xyes
2393 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2394 tm_file="mips/svr4-4.h ${tm_file}"
2395 if test x$stabs = xyes; then
2396 tm_file="${tm_file} dbx.h"
2399 if test x$gas = xyes
2401 tmake_file=mips/t-svr4-gas
2403 tmake_file=mips/t-svr4
2404 extra_passes="mips-tfile mips-tdump"
2406 if test x$gnu_ld != xyes
2411 mips-*-riscos[56789]sysv*)
2412 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2413 if test x$stabs = xyes; then
2414 tm_file="${tm_file} dbx.h"
2417 if test x$gas = xyes
2419 tmake_file=mips/t-svr3-gas
2421 tmake_file=mips/t-svr3
2422 extra_passes="mips-tfile mips-tdump"
2424 if test x$gnu_ld != xyes
2429 mips-*-sysv* | mips-*-riscos*sysv*)
2430 tm_file="mips/svr3-4.h ${tm_file}"
2431 if test x$stabs = xyes; then
2432 tm_file="${tm_file} dbx.h"
2435 if test x$gas = xyes
2437 tmake_file=mips/t-svr3-gas
2439 tmake_file=mips/t-svr3
2440 extra_passes="mips-tfile mips-tdump"
2442 if test x$gnu_ld != xyes
2447 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2448 tm_file=mips/mips-5.h
2449 if test x$stabs = xyes; then
2450 tm_file="${tm_file} dbx.h"
2452 if test x$gas = xyes
2455 extra_passes="mips-tfile mips-tdump"
2457 if test x$gnu_ld != xyes
2463 tm_file=mips/ecoffl.h
2464 if test x$stabs = xyes; then
2465 tm_file="${tm_file} dbx.h"
2467 tmake_file=mips/t-ecoff
2470 tm_file="gofast.h mips/ecoff.h"
2471 if test x$stabs = xyes; then
2472 tm_file="${tm_file} dbx.h"
2474 tmake_file=mips/t-ecoff
2477 tm_file="mips/isa3264.h mips/abi64.h"
2478 tmake_file=mips/t-isa3264
2479 target_cpu_default="MASK_SOFT_FLOAT"
2482 tm_file="mips/elfl.h"
2483 tmake_file=mips/t-elf
2486 tm_file="mips/elf.h"
2487 tmake_file=mips/t-elf
2490 tm_file="mips/elfl64.h"
2491 tmake_file=mips/t-elf
2493 mips64orionel-*-elf*)
2494 tm_file="mips/elforion.h mips/elfl64.h"
2495 tmake_file=mips/t-elf
2498 tm_file="mips/elf64.h"
2499 tmake_file=mips/t-elf
2502 tm_file="mips/elforion.h mips/elf64.h"
2503 tmake_file=mips/t-elf
2505 mips64orion-*-rtems*)
2506 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2507 tmake_file="mips/t-elf t-rtems"
2508 if test x$enable_threads = xyes; then
2513 tm_file="mips/elf.h mips/rtems.h"
2514 tmake_file="mips/t-elf t-rtems"
2515 if test x$enable_threads = xyes; then
2520 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2521 tmake_file=mips/t-r3900
2522 target_cpu_default="MASK_SOFT_FLOAT"
2525 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2526 tmake_file=mips/t-r3900
2528 mips-*-*) # Default MIPS RISC-OS 4.0.
2529 if test x$stabs = xyes; then
2530 tm_file="${tm_file} dbx.h"
2532 if test x$gas = xyes
2535 extra_passes="mips-tfile mips-tdump"
2537 if test x$gnu_ld != xyes
2545 tm_file="mn10200/mn10200.h"
2546 if test x$stabs = xyes
2548 tm_file="${tm_file} dbx.h"
2554 tm_file="mn10300/mn10300.h"
2555 if test x$stabs = xyes
2557 tm_file="${tm_file} dbx.h"
2562 tm_file=ns32k/encore.h
2566 tm_file=ns32k/sequent.h
2570 tm_file=ns32k/tek6100.h
2574 tm_file=ns32k/tek6200.h
2578 tm_file=ns32k/merlin.h
2582 tm_file=ns32k/pc532-mach.h
2586 tm_file=ns32k/pc532-min.h
2587 xm_defines='POSIX HZ=60'
2591 tm_file=ns32k/netbsd.h
2592 # On NetBSD, the headers are already okay, except for math.h.
2597 tm_file="${tm_file} pdp11/2bsd.h"
2607 tm_file="svr4.h pj/linux.h ${tm_file}"
2612 tm_file="svr4.h pj/pjl.h ${tm_file}"
2625 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2628 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux64.h"
2629 out_file=rs6000/rs6000.c
2630 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2632 extra_headers=ppc-asm.h
2636 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
2638 xm_file=rs6000/xm-beos.h
2639 tmake_file=rs6000/t-beos
2643 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2644 tm_p_file="${tm_p_file} darwin-protos.h"
2645 tmake_file=rs6000/t-darwin
2646 xmake_file=rs6000/x-darwin
2647 # Override the usual setting, since Apple's GCC has lame bugs
2648 # and can't handle the initializers. Someday the bugs will be
2649 # fixed and we can get rid of this silliness.
2650 xm_defines="HAVE_DESIGNATED_INITIALIZERS=0"
2651 extra_objs="darwin.o"
2652 c_target_objs="darwin-c.o"
2653 cxx_target_objs="darwin-c.o"
2654 # Darwin linker does collect2 functionality
2658 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2660 extra_headers=ppc-asm.h
2661 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2665 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/netbsd.h"
2666 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2667 extra_headers=ppc-asm.h
2669 powerpc-*-chorusos*)
2671 tm_file="${tm_file} svr4.h rs6000/sysv4.h chorus.h"
2672 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2673 extra_headers=ppc-asm.h
2674 case x${enable_threads} in
2675 xyes | xpthreads | xposix)
2682 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2683 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2684 extra_headers=ppc-asm.h
2688 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2689 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2690 extra_headers=ppc-asm.h
2694 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2695 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2696 extra_headers=ppc-asm.h
2700 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2701 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2702 extra_headers=ppc-asm.h
2706 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2707 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2708 extra_headers=ppc-asm.h
2709 if test x$enable_threads = xyes; then
2713 powerpc-*-linux*libc1)
2714 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2715 out_file=rs6000/rs6000.c
2716 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2718 extra_headers=ppc-asm.h
2719 if test x$enable_threads = xyes; then
2724 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2725 out_file=rs6000/rs6000.c
2726 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2728 extra_headers=ppc-asm.h
2729 if test x$enable_threads = xyes; then
2733 powerpc-wrs-vxworks*)
2736 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2737 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2738 extra_headers=ppc-asm.h
2739 thread_file='vxworks'
2741 powerpcle-wrs-vxworks*)
2744 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2745 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2746 extra_headers=ppc-asm.h
2747 thread_file='vxworks'
2750 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2752 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2753 extra_headers=ppc-asm.h
2757 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2758 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2759 extra_headers=ppc-asm.h
2761 powerpcle-*-eabisim*)
2763 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2764 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2765 extra_headers=ppc-asm.h
2769 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2770 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2771 extra_headers=ppc-asm.h
2773 powerpcle-*-solaris2*)
2774 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2776 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2777 extra_headers=ppc-asm.h
2779 rs6000-ibm-aix3.[01]*)
2781 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h"
2785 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2787 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h"
2788 tmake_file=rs6000/t-newas
2792 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2794 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
2795 tmake_file=rs6000/t-newas
2799 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2801 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
2802 tmake_file=rs6000/t-aix43
2807 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2809 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
2810 tmake_file=rs6000/t-aix43
2817 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2823 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2828 tm_file="rs6000/rs6000.h rs6000/mach.h"
2833 tm_file=rs6000/lynx.h
2834 tmake_file=rs6000/t-rs6000
2839 tm_file="s390/s390.h linux.h s390/linux.h"
2840 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2841 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2842 if test x$enable_threads = xyes; then
2848 tm_file="s390/s390.h linux.h s390/linux.h s390/linux64.h"
2849 tm_p_file=s390/s390-protos.h
2850 md_file=s390/s390.md
2851 out_file=s390/s390.c
2852 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2853 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2854 if test x$enable_threads = xyes; then
2859 tmake_file="sh/t-sh sh/t-elf"
2860 tm_file="sh/sh.h sh/elf.h"
2864 tmake_file="sh/t-sh sh/t-elf t-rtems"
2865 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2867 if test x$enable_threads = xyes; then
2872 tmake_file="sh/t-sh t-rtems"
2873 tm_file="sh/sh.h sh/rtems.h"
2875 if test x$enable_threads = xyes; then
2880 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2881 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2884 if test x$enable_threads = xyes; then
2896 sparc64-wrs-vxworks*)
2897 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2898 tmake_file=sparc/t-vxsparc64
2901 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2902 tm_file=sparc/vxsparc.h
2903 tmake_file=sparc/t-vxsparc
2905 thread_file='vxworks'
2908 tmake_file=sparc/t-sparcbare
2909 tm_file="sparc/aout.h libgloss.h"
2912 tm_file=sparc/netbsd.h
2917 # needed to unconfuse gdb
2918 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
2919 # we need collect2 until our bug is fixed...
2923 tm_file="${tm_file} sparc/bsd.h"
2926 tm_file="sparc/sol2.h sparc/elf.h chorus.h"
2927 tmake_file=sparc/t-chorus-elf
2928 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2930 case x${enable_threads} in
2931 xyes | xpthreads | xposix)
2937 tm_file="sparc/sol2.h sparc/elf.h"
2938 tmake_file=sparc/t-elf
2939 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2943 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2944 tm_file=sparc/linux-aout.h
2948 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2950 tm_file=sparc/linux.h
2951 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
2952 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2956 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2958 tm_file=sparc/linux.h
2959 tmake_file="t-slibgcc-elf-ver t-linux"
2960 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2962 if test x$enable_threads = xyes; then
2968 if test x$gas = xyes
2970 tm_file=sparc/lynx.h
2972 tm_file=sparc/lynx-ng.h
2974 tmake_file=sparc/t-sunos41
2977 tmake_file="sparc/t-sparcbare t-rtems"
2978 tm_file=sparc/rtems.h
2979 if test x$enable_threads = xyes; then
2983 sparc-*-rtems*|sparc-*-rtemself*)
2984 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
2985 tmake_file="sparc/t-elf t-rtems"
2986 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2989 if test x$enable_threads = xyes; then
2993 sparcv9-*-solaris2* | sparc64-*-solaris2*)
2994 if test x$gnu_ld = xyes
2996 tm_file=sparc/sol2-64.h
2998 tm_file=sparc/sol2-sld-64.h
3001 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3002 if test x$gnu_ld = xyes; then
3003 tmake_file="$tmake_file t-slibgcc-elf-ver"
3005 tmake_file="$tmake_file t-slibgcc-sld"
3007 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3009 if test x${enable_threads} = x ; then
3010 enable_threads=$have_pthread_h
3011 if test x${enable_threads} = x ; then
3012 enable_threads=$have_thread_h
3015 if test x${enable_threads} = xyes ; then
3016 if test x${have_pthread_h} = xyes ; then
3019 thread_file='solaris'
3023 sparc-hal-solaris2*)
3025 tm_file="sparc/sol2.h sparc/hal.h"
3026 tmake_file="sparc/t-halos sparc/t-sol2"
3027 if test x$gnu_ld = xyes; then
3028 tmake_file="$tmake_file t-slibgcc-elf-ver"
3030 tmake_file="$tmake_file t-slibgcc-sld"
3032 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3041 thread_file='solaris'
3044 if test x$gnu_ld = xyes
3046 tm_file=sparc/sol2.h
3048 tm_file=sparc/sol2-sld.h
3051 tmake_file=sparc/t-sol2
3052 if test x$gnu_ld = xyes; then
3053 tmake_file="$tmake_file t-slibgcc-elf-ver"
3055 tmake_file="$tmake_file t-slibgcc-sld"
3057 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3059 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3061 if test x$gnu_ld = xyes
3063 tm_file=sparc/sol2-64.h
3065 tm_file=sparc/sol2-sld-64.h
3067 tmake_file="$tmake_file sparc/t-sol2-64"
3078 if test x${enable_threads} = x; then
3079 enable_threads=$have_pthread_h
3080 if test x${enable_threads} = x; then
3081 enable_threads=$have_thread_h
3084 if test x${enable_threads} = xyes; then
3085 if test x${have_pthread_h} = xyes; then
3088 thread_file='solaris'
3093 tm_file=sparc/sunos4.h
3097 tm_file=sparc/sunos4.h
3098 tmake_file=sparc/t-sunos41
3100 if test x$gas = xyes; then
3101 tm_file="${tm_file} sparc/sun4gas.h"
3105 tm_file=sparc/sun4o3.h
3109 tm_file=sparc/sysv4.h
3112 extra_parts="crtbegin.o crtend.o"
3116 tm_file=sparc/vxsim.h
3117 tmake_file=sparc/t-vxsparc
3120 tm_file="sparc/splet.h libgloss.h"
3121 tmake_file=sparc/t-splet
3124 tm_file="sparc/litecoff.h libgloss.h"
3125 tmake_file=sparc/t-sparclite
3128 tm_file="sparc/lite.h aoutos.h libgloss.h"
3129 tmake_file=sparc/t-sparclite
3132 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3133 tmake_file=sparc/t-sparclite
3134 extra_parts="crtbegin.o crtend.o"
3137 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3138 tmake_file=sparc/t-sp86x
3141 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3142 tmake_file=sparc/t-sp86x
3143 extra_parts="crtbegin.o crtend.o"
3146 tm_file=sparc/sp64-aout.h
3149 tm_file=sparc/sp64-elf.h
3150 extra_parts="crtbegin.o crtend.o"
3152 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3153 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64"
3154 tm_file=sparc/linux64.h
3156 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3158 if test x$enable_threads = xyes; then
3164 tmake_file="stormy16/t-stormy16"
3165 extra_parts="crtbegin.o crtend.o"
3168 tm_file="arm/strongarm-elf.h elfos.h arm/unknown-elf.h arm/elf.h"
3169 tmake_file=arm/t-strongarm-elf
3174 tm_file=arm/strongarm-coff.h
3175 tmake_file=arm/t-strongarm-coff
3180 tm_file=arm/strongarm-pe.h
3181 tmake_file=arm/t-strongarm-pe
3187 { echo "config.gcc: error:
3188 *** The Thumb targets have been deprecated. The equivalent
3189 *** ARM based toolchain can now generate Thumb instructions
3190 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3194 tm_file="v850/rtems.h"
3195 tmake_file="v850/t-v850 t-rtems"
3196 if test x$stabs = xyes
3198 tm_file="${tm_file} dbx.h"
3201 c_target_objs="v850-c.o"
3202 cxx_target_objs="v850-c.o"
3205 target_cpu_default="TARGET_CPU_generic"
3207 tm_file="v850/v850.h"
3208 tmake_file=v850/t-v850
3209 if test x$stabs = xyes
3211 tm_file="${tm_file} dbx.h"
3214 c_target_objs="v850-c.o"
3215 cxx_target_objs="v850-c.o"
3217 vax-*-bsd*) # VAXen running BSD
3221 vax-*-sysv*) # VAXen running system V
3222 tm_file="${tm_file} vax/vaxv.h"
3227 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3233 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3237 vax-*-ultrix*) # VAXen running ultrix
3238 tm_file="${tm_file} vax/ultrix.h"
3241 vax-*-vms*) # VAXen running VMS
3242 xm_file=vax/xm-vms.h
3246 vax-*-*) # VAX default entry
3254 tm_file="arm/xscale-elf.h elfos.h arm/unknown-elf.h arm/elf.h"
3255 tmake_file=arm/t-xscale-elf
3260 tm_file=arm/xscale-coff.h
3261 tmake_file=arm/t-xscale-coff
3266 echo "Configuration $machine not supported" 1>&2
3273 install_headers_dir=install-headers-cpio
3277 # Distinguish i[34567]86
3278 # Also, do not run mips-tfile on MIPS if using gas.
3279 # Process --with-cpu= for PowerPC/rs6000
3280 target_cpu_default2=
3283 target_cpu_default2=1
3286 case $target_alias in
3288 target_cpu_default2=4
3291 target_cpu_default2=2
3295 i686-*-* | i786-*-*)
3296 case $target_alias in
3298 target_cpu_default2=5
3301 target_cpu_default2=3
3308 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3311 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3314 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3317 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3320 target_cpu_default2="MASK_CPU_EV5"
3324 if test x$gas = xyes
3326 if test "$target_cpu_default2" = ""
3328 target_cpu_default2="MASK_GAS"
3330 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3335 case "x$with_cpu" in
3338 target_cpu_default2="TARGET_CPU_generic"
3341 # Distinguish cores, and major variants
3342 # arm7m doesn't exist, but D & I don't affect code
3343 xarm[236789] | xarm250 | xarm[67][01]0 \
3344 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3345 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3347 | xstrongarm | xstrongarm110 | xstrongarm1100)
3348 target_cpu_default2="TARGET_CPU_$with_cpu"
3352 echo "--with-cpu must be passed a value" 1>&2
3357 if test x$pass2done = xyes
3359 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3366 hppa*-*-* | parisc*-*-*)
3367 if test x$gas = xyes
3369 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3373 mips*-*-ecoff* | mips*-*-elf*)
3374 if test x$gas = xyes
3376 if test x$gnu_ld = xyes
3378 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3380 target_cpu_default2="MASK_GAS"
3385 if test x$gas = xyes
3387 target_cpu_default2="MASK_GAS"
3390 powerpc*-*-* | rs6000-*-*)
3391 case "x$with_cpu" in
3395 xcommon | xpower | xpower2 | xpowerpc | xrios \
3396 | xrios1 | xrios2 | xrsc | xrsc1 \
3397 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3398 | xec603e | x740 | x750 | x401 \
3399 | x403 | x505 | x801 | x821 | x823 | x860)
3400 target_cpu_default2="\\\"$with_cpu\\\""
3404 echo "--with-cpu must be passed a value" 1>&2
3409 if test x$pass2done = xyes
3411 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3418 case ".$with_cpu" in
3420 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3422 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3423 target_cpu_default2="TARGET_CPU_$with_cpu"
3426 if test x$pass2done = xyes
3428 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3436 if test "$target_cpu_default2" != ""
3438 if test "$target_cpu_default" != ""
3440 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3442 target_cpu_default=$target_cpu_default2
3446 # Save data on machine being used to compile GCC in build_xm_file.
3447 # Save data on host machine in vars host_xm_file and host_xmake_file.
3448 if test x$pass1done = x
3450 if test x$xm_file != x
3451 then build_xm_file=$xm_file
3453 build_xm_defines=$xm_defines
3454 build_install_headers_dir=$install_headers_dir
3455 build_exeext=$exeext
3458 if test x$pass2done = x
3460 if test x$xm_file != x
3461 then host_xm_file=$xm_file
3463 host_xm_defines=$xm_defines
3464 host_xmake_file="$xmake_file"
3465 host_truncate_target=$truncate_target
3466 host_extra_gcc_objs=$extra_gcc_objs
3467 host_extra_objs=$extra_host_objs