1 # GCC build-, host- and target-specific configuration file.
2 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003
3 # Free Software Foundation, Inc.
5 #This file is part of GCC.
7 #GCC is free software; you can redistribute it and/or modify it under
8 #the terms of the GNU General Public License as published by the Free
9 #Software Foundation; either version 2, or (at your option) any later
12 #GCC is distributed in the hope that it will be useful, but WITHOUT
13 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 #You should have received a copy of the GNU General Public License
18 #along with GCC; see the file COPYING. If not, write to the Free
19 #Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 # This is the GCC build-, host- and target-specific configuration file
23 # where a configuration type, as recognized and generated by config.bfd,
24 # is mapped to different system-specific definitions and files. This is
25 # invoked by the autoconf-generated configure script, called for build,
26 # host and target in that order, setting ${machine} to each. Putting it
27 # in a separate shell file lets us skip running autoconf when modifying
28 # build-, host- and target-specific information.
30 # This file switches on the shell variable ${machine}, and also uses the
31 # following shell variables:
33 # with_* Various variables as set by configure.
35 # enable_threads_flag Either the name, yes or no depending on whether
36 # threads support was requested.
38 # default_use_cxa_atexit
39 # "no" by default, can be set to "yes" if a target
40 # wishes to use __cxa_atexit() by default if the
41 # $enable___cxa_atexit variable is not set.
43 # gas_flag Either yes or no depending on whether GNU as was
46 # gnu_ld_flag Either yes or no depending on whether GNU ld was
49 # This file sets the following shell variables for use by the
50 # autoconf-generated configure script:
52 # cpu_type The name of the cpu, if different from machine.
54 # tm_defines List of target macros to define for all compilations.
56 # tm_file A list of target macro files, if different from
57 # "$cpu_type/$cpu_type.h". Usually it's constructed
58 # per target in a way like this:
59 # tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
60 # Note that the preferred order is:
61 # - specific target header "${cpu_type}/${cpu_type.h}"
62 # - generic headers like dbxelf.h elfos.h, netware.h, etc.
63 # - specializing target headers like ${cpu_type.h}/elf.h
64 # This helps to keep OS specific stuff out of the CPU
65 # defining header ${cpu_type}/${cpu_type.h}.
67 # tm_p_file Location of file with declarations for functions
70 # out_file The name of the machine description C support
71 # file, if different from "$cpu_type/$cpu_type.c".
73 # md_file The name of the machine-description file, if
74 # different from "$cpu_type/$cpu_type.md".
76 # tmake_file A list of machine-description-specific
77 # makefile-fragments, if different from
78 # "$cpu_type/t-$cpu_type".
80 # extra_modes The name of the file containing a list of extra
81 # machine modes, if necessary and different from
82 # "$cpu_type/$cpu_type-modes.def".
84 # extra_objs List of extra objects that should be linked into
85 # the compiler proper (cc1, cc1obj, cc1plus)
86 # depending on target.
88 # extra_headers List of used header files from the directory
91 # host_xmake_file List of host-specific makefile-fragments.
93 # extra_passes List of extra executables compiled for this target
94 # machine, used for compiling from source to object.
96 # extra_parts List of extra object files that should be compiled
97 # for this target machine.
99 # extra_programs Like extra_passes, but these are used when linking.
101 # host_extra_objs List of extra host-dependent objects that should
102 # be linked into the compiler proper.
104 # host_extra_gcc_objs List of extra host-dependent objects that should
105 # be linked into the gcc driver.
107 # out_host_hook_obj An object file that provides the host hooks.
109 # c_target_objs List of extra target-dependent objects that be
110 # linked into the C compiler only.
112 # cxx_target_objs List of extra target-dependent objects that be
113 # linked into the C++ compiler only.
115 # target_gtfiles List of extra source files with type information.
117 # build_xm_defines List of macros to define when compiling for the
120 # build_xm_file List of files to include when compiling for the
123 # host_xm_defines List of macros to define when compiling for the
126 # host_xm_file List of files to include when compiling for the
129 # xm_defines List of macros to define when compiling for the
132 # xm_file List of files to include when compiling for the
135 # use_collect2 Set to yes or no, depending on whether collect2
138 # target_cpu_default Set to override the default target model.
140 # build_install_headers_dir
141 # Target to use when installing header files.
143 # gdb_needs_out_file_path
144 # Set to yes if gdb needs a dir command with
145 # `dirname $out_file`.
147 # build_exeext Set to the suffix, if the build machine requires
148 # executables to have a file name suffix.
150 # host_exeext Set to the suffix, if the host machine requires
151 # executables to have a file name suffix.
153 # thread_file Set to control which thread package to use.
155 # gas Set to yes or no depending on whether the target
156 # system normally uses GNU as.
158 # need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide
159 # for this target. This is true iff
160 # MAX_LONG_TYPE_SIZE is 64. (The code which
161 # determines the underlying integral type for
162 # HOST_WIDE_INT cannot see the definition of
163 # MAX_LONG_TYPE_SIZE.)
165 # configure_default_options
166 # Set to an initializer for configure_default_options
167 # in configargs.h, based on --with-cpu et cetera.
169 # The following variables are used in each case-construct to build up the
170 # outgoing variables:
172 # xmake_file Makefile-fragment when this system is as a host,
173 # for host_xmake_file.
175 # extra_host_objs List of extra objects that should be linked into
176 # the compiler proper when this system is a host,
177 # for host_extra_objs.
179 # host_hook_obj An object file that provides the host hooks.
181 # install_headers_dir Makefile-target for how the header file directory
182 # is installed, when this system is a build system,
183 # for build_install_headers_dir.
185 # exeext The suffix for executables on this system.
187 # gnu_ld Set to yes or no depending on whether the target
188 # system normally uses GNU ld.
202 host_hook_obj=host-default.o
205 # Set this to force installation and use of collect2.
207 # Set this to override the default target model.
209 # Set this to control how the header file directory is installed.
210 install_headers_dir=install-headers-tar
211 # Set this if gdb needs a dir command with `dirname $out_file`
212 gdb_needs_out_file_path=
213 # Set this if the build machine requires executables to have a
216 # Set this to control which thread package will be used.
218 # Reinitialize these from the flag values every loop pass, since some
219 # configure entries modify them.
221 gnu_ld="$gnu_ld_flag"
222 enable_threads=$enable_threads_flag
223 default_use_cxa_atexit=no
227 # Don't carry these over build->host->target. Please.
231 # Obsolete configurations.
234 if test "x$enable_obsolete" != xyes; then
235 echo "*** Configuration $machine is obsolete." >&2
236 echo "*** Specify --enable-obsolete to build it anyway." >&2
237 echo "*** Support will be REMOVED in the next major release of GCC," >&2
238 echo "*** unless a maintainer comes forward." >&2
243 # Unsupported targets list. Do not put an entry in this list unless
244 # it would otherwise be caught by a more permissive pattern. The list
245 # should be in alphabetical order.
247 alpha*-*-linux*libc1* \
248 | i[34567]86-sequent-sysv* \
249 | i[34567]86-go32-* \
250 | i[34567]86-*-go32* \
251 | m68k-*-linux*aout* \
252 | m68k-*-linux*libc1* \
253 | mips64orion*-*-rtems* \
254 | powerpc-*-linux*libc1* \
255 | sparc-*-linux*aout* \
256 | sparc-*-linux*libc1* \
257 | sparc-hal-solaris2* \
264 echo "*** Configuration $machine not supported" 1>&2
269 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
270 # updated in each machine entry. Also set default extra_headers for some
273 cpu_type=`echo $machine | sed 's/-.*$//'`
287 extra_headers="mmintrin.h"
294 extra_headers="mmintrin.h"
298 extra_headers="mmintrin.h xmmintrin.h emmintrin.h pmmintrin.h"
302 extra_headers="mmintrin.h xmmintrin.h emmintrin.h pmmintrin.h"
306 extra_headers=ia64intrin.h
309 hppa*-*-* | parisc*-*-*)
314 extra_headers=math-68881.h
317 extra_headers=math-68881.h
325 extra_headers="ppc-asm.h altivec.h spe.h"
341 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
351 tm_file=${cpu_type}/${cpu_type}.h
352 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
354 tm_p_file=${cpu_type}/${cpu_type}-protos.h
357 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
359 extra_modes=${cpu_type}/${cpu_type}-modes.def
364 tm_file="i386/biarch64.h ${tm_file}"
368 # On a.out targets, we need to use collect2.
375 # Common parts for widely ported systems.
379 *-*-linux*libc1* | *-*-linux*aout*)
382 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
384 case x${enable_threads} in
385 x | xyes | xposix) thread_file='posix'
392 # On the Hurd, the setup is just about the same on
393 # each different CPU. The specific machines that we
394 # support are matched above and just set $cpu_type.
395 tm_file="${cpu_type}/gnu.h"
396 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
397 # GNU always uses ELF.
399 # GNU tools are the only tools.
402 # These details are the same as for Linux.
403 # But here we need a little extra magic.
404 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
407 tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
410 tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}"
415 tm_file=${cpu_type}/openbsd.h
416 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
417 if test x$enable_threads = xyes; then
419 tmake_file="${tmake_file} t-openbsd-thread"
423 tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic"
427 # NetBSD 2.0 and later get POSIX threads enabled by default.
428 # Allow them to be explicitly enabled on any other version.
429 case x${enable_threads} in
432 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
434 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
440 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
444 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
445 # ELF configurations. We will clear extra_parts in the
446 # a.out configurations.
448 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
449 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
453 # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
454 # default (unless overridden by --disable-__cxa_atexit).
456 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
457 default_use_cxa_atexit=yes
461 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
462 # This is the place-holder for the generic a.out configuration
463 # of FreeBSD. No actual configuration resides here since
464 # there was only ever a bare-bones ix86 configuration for
465 # a.out and it exists solely in the machine-specific section.
466 # This place-holder must exist to avoid dropping into
467 # the generic ELF configuration of FreeBSD (i.e. it must be
468 # ordered before that section).
471 # This is the generic ELF configuration of FreeBSD. Later
472 # machine-specific sections may refine and add to this
475 # Due to tm_file entry ordering issues that vary between cpu
476 # architectures, we only define fbsd_tm_file to allow the
477 # machine-specific section to dictate the final order of all
478 # entries of tm_file with the minor exception that components
479 # of the tm_file set here will always be of the form:
481 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
483 # The machine-specific section should not tamper with this
484 # ordering but may order all other entries of tm_file as it
485 # pleases around the provided core setting.
488 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
490 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
491 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
492 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
493 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
494 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
496 tmake_file="t-slibgcc-elf-ver t-freebsd"
498 case x${enable_threads} in
499 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
500 x | xyes | xpthreads | xposix)
502 tmake_file="${tmake_file} t-freebsd-thread"
503 # Before 5.0, FreeBSD can't bind shared libraries to -lc
504 # when "optionally" threaded via weak pthread_* checks.
506 *-*-freebsd[34] | *-*-freebsd[34].*)
507 tmake_file="${tmake_file} t-slibgcc-nolc-override";;
510 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
512 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
515 tm_file="${tm_file} darwin.h"
516 tm_p_file="${tm_p_file} darwin-protos.h"
517 tmake_file="t-darwin"
518 target_gtfiles="\$(srcdir)/config/darwin.c"
519 c_target_objs="darwin-c.o"
520 cxx_target_objs="darwin-c.o"
522 extra_objs="darwin.o"
523 case x${enable_threads} in
524 x | xyes | xposix) thread_file='posix'
530 tm_file="${tm_file} elfos.h svr4.h vxworks.h"
531 thread_file='vxworks'
537 # Support site-specific machine types.
539 rest=`echo $machine | sed -e "s/$cpu_type-//"`
540 tm_file=${cpu_type}/$rest.h
541 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
542 then xm_file=${cpu_type}/xm-$rest.h
544 if test -f $srcdir/config/${cpu_type}/x-$rest
545 then xmake_file=${cpu_type}/x-$rest
547 if test -f $srcdir/config/${cpu_type}/t-$rest
548 then tmake_file=${cpu_type}/t-$rest
553 tm_file="${tm_file} alpha/unicosmk.h"
555 # Don't include t-ieee for now because we don't support that yet
556 # tmake_file="alpha/t-ieee"
557 tmake_file="alpha/t-unicosmk"
560 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
561 target_cpu_default="MASK_GAS"
562 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
565 target_cpu_default="MASK_GAS"
566 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
569 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
570 target_cpu_default="MASK_GAS"
571 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
572 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
575 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
576 target_cpu_default="MASK_GAS"
577 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
581 tm_file="${cpu_type}/${cpu_type}.h ${tm_file}"
582 # default x-alpha is only appropriate for dec-osf.
583 target_cpu_default="MASK_GAS"
584 tmake_file="alpha/t-alpha alpha/t-ieee"
588 if test x$stabs = xyes
590 tm_file="${tm_file} dbx.h"
592 if test x$gas != xyes
594 extra_passes="mips-tfile mips-tdump"
597 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
598 tm_file="${tm_file} alpha/osf.h"
599 extra_headers=va_list.h
602 # Some versions of OSF4 (specifically X4.0-9 296.7) have
603 # a broken tar, so we use cpio instead.
604 install_headers_dir=install-headers-cpio
605 # Set target_cpu_default except on 4.0a.
608 *) target_cpu_default=MASK_SUPPORT_ARCH
612 tm_file="${tm_file} alpha/osf5.h"
613 target_cpu_default=MASK_SUPPORT_ARCH
616 case x${enable_threads} in
617 x | xyes | xpthreads | xposix)
619 tmake_file="${tmake_file} alpha/t-osf-pthread"
624 tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
625 xm_file="alpha/xm-vms.h"
626 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
627 xmake_file=alpha/x-vms
629 # This removes the cpu type and manufacturer components and
630 # replaces "." with "_" in the operating system version.
631 case $host in *-*-*vms*)
632 target_alias=`echo $host \
633 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
636 install_headers_dir=install-headers-cp
641 tm_file="${tm_file} alpha/vms.h"
642 xm_file=alpha/xm-vms.h
643 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
644 xmake_file=alpha/x-vms
646 # This removes the cpu type and manufacturer components and
647 # replaces "." with "_" in the operating system version.
648 case $host in *-*-*vms*)
649 target_alias=`echo $host \
650 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
653 install_headers_dir=install-headers-cp
658 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
659 extra_parts="crtinit.o crtfini.o"
661 arm-*-coff* | armel-*-coff*)
662 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h"
663 tmake_file=arm/t-arm-coff
665 arm-semi-aof | armel-semi-aof)
666 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
667 tmake_file=arm/t-semi
669 arm*-*-freebsd*|strongarm*-*-freebsd*)
670 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
671 tmake_file="${tmake_file} arm/t-strongarm-elf"
674 tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
675 tmake_file="${tmake_file} arm/t-netbsd"
678 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
679 tmake_file="t-netbsd arm/t-netbsd"
683 arm*-*-linux*) # ARM GNU/Linux with ELF
684 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h"
685 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
686 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
688 case x${enable_threads} in
689 x | xyes | xpthreads | xposix)
694 arm*-*-uclinux*) # ARM ucLinux
695 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h"
696 tmake_file=arm/t-arm-elf
699 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
700 tmake_file=arm/t-arm-elf
703 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h"
704 tmake_file="arm/t-arm-elf t-rtems"
705 if test x$enable_threads = xyes; then
709 arm*-*-elf | ep9312-*-elf)
710 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
711 tmake_file=arm/t-arm-elf
714 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h arm/wince-pe.h"
715 tmake_file=arm/t-wince-pe
719 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h"
724 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-arm.h"
725 tmake_file=arm/t-arm-elf
729 c4x-*-rtems* | tic4x-*-rtems*)
730 tmake_file="c4x/t-c4x t-rtems"
731 tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
732 if test x$enable_threads = xyes; then
735 c_target_objs="c4x-c.o"
736 cxx_target_objs="c4x-c.o"
740 c_target_objs="c4x-c.o"
741 cxx_target_objs="c4x-c.o"
744 tm_file="dbxelf.h ${tm_file} cris/aout.h"
746 tmake_file="cris/t-cris cris/t-aout"
748 cris-*-elf | cris-*-none)
749 tm_file="dbxelf.h elfos.h ${tm_file}"
750 tmake_file="cris/t-cris cris/t-elfmulti"
754 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
755 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
758 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
763 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
764 tmake_file=fr30/t-fr30
765 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
768 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h"
772 tmake_file="h8300/t-h8300 t-rtems"
773 tm_file="h8300/h8300.h h8300/rtems.h rtems.h"
774 if test x$enable_threads = xyes; then
779 tmake_file="h8300/t-h8300 h8300/t-elf"
780 tm_file="h8300/h8300.h h8300/elf.h"
784 hppa*64*-*-linux* | parisc*64*-*-linux*)
785 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
786 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
787 pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
788 tmake_file=pa/t-linux64
792 hppa*-*-linux* | parisc*-*-linux*)
793 target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS"
794 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
795 pa/pa32-regs.h pa/pa32-linux.h"
796 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
799 target_cpu_default="MASK_PA_11"
803 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
804 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
805 tmake_file="pa/t-bsd pa/t-pro"
806 xmake_file="pa/x-ada"
809 target_cpu_default="MASK_PA_11"
810 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
811 tmake_file="pa/t-bsd pa/t-pa"
812 xmake_file="pa/x-ada"
816 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
817 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h rtems.h"
818 tmake_file="pa/t-bsd pa/t-pro t-rtems"
819 xmake_file="pa/x-ada"
820 if test x$enable_threads = xyes; then
825 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
826 target_cpu_default="MASK_PA_11"
827 tmake_file="pa/t-bsd pa/t-pa"
828 xmake_file="pa/x-ada"
831 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
832 target_cpu_default="MASK_PA_11"
833 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
834 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
835 xmake_file="pa/x-ada"
836 if test x$enable_threads = x; then
837 enable_threads=$have_pthread_h
839 case x${enable_threads} in
841 tmake_file="${tmake_file} pa/t-dce-thr"
844 install_headers_dir=install-headers-cpio
848 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
849 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
850 xmake_file="pa/x-ada"
851 if test x$enable_threads = x; then
852 enable_threads=$have_pthread_h
854 case x${enable_threads} in
856 tmake_file="${tmake_file} pa/t-dce-thr"
859 install_headers_dir=install-headers-cpio
865 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
866 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
867 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
869 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \
870 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
871 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
874 tmake_file="pa/t-pa64 pa/t-pa-hpux"
875 xmake_file="pa/x-ada"
876 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
877 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
878 if test x$gnu_ld = xyes
880 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
882 # if [ x$enable_threads = x ]; then
883 # enable_threads=$have_pthread_h
885 # if [ x$enable_threads = xyes ]; then
887 # tmake_file="${tmake_file} pa/t-dce-thr"
889 install_headers_dir=install-headers-cpio
891 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
892 target_cpu_default="MASK_PA_11"
893 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
894 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
895 xmake_file="pa/x-ada"
896 # if test x$enable_threads = x; then
897 # enable_threads=$have_pthread_h
899 # if test x$enable_threads = xyes; then
901 # tmake_file="${tmake_file} pa/t-dce-thr"
903 install_headers_dir=install-headers-cpio
907 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
908 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
909 xmake_file="pa/x-ada"
910 # if test x$enable_threads = x; then
911 # enable_threads=$have_pthread_h
913 # if test x$enable_threads = xyes; then
915 # tmake_file="${tmake_file} pa/t-dce-thr"
917 install_headers_dir=install-headers-cpio
920 i370-*-opened*) # IBM 360/370/390 Architecture
921 xm_defines='FATAL_EXIT_CODE=12'
923 tmake_file="i370/t-oe i370/t-i370"
924 c_target_objs="i370-c.o"
925 cxx_target_objs="i370-c.o"
928 xm_defines='FATAL_EXIT_CODE=12'
930 tmake_file="i370/t-i370"
931 c_target_objs="i370-c.o"
932 cxx_target_objs="i370-c.o"
935 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}"
936 tmake_file="t-slibgcc-elf-ver t-linux"
940 i[34567]86-*-darwin*)
941 tm_file="${tm_file} i386/darwin.h"
944 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
945 tmake_file="i386/t-i386elf t-svr4"
947 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
948 xm_defines="SMALL_ARG_MAX"
949 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
950 extra_parts="crtbegin.o crtend.o"
951 tmake_file=i386/t-crtpic
953 i[34567]86-*-netware) # Intel 80386's running netware
954 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
955 tmake_file=i386/t-netware
957 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
960 tm_file="${tm_file} usegas.h"
962 xm_defines="SMALL_ARG_MAX"
963 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
965 extra_parts="crtbegin.o crtend.o"
966 install_headers_dir=install-headers-cpio
969 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
971 i[34567]86-*-beoself* | i[34567]86-*-beos*)
972 tmake_file='i386/t-beos i386/t-crtpic'
973 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
974 extra_parts='crtbegin.o crtend.o'
976 i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*)
977 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
980 i[34567]86-*-freebsd*)
981 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
984 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h"
986 i[34567]86-*-netbsdelf*)
987 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
989 i[34567]86-*-netbsd*)
990 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
996 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h"
998 i[34567]86-*-openbsd*)
999 tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h ${tm_file}"
1000 # needed to unconfuse gdb
1001 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1002 # we need collect2 until our bug is fixed...
1006 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
1008 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1010 tmake_file="t-linux-aout i386/t-crtstuff"
1011 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
1014 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1015 # with ELF format using the
1016 # GNU/Linux C library 5
1017 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1018 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1019 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1021 if test x$enable_threads = xyes; then
1022 thread_file='single'
1025 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1026 # with ELF format using glibc 2
1027 # aka GNU/Linux C library 6
1028 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1029 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1032 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1033 i386/x86-64.h i386/linux64.h"
1034 tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64"
1038 i[34567]86-pc-msdosdjgpp*)
1039 xm_file=i386/xm-djgpp.h
1040 tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h"
1041 tmake_file=i386/t-djgpp
1045 case $host in *pc-msdosdjgpp*)
1050 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1051 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1052 tmake_file=t-libc-ok
1056 i[34567]86-*-lynxos*)
1057 if test x$gas = xyes
1059 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx.h i386/lynx.h"
1061 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
1065 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
1066 # tmake_file=t-libc-ok
1069 i[34567]86-*-nto-qnx*)
1070 tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h svr4.h i386/nto.h"
1071 tmake_file=i386/t-nto
1075 i[34567]86-*-rtems*)
1076 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
1077 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1078 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1079 if test x$enable_threads = xyes; then
1083 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1084 install_headers_dir=install-headers-cpio
1085 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h"
1086 if test x$gas = xyes
1088 tm_file="usegas.h ${tm_file}"
1090 tmake_file=i386/t-sco5
1091 extra_parts="crtbegin.o crtend.o"
1093 i[34567]86-*-solaris2*)
1094 xm_defines="SMALL_ARG_MAX"
1095 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
1096 tmake_file="i386/t-sol2 t-svr4"
1097 if test x$gnu_ld = xyes; then
1098 tmake_file="$tmake_file t-slibgcc-elf-ver"
1100 tmake_file="$tmake_file t-slibgcc-sld"
1102 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1103 if test x${enable_threads} = x; then
1104 enable_threads=$have_pthread_h
1105 if test x${enable_threads} = x; then
1106 enable_threads=$have_thread_h
1109 if test x${enable_threads} = xyes; then
1110 if test x${have_pthread_h} = xyes; then
1113 thread_file='solaris'
1117 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1118 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1119 if test x$stabs = xyes
1121 tm_file="${tm_file} dbx.h"
1123 tmake_file="i386/t-crtpic t-svr4"
1124 extra_parts="crtbegin.o crtend.o"
1125 if test x$enable_threads = xyes; then
1129 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1130 xm_defines="SMALL_ARG_MAX"
1131 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
1132 if test x$stabs = xyes
1134 tm_file="${tm_file} dbx.h"
1136 tmake_file="i386/t-crtpic t-svr4"
1137 extra_parts="crtbegin.o crtend.o"
1139 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1140 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h i386/udk.h"
1141 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1142 extra_parts="crtbegin.o crtend.o"
1143 install_headers_dir=install-headers-cpio
1145 i[34567]86-*-sysv*) # Intel 80386's running system V
1146 if test x$gas = xyes
1148 if test x$stabs = xyes
1150 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
1151 tmake_file=i386/t-svr3dbx
1152 extra_parts="svr3.ifile svr3z.ifile"
1154 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
1155 extra_parts="crtbegin.o crtend.o"
1156 tmake_file=i386/t-crtstuff
1159 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
1160 extra_parts="crtbegin.o crtend.o"
1161 tmake_file=i386/t-crtstuff
1163 tmake_file="$tmake_file i386/t-crtpic"
1165 i386-*-vsta) # Intel 80386's running VSTa kernel
1166 xm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/xm-vsta.h"
1167 tm_file="${tm_file} i386/vsta.h"
1169 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1170 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h"
1171 xm_file=i386/xm-cygwin.h
1172 tmake_file="i386/t-cygming i386/t-cygwin"
1174 c_target_objs=cygwin2.o
1175 cxx_target_objs=cygwin2.o
1176 if test x$enable_threads = xyes; then
1181 i[34567]86-*-mingw32*)
1182 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
1183 xm_file=i386/xm-mingw32.h
1184 tmake_file="i386/t-cygming i386/t-mingw32"
1185 xmake_file=i386/x-mingw32
1187 if test x$enable_threads = xyes; then
1193 tm_file="${tm_file} i386/crtdll.h"
1195 *mingw32msv* | *mingw32*)
1200 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h"
1201 tmake_file="i386/t-cygwin i386/t-uwin"
1203 if test x$enable_threads = xyes; then
1208 i[34567]86-*-interix3*)
1209 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h"
1210 tmake_file="t-interix i386/t-interix"
1212 xmake_file="x-interix"
1213 if test x$enable_threads = xyes ; then
1216 if test x$stabs = xyes ; then
1217 tm_file="${tm_file} dbxcoff.h"
1220 i[34567]86-*-interix*)
1221 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
1222 tmake_file="t-interix i386/t-interix"
1224 if test x$enable_threads = xyes ; then
1227 if test x$stabs = xyes ; then
1228 tm_file="${tm_file} dbxcoff.h"
1232 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h kaos.h i386/kaos-i386.h"
1233 tmake_file="i386/t-i386elf t-svr4"
1236 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1237 tmake_file=i960/t-960bare
1238 c_target_objs="i960-c.o"
1239 cxx_target_objs="i960-c.o"
1242 tmake_file="i960/t-960bare t-rtems"
1243 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1244 if test x$enable_threads = xyes; then
1247 c_target_objs="i960-c.o"
1248 cxx_target_objs="i960-c.o"
1250 i960-*-*) # Default i960 environment.
1252 tmake_file=i960/t-960bare
1253 c_target_objs="i960-c.o"
1254 cxx_target_objs="i960-c.o"
1257 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1258 tmake_file="ia64/t-ia64"
1259 target_cpu_default="0"
1260 if test x$gas = xyes
1262 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1264 if test x$gnu_ld = xyes
1266 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1268 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1271 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1272 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1273 tmake_file="${tmake_file} ia64/t-ia64"
1274 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1277 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1278 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1279 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1280 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1281 if test x"$use_libunwind_exceptions" = xyes; then
1282 tmake_file="$tmake_file t-libunwind"
1286 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1287 tmake_file="ia64/t-ia64 ia64/t-hpux"
1288 target_cpu_default="MASK_GNU_AS"
1289 if test x$enable_threads = xyes; then
1293 c_target_objs="ia64-c.o"
1294 cxx_target_objs="ia64-c.o"
1297 tm_file="elfos.h ${tm_file}"
1300 tm_file="iq2000/iq2000.h"
1301 tmake_file=iq2000/t-iq2000
1302 out_file=iq2000/iq2000.c
1303 md_file=iq2000/iq2000.md
1306 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1307 extra_parts="crtinit.o crtfini.o"
1309 # m68hc11 and m68hc12 share the same machine description.
1310 m68hc11-*-*|m6811-*-*)
1311 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1312 tm_p_file="m68hc11/m68hc11-protos.h"
1313 md_file="m68hc11/m68hc11.md"
1314 out_file="m68hc11/m68hc11.c"
1315 tmake_file="m68hc11/t-m68hc11-gas"
1317 m68hc12-*-*|m6812-*-*)
1318 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1319 tm_p_file="m68hc11/m68hc11-protos.h"
1320 md_file="m68hc11/m68hc11.md"
1321 out_file="m68hc11/m68hc11.c"
1322 tmake_file="m68hc11/t-m68hc11-gas"
1324 m68000-hp-hpux*) # HP 9000 series 300
1325 if test x$gas = xyes
1327 tm_file=m68k/hp310g.h
1329 tm_file=m68k/hp310.h
1331 tmake_file=m68k/t-hp320
1332 install_headers_dir=install-headers-cpio
1335 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1336 if test x$gas = xyes
1338 tm_file=m68k/hp320g.h
1340 tm_file=m68k/hpux7.h
1342 install_headers_dir=install-headers-cpio
1345 m68k-hp-hpux*) # HP 9000 series 300
1346 if test x$gas = xyes
1348 tm_file=m68k/hp320g.h
1350 tm_file=m68k/hp320.h
1352 install_headers_dir=install-headers-cpio
1356 tmake_file=m68k/t-m68kbare
1357 tm_file="m68k/m68k-aout.h libgloss.h"
1360 tmake_file=m68k/t-m68kbare
1361 tm_file="m68k/m68k-coff.h dbx.h"
1363 m68020-*-elf* | m68k-*-elf*)
1364 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1365 tmake_file=m68k/t-m68kelf
1366 extra_parts="crtbegin.o crtend.o"
1368 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1369 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1372 target_cpu_default="0"
1375 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1380 tm_file=m68k/netbsd.h
1386 # needed to unconfuse gdb
1387 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1388 # we need collect2 until our bug is fixed...
1391 m68k-*-sysv4*) # Motorola m68k's running system V.4
1392 tm_file=m68k/m68kv4.h
1394 extra_parts="crtbegin.o crtend.o"
1396 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1397 # with ELF format using glibc 2
1398 # aka the GNU/Linux C library 6.
1399 tm_file=m68k/linux.h
1400 tmake_file="t-slibgcc-elf-ver t-linux"
1403 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1404 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h"
1405 extra_parts="crtbegin.o crtend.o"
1406 if test x$enable_threads = xyes; then
1411 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
1412 tmake_file=mcore/t-mcore
1415 tm_file=mcore/mcore-pe.h
1416 tmake_file=mcore/t-mcore-pe
1418 mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI
1419 tm_file="${tm_file} mips/iris5.h"
1420 if test x$gas = xyes
1422 tm_file="${tm_file} mips/sdb.h mips/iris5gas.h mips/iris6-o32-gas.h"
1423 if test x$stabs = xyes
1425 tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
1427 tmake_file=mips/t-iris5-gas
1429 tm_file="${tm_file} mips/iris6-o32-as.h"
1430 tmake_file=mips/t-iris5-as
1432 tm_file="${tm_file} mips/iris6-o32.h"
1433 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1434 xm_file=mips/xm-iris5.h
1435 target_cpu_default="MASK_ABICALLS"
1436 # mips-tfile doesn't work yet
1437 # See comment in mips/iris5.h file.
1439 # if test x$enable_threads = xyes; then
1440 # thread_file='irix'
1443 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1444 tm_file="${tm_file} mips/iris5.h mips/iris6.h"
1445 if test "x$gnu_ld" = xyes
1447 tm_file="${tm_file} mips/iris6gld.h"
1449 tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
1450 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1451 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
1452 # if test x$enable_threads = xyes; then
1453 # thread_file='irix'
1456 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1457 tm_file="${tm_file} mips/iris5.h mips/iris6.h mips/cross64.h"
1458 xm_file=mips/xm-iris5.h
1459 tmake_file="mips/t-iris mips/t-cross64"
1460 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1461 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
1462 # See comment in mips/iris[56].h files.
1464 # if test x$enable_threads = xyes; then
1465 # thread_file='irix'
1468 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1469 tm_file="${tm_file} mips/iris5.h"
1470 if test x$gas = xyes
1472 tm_file="${tm_file} mips/sdb.h mips/iris5gas.h"
1473 if test x$stabs = xyes
1475 tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
1477 tmake_file=mips/t-iris5-gas
1479 tmake_file=mips/t-iris5-as
1481 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1482 xm_file=mips/xm-iris5.h
1483 target_cpu_default="MASK_ABICALLS"
1484 # mips-tfile doesn't work yet
1485 # See comment in mips/iris5.h file.
1487 # if test x$enable_threads = xyes; then
1488 # thread_file='irix'
1491 mips*-*-netbsd*) # NetBSD/mips, either endian.
1492 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1493 tm_file="elfos.h ${tm_file} mips/netbsd.h"
1494 tmake_file="${tmake_file}"
1497 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h"
1498 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux64"
1500 # This default ABI is a partial lie: t-linux64 overrides the
1501 # DRIVER_SELF_SPEC that sets the default abi, in the spec file
1502 # that is installed. What GCC thinks of as the default must
1503 # remain as ABI_32 such that the SONAMEs of the libgcc shared
1504 # libraries remain compatible with those of mips-linux-gnu.
1505 tm_defines="MIPS_ISA_DEFAULT=1 MIPS_ABI_DEFAULT=ABI_32"
1506 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1507 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1510 if test x$enable_threads = xyes; then
1514 mips*-*-linux*) # Linux MIPS, either endian.
1515 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
1518 target_cpu_default="MASK_SOFT_FLOAT"
1519 tm_defines="MIPS_ISA_DEFAULT=32"
1522 tmake_file="t-slibgcc-elf-ver t-linux"
1524 mips*el-*-openbsd*) # mips little endian
1525 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1526 tm_file="${tm_file} mips/sdb.h"
1528 mips*-*-openbsd*) # mips big endian
1529 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1530 tm_file="mips/openbsd-be.h ${tm_file} mips/sdb.h"
1532 mipsisa32-*-elf* | mipsisa32el-*-elf*)
1533 tm_file="${tm_file} mips/elf.h"
1534 tmake_file=mips/t-isa3264
1535 tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
1537 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
1538 tm_file="${tm_file} mips/elf.h"
1539 tmake_file=mips/t-isa3264
1540 tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
1542 mipsisa64-*-elf* | mipsisa64el-*-elf*)
1543 tm_file="${tm_file} mips/elf.h"
1544 tmake_file=mips/t-isa3264
1545 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1546 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
1548 mipsisa64sr71k-*-elf*)
1549 tm_file="${tm_file} mips/elf.h"
1550 tmake_file=mips/t-sr71k
1551 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1552 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
1554 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1555 tm_file="${tm_file} mips/elf.h"
1556 tmake_file=mips/t-elf
1557 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1558 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1560 mips-*-elf* | mipsel-*-elf*)
1561 tm_file="${tm_file} mips/elf.h"
1562 tmake_file=mips/t-elf
1564 mips64-*-elf* | mips64el-*-elf*)
1565 tm_file="${tm_file} mips/elf64.h"
1566 tmake_file=mips/t-elf
1567 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1568 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1570 mips64vr-*-elf* | mips64vrel-*-elf*)
1571 tm_file="mips/vr.h ${tm_file} mips/elf64.h"
1572 tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1"
1573 tmake_file=mips/t-vr
1575 mips64orion-*-elf* | mips64orionel-*-elf*)
1576 tm_file="${tm_file} mips/elforion.h mips/elf64.h"
1577 tmake_file=mips/t-elf
1578 tmake_file=mips/t-elf
1579 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1580 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1583 tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
1584 tmake_file="mips/t-elf t-rtems"
1585 if test x$enable_threads = xyes; then
1589 mipstx39-*-elf* | mipstx39el-*-elf*)
1590 tm_file="${tm_file} mips/r3900.h mips/elf.h"
1591 tmake_file=mips/t-r3900
1593 mmix-knuth-mmixware)
1594 need_64bit_hwint=yes
1597 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1598 if test x$stabs = xyes
1600 tm_file="${tm_file} dbx.h"
1605 echo "GCC does not yet support the ${machine} target"; exit 1
1608 tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1609 # On NetBSD, the headers are already okay, except for math.h.
1610 tmake_file="t-netbsd ns32k/t-ns32k"
1615 tm_file="${tm_file} pdp11/2bsd.h"
1622 tmake_file="${tmake_file} rs6000/t-fprules "
1626 tm_file="rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1628 x|xpowerpc64|xdefault64) tm_file="${tm_file} rs6000/default64.h";;
1630 tm_file="${tm_file} rs6000/linux64.h"
1631 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-ppccomm rs6000/t-linux64"
1634 tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux64.h rs6000/gnu.h"
1635 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
1638 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
1639 tmake_file="rs6000/t-fprules rs6000/t-beos"
1643 tm_file="${tm_file} rs6000/darwin.h"
1644 tmake_file="t-darwin rs6000/t-darwin"
1645 extra_headers=altivec.h
1646 # override ppc default
1648 # powerpc-darwin host support.
1649 host_hook_obj=host-darwin.o
1650 xmake_file=rs6000/x-darwin
1652 powerpc*-*-freebsd*)
1653 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
1654 tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1657 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1658 tmake_file="${tmake_file} rs6000/t-netbsd"
1660 powerpc-*-chorusos*)
1661 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
1662 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1663 case x${enable_threads} in
1664 xyes | xpthreads | xposix)
1670 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
1671 tmake_file="rs6000/t-spe rs6000/t-ppccomm"
1673 powerpc-*-eabisimaltivec*)
1674 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h rs6000/eabialtivec.h"
1675 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1678 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
1679 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1682 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1683 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1685 powerpc-*-eabialtivec*)
1686 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
1687 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1690 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
1691 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1694 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
1695 tmake_file="rs6000/t-fprules t-rtems rs6000/t-ppccomm"
1696 if test x$enable_threads = xyes; then
1700 powerpc-*-linux*altivec*)
1701 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
1702 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1704 powerpc-*-linux*spe*)
1705 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
1706 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1709 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
1710 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1712 powerpc-*-gnu-gnualtivec*)
1713 tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h"
1714 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1715 if test x$enable_threads = xyes; then
1720 tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/gnu.h"
1721 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1722 if test x$enable_threads = xyes; then
1726 powerpc-wrs-vxworks*)
1727 # We want vxworks.h after rs6000/sysv4.h, which unfortunately
1728 # means we have to redo the tm_file list from scratch.
1729 tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1730 tm_file="${tm_file} vxworks.h rs6000/vxworks.h"
1731 tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
1732 extra_headers=ppc-asm.h
1734 powerpc-wrs-windiss*)
1735 tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
1736 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1740 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1741 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1744 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1745 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1747 powerpcle-*-eabisim*)
1748 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
1749 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1752 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
1753 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1756 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h kaos.h rs6000/kaos-ppc.h"
1757 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1760 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h kaos.h rs6000/kaos-ppc.h"
1761 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1763 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
1764 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
1765 tmake_file="rs6000/t-fprules rs6000/t-newas"
1769 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1770 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
1771 tmake_file=rs6000/t-aix43
1776 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1777 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
1778 tmake_file=rs6000/t-aix43
1783 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1784 tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
1785 tmake_file=rs6000/t-aix52
1791 tm_file="lynx.h rs6000/lynx.h"
1792 tmake_file=rs6000/t-fprules
1796 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1797 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff"
1800 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1801 tm_p_file=s390/s390-protos.h
1802 md_file=s390/s390.md
1803 extra_modes=s390/s390-modes.def
1804 out_file=s390/s390.c
1805 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64"
1807 sh-*-elf* | sh[2346l]*-*-elf* | sh*-*-kaos*)
1808 tmake_file="sh/t-sh sh/t-elf"
1811 tm_file="sh/little.h ${tm_file}"
1812 tmake_file="${tmake_file} sh/t-le"
1815 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h"
1818 tmake_file="${tmake_file} sh/t-sh64"
1819 tm_file="${tm_file} sh/sh64.h"
1820 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1822 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1823 sh4*) target_cpu_default="SELECT_SH4" ;;
1824 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1825 sh3*) target_cpu_default="SELECT_SH3" ;;
1826 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1827 sh2*) target_cpu_default="SELECT_SH2" ;;
1830 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1833 sh*-*-kaos*) tm_file="${tm_file} kaos.h sh/kaos-sh.h" ;;
1837 tmake_file="sh/t-sh sh/t-elf t-rtems"
1838 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/rtemself.h rtems.h"
1839 if test x$enable_threads = xyes; then
1844 tmake_file="sh/t-sh t-rtems"
1845 tm_file="${tm_file} dbxcoff.h sh/coff.h sh/rtems.h rtems.h"
1846 if test x$enable_threads = xyes; then
1850 sh-*-linux* | sh[2346lbe]*-*-linux*)
1851 tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux"
1853 sh*be-*-* | sh*eb-*-*) ;;
1855 tm_file="sh/little.h ${tm_file}"
1856 tmake_file="${tmake_file} sh/t-le"
1859 tmake_file="${tmake_file} sh/t-linux"
1860 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
1863 tmake_file="${tmake_file} sh/t-sh64"
1864 tm_file="${tm_file} sh/sh64.h"
1865 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1867 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1868 sh4*) target_cpu_default="SELECT_SH4" ;;
1869 sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;;
1870 sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
1871 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1872 sh3*) target_cpu_default="SELECT_SH3" ;;
1873 sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;;
1874 sh2e[lb]*) target_cpu_default="SELECT_SH2" ;;
1875 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1876 sh2*) target_cpu_default="SELECT_SH2" ;;
1879 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1882 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1883 sh64-*-netbsd* | sh64l*-*-netbsd*)
1884 tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
1885 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
1888 tm_file="sh/little.h ${tm_file}"
1889 tmake_file="${tmake_file} sh/t-le"
1892 tmake_file="${tmake_file} sh/t-be"
1897 # SHmedia, 32-bit ABI
1898 target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT"
1899 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
1902 # SHmedia, 64-bit ABI
1903 target_cpu_default="SH5_BIT|SH4_BIT"
1904 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
1907 # SH3, software floating point
1908 target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
1909 tmake_file="${tmake_file} sh/t-netbsd"
1914 tm_file="${tm_file} dbxcoff.h sh/coff.h"
1917 tm_file="${tm_file} sparc/pbd.h"
1920 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
1923 tm_file="sparc/sparc.h ${tm_file}"
1924 # needed to unconfuse gdb
1925 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
1926 # we need collect2 until our bug is fixed...
1930 tm_file="sparc/openbsd1-64.h sparc/sparc.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h"
1935 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
1936 tmake_file="sparc/t-elf sparc/t-crtfm"
1937 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1939 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1940 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
1941 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
1944 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
1945 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
1946 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1947 if test x$enable_threads = xyes; then
1951 sparc64-*-solaris2* | sparcv9-*-solaris2*)
1952 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h"
1953 if test x$gnu_ld = xyes; then
1954 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
1956 if test x$gas = xyes; then
1957 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1959 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
1960 if test x$gnu_ld = xyes; then
1961 tmake_file="$tmake_file t-slibgcc-elf-ver"
1963 tmake_file="$tmake_file t-slibgcc-sld"
1965 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
1966 if test x${enable_threads} = x ; then
1967 enable_threads=$have_pthread_h
1968 if test x${enable_threads} = x ; then
1969 enable_threads=$have_thread_h
1972 if test x${enable_threads} = xyes ; then
1973 if test x${have_pthread_h} = xyes ; then
1976 thread_file='solaris'
1979 need_64bit_hwint=yes
1982 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
1983 if test x$gnu_ld = xyes; then
1984 tm_file="${tm_file} sparc/sol2-gld.h"
1986 tmake_file="sparc/t-sol2 sparc/t-crtfm"
1987 if test x$gnu_ld = xyes; then
1988 tmake_file="$tmake_file t-slibgcc-elf-ver"
1990 tmake_file="$tmake_file t-slibgcc-sld"
1993 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
1994 if test x$gnu_ld = xno; then
1995 tm_file="${tm_file} sparc/sol26-sld.h"
1999 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
2000 if test x$gnu_ld = xyes; then
2001 tm_file="${tm_file} sparc/sol2-gld-bi.h"
2003 if test x$gas = xyes; then
2004 tm_file="${tm_file} sparc/sol2-gas-bi.h"
2006 tmake_file="$tmake_file sparc/t-sol2-64"
2007 need_64bit_hwint=yes
2010 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2011 if test x${enable_threads} = x; then
2012 enable_threads=$have_pthread_h
2013 if test x${enable_threads} = x; then
2014 enable_threads=$have_thread_h
2017 if test x${enable_threads} = xyes; then
2018 if test x${have_pthread_h} = xyes; then
2021 thread_file='solaris'
2026 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sysv4-only.h"
2028 extra_parts="crtbegin.o crtend.o"
2031 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
2032 tmake_file=sparc/t-sparclite
2035 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h"
2036 tmake_file="sparc/t-sparclite sparc/t-crtfm"
2037 extra_parts="crtbegin.o crtend.o"
2040 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/sp86x-elf.h"
2041 tmake_file="sparc/t-sp86x sparc/t-crtfm"
2042 extra_parts="crtbegin.o crtend.o"
2045 tm_file="sparc/sparc.h sparc/aout.h sparc/sp64-aout.h"
2048 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h"
2049 tmake_file="${tmake_file} sparc/t-crtfm"
2050 extra_parts="crtbegin.o crtend.o"
2052 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
2053 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
2054 tmake_file="${tmake_file} sparc/t-crtfm"
2056 case "x$with_cpu" in
2058 x) with_cpu=ultrasparc ;;
2059 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
2061 need_64bit_hwint=yes
2063 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
2064 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
2065 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
2068 tmake_file="${tmake_file} sparc/t-netbsd64"
2069 tm_file="sparc/biarch64.h ${tm_file}"
2070 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2073 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2074 tmake_file=arm/t-strongarm-elf
2077 extra_modes=arm/arm-modes.def
2080 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h arm/pe.h arm/strongarm-pe.h"
2081 tmake_file=arm/t-strongarm-pe
2084 extra_modes=arm/arm-modes.def
2088 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-strongarm.h"
2089 tmake_file=arm/t-strongarm-elf
2092 extra_modes=arm/arm-modes.def
2095 target_cpu_default="TARGET_CPU_v850e"
2096 tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2097 tm_p_file=v850/v850-protos.h
2098 tmake_file=v850/t-v850
2099 md_file=v850/v850.md
2100 out_file=v850/v850.c
2101 if test x$stabs = xyes
2103 tm_file="${tm_file} dbx.h"
2106 c_target_objs="v850-c.o"
2107 cxx_target_objs="v850-c.o"
2110 target_cpu_default="TARGET_CPU_generic"
2111 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2112 tmake_file=v850/t-v850
2113 if test x$stabs = xyes
2115 tm_file="${tm_file} dbx.h"
2118 c_target_objs="v850-c.o"
2119 cxx_target_objs="v850-c.o"
2121 vax-*-bsd*) # VAXen running BSD
2122 tm_file="${tm_file} vax/bsd.h"
2125 vax-*-sysv*) # VAXen running system V
2126 tm_file="${tm_file} vax/vaxv.h"
2129 tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
2132 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
2138 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
2141 vax-*-ultrix*) # VAXen running ultrix
2142 tm_file="${tm_file} vax/ultrix.h"
2144 vax-*-vms*) # VAXen running VMS
2145 echo "Configuration $machine no longer supported" 1>&2
2148 vax-*-*) # VAX default entry
2151 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2152 tmake_file=arm/t-xscale-elf
2155 extra_modes=arm/arm-modes.def
2158 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
2159 tmake_file=arm/t-xscale-coff
2162 extra_modes=arm/arm-modes.def
2165 # For historical reasons, the target files omit the 'x'.
2166 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
2167 tm_p_file=stormy16/stormy16-protos.h
2168 md_file=stormy16/stormy16.md
2169 out_file=stormy16/stormy16.c
2170 tmake_file="stormy16/t-stormy16"
2171 extra_parts="crtbegin.o crtend.o"
2174 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
2175 tmake_file="xtensa/t-xtensa xtensa/t-elf"
2178 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
2179 tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa xtensa/t-linux"
2182 tm_file="mn10300/mn10300.h dbxelf.h elfos.h linux.h mn10300/linux.h"
2183 tmake_file="t-linux mn10300/t-linux"
2185 if test x$enable_threads = xyes; then
2188 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2192 echo "*** Configuration $machine not supported" 1>&2
2199 install_headers_dir=install-headers-cpio
2203 # Support for --with-cpu and related options (and a few unrelated options,
2204 # too). Only do this if $machine is the target, or we'll try to validate
2205 # the CPU argument against the wrong machine type.
2207 if test "x$pass2done" = xyes
2209 case "x$with_cpu" in
2211 echo "--with-cpu must be passed a value" 1>&2
2216 # If there is no $with_cpu option, try to infer one from ${machine}.
2217 # This block sets nothing except for with_cpu.
2218 if test x$with_cpu = x
2222 # A Cirrus ARM variant.
2229 case $target_alias in
2239 pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2240 with_cpu=pentium-mmx
2247 i686-*-* | i786-*-*)
2248 case $target_alias in
2252 athlon_xp-*|athlon_mp-*|athlon_4-*)
2255 athlon_tbird-*|athlon-*)
2295 with_cpu="`echo $machine | sed 's/-.*$//'`"
2296 if [ x$with_cpu = xsparc64 ]; then
2303 # Similarly for --with-schedule.
2304 if test x$with_schedule = x; then
2307 # Override default PA8000 scheduling model.
2308 with_schedule=7100LC
2313 # Validate and mark as valid any --with options supported
2314 # by this target. In order to use a particular --with option
2315 # you must list it in supported_defaults; validating the value
2316 # is optional. This case statement should set nothing besides
2317 # supported_defaults.
2322 supported_defaults="cpu tune"
2323 for which in cpu tune; do
2324 eval "val=\$with_$which"
2327 | xev4 | xev45 | x21064 | xev5 | x21164 | xev56 | x21164a \
2328 | xpca56 | x21164PC | x21164pc | xev6 | x21264 | xev67 \
2332 echo "Unknown CPU used in --with-$which=$val" 1>&2
2340 supported_defaults="arch cpu float tune"
2341 for which in cpu tune; do
2342 eval "val=\$with_$which"
2345 | xarm[236789] | xarm250 | xarm[67][01]0 \
2346 | xarm60 | xarm620 | xarm7d | xarm7di \
2347 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
2348 | xarm70 | xarm700i | xarm710t | xarm720 \
2349 | xarm720t | xarm740t | xarm710c | xarm920 \
2350 | xarm920t | xarm940t | xarm9e | xarm10tdmi \
2351 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2353 | xxscale | xiwmmxt \
2355 | xstrongarm | xstrongarm110 | xstrongarm11[01]0)
2359 echo "Unknown CPU used in --with-$which=$val" 1>&2
2365 case "x$with_arch" in
2367 | xarmv[2345] | xarmv2a | xarmv3m | xarmv4t | xarmv5t \
2368 | xarmv5te | ep9312)
2372 echo "Unknown arch used in --with-arch=$with_arch" 1>&2
2377 case "x$with_float" in
2383 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2388 if test "x$with_arch" != x && test "x$with_cpu" != x; then
2389 echo "Warning: --with-arch overrides --with-cpu" 1>&2
2393 hppa*-*-* | parisc*-*-*)
2394 supported_defaults="arch schedule"
2396 case "x$with_arch" in
2397 x | x1.0 | x1.1 | x2.0)
2401 echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
2406 case "x$with_schedule" in
2407 x | x700 | x7100 | x7100LC | x7200 | x7300 | x8000)
2411 echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
2417 i[34567]86-*-* | x86_64-*-*)
2418 supported_defaults="arch cpu tune"
2419 for which in arch cpu tune; do
2420 eval "val=\$with_$which"
2424 | xi586 | xpentium | xpentium-mmx | xwinchip-c6 | xwinchip2 \
2425 | xc3 | xc3-2 | xi686 | xpentiumpro | xpentium2 | xpentium3 \
2426 | xpentium4 | xk6 | xk6-2 | xk6-3 | xathlon | xathlon-tbird \
2427 | xathlon-4 | xathlon-xp | xathlon-mp | xk8)
2431 echo "Unknown CPU given in --with-$which=$val." 1>&2
2439 supported_defaults="abi arch float tune"
2441 case "x$with_float" in
2447 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2452 case "x$with_abi" in
2454 | x32 | xo64 | xn32 | x64 | xeabi)
2458 echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
2464 powerpc*-*-* | rs6000-*-*)
2465 supported_defaults="cpu float tune"
2467 for which in cpu tune; do
2468 eval "val=\$with_$which"
2471 | xdefault32 | xdefault64 \
2473 | xpower | xpower2 | xpower3 | xpower4 \
2474 | xpowerpc | xpowerpc64 \
2475 | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
2476 | x401 | x403 | x405 | x405fp | x440 | x440fp | x505 \
2477 | x601 | x602 | x603 | x603e | xec603e | x604 \
2478 | x604e | x620 | x630 | x740 | x750 | x7400 | x7450 \
2479 | x8540 | x801 | x821 | x823 | x860 | x970)
2483 echo "Unknown cpu used in --with-$which=$val." 1>&2
2491 supported_defaults="arch mode tune"
2493 for which in arch tune; do
2494 eval "val=\$with_$which"
2497 | xg5 | xg6 | xz900 | xz990)
2501 echo "Unknown cpu used in --with-$which=$val." 1>&2
2507 case "x$with_mode" in
2513 echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2
2520 supported_defaults="cpu float tune"
2522 for which in cpu tune; do
2523 eval "val=\$with_$which"
2526 | xsparc | xsparcv9 | xsparc64 | xsparc86x \
2527 | xv7 | xcypress | xv8 | xsupersparc | xsparclite | xf930 \
2528 | xf934 | xhypersparc | xsparclite86x | xsparclet | tsc701 \
2529 | xv9 | xultrasparc | xultrasparc3)
2533 echo "Unknown cpu used in --with-$which=$val" 1>&2
2539 case "x$with_float" in
2545 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2552 supported_defaults=cpu
2553 case "x$with_cpu" in
2558 echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
2565 # Set some miscellaneous flags for particular targets.
2566 target_cpu_default2=
2569 if test x$gas = xyes
2571 target_cpu_default2="MASK_GAS"
2576 case "x$with_cpu" in
2579 target_cpu_default2="TARGET_CPU_generic"
2583 target_cpu_default2="TARGET_CPU_$with_cpu"
2588 hppa*-*-* | parisc*-*-*)
2589 if test x$gas = xyes
2591 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
2597 mips*-*-ecoff* | mips*-*-elf*)
2598 if test x$gas = xyes
2600 if test x$gnu_ld = xyes
2602 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
2604 target_cpu_default2="MASK_GAS"
2609 if test x$gas = xyes
2611 target_cpu_default2="MASK_GAS"
2617 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
2621 *mips/elf.h* | *mips/elf64.h*)
2622 tm_defines="OBJECT_FORMAT_ELF $tm_defines"
2625 if test "x$enable_gofast" = xyes
2627 tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
2628 tm_file="gofast.h $tm_file"
2629 tmake_file="mips/t-gofast $tmake_file"
2631 tmake_file="mips/t-mips $tmake_file"
2635 powerpc*-*-* | rs6000-*-*)
2636 if test x$enable_altivec = xyes
2638 tm_file="$tm_file rs6000/altivec-defs.h"
2640 # FIXME: The PowerPC port uses the value set at compile time,
2641 # although it's only cosmetic.
2642 if test "x$with_cpu" != x
2644 target_cpu_default2="\\\"$with_cpu\\\""
2646 out_file=rs6000/rs6000.c
2647 c_target_objs="${c_target_objs} rs6000-c.o"
2648 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
2649 tmake_file="rs6000/t-rs6000 ${tmake_file}"
2653 # Some standard aliases.
2659 with_cpu=sparclite86x
2661 xsparcv9 | xsparc64)
2666 # The Sparc port checks this value at compile-time.
2667 target_cpu_default2="TARGET_CPU_$with_cpu"
2670 # FIXME: The v850 is "special" in that it does not support
2671 # runtime CPU selection, only --with-cpu.
2672 case "x$with_cpu" in
2676 target_cpu_default2="TARGET_CPU_$with_cpu"
2683 all_defaults="abi cpu arch tune schedule float mode"
2684 for option in $all_defaults
2686 eval "val=\$with_$option"
2687 if test -n "$val"; then
2688 case " $supported_defaults " in
2692 echo "This target does not support --with-$option." 2>&1
2699 t="{ \"$option\", \"$val\" }"
2701 t="${t}, { \"$option\", \"$val\" }"
2707 configure_default_options="{ { NULL, NULL} }"
2709 configure_default_options="{ ${t} }"
2712 if test "$target_cpu_default2" != ""
2714 if test "$target_cpu_default" != ""
2716 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2718 target_cpu_default=$target_cpu_default2
2723 # Save data on machine being used to compile GCC in build_xm_file.
2724 # Save data on host machine in vars host_xm_file and host_xmake_file.
2725 if test x$pass1done = x
2727 if test x$xm_file != x
2728 then build_xm_file=$xm_file
2730 build_xm_defines=$xm_defines
2731 build_install_headers_dir=$install_headers_dir
2732 build_exeext=$exeext
2735 if test x$pass2done = x
2737 if test x$xm_file != x
2738 then host_xm_file=$xm_file
2740 host_xm_defines=$xm_defines
2741 host_xmake_file="$xmake_file"
2742 host_extra_gcc_objs=$extra_gcc_objs
2743 host_extra_objs=$extra_host_objs
2745 out_host_hook_obj=$host_hook_obj