1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
4 #This file is part of GNU CC.
6 #GNU CC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 2, or (at your option)
11 #GNU CC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GNU CC; see the file COPYING. If not, write to
18 #the Free Software Foundation, 59 Temple Place - Suite 330,
19 #Boston, MA 02111-1307, USA.
21 # This is the GCC build-, host- and target-specific configuration file
22 # where a configuration type, as recognized and generated by config.bfd,
23 # is mapped to different system-specific definitions and files. This is
24 # invoked by the autoconf-generated configure script, called for build,
25 # host and target in that order, setting ${machine} to each. Putting it
26 # in a separate shell file lets us skip running autoconf when modifying
27 # build-, host- and target-specific information.
29 # This file switches on the shell variable ${machine}, and also uses the
30 # following shell variables:
32 # with_* Various variables as set by configure.
34 # enable_threads_flag Either the name, yes or no depending on whether
35 # threads support was requested.
37 # gas_flag Either yes or no depending on whether GNU as was
40 # gnu_ld_flag Either yes or no depending on whether GNU ld was
43 # This file sets the following shell variables for use by the
44 # autoconf-generated configure script:
46 # cpu_type The name of the cpu, if different from machine.
48 # tm_file A list of target macro files, if different from
49 # "$cpu_type/$cpu_type.h".
51 # tm_p_file Location of file with declarations for functions
54 # out_file The name of the machine description C support
55 # file, if different from "$cpu_type/$cpu_type.c".
57 # md_file The name of the machine-description file, if
58 # different from "$cpu_type/$cpu_type.md".
60 # tmake_file A list of machine-description-specific
61 # makefile-fragments, if different from
62 # "$cpu_type/t-$cpu_type".
64 # float_format Set to the symbolic name for the floating-point
65 # formats used for this machine, if different from
66 # "i64". Used to derive a header file name to
67 # include, like "vax" for "float-vax.h". If no such
68 # file is wanted, set to "none".
70 # extra_objs List of extra objects that should be linked into
71 # the compiler proper (cc1, cc1obj, cc1plus)
72 # depending on target.
74 # extra_headers List of used header files from the directory
77 # host_xmake_file List of host-specific makefile-fragments.
79 # extra_passes List of extra executables compiled for this target
80 # machine, used for compiling from source to object.
82 # extra_parts List of extra object files that should be compiled
83 # for this target machine.
85 # extra_programs Like extra_passes, but these are used when linking.
87 # host_extra_objs List of extra host-dependant objects that should
88 # be linked into the compiler proper.
90 # host_extra_gcc_objs List of extra host-dependant objects that should
91 # be linked into the gcc driver.
93 # c_target_objs List of extra target-dependant objects that be
94 # linked into the C compiler only.
96 # cxx_target_objs List of extra target-dependant objects that be
97 # linked into the C++ compiler only.
99 # build_xm_defines List of macros to define when compiling for the
102 # build_xm_file List of files to include when compiling for the
105 # host_xm_defines List of macros to define when compiling for the
108 # host_xm_file List of files to include when compiling for the
111 # xm_defines List of macros to define when compiling for the
114 # xm_file List of files to include when compiling for the
117 # use_collect2 Set to yes or no, depending on whether collect2
120 # target_cpu_default Set to override the default target model.
122 # build_install_headers_dir
123 # Target to use when installing header files.
125 # host_truncate_target
126 # Non-empty if the target name should be truncated
127 # on this host, due to filename length issues.
129 # gdb_needs_out_file_path
130 # Set to yes if gdb needs a dir command with
131 # `dirname $out_file`.
133 # build_exeext Set to the suffix, if the build machine requires
134 # executables to have a file name suffix.
136 # host_exeext Set to the suffix, if the host machine requires
137 # executables to have a file name suffix.
139 # thread_file Set to control which thread package to use.
141 # gas Set to yes or no depending on whether the target
142 # system normally uses GNU as.
144 # The following variables are used in each case-construct to build up the
145 # outgoing variables:
147 # xmake_file Makefile-fragment when this system is as a host,
148 # for host_xmake_file.
150 # extra_host_objs List of extra objects that should be linked into
151 # the compiler proper when this system is a host,
152 # for host_extra_objs.
154 # install_headers_dir Makefile-target for how the header file directory
155 # is installed, when this system is a build system,
156 # for build_install_headers_dir.
158 # truncate_target Non-empty if the target name should be truncated
159 # when this system is a host, due to filename length
160 # issues. For host_truncate_target.
162 # exeext The suffix for executables on this system.
164 # gnu_ld Set to yes or no depending on whether the target
165 # system normally uses GNU ld.
181 # Set this to force installation and use of collect2.
183 # Set this to override the default target model.
185 # Set this to control how the header file directory is installed.
186 install_headers_dir=install-headers-tar
187 # Set this if directory names should be truncated to 14 characters.
189 # Set this if gdb needs a dir command with `dirname $out_file`
190 gdb_needs_out_file_path=
191 # Set this if the build machine requires executables to have a
194 # Set this to control which thread package will be used.
196 # Reinitialize these from the flag values every loop pass, since some
197 # configure entries modify them.
199 gnu_ld="$gnu_ld_flag"
200 enable_threads=$enable_threads_flag
202 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
203 # updated in each machine entry.
205 cpu_type=`echo $machine | sed 's/-.*$//'`
225 hppa*-*-* | parisc*-*-*)
245 tm_file=${cpu_type}/${cpu_type}.h
246 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
248 tm_p_file=${cpu_type}/${cpu_type}-protos.h
250 if test -f ${srcdir}/config/${cpu_type}/x-${cpu_type}
252 xmake_file=${cpu_type}/x-${cpu_type}
254 # On a.out targets, we need to use collect2.
261 # Common parts for GNU/Linux, GNU/Hurd and OpenBSD systems.
267 # On the Hurd, the setup is just about the same on
268 # each different CPU. The specific machines that we
269 # support are matched above and just set $cpu_type.
271 tm_file="${cpu_type}/gnu.h"
272 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
273 # GNU always uses ELF.
275 # GNU tools are the only tools.
278 # These details are the same as for Linux.
280 # But here we need a little extra magic.
281 tmake_file="t-linux t-gnu"
284 tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}"
287 tm_file="svr4.h ${cpu_type}/${cpu_type}.h ${tm_file}"
292 tm_file=${cpu_type}/openbsd.h
293 tmake_file="t-libc-ok t-openbsd"
295 # don't depend on processor x-fragments as well
297 if test x$enable_threads = xyes; then
299 tmake_file="${tmake_file} t-openbsd-thread"
305 # Support site-specific machine types.
307 rest=`echo $machine | sed -e "s/$cpu_type-//"`
308 tm_file=${cpu_type}/$rest.h
309 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
310 then xm_file=${cpu_type}/xm-$rest.h
312 if test -f $srcdir/config/${cpu_type}/x-$rest
313 then xmake_file=${cpu_type}/x-$rest
315 if test -f $srcdir/config/${cpu_type}/t-$rest
316 then tmake_file=${cpu_type}/t-$rest
320 # 1750a is only supported as a target.
321 case "$build,$host" in 1750a*,* | *,1750a* )
322 echo "*** $machine is only supported as a target" >&2
326 a29k-*-bsd* | a29k-*-sym1*)
327 tm_file="${tm_file} a29k/unix.h"
329 xmake_file=a29k/x-unix
332 a29k-*-udi | a29k-*-coff)
333 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
334 tmake_file=a29k/t-a29kbare
338 tmake_file="a29k/t-a29kbare t-rtems"
339 if test x$enable_threads = xyes; then
344 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
345 tmake_file=a29k/t-vx29k
346 extra_parts="crtbegin.o crtend.o"
347 thread_file='vxworks'
349 a29k-*-*) # Default a29k environment.
353 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
355 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
356 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
358 # GAS + IEEE_CONFORMANT
359 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
362 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
364 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
365 if test x$enable_threads = xyes ; then
368 if test x$stabs = xyes ; then
369 tm_file="${tm_file} dbxcoff.h"
371 #prefix='$$INTERIX_ROOT'/usr/contrib
372 #local_prefix='$$INTERIX_ROOT'/usr/contrib
374 alpha*-*-linux*ecoff*)
376 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
377 target_cpu_default="MASK_GAS"
378 tmake_file="alpha/t-alpha alpha/t-ieee"
382 alpha*-*-linux*libc1*)
383 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
384 target_cpu_default="MASK_GAS"
385 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
386 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
388 if test x$enable_threads = xyes; then
393 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
394 target_cpu_default="MASK_GAS"
395 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
396 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
398 if test x$enable_threads = xyes; then
404 tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h"
405 target_cpu_default="MASK_GAS"
406 tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
407 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
410 case x${enable_threads} in
411 xyes | xpthreads | xposix)
413 tmake_file="${tmake_file} t-freebsd-thread"
419 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
420 target_cpu_default="MASK_GAS"
421 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
422 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
427 # default x-alpha is only appropriate for dec-osf.
428 target_cpu_default="MASK_GAS"
429 tmake_file="alpha/t-alpha alpha/t-ieee"
434 if test x$stabs = xyes
436 tm_file="${tm_file} dbx.h"
438 if test x$gas != xyes
440 extra_passes="mips-tfile mips-tdump"
443 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
444 xmake_file=alpha/x-osf
447 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
450 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
453 tm_file="${tm_file} alpha/osf.h"
454 tmake_file="$tmake_file alpha/t-osf4"
455 # Some versions of OSF4 (specifically X4.0-9 296.7) have
456 # a broken tar, so we use cpio instead.
457 install_headers_dir=install-headers-cpio
460 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
461 tmake_file="$tmake_file alpha/t-osf4"
466 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
467 target_cpu_default=MASK_SUPPORT_ARCH
473 tm_file="${tm_file} dbx.h alpha/vxworks.h"
474 tmake_file="alpha/t-alpha alpha/t-ieee"
477 extra_passes="mips-tfile mips-tdump"
480 thread_file='vxworks'
485 xm_file=alpha/xm-vms.h
486 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
489 tm_file=arm/rtems-elf.h
490 tmake_file="arm/t-arm-elf t-rtems"
491 if test x$enable_threads = xyes; then
494 extra_parts="crtinit.o crtfini.o"
497 extra_parts="crtinit.o crtfini.o"
499 arm-*-coff* | armel-*-coff*)
501 tmake_file=arm/t-arm-coff
505 tmake_file=arm/t-arm-coff
506 thread_file='vxworks'
508 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
509 tm_file=arm/riscix1-1.h
512 arm-*-riscix*) # Acorn RISC machine
515 tm_file=arm/rix-gas.h
519 xmake_file=arm/x-riscix
520 tmake_file=arm/t-riscix
523 arm-semi-aout | armel-semi-aout)
525 tmake_file=arm/t-semi
527 arm-semi-aof | armel-semi-aof)
528 tm_file=arm/semiaof.h
529 tmake_file=arm/t-semiaof
533 tmake_file="t-netbsd arm/t-netbsd"
536 arm*-*-linux*) # ARM GNU/Linux with ELF
538 tm_file="arm/linux-elf.h"
539 tmake_file="t-linux arm/t-linux"
540 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
542 case x${enable_threads} in
543 x | xyes | xpthreads | xposix)
548 arm*-*-uclinux*) # ARM ucLinux
549 tm_file=arm/uclinux-elf.h
550 tmake_file=arm/t-arm-elf
554 tmake_file=arm/t-arm-aout
557 tm_file=arm/ecos-elf.h
558 tmake_file=arm/t-arm-elf
561 tm_file=arm/unknown-elf.h
562 tmake_file=arm/t-arm-elf
565 tm_file=arm/conix-elf.h
566 tmake_file=arm/t-arm-elf
569 tm_file=arm/unknown-elf-oabi.h
570 tmake_file=arm/t-arm-elf
579 c1-convex-*) # Convex C1
583 c2-convex-*) # Convex C2
596 target_cpu_default=16
601 tmake_file="c4x/t-c4x t-rtems"
603 if test x$enable_threads = xyes; then
612 clipper-intergraph-clix*)
613 tm_file="${tm_file} svr3.h clipper/clix.h"
615 extra_headers=va-clipper.h
616 extra_parts="crtbegin.o crtend.o"
617 install_headers_dir=install-headers-cpio
628 tm_file="fr30/fr30.h"
629 tmake_file=fr30/t-fr30
630 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
633 tmake_file="h8300/t-h8300 t-rtems"
634 tm_file=h8300/rtems.h
635 if test x$enable_threads = xyes; then
643 hppa*64*-*-linux* | parisc*64*-*-linux*)
644 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
645 tm_file="pa/pa64-start.h ${tm_file} linux.h pa/pa-linux.h \
646 pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
647 tmake_file=pa/t-linux64
651 hppa*-*-linux* | parisc*-*-linux*)
652 target_cpu_default="MASK_PA_11"
653 tm_file="${tm_file} linux.h pa/pa-linux.h \
654 pa/pa32-regs.h pa/pa32-linux.h"
655 tmake_file=pa/t-linux
657 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
659 if test x$enable_threads = xyes; then
664 target_cpu_default="MASK_PA_11"
665 tmake_file=pa/t-openbsd
668 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
669 tmake_file="pa/t-pro t-rtems"
670 if test x$enable_threads = xyes; then
675 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
676 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
680 target_cpu_default="MASK_PA_11"
681 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
685 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
686 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
690 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
694 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
695 target_cpu_default="MASK_PA_11"
699 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
703 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
705 xmake_file=pa/x-pa-hpux
706 install_headers_dir=install-headers-cpio
709 hppa1.0-*-hpux8.0[0-2]*)
710 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
712 xmake_file=pa/x-pa-hpux
713 if test x$gas != xyes
715 tm_file="pa/pa-oldas.h ${tm_file}"
717 install_headers_dir=install-headers-cpio
720 hppa1.1-*-hpux8.0[0-2]*)
721 target_cpu_default="MASK_PA_11"
722 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
724 xmake_file=pa/x-pa-hpux
725 if test x$gas != xyes
727 tm_file="pa/pa-oldas.h ${tm_file}"
729 install_headers_dir=install-headers-cpio
733 target_cpu_default="MASK_PA_11"
734 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
736 xmake_file=pa/x-pa-hpux
737 install_headers_dir=install-headers-cpio
741 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
743 xmake_file=pa/x-pa-hpux
744 install_headers_dir=install-headers-cpio
747 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
748 target_cpu_default="MASK_PA_11"
749 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
752 xmake_file=pa/x-pa-hpux
754 if test x$enable_threads = x; then
755 enable_threads=$have_pthread_h
757 case x${enable_threads} in
759 tmake_file="${tmake_file} pa/t-dce-thr"
762 install_headers_dir=install-headers-cpio
766 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
769 xmake_file=pa/x-pa-hpux
771 if test x$enable_threads = x; then
772 enable_threads=$have_pthread_h
774 case x${enable_threads} in
776 tmake_file="${tmake_file} pa/t-dce-thr"
779 install_headers_dir=install-headers-cpio
784 xmake_file=pa/x-pa-hpux
786 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"
789 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
791 # if [ x$enable_threads = x ]; then
792 # enable_threads=$have_pthread_h
794 # if [ x$enable_threads = xyes ]; then
796 # tmake_file="${tmake_file} pa/t-dce-thr"
798 install_headers_dir=install-headers-cpio
801 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
802 target_cpu_default="MASK_PA_11"
803 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
806 xmake_file=pa/x-pa-hpux
808 # if test x$enable_threads = x; then
809 # enable_threads=$have_pthread_h
811 # if test x$enable_threads = xyes; then
813 # tmake_file="${tmake_file} pa/t-dce-thr"
815 install_headers_dir=install-headers-cpio
819 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
822 xmake_file=pa/x-pa-hpux
823 # if test x$enable_threads = x; then
824 # enable_threads=$have_pthread_h
826 # if test x$enable_threads = xyes; then
828 # tmake_file="${tmake_file} pa/t-dce-thr"
830 install_headers_dir=install-headers-cpio
833 hppa1.1-*-hpux* | hppa2*-*-hpux*)
834 target_cpu_default="MASK_PA_11"
835 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
837 xmake_file=pa/x-pa-hpux
838 install_headers_dir=install-headers-cpio
842 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
844 xmake_file=pa/x-pa-hpux
845 install_headers_dir=install-headers-cpio
848 hppa1.1-*-hiux* | hppa2*-*-hiux*)
849 target_cpu_default="MASK_PA_11"
850 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
852 xmake_file=pa/x-pa-hpux
853 install_headers_dir=install-headers-cpio
857 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
859 xmake_file=pa/x-pa-hpux
860 install_headers_dir=install-headers-cpio
864 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
865 target_cpu_default="MASK_PA_11"
869 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
870 xmake_file=pa/x-pa-mpeix
871 echo "You must use gas. Assuming it is already installed."
873 install_headers_dir=install-headers-tar
876 i370-*-opened*) # IBM 360/370/390 Architecture
877 xm_defines='USG FATAL_EXIT_CODE=12'
883 xm_defines='USG FATAL_EXIT_CODE=12'
885 tmake_file=i370/t-mvs
889 tm_file="i370/linux.h ${tm_file}"
890 tmake_file="t-linux i370/t-linux"
892 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
893 # extra_parts="crtbegin.o crtend.o"
897 if test x$enable_threads = xyes; then
901 i[34567]86-*-chorusos*)
902 xm_defines='USG POSIX'
903 tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h i386/chorus.h"
904 tmake_file=i386/t-i386elf
906 case x${enable_threads} in
907 xyes | xpthreads | xposix)
913 xm_defines='USG POSIX'
914 tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h"
915 tmake_file=i386/t-i386elf
918 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
921 tm_file=i386/aix386.h
922 extra_parts="crtbegin.o crtend.o"
923 tmake_file=i386/t-crtstuff
925 tm_file=i386/aix386ng.h
929 xmake_file=i386/x-aix
931 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
932 xm_defines="USG POSIX SMALL_ARG_MAX"
933 if test x$stabs = xyes -a x$gas = xyes
935 tm_file=i386/sysv4gdb.h
939 extra_parts="crtbegin.o crtend.o"
940 tmake_file=i386/t-crtpic
944 tmake_file=i386/t-next
945 extra_objs=nextstep.o
946 extra_parts="crtbegin.o crtend.o"
947 if test x$enable_threads = xyes; then
951 i[34567]86-*-netware) # Intel 80386's running netware
952 tm_file=i386/netware.h
953 tmake_file=i386/t-netware
955 i[34567]86-sequent-bsd*) # 80386 from Sequent
959 tm_file=i386/seq-gas.h
961 tm_file=i386/sequent.h
964 i[34567]86-sequent-ptx1*)
966 tm_file=i386/seq-sysv3.h
967 tmake_file=i386/t-crtstuff
968 extra_parts="crtbegin.o crtend.o"
969 install_headers_dir=install-headers-cpio
971 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
973 tm_file=i386/seq2-sysv3.h
974 tmake_file=i386/t-crtstuff
975 extra_parts="crtbegin.o crtend.o"
976 install_headers_dir=install-headers-cpio
978 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
981 tm_file="${tm_file} usegas.h"
983 xm_defines="USG POSIX SMALL_ARG_MAX"
985 tm_file=i386/ptx4-i.h
987 extra_parts="crtbegin.o crtend.o"
988 install_headers_dir=install-headers-cpio
990 i386-sun-sunos*) # Sun i386 roadrunner
995 i[34567]86-wrs-vxworks*)
996 tm_file=i386/vxi386.h
997 tmake_file=i386/t-i386bare
998 thread_file='vxworks'
1001 tm_file=i386/i386-aout.h
1002 tmake_file=i386/t-i386bare
1004 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1006 tmake_file='i386/t-beos i386/t-crtpic'
1007 tm_file=i386/beos-elf.h
1008 xmake_file=i386/x-beos
1009 extra_parts='crtbegin.o crtend.o'
1011 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1012 tm_file=i386/bsd386.h
1013 # tmake_file=t-libc-ok
1016 tm_file=i386/386bsd.h
1017 # tmake_file=t-libc-ok
1018 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1021 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1022 tm_file="i386/freebsd-aout.h i386/perform.h"
1023 tmake_file=t-freebsd
1025 i[34567]86-*-freebsd*)
1026 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/i386afe.h i386/freebsd.h i386/perform.h"
1027 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1028 tmake_file=t-freebsd
1032 case x${enable_threads} in
1033 xyes | xpthreads | xposix)
1035 tmake_file="${tmake_file} t-freebsd-thread"
1039 i[34567]86-*-netbsd*)
1040 tm_file=i386/netbsd.h
1044 i[34567]86-*-openbsd*)
1045 # we need collect2 until our bug is fixed...
1049 tm_file=i386/i386-coff.h
1050 tmake_file=i386/t-i386bare
1052 i[34567]86-*-isc*) # 80386 running ISC system
1054 if test x$gas = xyes -a x$stabs = xyes
1056 tm_file=i386/iscdbx.h
1057 tmake_file=i386/t-svr3dbx
1058 extra_parts="svr3.ifile svr3z.ifile"
1060 tm_file=i386/isccoff.h
1061 tmake_file=i386/t-crtstuff
1062 extra_parts="crtbegin.o crtend.o"
1064 tmake_file="$tmake_file i386/t-i386bare"
1065 install_headers_dir=install-headers-cpio
1067 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1068 # with a.out format using
1070 tmake_file="t-linux-aout i386/t-crtstuff"
1071 tm_file=i386/linux-oldld.h
1075 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1077 tmake_file="t-linux-aout i386/t-crtstuff"
1078 tm_file=i386/linux-aout.h
1082 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1083 # with ELF format using the
1084 # GNU/Linux C library 5
1086 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h"
1087 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1088 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1091 if test x$enable_threads = xyes; then
1092 thread_file='single'
1095 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1096 # with ELF format using glibc 2
1097 # aka GNU/Linux C library 6
1099 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h"
1100 tmake_file="t-linux i386/t-crtstuff"
1101 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1104 if test x$enable_threads = xyes; then
1111 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1112 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1115 i[34567]86-pc-msdosdjgpp*)
1116 xm_file=i386/xm-djgpp.h
1117 tm_file=i386/djgpp.h
1118 tmake_file=i386/t-djgpp
1119 xmake_file=i386/x-djgpp
1124 case $host in *pc-msdosdjgpp*)
1129 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1130 tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h i386/moss.h"
1131 tmake_file=t-libc-ok
1135 i[34567]86-*-lynxos*)
1136 if test x$gas = xyes
1140 tm_file=i386/lynx-ng.h
1142 tmake_file=i386/t-i386bare
1146 # tmake_file=t-libc-ok
1149 i[34567]86-*-osfrose*) # 386 using OSF/rose
1150 if test x$elf = xyes
1152 tm_file=i386/osfelf.h
1155 tm_file=i386/osfrose.h
1158 xmake_file=i386/x-osfrose
1159 tmake_file=i386/t-osf
1160 extra_objs=halfpic.o
1162 i[34567]86-go32-rtems*)
1164 tm_file=i386/go32-rtems.h
1166 if test x$enable_threads = xyes; then
1170 i[34567]86-*-rtemscoff*)
1172 tm_file=i386/rtems.h
1173 tmake_file="i386/t-i386bare t-rtems"
1174 if test x$enable_threads = xyes; then
1178 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1180 tm_file=i386/rtemself.h
1181 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1182 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1183 if test x$enable_threads = xyes; then
1187 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1189 xmake_file=i386/x-sco5
1190 install_headers_dir=install-headers-cpio
1192 if test x$gas = xyes
1194 tm_file="usegas.h ${tm_file}"
1195 tmake_file=i386/t-sco5gas
1197 tmake_file=i386/t-sco5
1199 tmake_file="$tmake_file i386/t-i386bare"
1200 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1202 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1203 xm_defines="USG BROKEN_LDEXP SMALL_ARG_MAX"
1204 xmake_file=i386/x-sco4
1205 install_headers_dir=install-headers-cpio
1206 if test x$stabs = xyes
1208 tm_file=i386/sco4dbx.h
1209 tmake_file=i386/t-svr3dbx
1210 extra_parts="svr3.ifile svr3z.rfile"
1213 tmake_file=i386/t-crtstuff
1214 extra_parts="crtbegin.o crtend.o"
1216 tmake_file="$tmake_file i386/t-i386bare"
1217 # The default EAFS filesystem supports long file names.
1218 # Truncating the target makes $host != $target which
1219 # makes gcc think it is doing a cross-compile.
1220 # truncate_target=yes
1222 i[34567]86-*-sco*) # 80386 running SCO system
1223 install_headers_dir=install-headers-cpio
1224 if test x$stabs = xyes
1226 tm_file=i386/scodbx.h
1227 tmake_file=i386/t-svr3dbx
1228 extra_parts="svr3.ifile svr3z.rfile"
1231 extra_parts="crtbegin.o crtend.o"
1232 tmake_file=i386/t-crtstuff
1234 tmake_file="$tmake_file i386/t-i386bare"
1237 i[34567]86-*-solaris2*)
1238 xm_defines="USG POSIX SMALL_ARG_MAX"
1240 if test x$gas = xyes; then
1241 # Only needed if gas does not support -s
1242 tm_file="i386/sol2gas.h ${tm_file}"
1244 tmake_file="i386/t-i386bare i386/t-sol2"
1245 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1247 if test x${enable_threads} = x; then
1248 enable_threads=$have_pthread_h
1249 if test x${enable_threads} = x; then
1250 enable_threads=$have_thread_h
1253 if test x${enable_threads} = xyes; then
1254 if test x${have_pthread_h} = xyes; then
1257 thread_file='solaris'
1261 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1262 xm_defines="USG POSIX"
1263 tm_file=i386/sysv5.h
1264 if test x$stabs = xyes
1266 tm_file="${tm_file} dbx.h"
1268 tmake_file="i386/t-i386bare i386/t-crtpic"
1270 extra_parts="crtbegin.o crtend.o"
1271 if test x$enable_threads = xyes; then
1275 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1276 xm_defines="USG POSIX SMALL_ARG_MAX"
1277 tm_file=i386/sysv4.h
1278 if test x$stabs = xyes
1280 tm_file="${tm_file} dbx.h"
1282 tmake_file="i386/t-i386bare i386/t-crtpic"
1284 extra_parts="crtbegin.o crtend.o"
1286 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1287 xm_defines="USG POSIX"
1289 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1291 extra_parts="crtbegin.o crtend.o"
1292 install_headers_dir=install-headers-cpio
1294 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1296 xm_file=i386/xm-osf1elf.h
1297 xm_defines='USG POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1298 if test x$stabs = xyes
1300 tm_file=i386/osf1elfgdb.h
1302 tm_file=i386/osf1elf.h
1304 tmake_file=i386/t-osf1elf
1305 xmake_file=i386/x-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
1332 tmake_file=i386/t-vsta
1336 xm_file=i386/xm-cygwin.h
1338 tmake_file=i386/t-cygwin
1339 tm_file=i386/win32.h
1340 xmake_file=i386/x-cygwin
1342 if test x$enable_threads = xyes; then
1347 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1349 xm_file=i386/xm-cygwin.h
1351 tmake_file=i386/t-cygwin
1352 tm_file=i386/cygwin.h
1353 xmake_file=i386/x-cygwin
1355 if test x$enable_threads = xyes; then
1360 i[34567]86-*-mingw32*)
1361 tm_file=i386/mingw32.h
1364 xm_file=i386/xm-mingw32.h
1365 tmake_file="i386/t-cygwin i386/t-mingw32"
1367 xmake_file=i386/x-cygwin
1368 if test x$enable_threads = xyes; then
1375 *minwg32crt* | *mingw32*)
1376 tm_file="${tm_file} i386/crtdll.h"
1382 tmake_file="i386/t-cygwin i386/t-uwin"
1384 xmake_file=i386/x-cygwin
1385 if test x$enable_threads = xyes; then
1390 i[34567]86-*-interix*)
1391 tm_file="i386/i386-interix.h interix.h"
1392 xm_file="i386/xm-i386-interix.h xm-interix.h"
1394 tmake_file="i386/t-interix"
1395 extra_objs=interix.o
1396 xmake_file=x-interix
1397 if test x$enable_threads = xyes ; then
1400 if test x$stabs = xyes ; then
1401 tm_file="${tm_file} dbxcoff.h"
1404 i[34567]86-dg-dgux*)
1405 xm_defines="USG POSIX"
1406 out_file=i386/dgux.c
1408 tmake_file=i386/t-dgux
1409 xmake_file=i386/x-dgux
1410 install_headers_dir=install-headers-cpio
1412 i860-alliant-*) # Alliant FX/2800
1413 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1414 tmake_file=i860/t-fx2800
1415 extra_parts="crtbegin.o crtend.o"
1418 tm_file="${tm_file} i860/bsd.h"
1419 if test x$gas = xyes
1421 tm_file="${tm_file} i860/bsd-gas.h"
1426 tm_file="${tm_file} i860/mach.h"
1427 tmake_file=t-libc-ok
1429 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1430 tm_file="${tm_file} svr3.h i860/paragon.h"
1434 tm_file="${tm_file} svr3.h i860/sysv3.h"
1436 extra_parts="crtbegin.o crtend.o"
1439 tm_file="${tm_file} svr4.h i860/sysv4.h"
1442 extra_parts="crtbegin.o crtend.o"
1444 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1445 tm_file="${tm_file} i960/vx960.h"
1446 tmake_file=i960/t-vxworks960
1448 thread_file='vxworks'
1449 c_target_objs="i960-c.o"
1450 cxx_target_objs="i960-c.o"
1452 i960-wrs-vxworks5* | i960-wrs-vxworks)
1453 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1454 tmake_file=i960/t-vxworks960
1456 thread_file='vxworks'
1457 c_target_objs="i960-c.o"
1458 cxx_target_objs="i960-c.o"
1461 tm_file="${tm_file} i960/vx960.h"
1462 tmake_file=i960/t-vxworks960
1464 thread_file='vxworks'
1465 c_target_objs="i960-c.o"
1466 cxx_target_objs="i960-c.o"
1469 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1470 tmake_file=i960/t-960bare
1472 c_target_objs="i960-c.o"
1473 cxx_target_objs="i960-c.o"
1476 tmake_file="i960/t-960bare t-rtems"
1477 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1479 if test x$enable_threads = xyes; then
1482 c_target_objs="i960-c.o"
1483 cxx_target_objs="i960-c.o"
1485 i960-*-*) # Default i960 environment.
1487 c_target_objs="i960-c.o"
1488 cxx_target_objs="i960-c.o"
1492 tmake_file="ia64/t-ia64"
1493 target_cpu_default="0"
1494 if test x$gas = xyes
1496 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1498 if test x$gnu_ld = xyes
1500 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1505 tm_file=ia64/linux.h
1506 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
1507 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1508 if test x$enable_threads = xyes; then
1514 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h"
1515 tmake_file="ia64/t-ia64 ia64/t-hpux"
1516 target_cpu_default="MASK_GNU_AS"
1517 if test x$enable_threads = xyes; then
1523 extra_parts="crtinit.o crtfini.o"
1525 # m68hc11 and m68hc12 share the same machine description.
1526 m68hc11-*-*|m6811-*-*)
1527 tm_file="elfos.h m68hc11/m68hc11.h"
1528 tm_p_file="m68hc11/m68hc11-protos.h"
1529 md_file="m68hc11/m68hc11.md"
1530 out_file="m68hc11/m68hc11.c"
1531 tmake_file="m68hc11/t-m68hc11-gas"
1533 m68hc12-*-*|m6812-*-*)
1534 tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h"
1535 tm_p_file="m68hc11/m68hc11-protos.h"
1536 md_file="m68hc11/m68hc11.md"
1537 out_file="m68hc11/m68hc11.c"
1538 tmake_file="m68hc11/t-m68hc11-gas"
1540 m68000-convergent-sysv*)
1544 extra_headers=math-68881.h
1546 m68000-hp-bsd*) # HP 9000/200 running BSD
1547 tm_file=m68k/hp2bsd.h
1549 extra_headers=math-68881.h
1551 m68000-hp-hpux*) # HP 9000 series 300
1553 if test x$gas = xyes
1555 xmake_file=m68k/x-hp320g
1556 tm_file=m68k/hp310g.h
1558 xmake_file=m68k/x-hp320
1559 tm_file=m68k/hp310.h
1561 install_headers_dir=install-headers-cpio
1563 extra_headers=math-68881.h
1568 extra_headers=math-68881.h
1571 tm_file=m68k/sun2o4.h
1573 extra_headers=math-68881.h
1577 if test x$gas = xyes
1584 extra_headers=math-68881.h
1586 m68k-apple-aux*) # Apple Macintosh running A/UX
1587 xm_defines="USG AUX"
1588 tmake_file=m68k/t-aux
1589 install_headers_dir=install-headers-cpio
1590 extra_headers=math-68881.h
1591 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1593 if test "$gnu_ld" = yes
1595 tm_file="${tm_file} m68k/auxgld.h"
1597 tm_file="${tm_file} m68k/auxld.h"
1599 if test "$gas" = yes
1601 tm_file="${tm_file} m68k/auxgas.h"
1603 tm_file="${tm_file} m68k/auxas.h"
1605 tm_file="${tm_file} m68k/a-ux.h"
1609 tm_file=m68k/apollo68.h
1611 extra_headers=math-68881.h
1614 m68k-altos-sysv*) # Altos 3068
1615 if test x$gas = xyes
1617 tm_file=m68k/altos3068.h
1620 echo "The Altos is supported only with the GNU assembler" 1>&2
1623 extra_headers=math-68881.h
1625 m68k-bull-sysv*) # Bull DPX/2
1626 if test x$gas = xyes
1628 if test x$stabs = xyes
1630 tm_file=m68k/dpx2cdbx.h
1632 tm_file=m68k/dpx2g.h
1638 xmake_file=m68k/x-dpx2
1640 extra_headers=math-68881.h
1642 m68k-atari-sysv4*) # Atari variant of V.4.
1643 tm_file=m68k/atari.h
1646 extra_parts="crtbegin.o crtend.o"
1647 extra_headers=math-68881.h
1650 m68k-motorola-sysv*)
1651 tm_file=m68k/mot3300.h
1653 if test x$gas = xyes
1655 if test x$gnu_ld = xyes
1657 tmake_file=m68k/t-mot3300-gald
1659 tmake_file=m68k/t-mot3300-gas
1663 if test x$gnu_ld = xyes
1665 tmake_file=m68k/t-mot3300-gld
1667 tmake_file=m68k/t-mot3300
1671 gdb_needs_out_file_path=yes
1672 extra_parts="crt0.o mcrt0.o"
1673 extra_headers=math-68881.h
1676 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1677 tm_file=m68k/tower-as.h
1679 extra_parts="crtbegin.o crtend.o"
1680 extra_headers=math-68881.h
1683 tm_file=m68k/plexus.h
1686 extra_headers=math-68881.h
1691 extra_headers=math-68881.h
1694 xm_defines="USG unos"
1697 extra_headers=math-68881.h
1699 m68k-cbm-sysv4*) # Commodore variant of V.4.
1703 extra_parts="crtbegin.o crtend.o"
1704 extra_headers=math-68881.h
1708 tm_file=m68k/ccur-GAS.h
1709 extra_headers=math-68881.h
1713 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1714 tm_file=m68k/hp3bsd44.h
1716 extra_headers=math-68881.h
1719 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1720 tm_file=m68k/hp3bsd.h
1722 extra_headers=math-68881.h
1726 if test x$with_fp = xno
1728 tm_file=m68k/isi-nfp.h
1734 extra_headers=math-68881.h
1736 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1738 if test x$gas = xyes
1740 xmake_file=m68k/x-hp320g
1741 tm_file=m68k/hp320g.h
1743 xmake_file=m68k/x-hp320
1744 tm_file=m68k/hpux7.h
1746 install_headers_dir=install-headers-cpio
1748 extra_headers=math-68881.h
1751 m68k-hp-hpux*) # HP 9000 series 300
1753 if test x$gas = xyes
1755 xmake_file=m68k/x-hp320g
1756 tm_file=m68k/hp320g.h
1758 xmake_file=m68k/x-hp320
1759 tm_file=m68k/hp320.h
1761 install_headers_dir=install-headers-cpio
1763 extra_headers=math-68881.h
1767 tm_file=m68k/sun3mach.h
1769 extra_headers=math-68881.h
1773 if test x$gas = xyes
1775 tm_file=m68k/news3gas.h
1777 tm_file=m68k/news3.h
1780 extra_headers=math-68881.h
1783 m68k-sony-bsd* | m68k-sony-newsos*)
1784 if test x$gas = xyes
1786 tm_file=m68k/newsgas.h
1791 extra_headers=math-68881.h
1794 m68k-next-nextstep2*)
1795 tm_file=m68k/next21.h
1796 tmake_file=m68k/t-next
1797 xmake_file=m68k/x-next
1798 extra_objs=nextstep.o
1799 extra_headers=math-68881.h
1803 m68k-next-nextstep[34]*)
1805 tmake_file=m68k/t-next
1806 xmake_file=m68k/x-next
1807 extra_objs=nextstep.o
1808 extra_parts="crtbegin.o crtend.o"
1809 extra_headers=math-68881.h
1811 if test x$enable_threads = xyes; then
1816 if test x$with_fp = xno
1818 tm_file=m68k/sun3n3.h
1820 tm_file=m68k/sun3o3.h
1824 extra_headers=math-68881.h
1826 m68k-sun-sunos*) # For SunOS 4 (the default).
1827 if test x$with_fp = xno
1829 tm_file=m68k/sun3n.h
1835 extra_headers=math-68881.h
1838 tm_file=m68k/vxm68k.h
1839 tmake_file=m68k/t-vxworks68
1840 extra_headers=math-68881.h
1841 thread_file='vxworks'
1845 tmake_file=m68k/t-m68kbare
1846 tm_file="m68k/m68k-aout.h libgloss.h"
1847 extra_headers=math-68881.h
1851 tmake_file=m68k/t-m68kbare
1852 tm_file="m68k/m68k-coff.h dbx.h"
1853 extra_headers=math-68881.h
1856 m68020-*-elf* | m68k-*-elf*)
1857 tm_file="m68k/m68020-elf.h"
1859 tmake_file=m68k/t-m68kelf
1860 header_files=math-68881.h
1863 if test x$gas = xyes
1867 tm_file=m68k/lynx-ng.h
1869 tmake_file=m68k/t-lynx
1870 extra_headers=math-68881.h
1874 tm_file=m68k/netbsd.h
1881 # we need collect2 until our bug is fixed...
1884 m68k-*-sysv3*) # Motorola m68k's running system V.3
1886 extra_parts="crtbegin.o crtend.o"
1887 extra_headers=math-68881.h
1890 m68k-*-sysv4*) # Motorola m68k's running system V.4
1891 tm_file=m68k/m68kv4.h
1894 extra_parts="crtbegin.o crtend.o"
1895 extra_headers=math-68881.h
1898 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1901 tm_file=m68k/linux-aout.h
1902 tmake_file="t-linux-aout m68k/t-linux-aout"
1903 extra_headers=math-68881.h
1907 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1908 # with ELF format using the
1909 # GNU/Linux C library 5
1911 tm_file=m68k/linux.h
1912 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1913 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1914 extra_headers=math-68881.h
1918 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1919 # with ELF format using glibc 2
1920 # aka the GNU/Linux C library 6.
1922 tm_file=m68k/linux.h
1923 tmake_file="t-linux m68k/t-linux"
1924 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1925 extra_headers=math-68881.h
1928 if test x$enable_threads = xyes; then
1933 tmake_file=m68k/t-m68kbare
1934 tm_file=m68k/m68k-psos.h
1935 extra_headers=math-68881.h
1939 tmake_file="m68k/t-m68kbare t-rtems"
1940 tm_file=m68k/rtems.h
1941 extra_headers=math-68881.h
1943 if test x$enable_threads = xyes; then
1947 m68k-*-rtemself*|m68k-*-rtems*)
1948 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1949 tm_file=m68k/rtemself.h
1950 extra_headers=math-68881.h
1952 if test x$enable_threads = xyes; then
1960 tm_file=m88k/dguxbcs.h
1961 tmake_file=m88k/t-dguxbcs
1965 tmake_file=m88k/t-dgux
1968 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1969 xmake_file=m88k/x-dgux
1970 if test x$gas = xyes
1972 tmake_file=m88k/t-dgux-gas
1975 m88k-dolphin-sysv3*)
1977 tm_file=m88k/dolph.h
1978 extra_parts="crtbegin.o crtend.o"
1979 xmake_file=m88k/x-dolph
1980 if test x$gas = xyes
1982 tmake_file=m88k/t-m88k-gas
1985 m88k-tektronix-sysv3)
1987 tm_file=m88k/tekXD88.h
1988 extra_parts="crtbegin.o crtend.o"
1989 xmake_file=m88k/x-tekXD88
1990 if test x$gas = xyes
1992 tmake_file=m88k/t-m88k-gas
1997 tm_file=m88k/m88k-aout.h
2001 tm_file=m88k/m88k-coff.h
2002 tmake_file=m88k/t-bug
2006 extra_parts="crtbegin.o crtend.o"
2007 if test x$gas = xyes
2009 tmake_file=m88k/t-luna-gas
2011 tmake_file=m88k/t-luna
2015 tmake_file="${tmake_file} m88k/t-luna-gas"
2016 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2020 tm_file=m88k/sysv3.h
2021 extra_parts="crtbegin.o crtend.o"
2022 if test x$gas = xyes
2024 tmake_file=m88k/t-m88k-gas
2029 tm_file=m88k/sysv4.h
2030 extra_parts="crtbegin.o crtend.o"
2031 tmake_file=m88k/t-sysv4
2034 tm_file=mcore/mcore-elf.h
2035 tmake_file=mcore/t-mcore
2038 tm_file=mcore/mcore-pe.h
2039 tmake_file=mcore/t-mcore-pe
2041 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2042 if test "x$gnu_ld" = xyes
2044 tm_file="mips/iris6.h mips/iris6gld.h"
2046 tm_file=mips/iris6.h
2048 tmake_file=mips/t-iris6
2050 xmake_file=mips/x-iris6
2051 # if test x$enable_threads = xyes; then
2052 # thread_file='irix'
2056 tm_file="mips/elf.h mips/vxworks.h"
2057 tmake_file=mips/t-ecoff
2060 extra_parts="crtbegin.o crtend.o"
2061 thread_file='vxworks'
2063 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2064 tm_file="mips/iris6.h mips/cross64.h"
2066 xm_file=mips/xm-iris5.h
2067 xmake_file=mips/x-iris
2068 tmake_file=mips/t-cross64
2069 # See comment in mips/iris[56].h files.
2071 # if test x$enable_threads = xyes; then
2072 # thread_file='irix'
2076 if test x$gas = xyes
2078 if test x$stabs = xyes
2080 tm_file=mips/iris5gdb.h
2082 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2085 tm_file=mips/sni-svr4.h
2088 tmake_file=mips/t-mips-gas
2089 if test x$gnu_ld != xyes
2094 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2095 if test x$gas = xyes
2097 tm_file="mips/iris5.h mips/iris5gas.h"
2098 if test x$stabs = xyes
2100 tm_file="${tm_file} dbx.h"
2103 tm_file=mips/iris5.h
2106 xm_file=mips/xm-iris5.h
2107 xmake_file=mips/x-iris
2108 # mips-tfile doesn't work yet
2109 tmake_file=mips/t-mips-gas
2110 # See comment in mips/iris5.h file.
2112 # if test x$enable_threads = xyes; then
2113 # thread_file='irix'
2116 mips-sgi-irix4loser*) # Mostly like a MIPS.
2117 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2118 if test x$stabs = xyes; then
2119 tm_file="${tm_file} dbx.h"
2122 xmake_file=mips/x-iris
2123 if test x$gas = xyes
2125 tmake_file=mips/t-mips-gas
2127 extra_passes="mips-tfile mips-tdump"
2129 if test x$gnu_ld != xyes
2133 # if test x$enable_threads = xyes; then
2134 # thread_file='irix'
2137 mips-sgi-irix4*) # Mostly like a MIPS.
2138 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2139 if test x$stabs = xyes; then
2140 tm_file="${tm_file} dbx.h"
2143 xmake_file=mips/x-iris
2144 if test x$gas = xyes
2146 tmake_file=mips/t-mips-gas
2148 extra_passes="mips-tfile mips-tdump"
2150 if test x$gnu_ld != xyes
2154 # if test x$enable_threads = xyes; then
2155 # thread_file='irix'
2158 mips-sgi-*) # Mostly like a MIPS.
2159 tm_file="mips/iris3.h ${tm_file}"
2160 if test x$stabs = xyes; then
2161 tm_file="${tm_file} dbx.h"
2164 xmake_file=mips/x-iris3
2165 if test x$gas = xyes
2167 tmake_file=mips/t-mips-gas
2169 extra_passes="mips-tfile mips-tdump"
2171 if test x$gnu_ld != xyes
2176 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2177 tm_file="mips/osfrose.h ${tm_file}"
2178 xmake_file=mips/x-osfrose
2179 tmake_file=mips/t-osfrose
2180 extra_objs=halfpic.o
2183 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2184 tm_file=mips/dec-osf1.h
2185 if test x$stabs = xyes; then
2186 tm_file="${tm_file} dbx.h"
2188 if test x$gas = xyes
2190 tmake_file=mips/t-mips-gas
2192 tmake_file=mips/t-ultrix
2193 extra_passes="mips-tfile mips-tdump"
2195 if test x$gnu_ld != xyes
2200 mips-dec-bsd*) # Decstation running 4.4 BSD
2201 tm_file=mips/dec-bsd.h
2202 if test x$gas = xyes
2204 tmake_file=mips/t-mips-gas
2206 tmake_file=mips/t-ultrix
2207 extra_passes="mips-tfile mips-tdump"
2209 if test x$gnu_ld != xyes
2214 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2215 tm_file=mips/netbsd.h
2216 # On NetBSD, the headers are already okay, except for math.h.
2219 mips*-*-linux*) # Linux MIPS, either endian.
2222 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2223 *) tm_file="mips/elf.h mips/linux.h" ;;
2226 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2229 if test x$enable_threads = xyes; then
2233 mips*el-*-openbsd*) # mips little endian
2234 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2236 mips*-*-openbsd*) # mips big endian
2237 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2238 tm_file="mips/openbsd-be.h ${tm_file}"
2240 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2241 tm_file="mips/news4.h ${tm_file}"
2242 if test x$stabs = xyes; then
2243 tm_file="${tm_file} dbx.h"
2245 if test x$gas = xyes
2247 tmake_file=mips/t-mips-gas
2249 extra_passes="mips-tfile mips-tdump"
2251 if test x$gnu_ld != xyes
2255 xmake_file=mips/x-sony
2257 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2258 # That is based on svr4.
2259 # t-svr4 is not right because this system doesn't use ELF.
2260 tm_file="mips/news5.h ${tm_file}"
2261 if test x$stabs = xyes; then
2262 tm_file="${tm_file} dbx.h"
2265 if test x$gas = xyes
2267 tmake_file=mips/t-mips-gas
2269 extra_passes="mips-tfile mips-tdump"
2271 if test x$gnu_ld != xyes
2276 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2277 tm_file="mips/svr4-5.h mips/svr4-t.h"
2278 if test x$stabs = xyes; then
2279 tm_file="${tm_file} dbx.h"
2282 xmake_file=mips/x-sysv
2283 if test x$gas = xyes
2285 tmake_file=mips/t-mips-gas
2286 extra_parts="crtbegin.o crtend.o"
2288 tmake_file=mips/t-mips
2289 extra_passes="mips-tfile mips-tdump"
2291 if test x$gnu_ld != xyes
2296 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2297 tm_file="mips/ultrix.h ${tm_file}"
2298 if test x$stabs = xyes; then
2299 tm_file="${tm_file} dbx.h"
2301 if test x$gas = xyes
2303 tmake_file=mips/t-mips-gas
2305 tmake_file=mips/t-ultrix
2306 extra_passes="mips-tfile mips-tdump"
2308 if test x$gnu_ld != xyes
2313 mips-*-riscos[56789]bsd*)
2314 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2315 if test x$stabs = xyes; then
2316 tm_file="${tm_file} dbx.h"
2318 if test x$gas = xyes
2320 tmake_file=mips/t-bsd-gas
2322 tmake_file=mips/t-bsd
2323 extra_passes="mips-tfile mips-tdump"
2325 if test x$gnu_ld != xyes
2330 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2331 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2332 if test x$stabs = xyes; then
2333 tm_file="${tm_file} dbx.h"
2335 if test x$gas = xyes
2337 tmake_file=mips/t-bsd-gas
2339 tmake_file=mips/t-bsd
2340 extra_passes="mips-tfile mips-tdump"
2342 if test x$gnu_ld != xyes
2347 mips-*-riscos[56789]sysv4*)
2348 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2349 if test x$stabs = xyes; then
2350 tm_file="${tm_file} dbx.h"
2352 xmake_file=mips/x-sysv
2353 if test x$gas = xyes
2355 tmake_file=mips/t-svr4-gas
2357 tmake_file=mips/t-svr4
2358 extra_passes="mips-tfile mips-tdump"
2360 if test x$gnu_ld != xyes
2365 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2366 tm_file="mips/svr4-4.h ${tm_file}"
2367 if test x$stabs = xyes; then
2368 tm_file="${tm_file} dbx.h"
2371 xmake_file=mips/x-sysv
2372 if test x$gas = xyes
2374 tmake_file=mips/t-svr4-gas
2376 tmake_file=mips/t-svr4
2377 extra_passes="mips-tfile mips-tdump"
2379 if test x$gnu_ld != xyes
2384 mips-*-riscos[56789]sysv*)
2385 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2386 if test x$stabs = xyes; then
2387 tm_file="${tm_file} dbx.h"
2390 xmake_file=mips/x-sysv
2391 if test x$gas = xyes
2393 tmake_file=mips/t-svr3-gas
2395 tmake_file=mips/t-svr3
2396 extra_passes="mips-tfile mips-tdump"
2398 if test x$gnu_ld != xyes
2403 mips-*-sysv* | mips-*-riscos*sysv*)
2404 tm_file="mips/svr3-4.h ${tm_file}"
2405 if test x$stabs = xyes; then
2406 tm_file="${tm_file} dbx.h"
2409 xmake_file=mips/x-sysv
2410 if test x$gas = xyes
2412 tmake_file=mips/t-svr3-gas
2414 tmake_file=mips/t-svr3
2415 extra_passes="mips-tfile mips-tdump"
2417 if test x$gnu_ld != xyes
2422 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2423 tm_file=mips/mips-5.h
2424 if test x$stabs = xyes; then
2425 tm_file="${tm_file} dbx.h"
2427 if test x$gas = xyes
2429 tmake_file=mips/t-mips-gas
2431 extra_passes="mips-tfile mips-tdump"
2433 if test x$gnu_ld != xyes
2441 tm_file=mips/ecoffl.h
2442 if test x$stabs = xyes; then
2443 tm_file="${tm_file} dbx.h"
2445 tmake_file=mips/t-ecoff
2448 tm_file="gofast.h mips/ecoff.h"
2449 if test x$stabs = xyes; then
2450 tm_file="${tm_file} dbx.h"
2452 tmake_file=mips/t-ecoff
2455 tm_file="mips/elfl.h"
2456 tmake_file=mips/t-elf
2459 tm_file="mips/elf.h"
2460 tmake_file=mips/t-elf
2463 tm_file="mips/elfl64.h"
2464 tmake_file=mips/t-elf
2466 mips64orionel-*-elf*)
2467 tm_file="mips/elforion.h mips/elfl64.h"
2468 tmake_file=mips/t-elf
2471 tm_file="mips/elf64.h"
2472 tmake_file=mips/t-elf
2475 tm_file="mips/elforion.h mips/elf64.h"
2476 tmake_file=mips/t-elf
2478 mips64orion-*-rtems*)
2479 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2480 tmake_file="mips/t-elf t-rtems"
2481 if test x$enable_threads = xyes; then
2486 tm_file="mips/elf.h mips/rtems.h"
2487 tmake_file="mips/t-elf t-rtems"
2488 if test x$enable_threads = xyes; then
2493 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2494 tmake_file=mips/t-r3900
2497 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2498 tmake_file=mips/t-r3900
2500 mips-*-*) # Default MIPS RISC-OS 4.0.
2501 if test x$stabs = xyes; then
2502 tm_file="${tm_file} dbx.h"
2504 if test x$gas = xyes
2506 tmake_file=mips/t-mips-gas
2508 extra_passes="mips-tfile mips-tdump"
2510 if test x$gnu_ld != xyes
2518 tm_file="mn10200/mn10200.h"
2519 if test x$stabs = xyes
2521 tm_file="${tm_file} dbx.h"
2527 tm_file="mn10300/mn10300.h"
2528 if test x$stabs = xyes
2530 tm_file="${tm_file} dbx.h"
2535 tm_file=ns32k/encore.h
2539 tm_file=ns32k/sequent.h
2543 tm_file=ns32k/tek6100.h
2547 tm_file=ns32k/tek6200.h
2551 tm_file=ns32k/merlin.h
2555 tm_file=ns32k/pc532-mach.h
2559 tm_file=ns32k/pc532-min.h
2560 xm_defines='USG HZ=60'
2564 tm_file=ns32k/netbsd.h
2565 # On NetBSD, the headers are already okay, except for math.h.
2570 tm_file="${tm_file} pdp11/2bsd.h"
2580 tm_file="svr4.h pj/linux.h ${tm_file}"
2585 tm_file="svr4.h pj/pjl.h ${tm_file}"
2598 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2602 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2604 xm_file=rs6000/xm-beos.h
2605 tmake_file=rs6000/t-beos
2609 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2610 tm_p_file="${tm_p_file} darwin-protos.h"
2611 tmake_file=rs6000/t-darwin
2612 xm_file=rs6000/xm-darwin.h
2613 xmake_file=rs6000/x-darwin
2614 extra_objs="darwin.o"
2615 # Darwin linker does collect2 functionality
2619 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2620 xm_defines="USG POSIX"
2621 extra_headers=ppc-asm.h
2622 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2624 powerpc-*-chorusos*)
2626 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2627 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2628 extra_headers=ppc-asm.h
2629 case x${enable_threads} in
2630 xyes | xpthreads | xposix)
2637 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2638 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2639 extra_headers=ppc-asm.h
2643 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2644 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2645 extra_headers=ppc-asm.h
2649 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2650 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2651 extra_headers=ppc-asm.h
2655 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2656 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2657 extra_headers=ppc-asm.h
2661 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2662 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2663 extra_headers=ppc-asm.h
2664 if test x$enable_threads = xyes; then
2668 powerpc-*-linux*libc1)
2669 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2670 xm_defines='USG POSIX'
2671 out_file=rs6000/rs6000.c
2672 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2674 extra_headers=ppc-asm.h
2675 if test x$enable_threads = xyes; then
2680 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2681 xm_defines="USG ${xm_defines}"
2682 out_file=rs6000/rs6000.c
2683 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2685 extra_headers=ppc-asm.h
2686 if test x$enable_threads = xyes; then
2690 powerpc-wrs-vxworks*)
2692 xm_defines="USG POSIX"
2693 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2694 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2695 extra_headers=ppc-asm.h
2696 thread_file='vxworks'
2698 powerpcle-wrs-vxworks*)
2700 xm_defines="USG POSIX"
2701 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2702 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2703 extra_headers=ppc-asm.h
2704 thread_file='vxworks'
2707 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2708 xm_defines="USG POSIX"
2709 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2710 extra_headers=ppc-asm.h
2714 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2715 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2716 extra_headers=ppc-asm.h
2718 powerpcle-*-eabisim*)
2720 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2721 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2722 extra_headers=ppc-asm.h
2726 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2727 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2728 extra_headers=ppc-asm.h
2730 powerpcle-*-solaris2*)
2731 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2732 xm_defines="USG POSIX"
2733 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2734 extra_headers=ppc-asm.h
2736 rs6000-ibm-aix3.[01]*)
2738 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2739 xmake_file=rs6000/x-aix31
2743 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2745 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2746 tmake_file=rs6000/t-newas
2750 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2752 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2753 tmake_file=rs6000/t-newas
2754 xmake_file=rs6000/x-aix41
2758 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2760 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2761 tmake_file=rs6000/t-aix43
2762 xmake_file=rs6000/x-aix41
2767 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2769 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2770 tmake_file=rs6000/t-aix43
2771 xmake_file=rs6000/x-aix41
2778 tm_file="${tm_file} rs6000/aix.h"
2784 tm_file="${tm_file} rs6000/aix.h"
2789 tm_file=rs6000/mach.h
2794 tm_file=rs6000/lynx.h
2795 tmake_file=rs6000/t-rs6000
2799 tmake_file="sh/t-sh sh/t-elf"
2800 tm_file="sh/sh.h sh/elf.h"
2804 tmake_file="sh/t-sh sh/t-elf t-rtems"
2805 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2807 if test x$enable_threads = xyes; then
2812 tmake_file="sh/t-sh t-rtems"
2813 tm_file="sh/sh.h sh/rtems.h"
2815 if test x$enable_threads = xyes; then
2820 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2821 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2824 if test x$enable_threads = xyes; then
2836 sparc64-wrs-vxworks*)
2837 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2838 tmake_file=sparc/t-vxsparc64
2841 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2842 tm_file=sparc/vxsparc.h
2843 tmake_file=sparc/t-vxsparc
2845 thread_file='vxworks'
2848 tmake_file=sparc/t-sparcbare
2849 tm_file="sparc/aout.h libgloss.h"
2852 tm_file=sparc/netbsd.h
2857 # we need collect2 until our bug is fixed...
2864 tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
2865 tmake_file=sparc/t-chorus-elf
2866 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2868 case x${enable_threads} in
2869 xyes | xpthreads | xposix)
2875 tm_file="sparc/sol2.h sparc/elf.h"
2876 tmake_file=sparc/t-elf
2877 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2881 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2882 tm_file=sparc/linux-aout.h
2886 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2888 tm_file=sparc/linux.h
2889 tmake_file="t-linux t-linux-gnulibc1"
2890 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2894 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2896 tm_file=sparc/linux.h
2897 tmake_file="t-linux"
2898 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2900 if test x$enable_threads = xyes; then
2906 if test x$gas = xyes
2908 tm_file=sparc/lynx.h
2910 tm_file=sparc/lynx-ng.h
2912 tmake_file=sparc/t-sunos41
2915 tmake_file="sparc/t-sparcbare t-rtems"
2916 tm_file=sparc/rtems.h
2917 if test x$enable_threads = xyes; then
2921 sparc-*-rtems*|sparc-*-rtemself*)
2922 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
2923 tmake_file="sparc/t-elf t-rtems"
2924 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2927 if test x$enable_threads = xyes; then
2931 sparcv9-*-solaris2*)
2932 if test x$gnu_ld = xyes
2934 tm_file=sparc/sol2-64.h
2936 tm_file=sparc/sol2-sld-64.h
2938 xm_defines="USG POSIX"
2939 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2940 if test x$gnu_ld = xyes; then
2941 tmake_file="$tmake_file sparc/t-slibgcc"
2943 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2945 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2947 if test x${enable_threads} = x ; then
2948 enable_threads=$have_pthread_h
2949 if test x${enable_threads} = x ; then
2950 enable_threads=$have_thread_h
2953 if test x${enable_threads} = xyes ; then
2954 if test x${have_pthread_h} = xyes ; then
2957 thread_file='solaris'
2961 sparc-hal-solaris2*)
2962 xm_defines="USG POSIX"
2963 tm_file="sparc/sol2.h sparc/hal.h"
2964 tmake_file="sparc/t-halos sparc/t-sol2"
2965 if test x$gnu_ld = xyes; then
2966 tmake_file="$tmake_file sparc/t-slibgcc"
2968 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2970 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2979 thread_file='solaris'
2982 if test x$gnu_ld = xyes
2984 tm_file=sparc/sol2.h
2986 tm_file=sparc/sol2-sld.h
2988 xm_defines="USG POSIX"
2989 tmake_file=sparc/t-sol2
2990 if test x$gnu_ld = xyes; then
2991 tmake_file="$tmake_file sparc/t-slibgcc"
2993 tmake_file="$tmake_file sparc/t-slibgcc-sld"
2995 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2996 # At the moment, 32-to-64 cross compilation doesn't work.
2998 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3000 # if test x$gnu_ld = xyes
3002 # tm_file=sparc/sol2-64.h
3004 # tm_file=sparc/sol2-sld-64.h
3006 # tmake_file="$tmake_file sparc/t-sol2-64"
3017 if test x${enable_threads} = x; then
3018 enable_threads=$have_pthread_h
3019 if test x${enable_threads} = x; then
3020 enable_threads=$have_thread_h
3023 if test x${enable_threads} = xyes; then
3024 if test x${have_pthread_h} = xyes; then
3027 thread_file='solaris'
3032 tm_file=sparc/sunos4.h
3033 tmake_file=sparc/t-sunos40
3037 tm_file=sparc/sunos4.h
3038 tmake_file=sparc/t-sunos41
3040 if test x$gas = xyes; then
3041 tm_file="${tm_file} sparc/sun4gas.h"
3045 tm_file=sparc/sun4o3.h
3049 tm_file=sparc/sysv4.h
3050 xm_defines="USG POSIX"
3052 extra_parts="crtbegin.o crtend.o"
3055 xm_defines="USG POSIX"
3056 tm_file=sparc/vxsim.h
3057 tmake_file=sparc/t-vxsparc
3060 tm_file="sparc/splet.h libgloss.h"
3061 tmake_file=sparc/t-splet
3064 tm_file="sparc/litecoff.h libgloss.h"
3065 tmake_file=sparc/t-sparclite
3068 tm_file="sparc/lite.h aoutos.h libgloss.h"
3069 tmake_file=sparc/t-sparclite
3072 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3073 tmake_file=sparc/t-sparclite
3074 extra_parts="crtbegin.o crtend.o"
3077 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3078 tmake_file=sparc/t-sp86x
3081 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3082 tmake_file=sparc/t-sp86x
3083 extra_parts="crtbegin.o crtend.o"
3086 tmake_file=sparc/t-sp64
3087 tm_file=sparc/sp64-aout.h
3090 tmake_file=sparc/t-sp64
3091 tm_file=sparc/sp64-elf.h
3092 extra_parts="crtbegin.o crtend.o"
3094 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3095 tmake_file="t-linux sparc/t-linux64"
3096 tm_file=sparc/linux64.h
3098 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3100 if test x$enable_threads = xyes; then
3106 tm_file=arm/strongarm-elf.h
3107 tmake_file=arm/t-strongarm-elf
3112 tm_file=arm/strongarm-coff.h
3113 tmake_file=arm/t-strongarm-coff
3118 tm_file=arm/strongarm-pe.h
3119 tmake_file=arm/t-strongarm-pe
3125 { echo "config.gcc: error:
3126 *** The Thumb targets have been deprecated. The equivalent
3127 *** ARM based toolchain can now generate Thumb instructions
3128 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3132 tm_file="v850/rtems.h"
3133 tmake_file="v850/t-v850 t-rtems"
3134 if test x$stabs = xyes
3136 tm_file="${tm_file} dbx.h"
3139 c_target_objs="v850-c.o"
3140 cxx_target_objs="v850-c.o"
3143 target_cpu_default="TARGET_CPU_generic"
3145 tm_file="v850/v850.h"
3146 tmake_file=v850/t-v850
3147 if test x$stabs = xyes
3149 tm_file="${tm_file} dbx.h"
3152 c_target_objs="v850-c.o"
3153 cxx_target_objs="v850-c.o"
3155 vax-*-bsd*) # vaxen running BSD
3159 vax-*-sysv*) # vaxen running system V
3160 tm_file="${tm_file} vax/vaxv.h"
3165 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3171 tmake_file="${tmake_file} vax/t-openbsd"
3172 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3176 vax-*-ultrix*) # vaxen running ultrix
3177 tm_file="${tm_file} vax/ultrix.h"
3180 vax-*-vms*) # vaxen running VMS
3181 xm_file=vax/xm-vms.h
3185 vax-*-*) # vax default entry
3193 tm_file=arm/xscale-elf.h
3194 tmake_file=arm/t-xscale-elf
3199 tm_file=arm/xscale-coff.h
3200 tmake_file=arm/t-xscale-coff
3205 echo "Configuration $machine not supported" 1>&2
3212 xmake_try_sysv=x-sysv
3213 install_headers_dir=install-headers-cpio
3216 install_headers_dir=install-headers-cpio
3220 # Distinguish i[34567]86
3221 # Also, do not run mips-tfile on MIPS if using gas.
3222 # Process --with-cpu= for PowerPC/rs6000
3223 target_cpu_default2=
3226 target_cpu_default2=1
3229 case $target_alias in
3231 target_cpu_default2=4
3234 target_cpu_default2=2
3238 i686-*-* | i786-*-*)
3239 target_cpu_default2=3
3244 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3247 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3250 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3253 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3256 target_cpu_default2="MASK_CPU_EV5"
3260 if test x$gas = xyes
3262 if test "$target_cpu_default2" = ""
3264 target_cpu_default2="MASK_GAS"
3266 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3271 case "x$with_cpu" in
3274 target_cpu_default2="TARGET_CPU_generic"
3277 # Distinguish cores, and major variants
3278 # arm7m doesn't exist, but D & I don't affect code
3279 xarm[236789] | xarm250 | xarm[67][01]0 \
3280 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3281 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3283 | xstrongarm | xstrongarm110 | xstrongarm1100)
3284 target_cpu_default2="TARGET_CPU_$with_cpu"
3288 echo "--with-cpu must be passed a value" 1>&2
3293 if test x$pass2done = xyes
3295 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3302 hppa*-*-* | parisc*-*-*)
3303 if test x$gas = xyes
3305 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3309 mips*-*-ecoff* | mips*-*-elf*)
3310 if test x$gas = xyes
3312 if test x$gnu_ld = xyes
3314 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3316 target_cpu_default2="MASK_GAS"
3321 if test x$gas = xyes
3323 target_cpu_default2="MASK_GAS"
3326 powerpc*-*-* | rs6000-*-*)
3327 case "x$with_cpu" in
3331 xcommon | xpower | xpower2 | xpowerpc | xrios \
3332 | xrios1 | xrios2 | xrsc | xrsc1 \
3333 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3334 | xec603e | x740 | x750 | x401 \
3335 | x403 | x505 | x801 | x821 | x823 | x860)
3336 target_cpu_default2="\"$with_cpu\""
3340 echo "--with-cpu must be passed a value" 1>&2
3345 if test x$pass2done = xyes
3347 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3354 case ".$with_cpu" in
3356 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3358 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3359 target_cpu_default2="TARGET_CPU_$with_cpu"
3362 if test x$pass2done = xyes
3364 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3372 if test "$target_cpu_default2" != ""
3374 if test "$target_cpu_default" != ""
3376 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3378 target_cpu_default=$target_cpu_default2
3382 # No need for collect2 if we have the GNU linker.
3383 # Actually, there is now; GNU ld doesn't handle the EH info or
3384 # collecting for shared libraries.
3391 # Save data on machine being used to compile GCC in build_xm_file.
3392 # Save data on host machine in vars host_xm_file and host_xmake_file.
3393 if test x$pass1done = x
3395 if test x$xm_file != x
3396 then build_xm_file=$xm_file
3398 build_xm_defines=$xm_defines
3399 build_install_headers_dir=$install_headers_dir
3400 build_exeext=$exeext
3403 if test x$pass2done = x
3405 if test x$xm_file != x
3406 then host_xm_file=$xm_file
3408 host_xm_defines=$xm_defines
3409 host_xmake_file="$xmake_file"
3410 host_truncate_target=$truncate_target
3411 host_extra_gcc_objs=$extra_gcc_objs
3412 host_extra_objs=$extra_host_objs