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/-.*$//'`
245 tm_file=${cpu_type}/${cpu_type}.h
246 xm_file=${cpu_type}/xm-${cpu_type}.h
247 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
249 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
251 # On a.out targets, we need to use collect2.
258 # Common parts for GNU/Linux, GNU/Hurd, OpenBSD and FreeBSD systems.
264 # On the Hurd, the setup is just about the same on
265 # each different CPU. The specific machines that we
266 # support are matched above and just set $cpu_type.
267 xm_file="xm-gnu.h ${xm_file}"
268 tm_file="${cpu_type}/gnu.h"
269 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
270 # GNU always uses ELF.
272 # GNU tools are the only tools.
275 # These details are the same as for Linux.
277 # But here we need a little extra magic.
278 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
281 tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}"
284 tm_file="svr4.h ${cpu_type}/${cpu_type}.h ${tm_file}"
289 tm_file=${cpu_type}/openbsd.h
290 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
291 # avoid surprises, always provide an xm-openbsd file
292 xm_file=${cpu_type}/xm-openbsd.h
293 # don't depend on processor x-fragments as well
295 if test x$enable_threads = xyes; then
297 tmake_file="${tmake_file} t-openbsd-thread"
300 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
301 # This is the place-holder for the generic a.out configuration
302 # of FreeBSD. No actual configuration resides here since
303 # there was only ever a bare-bones ix86 configuration for
304 # a.out and it exists solely in the machine-specific section.
305 # This place-holder must exist to avoid dropping into
306 # the generic ELF configuration of FreeBSD (i.e. it must be
307 # ordered before that section).
310 # This is the generic ELF configuration of FreeBSD. Later
311 # machine-specific sections may refine and add to this
314 # Due to tm_file entry ordering issues that vary between cpu
315 # architectures, we only define fbsd_tm_file to allow the
316 # machine-specific section to dictate the final order of all
317 # entries of tm_file with the minor exception that components
318 # of the tm_file set here will always be of the form:
320 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd.h
322 # The machine-specific section should not tamper with this
323 # ordering but may order all other entries of tm_file as it
324 # pleases around the provided core setting.
327 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
329 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
330 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
331 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
332 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
333 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
337 case x${enable_threads} in
338 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
339 x | xyes | xpthreads | xposix)
341 tmake_file="${tmake_file} t-freebsd-thread"
343 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
345 fbsd_tm_file="${fbsd_tm_file} freebsd.h"
346 if test x${thread_file} = xposix; then
347 if test x${enable_libgcj} = xyes; then
348 echo 'FreeBSD does not currently handle --enable-threads (now'
349 echo 'the default to match system compiler) and --enable-libgcj.'
350 echo 'Please explicitly configure with --disable-threads or'
351 echo '--disable-libgcj'
359 # Support site-specific machine types.
361 cpu_type=`echo $machine | sed -e 's/-.*//'`
362 rest=`echo $machine | sed -e "s/$cpu_type-//"`
363 xm_file=${cpu_type}/xm-$rest.h
364 tm_file=${cpu_type}/$rest.h
365 if test -f $srcdir/config/${cpu_type}/x-$rest; \
366 then xmake_file=${cpu_type}/x-$rest; \
369 if test -f $srcdir/config/${cpu_type}/t-$rest; \
370 then tmake_file=${cpu_type}/t-$rest; \
376 a29k-*-bsd* | a29k-*-sym1*)
377 tm_file="${tm_file} a29k/unix.h"
379 xmake_file=a29k/x-unix
382 a29k-*-udi | a29k-*-coff)
383 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
384 tmake_file=a29k/t-a29kbare
388 tmake_file="a29k/t-a29kbare t-rtems"
389 if test x$enable_threads = xyes; then
394 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
395 tmake_file=a29k/t-vx29k
396 extra_parts="crtbegin.o crtend.o"
397 thread_file='vxworks'
399 a29k-*-*) # Default a29k environment.
403 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
405 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
406 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
408 # GAS + IEEE_CONFORMANT
409 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
411 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
412 xmake_file="x-interix alpha/t-pe"
413 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
414 if test x$enable_threads = xyes ; then
417 if test x$stabs = xyes ; then
418 tm_file="${tm_file} dbxcoff.h"
420 #prefix='$$INTERIX_ROOT'/usr/contrib
421 #local_prefix='$$INTERIX_ROOT'/usr/contrib
423 alpha*-*-linux*ecoff*)
424 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
425 target_cpu_default="MASK_GAS"
426 tmake_file="alpha/t-alpha alpha/t-ieee"
431 alpha*-*-linux*libc1*)
432 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
433 target_cpu_default="MASK_GAS"
434 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
435 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
438 if test x$enable_threads = xyes; then
443 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
444 target_cpu_default="MASK_GAS"
445 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
446 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
449 if test x$enable_threads = xyes; then
454 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
455 target_cpu_default="MASK_GAS"
457 tmake_file="${tmake_file} alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
460 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
461 target_cpu_default="MASK_GAS"
462 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
463 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
469 # default x-alpha is only appropriate for dec-osf.
470 target_cpu_default="MASK_GAS"
471 tmake_file="alpha/t-alpha alpha/t-ieee"
475 if test x$stabs = xyes
477 tm_file="${tm_file} dbx.h"
479 if test x$gas != xyes
481 extra_passes="mips-tfile mips-tdump"
484 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
485 xmake_file=alpha/x-osf
488 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
491 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
494 tm_file="${tm_file} alpha/osf.h"
495 tmake_file="$tmake_file alpha/t-osf4"
496 # Some versions of OSF4 (specifically X4.0-9 296.7) have
497 # a broken tar, so we use cpio instead.
498 install_headers_dir=install-headers-cpio
501 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
502 tmake_file="$tmake_file alpha/t-osf4"
507 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
508 target_cpu_default=MASK_SUPPORT_ARCH
513 tm_file="${tm_file} dbx.h alpha/vxworks.h"
514 tmake_file="alpha/t-alpha alpha/t-ieee"
517 extra_passes="mips-tfile mips-tdump"
520 thread_file='vxworks'
523 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
524 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
525 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
526 xmake_file=winnt/x-winnt
527 extra_host_objs=oldnames.o
528 extra_gcc_objs="spawnv.o oldnames.o"
529 if test x$gnu_ld != xyes
531 extra_programs=ld.exe
533 if test x$enable_threads = xyes; then
539 xm_file="${xm_file} alpha/xm-vms.h"
540 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
543 tm_file=arm/rtems-elf.h
544 tmake_file="arm/t-arm-elf t-rtems"
545 if test x$enable_threads = xyes; then
550 extra_parts="crtinit.o crtfini.o"
552 arm-*-coff* | armel-*-coff*)
554 tmake_file=arm/t-arm-coff
558 tmake_file=arm/t-arm-coff
559 thread_file='vxworks'
561 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
562 tm_file=arm/riscix1-1.h
565 arm-*-riscix*) # Acorn RISC machine
568 tm_file=arm/rix-gas.h
572 xmake_file=arm/x-riscix
573 tmake_file=arm/t-riscix
576 arm-semi-aout | armel-semi-aout)
578 tmake_file=arm/t-semi
580 arm-semi-aof | armel-semi-aof)
581 tm_file=arm/semiaof.h
582 tmake_file=arm/t-semiaof
586 tmake_file="t-netbsd arm/t-netbsd"
589 arm*-*-linux*) # ARM GNU/Linux with ELF
590 xm_file=arm/xm-linux.h
592 tm_file="arm/linux-elf.h"
593 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
594 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
596 case x${enable_threads} in
597 x | xyes | xpthreads | xposix)
602 arm*-*-uclinux*) # ARM ucLinux
603 tm_file=arm/uclinux-elf.h
604 tmake_file=arm/t-arm-elf
608 tmake_file=arm/t-arm-aout
611 tm_file=arm/ecos-elf.h
612 tmake_file=arm/t-arm-elf
615 tm_file=arm/unknown-elf.h
616 tmake_file=arm/t-arm-elf
619 tm_file=arm/conix-elf.h
620 tmake_file=arm/t-arm-elf
623 tm_file=arm/unknown-elf-oabi.h
624 tmake_file=arm/t-arm-elf
633 c1-convex-*) # Convex C1
637 c2-convex-*) # Convex C2
650 target_cpu_default=16
655 tmake_file="c4x/t-c4x t-rtems"
657 if test x$enable_threads = xyes; then
666 clipper-intergraph-clix*)
667 tm_file="${tm_file} svr3.h clipper/clix.h"
668 xm_file=clipper/xm-clix.h
669 xmake_file=clipper/x-clix
670 extra_headers=va-clipper.h
671 extra_parts="crtbegin.o crtend.o"
672 install_headers_dir=install-headers-cpio
683 tm_file="fr30/fr30.h"
684 tmake_file=fr30/t-fr30
685 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
688 tmake_file="h8300/t-h8300 t-rtems"
689 tm_file=h8300/rtems.h
690 if test x$enable_threads = xyes; then
699 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
700 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
701 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
702 extra_parts="crtbegin.o crtend.o"
705 if test x$enable_threads = xyes; then
710 target_cpu_default="MASK_PA_11"
711 tmake_file=pa/t-openbsd
714 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
715 xm_file=pa/xm-papro.h
716 tmake_file="pa/t-pro t-rtems"
717 if test x$enable_threads = xyes; then
722 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
723 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
724 xm_file=pa/xm-papro.h
728 target_cpu_default="MASK_PA_11"
729 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
733 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
734 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
735 xm_file=pa/xm-papro.h
739 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
743 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
744 target_cpu_default="MASK_PA_11"
748 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
752 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
753 xm_file=pa/xm-pahpux.h
754 xmake_file=pa/x-pa-hpux
757 tm_file="${tm_file} pa/gas.h"
759 install_headers_dir=install-headers-cpio
762 hppa1.0-*-hpux8.0[0-2]*)
763 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
764 xm_file=pa/xm-pahpux.h
765 xmake_file=pa/x-pa-hpux
768 tm_file="${tm_file} pa/pa-gas.h"
770 tm_file="pa/pa-oldas.h ${tm_file}"
772 install_headers_dir=install-headers-cpio
775 hppa1.1-*-hpux8.0[0-2]*)
776 target_cpu_default="MASK_PA_11"
777 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
778 xm_file=pa/xm-pahpux.h
779 xmake_file=pa/x-pa-hpux
782 tm_file="${tm_file} pa/pa-gas.h"
784 tm_file="pa/pa-oldas.h ${tm_file}"
786 install_headers_dir=install-headers-cpio
790 target_cpu_default="MASK_PA_11"
791 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
792 xm_file=pa/xm-pahpux.h
793 xmake_file=pa/x-pa-hpux
796 tm_file="${tm_file} pa/pa-gas.h"
798 install_headers_dir=install-headers-cpio
802 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
803 xm_file=pa/xm-pahpux.h
804 xmake_file=pa/x-pa-hpux
807 tm_file="${tm_file} pa/pa-gas.h"
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"
816 xm_file=pa/xm-pahpux.h
817 xmake_file=pa/x-pa-hpux
821 tm_file="${tm_file} pa/pa-gas.h"
823 if test x$enable_threads = x; then
824 enable_threads=$have_pthread_h
826 case x${enable_threads} in
828 tmake_file="${tmake_file} pa/t-dce-thr"
831 install_headers_dir=install-headers-cpio
835 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
837 xm_file=pa/xm-pahpux.h
838 xmake_file=pa/x-pa-hpux
842 tm_file="${tm_file} pa/pa-gas.h"
844 if test x$enable_threads = x; then
845 enable_threads=$have_pthread_h
847 case x${enable_threads} in
849 tmake_file="${tmake_file} pa/t-dce-thr"
852 install_headers_dir=install-headers-cpio
856 xm_file=pa/xm-pa64hpux.h
857 xmake_file=pa/x-pa-hpux
859 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"
862 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
866 tm_file="${tm_file} pa/pa-gas.h"
868 # if [ x$enable_threads = x ]; then
869 # enable_threads=$have_pthread_h
871 # if [ x$enable_threads = xyes ]; then
873 # tmake_file="${tmake_file} pa/t-dce-thr"
875 install_headers_dir=install-headers-cpio
878 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
879 target_cpu_default="MASK_PA_11"
880 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
882 xm_file=pa/xm-pahpux.h
883 xmake_file=pa/x-pa-hpux
887 tm_file="${tm_file} pa/pa-gas.h"
889 # if test x$enable_threads = x; then
890 # enable_threads=$have_pthread_h
892 # if test x$enable_threads = xyes; then
894 # tmake_file="${tmake_file} pa/t-dce-thr"
896 install_headers_dir=install-headers-cpio
900 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
902 xm_file=pa/xm-pahpux.h
903 xmake_file=pa/x-pa-hpux
906 tm_file="${tm_file} pa/pa-gas.h"
908 # if test x$enable_threads = x; then
909 # enable_threads=$have_pthread_h
911 # if test x$enable_threads = xyes; then
913 # tmake_file="${tmake_file} pa/t-dce-thr"
915 install_headers_dir=install-headers-cpio
918 hppa1.1-*-hpux* | hppa2*-*-hpux*)
919 target_cpu_default="MASK_PA_11"
920 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
921 xm_file=pa/xm-pahpux.h
922 xmake_file=pa/x-pa-hpux
925 tm_file="${tm_file} pa/pa-gas.h"
927 install_headers_dir=install-headers-cpio
931 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
932 xm_file=pa/xm-pahpux.h
933 xmake_file=pa/x-pa-hpux
936 tm_file="${tm_file} pa/pa-gas.h"
938 install_headers_dir=install-headers-cpio
941 hppa1.1-*-hiux* | hppa2*-*-hiux*)
942 target_cpu_default="MASK_PA_11"
943 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
944 xm_file=pa/xm-pahpux.h
945 xmake_file=pa/x-pa-hpux
948 tm_file="${tm_file} pa/pa-gas.h"
950 install_headers_dir=install-headers-cpio
954 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
955 xm_file=pa/xm-pahpux.h
956 xmake_file=pa/x-pa-hpux
959 tm_file="${tm_file} pa/pa-gas.h"
961 install_headers_dir=install-headers-cpio
965 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
966 target_cpu_default="MASK_PA_11"
970 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
971 xm_file=pa/xm-pampeix.h
972 xmake_file=pa/x-pa-mpeix
973 echo "You must use gas. Assuming it is already installed."
974 install_headers_dir=install-headers-tar
977 i370-*-opened*) # IBM 360/370/390 Architecture
984 xm_file=i370/xm-mvs.h
986 tmake_file=i370/t-mvs
989 xm_file="xm-linux.h i370/xm-linux.h"
991 tm_file="i370/linux.h ${tm_file}"
992 tmake_file="t-slibgcc-elf-ver t-linux i370/t-linux"
994 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
995 # extra_parts="crtbegin.o crtend.o"
999 if test x$enable_threads = xyes; then
1003 i[34567]86-*-chorusos*)
1004 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1005 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h i386/chorus.h"
1006 tmake_file=i386/t-i386elf
1008 case x${enable_threads} in
1009 xyes | xpthreads | xposix)
1015 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1016 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h"
1017 tmake_file=i386/t-i386elf
1020 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1021 if test x$gas = xyes
1023 tm_file=i386/aix386.h
1024 extra_parts="crtbegin.o crtend.o"
1025 tmake_file=i386/t-crtstuff
1027 tm_file=i386/aix386ng.h
1030 xm_file="xm-alloca.h ${xm_file}"
1032 xmake_file=i386/x-aix
1034 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1035 xm_file="xm-alloca.h ${xm_file}"
1036 xm_defines="USG POSIX SMALL_ARG_MAX"
1037 xmake_file=i386/x-ncr3000
1038 if test x$stabs = xyes -a x$gas = xyes
1040 tm_file=i386/sysv4gdb.h
1042 tm_file=i386/sysv4.h
1044 extra_parts="crtbegin.o crtend.o"
1045 tmake_file=i386/t-crtpic
1049 xm_file=i386/xm-next.h
1050 tmake_file=i386/t-next
1051 xmake_file=i386/x-next
1052 extra_objs=nextstep.o
1053 extra_parts="crtbegin.o crtend.o"
1054 if test x$enable_threads = xyes; then
1058 i[34567]86-*-netware) # Intel 80386's running netware
1059 tm_file=i386/netware.h
1060 tmake_file=i386/t-netware
1062 i[34567]86-sequent-bsd*) # 80386 from Sequent
1064 if test x$gas = xyes
1066 tm_file=i386/seq-gas.h
1068 tm_file=i386/sequent.h
1071 i[34567]86-sequent-ptx1*)
1072 xm_defines="USG SVR3"
1073 xmake_file=i386/x-sysv3
1074 tm_file=i386/seq-sysv3.h
1075 tmake_file=i386/t-crtstuff
1076 extra_parts="crtbegin.o crtend.o"
1077 install_headers_dir=install-headers-cpio
1079 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1080 xm_defines="USG SVR3"
1081 xmake_file=i386/x-sysv3
1082 tm_file=i386/seq2-sysv3.h
1083 tmake_file=i386/t-crtstuff
1084 extra_parts="crtbegin.o crtend.o"
1085 install_headers_dir=install-headers-cpio
1087 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1088 xm_file="xm-alloca.h ${xm_file}"
1089 if test x$gas = xyes
1091 tm_file="${tm_file} usegas.h"
1093 xm_defines="USG POSIX SMALL_ARG_MAX"
1095 tm_file=i386/ptx4-i.h
1097 extra_parts="crtbegin.o crtend.o"
1098 install_headers_dir=install-headers-cpio
1100 i386-sun-sunos*) # Sun i386 roadrunner
1105 i[34567]86-wrs-vxworks*)
1106 tm_file=i386/vxi386.h
1107 tmake_file=i386/t-i386bare
1108 thread_file='vxworks'
1111 tm_file=i386/i386-aout.h
1112 tmake_file=i386/t-i386bare
1114 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1115 xm_file=i386/xm-beos.h
1116 tmake_file='i386/t-beos i386/t-crtpic'
1117 tm_file=i386/beos-elf.h
1118 xmake_file=i386/x-beos
1119 extra_parts='crtbegin.o crtend.o'
1121 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1122 tm_file=i386/bsd386.h
1123 # tmake_file=t-libc-ok
1126 tm_file=i386/386bsd.h
1127 # tmake_file=t-libc-ok
1128 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1131 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1132 tm_file="i386/freebsd-aout.h i386/perform.h"
1133 tmake_file=t-freebsd
1135 i[34567]86-*-freebsd*)
1136 tm_file="${tm_file} i386/att.h svr4.h ${fbsd_tm_file} i386/freebsd.h i386/perform.h"
1138 i[34567]86-*-netbsd*)
1139 tm_file=i386/netbsd.h
1143 i[34567]86-*-openbsd*)
1144 # needed to unconfuse gdb
1145 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1146 # we need collect2 until our bug is fixed...
1150 tm_file=i386/i386-coff.h
1151 tmake_file=i386/t-i386bare
1153 i[34567]86-*-isc*) # 80386 running ISC system
1154 xm_file="${xm_file} i386/xm-isc.h"
1155 xm_defines="USG SVR3"
1157 i[34567]86-*-isc[34]*)
1158 xmake_file=i386/x-isc3
1161 xmake_file=i386/x-isc
1164 if test x$gas = xyes -a x$stabs = xyes
1166 tm_file=i386/iscdbx.h
1167 tmake_file=i386/t-svr3dbx
1168 extra_parts="svr3.ifile svr3z.ifile"
1170 tm_file=i386/isccoff.h
1171 tmake_file=i386/t-crtstuff
1172 extra_parts="crtbegin.o crtend.o"
1174 tmake_file="$tmake_file i386/t-i386bare"
1175 install_headers_dir=install-headers-cpio
1177 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1178 # with a.out format using
1180 xmake_file=x-linux-aout
1181 tmake_file="t-linux-aout i386/t-crtstuff"
1182 tm_file=i386/linux-oldld.h
1186 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1188 xmake_file=x-linux-aout
1189 tmake_file="t-linux-aout i386/t-crtstuff"
1190 tm_file=i386/linux-aout.h
1194 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1195 # with ELF format using the
1196 # GNU/Linux C library 5
1198 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1199 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1200 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1203 if test x$enable_threads = xyes; then
1204 thread_file='single'
1207 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1208 # with ELF format using glibc 2
1209 # aka GNU/Linux C library 6
1211 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1212 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1213 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1216 if test x$enable_threads = xyes; then
1223 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1224 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1227 i[34567]86-pc-msdosdjgpp*)
1228 xm_file=i386/xm-djgpp.h
1229 tm_file=i386/djgpp.h
1230 tmake_file=i386/t-djgpp
1231 xmake_file=i386/x-djgpp
1236 case $host in *pc-msdosdjgpp*)
1241 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1242 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h"
1243 tmake_file=t-libc-ok
1247 i[34567]86-*-lynxos*)
1248 if test x$gas = xyes
1252 tm_file=i386/lynx-ng.h
1254 xm_file=i386/xm-lynx.h
1255 tmake_file=i386/t-i386bare
1260 # tmake_file=t-libc-ok
1263 i[34567]86-*-osfrose*) # 386 using OSF/rose
1264 if test x$elf = xyes
1266 tm_file=i386/osfelf.h
1269 tm_file=i386/osfrose.h
1272 xmake_file=i386/x-osfrose
1273 tmake_file=i386/t-osf
1274 extra_objs=halfpic.o
1276 i[34567]86-go32-rtems*)
1278 xm_file=i386/xm-go32.h
1279 tm_file=i386/go32-rtems.h
1280 tmake_file="i386/t-go32 t-rtems"
1281 if test x$enable_threads = xyes; then
1285 i[34567]86-*-rtemscoff*)
1287 tm_file=i386/rtems.h
1288 tmake_file="i386/t-i386bare t-rtems"
1289 if test x$enable_threads = xyes; then
1293 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1295 tm_file=i386/rtemself.h
1296 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1297 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1298 if test x$enable_threads = xyes; then
1302 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1303 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1304 xm_defines="USG SVR3"
1305 xmake_file=i386/x-sco5
1306 install_headers_dir=install-headers-cpio
1308 if test x$gas = xyes
1310 tm_file="usegas.h ${tm_file}"
1311 tmake_file=i386/t-sco5gas
1313 tmake_file=i386/t-sco5
1315 tmake_file="$tmake_file i386/t-i386bare"
1316 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1318 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1319 xm_file="${xm_file} i386/xm-sco.h"
1320 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1321 xmake_file=i386/x-sco4
1322 install_headers_dir=install-headers-cpio
1323 if test x$stabs = xyes
1325 tm_file=i386/sco4dbx.h
1326 tmake_file=i386/t-svr3dbx
1327 extra_parts="svr3.ifile svr3z.rfile"
1330 tmake_file=i386/t-crtstuff
1331 extra_parts="crtbegin.o crtend.o"
1333 tmake_file="$tmake_file i386/t-i386bare"
1334 # The default EAFS filesystem supports long file names.
1335 # Truncating the target makes $host != $target which
1336 # makes gcc think it is doing a cross-compile.
1337 # truncate_target=yes
1339 i[34567]86-*-sco*) # 80386 running SCO system
1340 xm_file=i386/xm-sco.h
1341 xmake_file=i386/x-sco
1342 install_headers_dir=install-headers-cpio
1343 if test x$stabs = xyes
1345 tm_file=i386/scodbx.h
1346 tmake_file=i386/t-svr3dbx
1347 extra_parts="svr3.ifile svr3z.rfile"
1350 extra_parts="crtbegin.o crtend.o"
1351 tmake_file=i386/t-crtstuff
1353 tmake_file="$tmake_file i386/t-i386bare"
1356 i[34567]86-*-solaris2*)
1357 xm_file="xm-alloca.h ${xm_file}"
1358 xm_defines="USG POSIX SMALL_ARG_MAX"
1360 if test x$gas = xyes; then
1361 # Only needed if gas does not support -s
1362 tm_file="i386/sol2gas.h ${tm_file}"
1364 tmake_file="i386/t-i386bare i386/t-sol2"
1365 if test x$gnu_ld = xyes; then
1366 tmake_file="$tmake_file t-slibgcc-elf-ver"
1368 tmake_file="$tmake_file t-slibgcc-sld"
1370 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1372 if test x${enable_threads} = x; then
1373 enable_threads=$have_pthread_h
1374 if test x${enable_threads} = x; then
1375 enable_threads=$have_thread_h
1378 if test x${enable_threads} = xyes; then
1379 if test x${have_pthread_h} = xyes; then
1382 thread_file='solaris'
1386 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1387 xm_file="xm-alloca.h ${xm_file}"
1388 xm_defines="USG POSIX"
1389 tm_file=i386/sysv5.h
1390 if test x$stabs = xyes
1392 tm_file="${tm_file} dbx.h"
1394 tmake_file="i386/t-i386bare i386/t-crtpic"
1396 extra_parts="crtbegin.o crtend.o"
1397 if test x$enable_threads = xyes; then
1401 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1402 xm_file="xm-alloca.h ${xm_file}"
1403 xm_defines="USG POSIX SMALL_ARG_MAX"
1404 tm_file=i386/sysv4.h
1405 if test x$stabs = xyes
1407 tm_file="${tm_file} dbx.h"
1409 tmake_file="i386/t-i386bare i386/t-crtpic"
1411 extra_parts="crtbegin.o crtend.o"
1413 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1414 xm_file="xm-alloca.h ${xm_file}"
1415 xm_defines="USG POSIX"
1417 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1419 extra_parts="crtbegin.o crtend.o"
1420 install_headers_dir=install-headers-cpio
1422 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1424 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1425 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1426 if test x$stabs = xyes
1428 tm_file=i386/osf1elfgdb.h
1430 tm_file=i386/osf1elf.h
1432 tmake_file=i386/t-osf1elf
1433 xmake_file=i386/x-osf1elf
1434 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1436 i[34567]86-*-sysv*) # Intel 80386's running system V
1437 xm_defines="USG SVR3"
1438 xmake_file=i386/x-sysv3
1439 if test x$gas = xyes
1441 if test x$stabs = xyes
1443 tm_file=i386/svr3dbx.h
1444 tmake_file=i386/t-svr3dbx
1445 extra_parts="svr3.ifile svr3z.rfile"
1447 tm_file=i386/svr3gas.h
1448 extra_parts="crtbegin.o crtend.o"
1449 tmake_file=i386/t-crtstuff
1452 tm_file=i386/sysv3.h
1453 extra_parts="crtbegin.o crtend.o"
1454 tmake_file=i386/t-crtstuff
1456 tmake_file="$tmake_file i386/t-crtpic"
1458 i386-*-vsta) # Intel 80386's running VSTa kernel
1459 xm_file="${xm_file} i386/xm-vsta.h"
1461 tmake_file=i386/t-vsta
1462 xmake_file=i386/x-vsta
1465 xm_file="${xm_file} i386/xm-cygwin.h"
1467 tmake_file=i386/t-cygwin
1468 tm_file=i386/win32.h
1469 xmake_file=i386/x-cygwin
1471 if test x$enable_threads = xyes; then
1476 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1477 xm_file="${xm_file} i386/xm-cygwin.h"
1479 tmake_file=i386/t-cygwin
1480 tm_file=i386/cygwin.h
1481 xmake_file=i386/x-cygwin
1483 if test x$enable_threads = xyes; then
1488 i[34567]86-*-mingw32*)
1489 tm_file=i386/mingw32.h
1491 xm_file="${xm_file} i386/xm-mingw32.h"
1492 tmake_file="i386/t-cygwin i386/t-mingw32"
1494 xmake_file=i386/x-cygwin
1495 if test x$enable_threads = xyes; then
1501 tm_file="${tm_file} i386/crtdll.h"
1503 *minwg32msv* | *mingw32*)
1509 tmake_file="i386/t-cygwin i386/t-uwin"
1511 xmake_file=i386/x-cygwin
1512 if test x$enable_threads = xyes; then
1517 i[34567]86-*-interix*)
1518 tm_file="i386/i386-interix.h interix.h"
1519 xm_file="i386/xm-i386-interix.h xm-interix.h"
1521 tmake_file="i386/t-interix"
1522 extra_objs=interix.o
1523 xmake_file=x-interix
1524 if test x$enable_threads = xyes ; then
1527 if test x$stabs = xyes ; then
1528 tm_file="${tm_file} dbxcoff.h"
1531 i[34567]86-*-winnt3*)
1532 tm_file=i386/win-nt.h
1533 out_file=i386/i386.c
1534 xm_file="xm-winnt.h ${xm_file}"
1535 xmake_file=winnt/x-winnt
1536 tmake_file=i386/t-winnt
1537 extra_host_objs="winnt.o oldnames.o"
1538 extra_gcc_objs="spawnv.o oldnames.o"
1539 if test x$gnu_ld != xyes
1541 extra_programs=ld.exe
1543 if test x$enable_threads = xyes; then
1547 i[34567]86-dg-dgux*)
1548 xm_file="xm-alloca.h ${xm_file}"
1549 xm_defines="USG POSIX"
1550 out_file=i386/dgux.c
1552 tmake_file=i386/t-dgux
1553 xmake_file=i386/x-dgux
1554 install_headers_dir=install-headers-cpio
1556 i860-alliant-*) # Alliant FX/2800
1557 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1558 xm_file="${xm_file}"
1559 xmake_file=i860/x-fx2800
1560 tmake_file=i860/t-fx2800
1561 extra_parts="crtbegin.o crtend.o"
1564 tm_file="${tm_file} i860/bsd.h"
1565 if test x$gas = xyes
1567 tm_file="${tm_file} i860/bsd-gas.h"
1572 tm_file="${tm_file} i860/mach.h"
1573 tmake_file=t-libc-ok
1575 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1576 tm_file="${tm_file} svr3.h i860/paragon.h"
1577 xm_defines="USG SVR3"
1581 tm_file="${tm_file} svr3.h i860/sysv3.h"
1582 xm_defines="USG SVR3"
1583 xmake_file=i860/x-sysv3
1584 extra_parts="crtbegin.o crtend.o"
1587 tm_file="${tm_file} svr4.h i860/sysv4.h"
1588 xm_defines="USG SVR3"
1589 xmake_file=i860/x-sysv4
1591 extra_parts="crtbegin.o crtend.o"
1593 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1594 tm_file="${tm_file} i960/vx960.h"
1595 tmake_file=i960/t-vxworks960
1597 thread_file='vxworks'
1599 i960-wrs-vxworks5* | i960-wrs-vxworks)
1600 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1601 tmake_file=i960/t-vxworks960
1603 thread_file='vxworks'
1606 tm_file="${tm_file} i960/vx960.h"
1607 tmake_file=i960/t-vxworks960
1609 thread_file='vxworks'
1612 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1613 tmake_file=i960/t-960bare
1616 tmake_file="i960/t-960bare t-rtems"
1617 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1618 if test x$enable_threads = xyes; then
1622 i960-*-*) # Default i960 environment.
1627 tmake_file="ia64/t-ia64"
1628 target_cpu_default="0"
1629 if test x$gas = xyes
1631 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1633 if test x$gnu_ld = xyes
1635 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1640 tm_file=ia64/linux.h
1641 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1642 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1643 if test x$enable_threads = xyes; then
1649 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h"
1650 tmake_file="ia64/t-ia64 ia64/t-hpux"
1651 target_cpu_default="MASK_GNU_AS"
1652 if test x$enable_threads = xyes; then
1658 extra_parts="crtinit.o crtfini.o"
1660 # m68hc11 and m68hc12 share the same machine description.
1661 m68hc11-*-*|m6811-*-*)
1662 tm_file="m68hc11/m68hc11.h"
1663 xm_file="m68hc11/xm-m68hc11.h"
1664 tm_p_file="m68hc11/m68hc11-protos.h"
1665 md_file="m68hc11/m68hc11.md"
1666 out_file="m68hc11/m68hc11.c"
1667 tmake_file="m68hc11/t-m68hc11-gas"
1669 m68hc12-*-*|m6812-*-*)
1670 tm_file="m68hc11/m68hc12.h"
1671 tm_p_file="m68hc11/m68hc11-protos.h"
1672 xm_file="m68hc11/xm-m68hc11.h"
1673 md_file="m68hc11/m68hc11.md"
1674 out_file="m68hc11/m68hc11.c"
1675 tmake_file="m68hc11/t-m68hc11-gas"
1677 m68000-convergent-sysv*)
1679 xm_file="m68k/xm-3b1.h ${xm_file}"
1682 extra_headers=math-68881.h
1684 m68000-hp-bsd*) # HP 9000/200 running BSD
1685 tm_file=m68k/hp2bsd.h
1686 xmake_file=m68k/x-hp2bsd
1688 extra_headers=math-68881.h
1690 m68000-hp-hpux*) # HP 9000 series 300
1691 xm_file="xm-alloca.h ${xm_file}"
1693 if test x$gas = xyes
1695 xmake_file=m68k/x-hp320g
1696 tm_file=m68k/hp310g.h
1698 xmake_file=m68k/x-hp320
1699 tm_file=m68k/hp310.h
1701 install_headers_dir=install-headers-cpio
1703 extra_headers=math-68881.h
1708 extra_headers=math-68881.h
1711 tm_file=m68k/sun2o4.h
1713 extra_headers=math-68881.h
1716 xm_file="m68k/xm-3b1.h ${xm_file}"
1718 if test x$gas = xyes
1725 extra_headers=math-68881.h
1727 m68k-apple-aux*) # Apple Macintosh running A/UX
1728 xm_defines="USG AUX"
1729 tmake_file=m68k/t-aux
1730 install_headers_dir=install-headers-cpio
1731 extra_headers=math-68881.h
1732 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1734 if test "$gnu_ld" = yes
1736 tm_file="${tm_file} m68k/auxgld.h"
1738 tm_file="${tm_file} m68k/auxld.h"
1740 if test "$gas" = yes
1742 tm_file="${tm_file} m68k/auxgas.h"
1744 tm_file="${tm_file} m68k/auxas.h"
1746 tm_file="${tm_file} m68k/a-ux.h"
1750 tm_file=m68k/apollo68.h
1751 xmake_file=m68k/x-apollo68
1753 extra_headers=math-68881.h
1756 m68k-altos-sysv*) # Altos 3068
1757 if test x$gas = xyes
1759 tm_file=m68k/altos3068.h
1762 echo "The Altos is supported only with the GNU assembler" 1>&2
1765 extra_headers=math-68881.h
1767 m68k-bull-sysv*) # Bull DPX/2
1768 if test x$gas = xyes
1770 if test x$stabs = xyes
1772 tm_file=m68k/dpx2cdbx.h
1774 tm_file=m68k/dpx2g.h
1779 xm_file="xm-alloca.h ${xm_file}"
1781 xmake_file=m68k/x-dpx2
1783 extra_headers=math-68881.h
1785 m68k-atari-sysv4*) # Atari variant of V.4.
1786 tm_file=m68k/atari.h
1787 xm_file="xm-alloca.h ${xm_file}"
1788 xm_defines="USG FULL_PROTOTYPES"
1790 extra_parts="crtbegin.o crtend.o"
1791 extra_headers=math-68881.h
1794 m68k-motorola-sysv*)
1795 tm_file=m68k/mot3300.h
1796 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1797 if test x$gas = xyes
1799 xmake_file=m68k/x-mot3300-gas
1800 if test x$gnu_ld = xyes
1802 tmake_file=m68k/t-mot3300-gald
1804 tmake_file=m68k/t-mot3300-gas
1808 xmake_file=m68k/x-mot3300
1809 if test x$gnu_ld = xyes
1811 tmake_file=m68k/t-mot3300-gld
1813 tmake_file=m68k/t-mot3300
1817 gdb_needs_out_file_path=yes
1818 extra_parts="crt0.o mcrt0.o"
1819 extra_headers=math-68881.h
1822 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1823 tm_file=m68k/tower-as.h
1824 xm_defines="USG SVR3"
1825 xmake_file=m68k/x-tower
1826 extra_parts="crtbegin.o crtend.o"
1827 extra_headers=math-68881.h
1830 tm_file=m68k/plexus.h
1831 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1834 extra_headers=math-68881.h
1838 xm_file="xm-alloca.h ${xm_file}"
1840 extra_headers=math-68881.h
1843 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1844 xm_defines="USG unos"
1845 xmake_file=m68k/x-crds
1848 extra_headers=math-68881.h
1850 m68k-cbm-sysv4*) # Commodore variant of V.4.
1852 xm_file="xm-alloca.h ${xm_file}"
1853 xm_defines="USG FULL_PROTOTYPES"
1854 xmake_file=m68k/x-amix
1856 extra_parts="crtbegin.o crtend.o"
1857 extra_headers=math-68881.h
1861 tm_file=m68k/ccur-GAS.h
1862 xmake_file=m68k/x-ccur
1863 extra_headers=math-68881.h
1867 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1868 tm_file=m68k/hp3bsd44.h
1869 xmake_file=m68k/x-hp3bsd44
1871 extra_headers=math-68881.h
1874 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1875 tm_file=m68k/hp3bsd.h
1877 extra_headers=math-68881.h
1881 if test x$with_fp = xno
1883 tm_file=m68k/isi-nfp.h
1889 extra_headers=math-68881.h
1891 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1892 xm_file="xm-alloca.h ${xm_file}"
1894 if test x$gas = xyes
1896 xmake_file=m68k/x-hp320g
1897 tm_file=m68k/hp320g.h
1899 xmake_file=m68k/x-hp320
1900 tm_file=m68k/hpux7.h
1902 install_headers_dir=install-headers-cpio
1904 extra_headers=math-68881.h
1907 m68k-hp-hpux*) # HP 9000 series 300
1908 xm_file="xm-alloca.h ${xm_file}"
1910 if test x$gas = xyes
1912 xmake_file=m68k/x-hp320g
1913 tm_file=m68k/hp320g.h
1915 xmake_file=m68k/x-hp320
1916 tm_file=m68k/hp320.h
1918 install_headers_dir=install-headers-cpio
1920 extra_headers=math-68881.h
1924 tm_file=m68k/sun3mach.h
1926 extra_headers=math-68881.h
1930 if test x$gas = xyes
1932 tm_file=m68k/news3gas.h
1934 tm_file=m68k/news3.h
1937 extra_headers=math-68881.h
1940 m68k-sony-bsd* | m68k-sony-newsos*)
1941 if test x$gas = xyes
1943 tm_file=m68k/newsgas.h
1948 extra_headers=math-68881.h
1951 m68k-next-nextstep2*)
1952 tm_file=m68k/next21.h
1953 xm_file="m68k/xm-next.h ${xm_file}"
1954 tmake_file=m68k/t-next
1955 xmake_file=m68k/x-next
1956 extra_objs=nextstep.o
1957 extra_headers=math-68881.h
1961 m68k-next-nextstep[34]*)
1963 xm_file="m68k/xm-next.h ${xm_file}"
1964 tmake_file=m68k/t-next
1965 xmake_file=m68k/x-next
1966 extra_objs=nextstep.o
1967 extra_parts="crtbegin.o crtend.o"
1968 extra_headers=math-68881.h
1970 if test x$enable_threads = xyes; then
1975 if test x$with_fp = xno
1977 tm_file=m68k/sun3n3.h
1979 tm_file=m68k/sun3o3.h
1983 extra_headers=math-68881.h
1985 m68k-sun-sunos*) # For SunOS 4 (the default).
1986 if test x$with_fp = xno
1988 tm_file=m68k/sun3n.h
1994 extra_headers=math-68881.h
1997 tm_file=m68k/vxm68k.h
1998 tmake_file=m68k/t-vxworks68
1999 extra_headers=math-68881.h
2000 thread_file='vxworks'
2004 tmake_file=m68k/t-m68kbare
2005 tm_file="m68k/m68k-aout.h libgloss.h"
2006 extra_headers=math-68881.h
2010 tmake_file=m68k/t-m68kbare
2011 tm_file="m68k/m68k-coff.h dbx.h"
2012 extra_headers=math-68881.h
2015 m68020-*-elf* | m68k-*-elf*)
2016 tm_file="m68k/m68020-elf.h"
2017 xm_file=m68k/xm-m68kv.h
2018 tmake_file=m68k/t-m68kelf
2019 header_files=math-68881.h
2020 extra_parts="crtbegin.o crtend.o"
2023 if test x$gas = xyes
2027 tm_file=m68k/lynx-ng.h
2029 xm_file=m68k/xm-lynx.h
2031 tmake_file=m68k/t-lynx
2032 extra_headers=math-68881.h
2036 tm_file=m68k/netbsd.h
2042 # needed to unconfuse gdb
2043 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
2045 # we need collect2 until our bug is fixed...
2048 m68k-*-sysv3*) # Motorola m68k's running system V.3
2049 xm_file="xm-alloca.h ${xm_file}"
2051 xmake_file=m68k/x-m68kv
2052 extra_parts="crtbegin.o crtend.o"
2053 extra_headers=math-68881.h
2056 m68k-*-sysv4*) # Motorola m68k's running system V.4
2057 tm_file=m68k/m68kv4.h
2058 xm_file="xm-alloca.h ${xm_file}"
2061 extra_parts="crtbegin.o crtend.o"
2062 extra_headers=math-68881.h
2065 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2068 tm_file=m68k/linux-aout.h
2069 tmake_file="t-linux-aout m68k/t-linux-aout"
2070 extra_headers=math-68881.h
2074 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2075 # with ELF format using the
2076 # GNU/Linux C library 5
2078 tm_file=m68k/linux.h
2079 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
2080 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2081 extra_headers=math-68881.h
2085 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2086 # with ELF format using glibc 2
2087 # aka the GNU/Linux C library 6.
2089 tm_file=m68k/linux.h
2090 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
2091 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2092 extra_headers=math-68881.h
2095 if test x$enable_threads = xyes; then
2100 tmake_file=m68k/t-m68kbare
2101 tm_file=m68k/m68k-psos.h
2102 extra_headers=math-68881.h
2106 tmake_file="m68k/t-m68kbare t-rtems"
2107 tm_file=m68k/rtems.h
2108 extra_headers=math-68881.h
2110 if test x$enable_threads = xyes; then
2114 m68k-*-rtemself*|m68k-*-rtems*)
2115 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2116 tm_file=m68k/rtemself.h
2117 extra_headers=math-68881.h
2119 extra_parts="crtbegin.o crtend.o"
2120 if test x$enable_threads = xyes; then
2127 tm_file=m88k/dguxbcs.h
2128 tmake_file=m88k/t-dguxbcs
2132 tmake_file=m88k/t-dgux
2135 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2136 xmake_file=m88k/x-dgux
2137 if test x$gas = xyes
2139 tmake_file=m88k/t-dgux-gas
2142 m88k-dolphin-sysv3*)
2143 tm_file=m88k/dolph.h
2144 extra_parts="crtbegin.o crtend.o"
2145 xm_file="m88k/xm-sysv3.h ${xm_file}"
2146 xmake_file=m88k/x-dolph
2147 if test x$gas = xyes
2149 tmake_file=m88k/t-m88k-gas
2152 m88k-tektronix-sysv3)
2153 tm_file=m88k/tekXD88.h
2154 extra_parts="crtbegin.o crtend.o"
2155 xm_file="m88k/xm-sysv3.h ${xm_file}"
2156 xmake_file=m88k/x-tekXD88
2157 if test x$gas = xyes
2159 tmake_file=m88k/t-m88k-gas
2163 tm_file=m88k/m88k-aout.h
2166 tm_file=m88k/m88k-coff.h
2167 tmake_file=m88k/t-bug
2171 extra_parts="crtbegin.o crtend.o"
2172 if test x$gas = xyes
2174 tmake_file=m88k/t-luna-gas
2176 tmake_file=m88k/t-luna
2180 tmake_file="${tmake_file} m88k/t-luna-gas"
2181 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2182 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2185 tm_file=m88k/sysv3.h
2186 extra_parts="crtbegin.o crtend.o"
2187 xm_file="m88k/xm-sysv3.h ${xm_file}"
2188 xmake_file=m88k/x-sysv3
2189 if test x$gas = xyes
2191 tmake_file=m88k/t-m88k-gas
2195 tm_file=m88k/sysv4.h
2196 extra_parts="crtbegin.o crtend.o"
2197 xmake_file=m88k/x-sysv4
2198 tmake_file=m88k/t-sysv4
2201 tm_file=mcore/mcore-elf.h
2202 tmake_file=mcore/t-mcore
2205 tm_file=mcore/mcore-pe.h
2206 tmake_file=mcore/t-mcore-pe
2208 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2209 if test "x$gnu_ld" = xyes
2211 tm_file="mips/iris6.h mips/iris6gld.h"
2213 tm_file=mips/iris6.h
2215 tmake_file=mips/t-iris6
2216 xm_file=mips/xm-iris6.h
2217 xmake_file=mips/x-iris6
2218 # if test x$enable_threads = xyes; then
2219 # thread_file='irix'
2223 tm_file="mips/elf.h mips/vxworks.h"
2224 tmake_file=mips/t-ecoff
2227 extra_parts="crtbegin.o crtend.o"
2228 thread_file='vxworks'
2230 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2231 tm_file="mips/iris6.h mips/cross64.h"
2233 xm_file="mips/xm-iris5.h"
2234 xmake_file=mips/x-iris
2235 tmake_file=mips/t-cross64
2236 # See comment in mips/iris[56].h files.
2238 # if test x$enable_threads = xyes; then
2239 # thread_file='irix'
2243 if test x$gas = xyes
2245 if test x$stabs = xyes
2247 tm_file=mips/iris5gdb.h
2249 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2252 tm_file=mips/sni-svr4.h
2255 xmake_file=mips/x-sni-svr4
2256 tmake_file=mips/t-mips-gas
2257 if test x$gnu_ld != xyes
2262 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2263 if test x$gas = xyes
2265 tm_file="mips/iris5.h mips/iris5gas.h"
2266 if test x$stabs = xyes
2268 tm_file="${tm_file} dbx.h"
2271 tm_file=mips/iris5.h
2274 xm_file="mips/xm-iris5.h"
2275 xmake_file=mips/x-iris
2276 # mips-tfile doesn't work yet
2277 tmake_file=mips/t-mips-gas
2278 # See comment in mips/iris5.h file.
2280 # if test x$enable_threads = xyes; then
2281 # thread_file='irix'
2284 mips-sgi-irix4loser*) # Mostly like a MIPS.
2285 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2286 if test x$stabs = xyes; then
2287 tm_file="${tm_file} dbx.h"
2290 xmake_file=mips/x-iris
2291 if test x$gas = xyes
2293 tmake_file=mips/t-mips-gas
2295 extra_passes="mips-tfile mips-tdump"
2297 if test x$gnu_ld != xyes
2301 # if test x$enable_threads = xyes; then
2302 # thread_file='irix'
2305 mips-sgi-irix4*) # Mostly like a MIPS.
2306 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2307 if test x$stabs = xyes; then
2308 tm_file="${tm_file} dbx.h"
2311 xmake_file=mips/x-iris
2312 if test x$gas = xyes
2314 tmake_file=mips/t-mips-gas
2316 extra_passes="mips-tfile mips-tdump"
2318 if test x$gnu_ld != xyes
2322 # if test x$enable_threads = xyes; then
2323 # thread_file='irix'
2326 mips-sgi-*) # Mostly like a MIPS.
2327 tm_file="mips/iris3.h ${tm_file}"
2328 if test x$stabs = xyes; then
2329 tm_file="${tm_file} dbx.h"
2332 xmake_file=mips/x-iris3
2333 if test x$gas = xyes
2335 tmake_file=mips/t-mips-gas
2337 extra_passes="mips-tfile mips-tdump"
2339 if test x$gnu_ld != xyes
2344 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2345 tm_file="mips/osfrose.h ${tm_file}"
2346 xmake_file=mips/x-osfrose
2347 tmake_file=mips/t-osfrose
2348 extra_objs=halfpic.o
2351 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2352 tm_file=mips/dec-osf1.h
2353 if test x$stabs = xyes; then
2354 tm_file="${tm_file} dbx.h"
2356 xmake_file=mips/x-dec-osf1
2357 if test x$gas = xyes
2359 tmake_file=mips/t-mips-gas
2361 tmake_file=mips/t-ultrix
2362 extra_passes="mips-tfile mips-tdump"
2364 if test x$gnu_ld != xyes
2369 mips-dec-bsd*) # Decstation running 4.4 BSD
2370 tm_file=mips/dec-bsd.h
2371 if test x$gas = xyes
2373 tmake_file=mips/t-mips-gas
2375 tmake_file=mips/t-ultrix
2376 extra_passes="mips-tfile mips-tdump"
2378 if test x$gnu_ld != xyes
2383 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2384 tm_file=mips/netbsd.h
2385 # On NetBSD, the headers are already okay, except for math.h.
2388 mips*-*-linux*) # Linux MIPS, either endian.
2391 mips*el-*) tm_file="elfos.h mips/elfl.h mips/linux.h" ;;
2392 *) tm_file="elfos.h mips/elf.h mips/linux.h" ;;
2394 tmake_file="t-slibgcc-elf-ver t-linux"
2395 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2398 if test x$enable_threads = xyes; then
2402 mips*el-*-openbsd*) # mips little endian
2403 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2405 mips*-*-openbsd*) # mips big endian
2406 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2407 tm_file="mips/openbsd-be.h ${tm_file}"
2409 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2410 tm_file="mips/news4.h ${tm_file}"
2411 if test x$stabs = xyes; then
2412 tm_file="${tm_file} dbx.h"
2414 if test x$gas = xyes
2416 tmake_file=mips/t-mips-gas
2418 extra_passes="mips-tfile mips-tdump"
2420 if test x$gnu_ld != xyes
2424 xmake_file=mips/x-sony
2426 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2427 # That is based on svr4.
2428 # t-svr4 is not right because this system doesn't use ELF.
2429 tm_file="mips/news5.h ${tm_file}"
2430 if test x$stabs = xyes; then
2431 tm_file="${tm_file} dbx.h"
2434 if test x$gas = xyes
2436 tmake_file=mips/t-mips-gas
2438 extra_passes="mips-tfile mips-tdump"
2440 if test x$gnu_ld != xyes
2445 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2446 tm_file="mips/svr4-5.h mips/svr4-t.h"
2447 if test x$stabs = xyes; then
2448 tm_file="${tm_file} dbx.h"
2451 xmake_file=mips/x-sysv
2452 if test x$gas = xyes
2454 tmake_file=mips/t-mips-gas
2455 extra_parts="crtbegin.o crtend.o"
2457 tmake_file=mips/t-mips
2458 extra_passes="mips-tfile mips-tdump"
2460 if test x$gnu_ld != xyes
2465 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2466 tm_file="mips/ultrix.h ${tm_file}"
2467 if test x$stabs = xyes; then
2468 tm_file="${tm_file} dbx.h"
2470 xmake_file=mips/x-ultrix
2471 if test x$gas = xyes
2473 tmake_file=mips/t-mips-gas
2475 tmake_file=mips/t-ultrix
2476 extra_passes="mips-tfile mips-tdump"
2478 if test x$gnu_ld != xyes
2483 mips-*-riscos[56789]bsd*)
2484 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2485 if test x$stabs = xyes; then
2486 tm_file="${tm_file} dbx.h"
2488 if test x$gas = xyes
2490 tmake_file=mips/t-bsd-gas
2492 tmake_file=mips/t-bsd
2493 extra_passes="mips-tfile mips-tdump"
2495 if test x$gnu_ld != xyes
2500 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2501 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2502 if test x$stabs = xyes; then
2503 tm_file="${tm_file} dbx.h"
2505 if test x$gas = xyes
2507 tmake_file=mips/t-bsd-gas
2509 tmake_file=mips/t-bsd
2510 extra_passes="mips-tfile mips-tdump"
2512 if test x$gnu_ld != xyes
2517 mips-*-riscos[56789]sysv4*)
2518 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2519 if test x$stabs = xyes; then
2520 tm_file="${tm_file} dbx.h"
2522 xmake_file=mips/x-sysv
2523 if test x$gas = xyes
2525 tmake_file=mips/t-svr4-gas
2527 tmake_file=mips/t-svr4
2528 extra_passes="mips-tfile mips-tdump"
2530 if test x$gnu_ld != xyes
2535 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2536 tm_file="mips/svr4-4.h ${tm_file}"
2537 if test x$stabs = xyes; then
2538 tm_file="${tm_file} dbx.h"
2541 xmake_file=mips/x-sysv
2542 if test x$gas = xyes
2544 tmake_file=mips/t-svr4-gas
2546 tmake_file=mips/t-svr4
2547 extra_passes="mips-tfile mips-tdump"
2549 if test x$gnu_ld != xyes
2554 mips-*-riscos[56789]sysv*)
2555 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2556 if test x$stabs = xyes; then
2557 tm_file="${tm_file} dbx.h"
2560 xmake_file=mips/x-sysv
2561 if test x$gas = xyes
2563 tmake_file=mips/t-svr3-gas
2565 tmake_file=mips/t-svr3
2566 extra_passes="mips-tfile mips-tdump"
2568 if test x$gnu_ld != xyes
2573 mips-*-sysv* | mips-*-riscos*sysv*)
2574 tm_file="mips/svr3-4.h ${tm_file}"
2575 if test x$stabs = xyes; then
2576 tm_file="${tm_file} dbx.h"
2579 xmake_file=mips/x-sysv
2580 if test x$gas = xyes
2582 tmake_file=mips/t-svr3-gas
2584 tmake_file=mips/t-svr3
2585 extra_passes="mips-tfile mips-tdump"
2587 if test x$gnu_ld != xyes
2592 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2593 tm_file=mips/mips-5.h
2594 if test x$stabs = xyes; then
2595 tm_file="${tm_file} dbx.h"
2597 if test x$gas = xyes
2599 tmake_file=mips/t-mips-gas
2601 extra_passes="mips-tfile mips-tdump"
2603 if test x$gnu_ld != xyes
2611 tm_file=mips/ecoffl.h
2612 if test x$stabs = xyes; then
2613 tm_file="${tm_file} dbx.h"
2615 tmake_file=mips/t-ecoff
2618 tm_file="gofast.h mips/ecoff.h"
2619 if test x$stabs = xyes; then
2620 tm_file="${tm_file} dbx.h"
2622 tmake_file=mips/t-ecoff
2625 tm_file="mips/elfl.h"
2626 tmake_file=mips/t-elf
2629 tm_file="mips/elf.h"
2630 tmake_file=mips/t-elf
2633 tm_file="mips/elfl64.h"
2634 tmake_file=mips/t-elf
2636 mips64orionel-*-elf*)
2637 tm_file="mips/elforion.h mips/elfl64.h"
2638 tmake_file=mips/t-elf
2641 tm_file="mips/elf64.h"
2642 tmake_file=mips/t-elf
2645 tm_file="mips/elforion.h mips/elf64.h"
2646 tmake_file=mips/t-elf
2648 mips64orion-*-rtems*)
2649 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2650 tmake_file="mips/t-elf t-rtems"
2651 if test x$enable_threads = xyes; then
2656 tm_file="mips/elf.h mips/rtems.h"
2657 tmake_file="mips/t-elf t-rtems"
2658 if test x$enable_threads = xyes; then
2663 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2664 tmake_file=mips/t-r3900
2667 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2668 tmake_file=mips/t-r3900
2670 mips-*-*) # Default MIPS RISC-OS 4.0.
2671 if test x$stabs = xyes; then
2672 tm_file="${tm_file} dbx.h"
2674 if test x$gas = xyes
2676 tmake_file=mips/t-mips-gas
2678 extra_passes="mips-tfile mips-tdump"
2680 if test x$gnu_ld != xyes
2688 tm_file="mn10200/mn10200.h"
2689 if test x$stabs = xyes
2691 tm_file="${tm_file} dbx.h"
2697 tm_file="mn10300/mn10300.h"
2698 if test x$stabs = xyes
2700 tm_file="${tm_file} dbx.h"
2705 tm_file=ns32k/encore.h
2709 tm_file=ns32k/sequent.h
2713 tm_file=ns32k/tek6100.h
2717 tm_file=ns32k/tek6200.h
2721 tm_file=ns32k/merlin.h
2725 tm_file=ns32k/pc532-mach.h
2729 tm_file=ns32k/pc532-min.h
2730 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2735 tm_file=ns32k/netbsd.h
2736 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2737 # On NetBSD, the headers are already okay, except for math.h.
2742 tm_file="${tm_file} pdp11/2bsd.h"
2752 tm_file="svr4.h pj/linux.h ${tm_file}"
2757 tm_file="svr4.h pj/pjl.h ${tm_file}"
2764 xmake_file=romp/x-mach
2771 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2775 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2776 xm_file=rs6000/xm-beos.h
2777 tmake_file=rs6000/t-beos
2778 xmake_file=rs6000/x-beos
2781 xm_file="rs6000/xm-rs6000.h rs6000/xm-darwin.h"
2782 xmake_file=rs6000/x-darwin
2785 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2786 xm_file="rs6000/xm-sysv4.h"
2787 xm_defines="USG POSIX"
2788 extra_headers=ppc-asm.h
2789 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2790 xmake_file=rs6000/x-sysv4
2792 powerpc-*-chorusos*)
2793 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2794 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2795 extra_headers=ppc-asm.h
2796 case x${enable_threads} in
2797 xyes | xpthreads | xposix)
2803 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2804 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2805 extra_headers=ppc-asm.h
2808 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2809 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2810 extra_headers=ppc-asm.h
2813 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2814 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2815 extra_headers=ppc-asm.h
2818 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2819 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2820 extra_headers=ppc-asm.h
2823 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2824 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2825 extra_headers=ppc-asm.h
2826 if test x$enable_threads = xyes; then
2830 powerpc-*-linux*libc1)
2831 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2832 xm_file=rs6000/xm-sysv4.h
2833 out_file=rs6000/rs6000.c
2834 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2836 extra_headers=ppc-asm.h
2837 if test x$enable_threads = xyes; then
2842 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2843 xm_file="rs6000/xm-sysv4.h"
2844 xm_defines="USG ${xm_defines}"
2845 out_file=rs6000/rs6000.c
2846 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2848 extra_headers=ppc-asm.h
2849 if test x$enable_threads = xyes; then
2853 powerpc-wrs-vxworks*)
2855 xm_file="rs6000/xm-sysv4.h"
2856 xm_defines="USG POSIX"
2857 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2858 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2859 extra_headers=ppc-asm.h
2860 thread_file='vxworks'
2862 powerpcle-wrs-vxworks*)
2864 xm_file="rs6000/xm-sysv4.h"
2865 xm_defines="USG POSIX"
2866 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2867 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2868 extra_headers=ppc-asm.h
2869 thread_file='vxworks'
2872 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2873 xm_file="rs6000/xm-sysv4.h"
2874 xm_defines="USG POSIX"
2875 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2876 xmake_file=rs6000/x-sysv4
2877 extra_headers=ppc-asm.h
2880 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2881 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2882 extra_headers=ppc-asm.h
2884 powerpcle-*-eabisim*)
2885 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2886 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2887 extra_headers=ppc-asm.h
2890 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2891 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2892 extra_headers=ppc-asm.h
2894 powerpcle-*-solaris2*)
2895 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2896 xm_file="rs6000/xm-sysv4.h"
2897 xm_defines="USG POSIX"
2898 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2899 xmake_file=rs6000/x-sysv4
2900 extra_headers=ppc-asm.h
2902 rs6000-ibm-aix3.[01]*)
2903 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2904 xmake_file=rs6000/x-aix31
2908 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2909 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2910 if test x$host != x$target
2912 tmake_file=rs6000/t-xnewas
2914 tmake_file=rs6000/t-newas
2919 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2920 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2921 if test x$host != x$target
2923 tmake_file=rs6000/t-xnewas
2925 tmake_file=rs6000/t-newas
2927 if test "$gnu_ld" = yes
2929 xmake_file=rs6000/x-aix41-gld
2931 tmake_file='rs6000/t-newas'
2933 xmake_file=rs6000/x-aix41
2937 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2938 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2939 tmake_file=rs6000/t-aix43
2940 xmake_file=rs6000/x-aix41
2945 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2946 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2947 tmake_file=rs6000/t-aix43
2948 xmake_file=rs6000/x-aix41
2954 tm_file="${tm_file} rs6000/aix.h"
2959 tm_file="${tm_file} rs6000/aix.h"
2964 tm_file=rs6000/mach.h
2965 xm_file="${xm_file} rs6000/xm-mach.h"
2966 xmake_file=rs6000/x-mach
2970 tm_file=rs6000/lynx.h
2971 xm_file=rs6000/xm-lynx.h
2972 tmake_file=rs6000/t-rs6000
2973 xmake_file=rs6000/x-lynx
2977 tm_file="s390/s390.h linux.h s390/linux.h"
2978 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2980 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2981 if test x$enable_threads = xyes; then
2986 tm_file="s390/s390.h linux.h s390/linux.h s390/linux64.h"
2987 tm_p_file=s390/s390-protos.h
2988 xm_file=s390/xm-s390x.h
2989 md_file=s390/s390.md
2990 out_file=s390/s390.c
2991 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2993 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2994 if test x$enable_threads = xyes; then
2999 tmake_file="sh/t-sh sh/t-elf"
3000 tm_file="sh/sh.h sh/elf.h"
3004 tmake_file="sh/t-sh sh/t-elf t-rtems"
3005 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
3007 if test x$enable_threads = xyes; then
3012 tmake_file="sh/t-sh t-rtems"
3013 tm_file="sh/sh.h sh/rtems.h"
3015 if test x$enable_threads = xyes; then
3020 tm_file="sh/sh.h sh/elf.h sh/linux.h"
3021 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
3024 if test x$enable_threads = xyes; then
3034 xm_file="xm-alloca.h ${xm_file}"
3037 sparc64-wrs-vxworks*)
3038 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
3039 tmake_file=sparc/t-vxsparc64
3042 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3043 tm_file=sparc/vxsparc.h
3044 tmake_file=sparc/t-vxsparc
3046 thread_file='vxworks'
3049 tmake_file=sparc/t-sparcbare
3050 tm_file="sparc/aout.h libgloss.h"
3053 tm_file=sparc/netbsd.h
3058 # needed to unconfuse gdb
3059 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
3060 # we need collect2 until our bug is fixed...
3067 tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
3068 tmake_file=sparc/t-chorus-elf
3069 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3071 case x${enable_threads} in
3072 xyes | xpthreads | xposix)
3078 tm_file="sparc/sol2.h sparc/elf.h"
3079 tmake_file=sparc/t-elf
3080 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3084 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
3085 xm_file="${xm_file} sparc/xm-linux.h"
3086 tm_file=sparc/linux-aout.h
3090 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
3091 xm_file="${xm_file} sparc/xm-linux.h"
3093 tm_file=sparc/linux.h
3094 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
3095 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3099 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3100 xm_file="${xm_file} sparc/xm-linux.h"
3102 tm_file=sparc/linux.h
3103 tmake_file="t-slibgcc-elf-ver t-linux"
3104 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3106 if test x$enable_threads = xyes; then
3112 if test x$gas = xyes
3114 tm_file=sparc/lynx.h
3116 tm_file=sparc/lynx-ng.h
3118 xm_file=sparc/xm-lynx.h
3119 tmake_file=sparc/t-sunos41
3123 tmake_file="sparc/t-sparcbare t-rtems"
3124 tm_file=sparc/rtems.h
3125 if test x$enable_threads = xyes; then
3129 sparc-*-rtems*|sparc-*-rtemself*)
3130 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
3131 tmake_file="sparc/t-elf t-rtems"
3132 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3135 if test x$enable_threads = xyes; then
3139 sparcv9-*-solaris2*)
3140 if test x$gnu_ld = xyes
3142 tm_file=sparc/sol2-64.h
3144 tm_file=sparc/sol2-sld-64.h
3146 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3147 xm_defines="USG POSIX"
3148 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3149 if test x$gnu_ld = xyes; then
3150 tmake_file="$tmake_file t-slibgcc-elf-ver"
3152 tmake_file="$tmake_file t-slibgcc-sld"
3154 xmake_file=sparc/x-sysv4
3155 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3157 if test x${enable_threads} = x ; then
3158 enable_threads=$have_pthread_h
3159 if test x${enable_threads} = x ; then
3160 enable_threads=$have_thread_h
3163 if test x${enable_threads} = xyes ; then
3164 if test x${have_pthread_h} = xyes ; then
3167 thread_file='solaris'
3171 sparc-hal-solaris2*)
3172 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3173 xm_defines="USG POSIX"
3174 tm_file="sparc/sol2.h sparc/hal.h"
3175 tmake_file="sparc/t-halos sparc/t-sol2"
3176 if test x$gnu_ld = xyes; then
3177 tmake_file="$tmake_file t-slibgcc-elf-ver"
3179 tmake_file="$tmake_file t-slibgcc-sld"
3181 xmake_file=sparc/x-sysv4
3182 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3191 thread_file='solaris'
3194 if test x$gnu_ld = xyes
3196 tm_file=sparc/sol2.h
3198 tm_file=sparc/sol2-sld.h
3200 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3201 xm_defines="USG POSIX"
3202 tmake_file=sparc/t-sol2
3203 if test x$gnu_ld = xyes; then
3204 tmake_file="$tmake_file t-slibgcc-elf-ver"
3206 tmake_file="$tmake_file t-slibgcc-sld"
3208 xmake_file=sparc/x-sysv4
3209 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3210 # At the moment, 32-to-64 cross compilation doesn't work.
3212 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3214 # if test x$gnu_ld = xyes
3216 # tm_file=sparc/sol2-64.h
3218 # tm_file=sparc/sol2-sld-64.h
3220 # tmake_file="$tmake_file sparc/t-sol2-64"
3231 if test x${enable_threads} = x; then
3232 enable_threads=$have_pthread_h
3233 if test x${enable_threads} = x; then
3234 enable_threads=$have_thread_h
3237 if test x${enable_threads} = xyes; then
3238 if test x${have_pthread_h} = xyes; then
3241 thread_file='solaris'
3246 tm_file=sparc/sunos4.h
3247 tmake_file=sparc/t-sunos40
3251 tm_file=sparc/sunos4.h
3252 tmake_file=sparc/t-sunos41
3254 if test x$gas = xyes; then
3255 tm_file="${tm_file} sparc/sun4gas.h"
3259 tm_file=sparc/sun4o3.h
3263 tm_file=sparc/sysv4.h
3264 xm_file="sparc/xm-sysv4.h"
3265 xm_defines="USG POSIX"
3267 xmake_file=sparc/x-sysv4
3268 extra_parts="crtbegin.o crtend.o"
3271 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3272 xm_defines="USG POSIX"
3273 tm_file=sparc/vxsim.h
3274 tmake_file=sparc/t-vxsparc
3275 xmake_file=sparc/x-sysv4
3278 tm_file="sparc/splet.h libgloss.h"
3279 tmake_file=sparc/t-splet
3282 tm_file="sparc/litecoff.h libgloss.h"
3283 tmake_file=sparc/t-sparclite
3286 tm_file="sparc/lite.h aoutos.h libgloss.h"
3287 tmake_file=sparc/t-sparclite
3290 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3291 tmake_file=sparc/t-sparclite
3292 extra_parts="crtbegin.o crtend.o"
3295 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3296 tmake_file=sparc/t-sp86x
3299 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3300 tmake_file=sparc/t-sp86x
3301 extra_parts="crtbegin.o crtend.o"
3304 tmake_file=sparc/t-sp64
3305 tm_file=sparc/sp64-aout.h
3308 tmake_file=sparc/t-sp64
3309 tm_file=sparc/sp64-elf.h
3310 extra_parts="crtbegin.o crtend.o"
3312 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3313 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64"
3314 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3315 tm_file=sparc/linux64.h
3317 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3319 if test x$enable_threads = xyes; then
3325 tm_file=arm/strongarm-elf.h
3326 tmake_file=arm/t-strongarm-elf
3328 xm_file=arm/xm-arm.h
3332 tm_file=arm/strongarm-coff.h
3333 tmake_file=arm/t-strongarm-coff
3335 xm_file=arm/xm-arm.h
3339 tm_file=arm/strongarm-pe.h
3340 tmake_file=arm/t-strongarm-pe
3342 xm_file=arm/xm-arm.h
3347 { echo "config.gcc: error:
3348 *** The Thumb targets have been deprecated. The equivalent
3349 *** ARM based toolchain can now generate Thumb instructions
3350 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3354 tm_file="v850/rtems.h"
3355 xm_file="v850/xm-v850.h"
3356 tmake_file="v850/t-v850 t-rtems"
3357 if test x$stabs = xyes
3359 tm_file="${tm_file} dbx.h"
3362 c_target_objs="v850-c.o"
3363 cxx_target_objs="v850-c.o"
3366 target_cpu_default="TARGET_CPU_generic"
3368 tm_file="v850/v850.h"
3369 xm_file="v850/xm-v850.h"
3370 tmake_file=v850/t-v850
3371 if test x$stabs = xyes
3373 tm_file="${tm_file} dbx.h"
3376 c_target_objs="v850-c.o"
3377 cxx_target_objs="v850-c.o"
3379 vax-*-bsd*) # vaxen running BSD
3383 vax-*-sysv*) # vaxen running system V
3384 tm_file="${tm_file} vax/vaxv.h"
3389 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3395 tmake_file="${tmake_file} vax/t-openbsd"
3396 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3397 xm_file="xm-openbsd.h vax/xm-vax.h"
3401 vax-*-ultrix*) # vaxen running ultrix
3402 tm_file="${tm_file} vax/ultrix.h"
3405 vax-*-vms*) # vaxen running VMS
3406 xm_file=vax/xm-vms.h
3410 vax-*-*) # vax default entry
3414 xm_file="${xm_file} xm-svr3"
3418 tm_file=arm/xscale-elf.h
3419 tmake_file=arm/t-xscale-elf
3421 xm_file=arm/xm-arm.h
3425 tm_file=arm/xscale-coff.h
3426 tmake_file=arm/t-xscale-coff
3428 xm_file=arm/xm-arm.h
3432 echo "Configuration $machine not supported" 1>&2
3439 xmake_try_sysv=x-sysv
3440 install_headers_dir=install-headers-cpio
3443 install_headers_dir=install-headers-cpio
3447 # Distinguish i[34567]86
3448 # Also, do not run mips-tfile on MIPS if using gas.
3449 # Process --with-cpu= for PowerPC/rs6000
3450 target_cpu_default2=
3453 target_cpu_default2=1
3456 case $target_alias in
3458 target_cpu_default2=4
3461 target_cpu_default2=2
3465 i686-*-* | i786-*-*)
3466 target_cpu_default2=3
3471 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3474 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3477 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3480 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3483 target_cpu_default2="MASK_CPU_EV5"
3487 if test x$gas = xyes
3489 if test "$target_cpu_default2" = ""
3491 target_cpu_default2="MASK_GAS"
3493 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3498 case "x$with_cpu" in
3501 target_cpu_default2="TARGET_CPU_generic"
3504 # Distinguish cores, and major variants
3505 # arm7m doesn't exist, but D & I don't affect code
3506 xarm[236789] | xarm250 | xarm[67][01]0 \
3507 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3508 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3510 | xstrongarm | xstrongarm110 | xstrongarm1100)
3511 target_cpu_default2="TARGET_CPU_$with_cpu"
3515 echo "--with-cpu must be passed a value" 1>&2
3520 if test x$pass2done = xyes
3522 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3529 mips*-*-ecoff* | mips*-*-elf*)
3530 if test x$gas = xyes
3532 if test x$gnu_ld = xyes
3534 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3536 target_cpu_default2="MASK_GAS"
3541 if test x$gas = xyes
3543 target_cpu_default2="MASK_GAS"
3546 powerpc*-*-* | rs6000-*-*)
3547 case "x$with_cpu" in
3551 xcommon | xpower | xpower2 | xpowerpc | xrios \
3552 | xrios1 | xrios2 | xrsc | xrsc1 \
3553 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3554 | xec603e | x740 | x750 | x401 \
3555 | x403 | x505 | x801 | x821 | x823 | x860)
3556 target_cpu_default2="\\\"$with_cpu\\\""
3560 echo "--with-cpu must be passed a value" 1>&2
3565 if test x$pass2done = xyes
3567 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3574 case ".$with_cpu" in
3576 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3578 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3579 target_cpu_default2="TARGET_CPU_$with_cpu"
3582 if test x$pass2done = xyes
3584 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3592 if test "$target_cpu_default2" != ""
3594 if test "$target_cpu_default" != ""
3596 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3598 target_cpu_default=$target_cpu_default2
3602 # No need for collect2 if we have the GNU linker.
3603 # Actually, there is now; GNU ld doesn't handle the EH info or
3604 # collecting for shared libraries.
3611 # Save data on machine being used to compile GCC in build_xm_file.
3612 # Save data on host machine in vars host_xm_file and host_xmake_file.
3613 if test x$pass1done = x
3615 if test x"$xm_file" = x
3616 then build_xm_file=$cpu_type/xm-$cpu_type.h
3617 else build_xm_file=$xm_file
3619 build_xm_defines=$xm_defines
3620 build_install_headers_dir=$install_headers_dir
3621 build_exeext=$exeext
3624 if test x$pass2done = x
3626 if test x"$xm_file" = x
3627 then host_xm_file=$cpu_type/xm-$cpu_type.h
3628 else host_xm_file=$xm_file
3630 host_xm_defines=$xm_defines
3631 if test x"$xmake_file" = x
3632 then xmake_file=$cpu_type/x-$cpu_type
3634 host_xmake_file="$xmake_file"
3635 host_truncate_target=$truncate_target
3636 host_extra_gcc_objs=$extra_gcc_objs
3637 host_extra_objs=$extra_host_objs