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 # gas_flag Either yes or no depending on whether GNU as was
41 # gnu_ld_flag Either yes or no depending on whether GNU ld was
44 # This file sets the following shell variables for use by the
45 # autoconf-generated configure script:
47 # cpu_type The name of the cpu, if different from machine.
49 # tm_defines List of target macros to define for all compilations.
51 # tm_file A list of target macro files, if different from
52 # "$cpu_type/$cpu_type.h". Usually it's constructed
53 # per target in a way like this:
54 # tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
55 # Note that the preferred order is:
56 # - specific target header "${cpu_type}/${cpu_type.h}"
57 # - generic headers like dbxelf.h elfos.h, netware.h, etc.
58 # - specializing target headers like ${cpu_type.h}/elf.h
59 # This helps to keep OS specific stuff out of the CPU
60 # defining header ${cpu_type}/${cpu_type.h}.
62 # tm_p_file Location of file with declarations for functions
65 # out_file The name of the machine description C support
66 # file, if different from "$cpu_type/$cpu_type.c".
68 # md_file The name of the machine-description file, if
69 # different from "$cpu_type/$cpu_type.md".
71 # tmake_file A list of machine-description-specific
72 # makefile-fragments, if different from
73 # "$cpu_type/t-$cpu_type".
75 # extra_modes The name of the file containing a list of extra
76 # machine modes, if necessary and different from
77 # "$cpu_type/$cpu_type-modes.def".
79 # extra_objs List of extra objects that should be linked into
80 # the compiler proper (cc1, cc1obj, cc1plus)
81 # depending on target.
83 # extra_headers List of used header files from the directory
86 # host_xmake_file List of host-specific makefile-fragments.
88 # extra_passes List of extra executables compiled for this target
89 # machine, used for compiling from source to object.
91 # extra_parts List of extra object files that should be compiled
92 # for this target machine.
94 # extra_programs Like extra_passes, but these are used when linking.
96 # host_extra_objs List of extra host-dependent objects that should
97 # be linked into the compiler proper.
99 # host_extra_gcc_objs List of extra host-dependent objects that should
100 # be linked into the gcc driver.
102 # out_host_hook_obj An object file that provides the host hooks.
104 # c_target_objs List of extra target-dependent objects that be
105 # linked into the C compiler only.
107 # cxx_target_objs List of extra target-dependent objects that be
108 # linked into the C++ compiler only.
110 # target_gtfiles List of extra source files with type information.
112 # build_xm_defines List of macros to define when compiling for the
115 # build_xm_file List of files to include when compiling for the
118 # host_xm_defines List of macros to define when compiling for the
121 # host_xm_file List of files to include when compiling for the
124 # xm_defines List of macros to define when compiling for the
127 # xm_file List of files to include when compiling for the
130 # use_collect2 Set to yes or no, depending on whether collect2
133 # target_cpu_default Set to override the default target model.
135 # build_install_headers_dir
136 # Target to use when installing header files.
138 # host_truncate_target
139 # Non-empty if the target name should be truncated
140 # on this host, due to filename length issues.
142 # gdb_needs_out_file_path
143 # Set to yes if gdb needs a dir command with
144 # `dirname $out_file`.
146 # build_exeext Set to the suffix, if the build machine requires
147 # executables to have a file name suffix.
149 # host_exeext Set to the suffix, if the host machine requires
150 # executables to have a file name suffix.
152 # thread_file Set to control which thread package to use.
154 # gas Set to yes or no depending on whether the target
155 # system normally uses GNU as.
157 # need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide
158 # for this target. This is true iff
159 # MAX_LONG_TYPE_SIZE is 64. (The code which
160 # determines the underlying integral type for
161 # HOST_WIDE_INT cannot see the definition of
162 # MAX_LONG_TYPE_SIZE.)
164 # The following variables are used in each case-construct to build up the
165 # outgoing variables:
167 # xmake_file Makefile-fragment when this system is as a host,
168 # for host_xmake_file.
170 # extra_host_objs List of extra objects that should be linked into
171 # the compiler proper when this system is a host,
172 # for host_extra_objs.
174 # host_hook_obj An object file that provides the host hooks.
176 # install_headers_dir Makefile-target for how the header file directory
177 # is installed, when this system is a build system,
178 # for build_install_headers_dir.
180 # truncate_target Non-empty if the target name should be truncated
181 # when this system is a host, due to filename length
182 # issues. For host_truncate_target.
184 # exeext The suffix for executables on this system.
186 # gnu_ld Set to yes or no depending on whether the target
187 # system normally uses GNU ld.
201 host_hook_obj=host-default.o
204 # Set this to force installation and use of collect2.
206 # Set this to override the default target model.
208 # Set this to control how the header file directory is installed.
209 install_headers_dir=install-headers-tar
210 # Set this if directory names should be truncated to 14 characters.
212 # Set this if gdb needs a dir command with `dirname $out_file`
213 gdb_needs_out_file_path=
214 # Set this if the build machine requires executables to have a
217 # Set this to control which thread package will be used.
219 # Reinitialize these from the flag values every loop pass, since some
220 # configure entries modify them.
222 gnu_ld="$gnu_ld_flag"
223 enable_threads=$enable_threads_flag
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/-.*$//'`
293 extra_headers="mmintrin.h xmmintrin.h"
297 extra_headers="mmintrin.h xmmintrin.h"
301 extra_headers=ia64intrin.h
304 hppa*-*-* | parisc*-*-*)
309 extra_headers=math-68881.h
312 extra_headers=math-68881.h
320 extra_headers="ppc-asm.h altivec.h spe.h"
336 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
346 tm_file=${cpu_type}/${cpu_type}.h
347 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
349 tm_p_file=${cpu_type}/${cpu_type}-protos.h
352 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
354 extra_modes=${cpu_type}/${cpu_type}-modes.def
359 tm_file="i386/biarch64.h ${tm_file}"
363 # On a.out targets, we need to use collect2.
370 # Common parts for widely ported systems.
374 *-*-linux*libc1* | *-*-linux*aout*)
377 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
379 case x${enable_threads} in
380 x | xyes | xposix) thread_file='posix'
387 # On the Hurd, the setup is just about the same on
388 # each different CPU. The specific machines that we
389 # support are matched above and just set $cpu_type.
390 tm_file="${cpu_type}/gnu.h"
391 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
392 # GNU always uses ELF.
394 # GNU tools are the only tools.
397 # These details are the same as for Linux.
398 # But here we need a little extra magic.
399 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
402 tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
405 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}"
410 tm_file=${cpu_type}/openbsd.h
411 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
412 if test x$enable_threads = xyes; then
414 tmake_file="${tmake_file} t-openbsd-thread"
418 tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd"
422 # NetBSD 2.0 and later get POSIX threads enabled by default.
423 # Allow them to be explicitly enabled on any other version.
424 case x${enable_threads} in
427 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
429 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
435 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
439 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
440 # ELF configurations. We will clear extra_parts in the
441 # a.out configurations.
443 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
444 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
448 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
449 # This is the place-holder for the generic a.out configuration
450 # of FreeBSD. No actual configuration resides here since
451 # there was only ever a bare-bones ix86 configuration for
452 # a.out and it exists solely in the machine-specific section.
453 # This place-holder must exist to avoid dropping into
454 # the generic ELF configuration of FreeBSD (i.e. it must be
455 # ordered before that section).
458 # This is the generic ELF configuration of FreeBSD. Later
459 # machine-specific sections may refine and add to this
462 # Due to tm_file entry ordering issues that vary between cpu
463 # architectures, we only define fbsd_tm_file to allow the
464 # machine-specific section to dictate the final order of all
465 # entries of tm_file with the minor exception that components
466 # of the tm_file set here will always be of the form:
468 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
470 # The machine-specific section should not tamper with this
471 # ordering but may order all other entries of tm_file as it
472 # pleases around the provided core setting.
475 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
477 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
478 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
479 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
480 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
481 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
483 tmake_file="t-slibgcc-elf-ver t-freebsd"
485 case x${enable_threads} in
486 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
487 x | xyes | xpthreads | xposix)
489 tmake_file="${tmake_file} t-freebsd-thread"
490 # Before 5.0, FreeBSD can't bind shared libraries to -lc
491 # when "optionally" threaded via weak pthread_* checks.
493 *-*-freebsd[34] | *-*-freebsd[34].*)
494 tmake_file="${tmake_file} t-slibgcc-nolc-override";;
497 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
499 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
502 tm_file="${tm_file} darwin.h"
503 tm_p_file="${tm_p_file} darwin-protos.h"
504 tmake_file="t-darwin"
505 target_gtfiles="\$(srcdir)/config/darwin.c"
506 c_target_objs="darwin-c.o"
507 cxx_target_objs="darwin-c.o"
509 extra_objs="darwin.o"
513 tm_file="${tm_file} elfos.h svr4.h vxworks.h"
514 thread_file='vxworks'
520 # Support site-specific machine types.
522 rest=`echo $machine | sed -e "s/$cpu_type-//"`
523 tm_file=${cpu_type}/$rest.h
524 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
525 then xm_file=${cpu_type}/xm-$rest.h
527 if test -f $srcdir/config/${cpu_type}/x-$rest
528 then xmake_file=${cpu_type}/x-$rest
530 if test -f $srcdir/config/${cpu_type}/t-$rest
531 then tmake_file=${cpu_type}/t-$rest
536 tm_file="${tm_file} alpha/unicosmk.h"
538 # Don't include t-ieee for now because we don't support that yet
539 # tmake_file="alpha/t-ieee"
540 tmake_file="alpha/t-unicosmk"
543 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
544 target_cpu_default="MASK_GAS"
545 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
548 target_cpu_default="MASK_GAS"
549 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
552 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
553 target_cpu_default="MASK_GAS"
554 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
555 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
558 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
559 target_cpu_default="MASK_GAS"
560 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
564 tm_file="${cpu_type}/${cpu_type}.h ${tm_file}"
565 # default x-alpha is only appropriate for dec-osf.
566 target_cpu_default="MASK_GAS"
567 tmake_file="alpha/t-alpha alpha/t-ieee"
571 if test x$stabs = xyes
573 tm_file="${tm_file} dbx.h"
575 if test x$gas != xyes
577 extra_passes="mips-tfile mips-tdump"
580 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
581 tm_file="${tm_file} alpha/osf.h"
582 extra_headers=va_list.h
585 # Some versions of OSF4 (specifically X4.0-9 296.7) have
586 # a broken tar, so we use cpio instead.
587 install_headers_dir=install-headers-cpio
588 # Set target_cpu_default except on 4.0a.
591 *) target_cpu_default=MASK_SUPPORT_ARCH
595 tm_file="${tm_file} alpha/osf5.h"
596 target_cpu_default=MASK_SUPPORT_ARCH
601 tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
602 xm_file="alpha/xm-vms.h"
603 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
604 xmake_file=alpha/x-vms
606 # This removes the cpu type and manufacturer components and
607 # replaces "." with "_" in the operating system version.
608 case $host in *-*-*vms*)
609 target_alias=`echo $host \
610 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
613 install_headers_dir=install-headers-cp
618 tm_file="${tm_file} alpha/vms.h"
619 xm_file=alpha/xm-vms.h
620 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
621 xmake_file=alpha/x-vms
623 # This removes the cpu type and manufacturer components and
624 # replaces "." with "_" in the operating system version.
625 case $host in *-*-*vms*)
626 target_alias=`echo $host \
627 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
630 install_headers_dir=install-headers-cp
635 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
636 extra_parts="crtinit.o crtfini.o"
638 arm-*-coff* | armel-*-coff*)
639 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h"
640 tmake_file=arm/t-arm-coff
642 arm-semi-aof | armel-semi-aof)
643 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
644 tmake_file=arm/t-semi
646 arm*-*-freebsd*|strongarm*-*-freebsd*)
647 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
648 tmake_file="${tmake_file} arm/t-strongarm-elf"
651 tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
652 tmake_file="${tmake_file} arm/t-netbsd"
655 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
656 tmake_file="t-netbsd arm/t-netbsd"
660 arm*-*-linux*) # ARM GNU/Linux with ELF
661 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"
662 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
663 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
665 case x${enable_threads} in
666 x | xyes | xpthreads | xposix)
671 arm*-*-uclinux*) # ARM ucLinux
672 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"
673 tmake_file=arm/t-arm-elf
676 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
677 tmake_file=arm/t-arm-elf
680 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"
681 tmake_file="arm/t-arm-elf t-rtems"
682 if test x$enable_threads = xyes; then
686 arm*-*-elf | ep9312-*-elf)
687 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
688 tmake_file=arm/t-arm-elf
691 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h"
697 c4x-*-rtems* | tic4x-*-rtems*)
698 tmake_file="c4x/t-c4x t-rtems"
699 tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
700 if test x$enable_threads = xyes; then
703 c_target_objs="c4x-c.o"
704 cxx_target_objs="c4x-c.o"
708 c_target_objs="c4x-c.o"
709 cxx_target_objs="c4x-c.o"
712 tm_file="dbxelf.h ${tm_file} cris/aout.h"
714 tmake_file="cris/t-cris cris/t-aout"
716 cris-*-elf | cris-*-none)
717 tm_file="dbxelf.h elfos.h ${tm_file}"
718 tmake_file="cris/t-cris cris/t-elfmulti"
722 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
723 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
726 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
731 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
732 tmake_file=fr30/t-fr30
733 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
736 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h"
740 tmake_file="h8300/t-h8300 t-rtems"
741 tm_file="h8300/h8300.h h8300/rtems.h rtems.h"
742 if test x$enable_threads = xyes; then
747 tmake_file="h8300/t-h8300 h8300/t-elf"
748 tm_file="h8300/h8300.h h8300/elf.h"
752 hppa*64*-*-linux* | parisc*64*-*-linux*)
753 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
754 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
755 pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
756 tmake_file=pa/t-linux64
760 hppa*-*-linux* | parisc*-*-linux*)
761 target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS"
762 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
763 pa/pa32-regs.h pa/pa32-linux.h"
764 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
767 target_cpu_default="MASK_PA_11"
771 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
772 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
773 tmake_file="pa/t-bsd pa/t-pro"
774 xmake_file="pa/x-ada"
777 target_cpu_default="MASK_PA_11"
778 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
779 tmake_file="pa/t-bsd pa/t-pa"
780 xmake_file="pa/x-ada"
784 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
785 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"
786 tmake_file="pa/t-bsd pa/t-pro t-rtems"
787 xmake_file="pa/x-ada"
788 if test x$enable_threads = xyes; then
793 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
794 target_cpu_default="MASK_PA_11"
795 tmake_file="pa/t-bsd pa/t-pa"
796 xmake_file="pa/x-ada"
799 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
800 target_cpu_default="MASK_PA_11"
801 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
802 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
803 xmake_file="pa/x-ada"
804 if test x$enable_threads = x; then
805 enable_threads=$have_pthread_h
807 case x${enable_threads} in
809 tmake_file="${tmake_file} pa/t-dce-thr"
812 install_headers_dir=install-headers-cpio
816 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
817 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
818 xmake_file="pa/x-ada"
819 if test x$enable_threads = x; then
820 enable_threads=$have_pthread_h
822 case x${enable_threads} in
824 tmake_file="${tmake_file} pa/t-dce-thr"
827 install_headers_dir=install-headers-cpio
833 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
834 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
835 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
837 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \
838 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
839 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
842 tmake_file="pa/t-pa64 pa/t-pa-hpux"
843 xmake_file="pa/x-ada"
844 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
845 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
846 if test x$gnu_ld = xyes
848 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
850 # if [ x$enable_threads = x ]; then
851 # enable_threads=$have_pthread_h
853 # if [ x$enable_threads = xyes ]; then
855 # tmake_file="${tmake_file} pa/t-dce-thr"
857 install_headers_dir=install-headers-cpio
859 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
860 target_cpu_default="MASK_PA_11"
861 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
862 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
863 xmake_file="pa/x-ada"
864 # if test x$enable_threads = x; then
865 # enable_threads=$have_pthread_h
867 # if test x$enable_threads = xyes; then
869 # tmake_file="${tmake_file} pa/t-dce-thr"
871 install_headers_dir=install-headers-cpio
875 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
876 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
877 xmake_file="pa/x-ada"
878 # if test x$enable_threads = x; then
879 # enable_threads=$have_pthread_h
881 # if test x$enable_threads = xyes; then
883 # tmake_file="${tmake_file} pa/t-dce-thr"
885 install_headers_dir=install-headers-cpio
888 i370-*-opened*) # IBM 360/370/390 Architecture
889 xm_defines='FATAL_EXIT_CODE=12'
891 tmake_file="i370/t-oe i370/t-i370"
892 c_target_objs="i370-c.o"
893 cxx_target_objs="i370-c.o"
896 xm_defines='FATAL_EXIT_CODE=12'
898 tmake_file="i370/t-i370"
899 c_target_objs="i370-c.o"
900 cxx_target_objs="i370-c.o"
903 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}"
904 tmake_file="t-slibgcc-elf-ver t-linux"
908 i[34567]86-*-darwin*)
909 tm_file="${tm_file} i386/darwin.h"
912 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
913 tmake_file="i386/t-i386elf t-svr4"
915 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
916 xm_defines="SMALL_ARG_MAX"
917 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
918 extra_parts="crtbegin.o crtend.o"
919 tmake_file=i386/t-crtpic
921 i[34567]86-*-netware) # Intel 80386's running netware
922 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
923 tmake_file=i386/t-netware
925 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
928 tm_file="${tm_file} usegas.h"
930 xm_defines="SMALL_ARG_MAX"
931 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
933 extra_parts="crtbegin.o crtend.o"
934 install_headers_dir=install-headers-cpio
937 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
939 i[34567]86-*-beoself* | i[34567]86-*-beos*)
940 tmake_file='i386/t-beos i386/t-crtpic'
941 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
942 extra_parts='crtbegin.o crtend.o'
944 i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*)
945 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
948 i[34567]86-*-freebsd*)
949 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
952 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"
954 i[34567]86-*-netbsdelf*)
955 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
957 i[34567]86-*-netbsd*)
958 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
964 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"
966 i[34567]86-*-openbsd*)
967 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}"
968 # needed to unconfuse gdb
969 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
970 # we need collect2 until our bug is fixed...
974 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
976 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
978 tmake_file="t-linux-aout i386/t-crtstuff"
979 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
982 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
983 # with ELF format using the
984 # GNU/Linux C library 5
985 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
986 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
987 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
989 if test x$enable_threads = xyes; then
993 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
994 # with ELF format using glibc 2
995 # aka GNU/Linux C library 6
996 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
997 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1000 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1001 i386/x86-64.h i386/linux64.h"
1002 tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64"
1006 i[34567]86-pc-msdosdjgpp*)
1007 xm_file=i386/xm-djgpp.h
1008 tm_file="dbxcoff.h ${tm_file} i386/djgpp.h"
1009 tmake_file=i386/t-djgpp
1013 case $host in *pc-msdosdjgpp*)
1018 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1019 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1020 tmake_file=t-libc-ok
1024 i[34567]86-*-lynxos*)
1025 if test x$gas = xyes
1027 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx.h i386/lynx.h"
1029 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
1033 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
1034 # tmake_file=t-libc-ok
1037 i[34567]86-*-rtems*)
1038 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
1039 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1040 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1041 if test x$enable_threads = xyes; then
1045 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1046 install_headers_dir=install-headers-cpio
1047 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h"
1048 if test x$gas = xyes
1050 tm_file="usegas.h ${tm_file}"
1052 tmake_file=i386/t-sco5
1053 extra_parts="crtbegin.o crtend.o"
1055 i[34567]86-*-solaris2*)
1056 xm_defines="SMALL_ARG_MAX"
1057 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
1058 tmake_file="i386/t-sol2 t-svr4"
1059 if test x$gnu_ld = xyes; then
1060 tmake_file="$tmake_file t-slibgcc-elf-ver"
1062 tmake_file="$tmake_file t-slibgcc-sld"
1064 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1065 if test x${enable_threads} = x; then
1066 enable_threads=$have_pthread_h
1067 if test x${enable_threads} = x; then
1068 enable_threads=$have_thread_h
1071 if test x${enable_threads} = xyes; then
1072 if test x${have_pthread_h} = xyes; then
1075 thread_file='solaris'
1079 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1080 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1081 if test x$stabs = xyes
1083 tm_file="${tm_file} dbx.h"
1085 tmake_file="i386/t-crtpic t-svr4"
1086 extra_parts="crtbegin.o crtend.o"
1087 if test x$enable_threads = xyes; then
1091 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1092 xm_defines="SMALL_ARG_MAX"
1093 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
1094 if test x$stabs = xyes
1096 tm_file="${tm_file} dbx.h"
1098 tmake_file="i386/t-crtpic t-svr4"
1099 extra_parts="crtbegin.o crtend.o"
1101 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1102 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"
1103 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1104 extra_parts="crtbegin.o crtend.o"
1105 install_headers_dir=install-headers-cpio
1107 i[34567]86-*-sysv*) # Intel 80386's running system V
1108 if test x$gas = xyes
1110 if test x$stabs = xyes
1112 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
1113 tmake_file=i386/t-svr3dbx
1114 extra_parts="svr3.ifile svr3z.ifile"
1116 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
1117 extra_parts="crtbegin.o crtend.o"
1118 tmake_file=i386/t-crtstuff
1121 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
1122 extra_parts="crtbegin.o crtend.o"
1123 tmake_file=i386/t-crtstuff
1125 tmake_file="$tmake_file i386/t-crtpic"
1127 i386-*-vsta) # Intel 80386's running VSTa kernel
1128 xm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/xm-vsta.h"
1129 tm_file="${tm_file} i386/vsta.h"
1131 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1132 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h"
1133 xm_file=i386/xm-cygwin.h
1134 tmake_file="i386/t-cygming i386/t-cygwin"
1136 c_target_objs=cygwin2.o
1137 cxx_target_objs=cygwin2.o
1138 if test x$enable_threads = xyes; then
1143 i[34567]86-*-mingw32*)
1144 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
1145 xm_file=i386/xm-mingw32.h
1146 tmake_file="i386/t-cygming i386/t-mingw32"
1147 xmake_file=i386/x-mingw32
1149 if test x$enable_threads = xyes; then
1155 tm_file="${tm_file} i386/crtdll.h"
1157 *mingw32msv* | *mingw32*)
1162 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h"
1163 tmake_file="i386/t-cygwin i386/t-uwin"
1165 if test x$enable_threads = xyes; then
1170 i[34567]86-*-interix3*)
1171 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"
1172 tmake_file="t-interix i386/t-interix"
1174 xmake_file="x-interix"
1175 if test x$enable_threads = xyes ; then
1178 if test x$stabs = xyes ; then
1179 tm_file="${tm_file} dbxcoff.h"
1182 i[34567]86-*-interix*)
1183 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
1184 tmake_file="t-interix i386/t-interix"
1186 if test x$enable_threads = xyes ; then
1189 if test x$stabs = xyes ; then
1190 tm_file="${tm_file} dbxcoff.h"
1194 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1195 tmake_file=i960/t-960bare
1196 c_target_objs="i960-c.o"
1197 cxx_target_objs="i960-c.o"
1200 tmake_file="i960/t-960bare t-rtems"
1201 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1202 if test x$enable_threads = xyes; then
1205 c_target_objs="i960-c.o"
1206 cxx_target_objs="i960-c.o"
1208 i960-*-*) # Default i960 environment.
1210 tmake_file=i960/t-960bare
1211 c_target_objs="i960-c.o"
1212 cxx_target_objs="i960-c.o"
1215 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1216 tmake_file="ia64/t-ia64"
1217 target_cpu_default="0"
1218 if test x$gas = xyes
1220 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1222 if test x$gnu_ld = xyes
1224 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1226 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1229 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1230 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1231 tmake_file="${tmake_file} ia64/t-ia64"
1232 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1235 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1236 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1237 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1238 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1239 if test x"$use_libunwind_exceptions" = xyes; then
1240 tmake_file="$tmake_file t-libunwind"
1244 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1245 tmake_file="ia64/t-ia64 ia64/t-hpux"
1246 target_cpu_default="MASK_GNU_AS"
1247 if test x$enable_threads = xyes; then
1251 c_target_objs="ia64-c.o"
1252 cxx_target_objs="ia64-c.o"
1257 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1258 extra_parts="crtinit.o crtfini.o"
1260 # m68hc11 and m68hc12 share the same machine description.
1261 m68hc11-*-*|m6811-*-*)
1262 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1263 tm_p_file="m68hc11/m68hc11-protos.h"
1264 md_file="m68hc11/m68hc11.md"
1265 out_file="m68hc11/m68hc11.c"
1266 tmake_file="m68hc11/t-m68hc11-gas"
1268 m68hc12-*-*|m6812-*-*)
1269 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1270 tm_p_file="m68hc11/m68hc11-protos.h"
1271 md_file="m68hc11/m68hc11.md"
1272 out_file="m68hc11/m68hc11.c"
1273 tmake_file="m68hc11/t-m68hc11-gas"
1275 m68000-hp-hpux*) # HP 9000 series 300
1276 if test x$gas = xyes
1278 tm_file=m68k/hp310g.h
1280 tm_file=m68k/hp310.h
1282 tmake_file=m68k/t-hp320
1283 install_headers_dir=install-headers-cpio
1286 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1287 if test x$gas = xyes
1289 tm_file=m68k/hp320g.h
1291 tm_file=m68k/hpux7.h
1293 install_headers_dir=install-headers-cpio
1296 m68k-hp-hpux*) # HP 9000 series 300
1297 if test x$gas = xyes
1299 tm_file=m68k/hp320g.h
1301 tm_file=m68k/hp320.h
1303 install_headers_dir=install-headers-cpio
1307 tmake_file=m68k/t-m68kbare
1308 tm_file="m68k/m68k-aout.h libgloss.h"
1311 tmake_file=m68k/t-m68kbare
1312 tm_file="m68k/m68k-coff.h dbx.h"
1314 m68020-*-elf* | m68k-*-elf*)
1315 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1316 tmake_file=m68k/t-m68kelf
1317 extra_parts="crtbegin.o crtend.o"
1319 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1320 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1323 target_cpu_default="0"
1326 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1331 tm_file=m68k/netbsd.h
1337 # needed to unconfuse gdb
1338 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1339 # we need collect2 until our bug is fixed...
1342 m68k-*-sysv4*) # Motorola m68k's running system V.4
1343 tm_file=m68k/m68kv4.h
1345 extra_parts="crtbegin.o crtend.o"
1347 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1348 # with ELF format using glibc 2
1349 # aka the GNU/Linux C library 6.
1350 tm_file=m68k/linux.h
1351 tmake_file="t-slibgcc-elf-ver t-linux"
1354 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1355 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"
1356 extra_parts="crtbegin.o crtend.o"
1357 if test x$enable_threads = xyes; then
1362 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
1363 tmake_file=mcore/t-mcore
1366 tm_file=mcore/mcore-pe.h
1367 tmake_file=mcore/t-mcore-pe
1369 mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI
1370 if test x$gas = xyes
1372 tm_file="mips/iris5.h mips/iris5gas.h mips/iris6-o32-gas.h"
1373 if test x$stabs = xyes
1375 tm_file="${tm_file} dbx.h"
1377 tmake_file=mips/t-iris5-gas
1379 tm_file="mips/iris5.h mips/iris6-o32-as.h"
1380 tmake_file=mips/t-iris5-as
1382 tm_file="${tm_file} mips/iris6-o32.h"
1383 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1384 xm_file=mips/xm-iris5.h
1385 # mips-tfile doesn't work yet
1386 # See comment in mips/iris5.h file.
1388 # if test x$enable_threads = xyes; then
1389 # thread_file='irix'
1392 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1393 if test "x$gnu_ld" = xyes
1395 tm_file="mips/iris6.h mips/iris6gld.h"
1397 tm_file=mips/iris6.h
1399 tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
1400 # if test x$enable_threads = xyes; then
1401 # thread_file='irix'
1404 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1405 tm_file="mips/iris6.h mips/cross64.h"
1406 xm_file=mips/xm-iris5.h
1407 tmake_file="mips/t-iris mips/t-cross64"
1408 # See comment in mips/iris[56].h files.
1410 # if test x$enable_threads = xyes; then
1411 # thread_file='irix'
1414 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1415 if test x$gas = xyes
1417 tm_file="mips/iris5.h mips/iris5gas.h"
1418 if test x$stabs = xyes
1420 tm_file="${tm_file} dbx.h"
1422 tmake_file=mips/t-iris5-gas
1424 tm_file=mips/iris5.h
1425 tmake_file=mips/t-iris5-as
1427 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1428 xm_file=mips/xm-iris5.h
1429 # mips-tfile doesn't work yet
1430 # See comment in mips/iris5.h file.
1432 # if test x$enable_threads = xyes; then
1433 # thread_file='irix'
1436 mips*-*-netbsd*) # NetBSD/mips, either endian.
1437 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1438 tm_file="elfos.h ${tm_file} mips/netbsd.h"
1439 tmake_file="${tmake_file}"
1442 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h"
1443 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux64"
1445 # This default ABI is a partial lie: t-linux64 overrides the
1446 # DRIVER_SELF_SPEC that sets the default abi, in the spec file
1447 # that is installed. What GCC thinks of as the default must
1448 # remain as ABI_32 such that the SONAMEs of the libgcc shared
1449 # libraries remain compatible with those of mips-linux-gnu.
1450 tm_defines="MIPS_ISA_DEFAULT=1 MIPS_ABI_DEFAULT=ABI_32"
1451 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1452 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1455 if test x$enable_threads = xyes; then
1459 mips*-*-linux*) # Linux MIPS, either endian.
1460 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
1463 target_cpu_default="MASK_SOFT_FLOAT"
1464 tm_defines="MIPS_ISA_DEFAULT=32"
1467 tmake_file="t-slibgcc-elf-ver t-linux"
1469 mips*el-*-openbsd*) # mips little endian
1470 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1472 mips*-*-openbsd*) # mips big endian
1473 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1474 tm_file="mips/openbsd-be.h ${tm_file}"
1476 mipsisa32-*-elf* | mipsisa32el-*-elf*)
1477 tm_file="${tm_file} mips/elf.h"
1478 tmake_file=mips/t-isa3264
1479 tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
1481 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
1482 tm_file="${tm_file} mips/elf.h"
1483 tmake_file=mips/t-isa3264
1484 tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
1486 mipsisa64-*-elf* | mipsisa64el-*-elf*)
1487 tm_file="${tm_file} mips/elf.h"
1488 tmake_file=mips/t-isa3264
1489 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1490 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
1492 mipsisa64sr71k-*-elf*)
1493 tm_file="${tm_file} mips/elf.h"
1494 tmake_file=mips/t-sr71k
1495 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1496 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
1498 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1499 tm_file="${tm_file} mips/elf.h"
1500 tmake_file=mips/t-elf
1501 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1502 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1504 mips-*-elf* | mipsel-*-elf*)
1505 tm_file="${tm_file} mips/elf.h"
1506 tmake_file=mips/t-elf
1508 mips64-*-elf* | mips64el-*-elf*)
1509 tm_file="${tm_file} mips/elf64.h"
1510 tmake_file=mips/t-elf
1511 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1512 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1514 mips64vr-*-elf* | mips64vrel-*-elf*)
1515 tm_file="mips/vr.h ${tm_file} mips/elf64.h"
1516 tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1"
1517 tmake_file=mips/t-vr
1519 mips64orion-*-elf* | mips64orionel-*-elf*)
1520 tm_file="${tm_file} mips/elforion.h mips/elf64.h"
1521 tmake_file=mips/t-elf
1522 tmake_file=mips/t-elf
1523 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1524 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1527 tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
1528 tmake_file="mips/t-elf t-rtems"
1529 if test x$enable_threads = xyes; then
1533 mipstx39-*-elf* | mipstx39el-*-elf*)
1534 tm_file="${tm_file} mips/r3900.h mips/elf.h"
1535 tmake_file=mips/t-r3900
1537 mmix-knuth-mmixware)
1538 need_64bit_hwint=yes
1541 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1542 if test x$stabs = xyes
1544 tm_file="${tm_file} dbx.h"
1549 echo "GCC does not yet support the ${machine} target"; exit 1
1552 tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1553 # On NetBSD, the headers are already okay, except for math.h.
1554 tmake_file="t-netbsd ns32k/t-ns32k"
1559 tm_file="${tm_file} pdp11/2bsd.h"
1566 tmake_file="${tmake_file} rs6000/t-fprules "
1570 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h"
1571 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-linux64"
1574 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"
1575 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
1578 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
1579 tmake_file="rs6000/t-fprules rs6000/t-beos"
1583 tm_file="${tm_file} rs6000/darwin.h"
1584 tmake_file="rs6000/t-fprules t-darwin rs6000/t-darwin"
1585 extra_headers=altivec.h
1586 # override ppc default
1588 # powerpc-darwin host support.
1589 host_hook_obj=host-darwin.o
1590 xmake_file=rs6000/x-darwin
1592 powerpc*-*-freebsd*)
1593 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
1594 tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1597 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1598 tmake_file="${tmake_file} rs6000/t-netbsd"
1600 powerpc-*-chorusos*)
1601 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
1602 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1603 case x${enable_threads} in
1604 xyes | xpthreads | xposix)
1610 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
1611 tmake_file="rs6000/t-spe rs6000/t-ppccomm"
1613 powerpc-*-eabisimaltivec*)
1614 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"
1615 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1618 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
1619 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1622 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1623 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1625 powerpc-*-eabialtivec*)
1626 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
1627 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1630 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
1631 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1634 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
1635 tmake_file="rs6000/t-fprules t-rtems rs6000/t-ppccomm"
1636 if test x$enable_threads = xyes; then
1640 powerpc-*-linux*altivec*)
1641 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
1642 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1644 powerpc-*-linux*spe*)
1645 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
1646 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1649 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
1650 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1652 powerpc-*-gnu-gnualtivec*)
1653 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"
1654 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1655 if test x$enable_threads = xyes; then
1660 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"
1661 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1662 if test x$enable_threads = xyes; then
1666 powerpc-wrs-vxworks*)
1667 # We want vxworks.h after rs6000/sysv4.h, which unfortunately
1668 # means we have to redo the tm_file list from scratch.
1669 tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1670 tm_file="${tm_file} vxworks.h rs6000/vxworks.h"
1671 tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
1672 extra_headers=ppc-asm.h
1674 powerpc-wrs-windiss*)
1675 tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
1676 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1680 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1681 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1684 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1685 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1687 powerpcle-*-eabisim*)
1688 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"
1689 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1692 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
1693 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1695 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
1696 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
1697 tmake_file="rs6000/t-fprules rs6000/t-newas"
1701 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1702 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
1703 tmake_file=rs6000/t-aix43
1708 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1709 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
1710 tmake_file=rs6000/t-aix43
1715 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1716 tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
1717 tmake_file=rs6000/t-aix52
1723 tm_file="lynx.h rs6000/lynx.h"
1724 tmake_file=rs6000/t-fprules
1728 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1729 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff"
1732 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1733 tm_p_file=s390/s390-protos.h
1734 md_file=s390/s390.md
1735 extra_modes=s390/s390-modes.def
1736 out_file=s390/s390.c
1737 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64"
1739 sh-*-elf* | sh[2346l]*-*-elf*)
1740 tmake_file="sh/t-sh sh/t-elf"
1743 tm_file="sh/little.h ${tm_file}"
1744 tmake_file="${tmake_file} sh/t-le"
1747 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h"
1750 tmake_file="${tmake_file} sh/t-sh64"
1751 tm_file="${tm_file} sh/sh64.h"
1752 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1754 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1755 sh4*) target_cpu_default="SELECT_SH4" ;;
1756 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1757 sh3*) target_cpu_default="SELECT_SH3" ;;
1758 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1759 sh2*) target_cpu_default="SELECT_SH2" ;;
1762 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1766 tmake_file="sh/t-sh sh/t-elf t-rtems"
1767 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/rtemself.h rtems.h"
1768 if test x$enable_threads = xyes; then
1773 tmake_file="sh/t-sh t-rtems"
1774 tm_file="${tm_file} sh/coff.h sh/rtems.h rtems.h"
1775 if test x$enable_threads = xyes; then
1779 sh-*-linux* | sh[2346lbe]*-*-linux*)
1780 tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux sh/t-linux"
1782 sh*be-*-* | sh*eb-*-*) ;;
1784 tm_file="sh/little.h ${tm_file}"
1785 tmake_file="${tmake_file} sh/t-le"
1788 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
1791 tmake_file="${tmake_file} sh/t-sh64"
1792 tm_file="${tm_file} sh/sh64.h"
1793 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1795 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1796 sh4*) target_cpu_default="SELECT_SH4" ;;
1797 sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;;
1798 sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
1799 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1800 sh3*) target_cpu_default="SELECT_SH3" ;;
1801 sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;;
1802 sh2e[lb]*) target_cpu_default="SELECT_SH2" ;;
1803 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1804 sh2*) target_cpu_default="SELECT_SH2" ;;
1807 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1810 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1811 sh64-*-netbsd* | sh64l*-*-netbsd*)
1812 tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
1813 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
1816 tm_file="sh/little.h ${tm_file}"
1817 tmake_file="${tmake_file} sh/t-le"
1820 tmake_file="${tmake_file} sh/t-be"
1825 # SHmedia, 32-bit ABI
1826 target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT"
1827 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
1830 # SHmedia, 64-bit ABI
1831 target_cpu_default="SH5_BIT|SH4_BIT"
1832 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
1835 # SH3, software floating point
1836 target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
1837 tmake_file="${tmake_file} sh/t-netbsd"
1842 tm_file="${tm_file} sh/coff.h"
1845 tm_file="${tm_file} sparc/pbd.h"
1848 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
1851 tm_file="sparc/sparc.h ${tm_file}"
1852 # needed to unconfuse gdb
1853 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
1854 # we need collect2 until our bug is fixed...
1858 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"
1863 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
1864 tmake_file="sparc/t-elf sparc/t-crtfm"
1865 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1867 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1868 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
1869 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
1872 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"
1873 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
1874 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1875 if test x$enable_threads = xyes; then
1879 sparc64-*-solaris2* | sparcv9-*-solaris2*)
1880 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"
1881 if test x$gnu_ld = xyes; then
1882 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
1884 if test x$gas = xyes; then
1885 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1887 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
1888 if test x$gnu_ld = xyes; then
1889 tmake_file="$tmake_file t-slibgcc-elf-ver"
1891 tmake_file="$tmake_file t-slibgcc-sld"
1893 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
1894 if test x${enable_threads} = x ; then
1895 enable_threads=$have_pthread_h
1896 if test x${enable_threads} = x ; then
1897 enable_threads=$have_thread_h
1900 if test x${enable_threads} = xyes ; then
1901 if test x${have_pthread_h} = xyes ; then
1904 thread_file='solaris'
1907 need_64bit_hwint=yes
1910 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
1911 if test x$gnu_ld = xyes; then
1912 tm_file="${tm_file} sparc/sol2-gld.h"
1914 tmake_file="sparc/t-sol2 sparc/t-crtfm"
1915 if test x$gnu_ld = xyes; then
1916 tmake_file="$tmake_file t-slibgcc-elf-ver"
1918 tmake_file="$tmake_file t-slibgcc-sld"
1921 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
1922 if test x$gnu_ld = xno; then
1923 tm_file="${tm_file} sparc/sol26-sld.h"
1927 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
1928 if test x$gnu_ld = xyes; then
1929 tm_file="${tm_file} sparc/sol2-gld-bi.h"
1931 if test x$gas = xyes; then
1932 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1934 tmake_file="$tmake_file sparc/t-sol2-64"
1935 need_64bit_hwint=yes
1938 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1939 if test x${enable_threads} = x; then
1940 enable_threads=$have_pthread_h
1941 if test x${enable_threads} = x; then
1942 enable_threads=$have_thread_h
1945 if test x${enable_threads} = xyes; then
1946 if test x${have_pthread_h} = xyes; then
1949 thread_file='solaris'
1954 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sysv4-only.h"
1956 extra_parts="crtbegin.o crtend.o"
1959 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
1960 tmake_file=sparc/t-sparclite
1963 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"
1964 tmake_file="sparc/t-sparclite sparc/t-crtfm"
1965 extra_parts="crtbegin.o crtend.o"
1968 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"
1969 tmake_file="sparc/t-sp86x sparc/t-crtfm"
1970 extra_parts="crtbegin.o crtend.o"
1973 tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h"
1976 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h"
1977 tmake_file="${tmake_file} sparc/t-crtfm"
1978 extra_parts="crtbegin.o crtend.o"
1980 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1981 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
1982 tmake_file="${tmake_file} sparc/t-crtfm"
1984 case "x$with_cpu" in
1986 x) with_cpu=ultrasparc ;;
1987 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
1989 need_64bit_hwint=yes
1991 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1992 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
1993 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
1996 tmake_file="${tmake_file} sparc/t-netbsd64"
1997 tm_file="sparc/biarch64.h ${tm_file}"
1998 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2001 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2002 tmake_file=arm/t-strongarm-elf
2005 extra_modes=arm/arm-modes.def
2008 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"
2009 tmake_file=arm/t-strongarm-pe
2012 extra_modes=arm/arm-modes.def
2016 target_cpu_default="TARGET_CPU_v850e"
2017 tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2018 tm_p_file=v850/v850-protos.h
2019 tmake_file=v850/t-v850
2020 md_file=v850/v850.md
2021 out_file=v850/v850.c
2022 if test x$stabs = xyes
2024 tm_file="${tm_file} dbx.h"
2027 c_target_objs="v850-c.o"
2028 cxx_target_objs="v850-c.o"
2031 target_cpu_default="TARGET_CPU_generic"
2032 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2033 tmake_file=v850/t-v850
2034 if test x$stabs = xyes
2036 tm_file="${tm_file} dbx.h"
2039 c_target_objs="v850-c.o"
2040 cxx_target_objs="v850-c.o"
2042 vax-*-bsd*) # VAXen running BSD
2043 tm_file="${tm_file} vax/bsd.h"
2046 vax-*-sysv*) # VAXen running system V
2047 tm_file="${tm_file} vax/vaxv.h"
2050 tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
2053 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
2059 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
2062 vax-*-ultrix*) # VAXen running ultrix
2063 tm_file="${tm_file} vax/ultrix.h"
2065 vax-*-vms*) # VAXen running VMS
2066 echo "Configuration $machine no longer supported" 1>&2
2069 vax-*-*) # VAX default entry
2072 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2073 tmake_file=arm/t-xscale-elf
2076 extra_modes=arm/arm-modes.def
2079 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
2080 tmake_file=arm/t-xscale-coff
2083 extra_modes=arm/arm-modes.def
2086 # For historical reasons, the target files omit the 'x'.
2087 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
2088 tm_p_file=stormy16/stormy16-protos.h
2089 md_file=stormy16/stormy16.md
2090 out_file=stormy16/stormy16.c
2091 tmake_file="stormy16/t-stormy16"
2092 extra_parts="crtbegin.o crtend.o"
2095 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
2096 tmake_file="xtensa/t-xtensa xtensa/t-elf"
2099 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
2100 tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa xtensa/t-linux"
2103 echo "*** Configuration $machine not supported" 1>&2
2110 install_headers_dir=install-headers-cpio
2114 # Distinguish i[34567]86
2115 # Also, do not run mips-tfile on MIPS if using gas.
2116 # Process --with-cpu= for PowerPC/rs6000
2117 target_cpu_default2=
2120 target_cpu_default2=TARGET_CPU_DEFAULT_i486
2123 case $target_alias in
2125 target_cpu_default2=TARGET_CPU_DEFAULT_k6_2
2128 target_cpu_default2=TARGET_CPU_DEFAULT_k6_3
2131 target_cpu_default2=TARGET_CPU_DEFAULT_k6
2133 pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2134 target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx
2137 target_cpu_default2=TARGET_CPU_DEFAULT_pentium
2141 i686-*-* | i786-*-*)
2142 case $target_alias in
2144 target_cpu_default2=TARGET_CPU_DEFAULT_k8
2146 athlon_xp-*|athlon_mp-*|athlon_4-*)
2147 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
2149 athlon_tbird-*|athlon-*)
2150 target_cpu_default2=TARGET_CPU_DEFAULT_athlon
2153 target_cpu_default2=TARGET_CPU_DEFAULT_pentium2
2156 target_cpu_default2=TARGET_CPU_DEFAULT_pentium3
2159 target_cpu_default2=TARGET_CPU_DEFAULT_pentium4
2162 target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro
2167 # We should have hammer chip here, but it does not exist yet and
2168 # thus it is not supported. Athlon_SSE is probably equivalent feature
2169 # wise to hammer from our point of view except for 64bit mode.
2170 target_cpu_default2=TARGET_CPU_DEFAULT_k8
2175 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
2178 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
2181 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2184 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2187 target_cpu_default2="MASK_CPU_EV5"
2191 if test x$gas = xyes
2193 if test "$target_cpu_default2" = ""
2195 target_cpu_default2="MASK_GAS"
2197 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2202 case "x$with_cpu" in
2205 target_cpu_default2="TARGET_CPU_generic"
2208 # Distinguish cores, and major variants
2209 # arm7m doesn't exist, but D & I don't affect code
2210 xarm[236789] | xarm250 | xarm[67][01]0 \
2211 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
2212 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2215 | xstrongarm | xstrongarm110 | xstrongarm1100)
2216 target_cpu_default2="TARGET_CPU_$with_cpu"
2220 echo "--with-cpu must be passed a value" 1>&2
2225 if test x$pass2done = xyes
2227 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2234 target_cpu_default2="TARGET_CPU_9ep9312"
2239 hppa*-*-* | parisc*-*-*)
2240 if test x$gas = xyes
2242 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
2246 tm_defines="TARGET_SCHED_DEFAULT=\\\"7100LC\\\""
2252 mips*-*-ecoff* | mips*-*-elf*)
2253 if test x$gas = xyes
2255 if test x$gnu_ld = xyes
2257 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
2259 target_cpu_default2="MASK_GAS"
2264 if test x$gas = xyes
2266 target_cpu_default2="MASK_GAS"
2272 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
2276 *mips/elf.h* | *mips/elf64.h*)
2277 tm_defines="OBJECT_FORMAT_ELF $tm_defines"
2280 if test "x$enable_gofast" = xyes
2282 tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
2283 tm_file="gofast.h $tm_file"
2284 tmake_file="mips/t-gofast $tmake_file"
2286 tmake_file="mips/t-mips $tmake_file"
2289 powerpc*-*-* | rs6000-*-*)
2290 if test x$enable_altivec = xyes
2292 tm_file="$tm_file rs6000/altivec-defs.h"
2294 case "x$with_cpu" in
2298 xcommon | xpowerpc | xpowerpc64 \
2299 | xpower | xpower2 | xpower3 | xpower4 \
2300 | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
2301 | x601 | x602 | x603 | x603e | x604 | x604e | x620 | x630 \
2302 | x740 | x750 | x7400 | x7450 | x505)
2303 target_cpu_default2="\\\"$with_cpu\\\""
2306 x401 | x403 | x405 | xec603e | x801 | x821 | x823 | x860)
2307 target_cpu_default2="\\\"$with_cpu\\\""
2311 echo "--with-cpu must be passed a value" 1>&2
2316 if test x$pass2done = xyes
2318 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2323 out_file=rs6000/rs6000.c
2324 c_target_objs="${c_target_objs} rs6000-c.o"
2325 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
2326 tmake_file="rs6000/t-rs6000 ${tmake_file}"
2329 case ".$with_cpu" in
2331 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2333 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
2334 target_cpu_default2="TARGET_CPU_$with_cpu"
2337 if test x$pass2done = xyes
2339 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2346 case "x$with_cpu" in
2350 target_cpu_default2="TARGET_CPU_$with_cpu"
2353 if test x$pass2done = xyes
2355 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2363 if test "$target_cpu_default2" != ""
2365 if test "$target_cpu_default" != ""
2367 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2369 target_cpu_default=$target_cpu_default2
2373 # Save data on machine being used to compile GCC in build_xm_file.
2374 # Save data on host machine in vars host_xm_file and host_xmake_file.
2375 if test x$pass1done = x
2377 if test x$xm_file != x
2378 then build_xm_file=$xm_file
2380 build_xm_defines=$xm_defines
2381 build_install_headers_dir=$install_headers_dir
2382 build_exeext=$exeext
2385 if test x$pass2done = x
2387 if test x$xm_file != x
2388 then host_xm_file=$xm_file
2390 host_xm_defines=$xm_defines
2391 host_xmake_file="$xmake_file"
2392 host_truncate_target=$truncate_target
2393 host_extra_gcc_objs=$extra_gcc_objs
2394 host_extra_objs=$extra_host_objs
2396 out_host_hook_obj=$host_hook_obj