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 # Darwin linker does collect2 functionality
511 extra_objs="darwin.o"
515 tm_file="${tm_file} elfos.h svr4.h vxworks.h"
516 thread_file='vxworks'
522 # Support site-specific machine types.
524 rest=`echo $machine | sed -e "s/$cpu_type-//"`
525 tm_file=${cpu_type}/$rest.h
526 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
527 then xm_file=${cpu_type}/xm-$rest.h
529 if test -f $srcdir/config/${cpu_type}/x-$rest
530 then xmake_file=${cpu_type}/x-$rest
532 if test -f $srcdir/config/${cpu_type}/t-$rest
533 then tmake_file=${cpu_type}/t-$rest
538 tm_file="${tm_file} alpha/unicosmk.h"
540 # Don't include t-ieee for now because we don't support that yet
541 # tmake_file="alpha/t-ieee"
542 tmake_file="alpha/t-unicosmk"
545 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
546 target_cpu_default="MASK_GAS"
547 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
550 target_cpu_default="MASK_GAS"
551 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
554 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
555 target_cpu_default="MASK_GAS"
556 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
557 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
560 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
561 target_cpu_default="MASK_GAS"
562 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
566 tm_file="${cpu_type}/${cpu_type}.h ${tm_file}"
567 # default x-alpha is only appropriate for dec-osf.
568 target_cpu_default="MASK_GAS"
569 tmake_file="alpha/t-alpha alpha/t-ieee"
573 if test x$stabs = xyes
575 tm_file="${tm_file} dbx.h"
577 if test x$gas != xyes
579 extra_passes="mips-tfile mips-tdump"
582 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
583 tm_file="${tm_file} alpha/osf.h"
584 extra_headers=va_list.h
587 # Some versions of OSF4 (specifically X4.0-9 296.7) have
588 # a broken tar, so we use cpio instead.
589 install_headers_dir=install-headers-cpio
590 # Set target_cpu_default except on 4.0a.
593 *) target_cpu_default=MASK_SUPPORT_ARCH
597 tm_file="${tm_file} alpha/osf5.h"
598 target_cpu_default=MASK_SUPPORT_ARCH
603 tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
604 xm_file="alpha/xm-vms.h"
605 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
606 xmake_file=alpha/x-vms
608 # This removes the cpu type and manufacturer components and
609 # replaces "." with "_" in the operating system version.
610 case $host in *-*-*vms*)
611 target_alias=`echo $host \
612 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
615 install_headers_dir=install-headers-cp
620 tm_file="${tm_file} alpha/vms.h"
621 xm_file=alpha/xm-vms.h
622 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
623 xmake_file=alpha/x-vms
625 # This removes the cpu type and manufacturer components and
626 # replaces "." with "_" in the operating system version.
627 case $host in *-*-*vms*)
628 target_alias=`echo $host \
629 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
632 install_headers_dir=install-headers-cp
637 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
638 extra_parts="crtinit.o crtfini.o"
640 arm-*-coff* | armel-*-coff*)
641 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h"
642 tmake_file=arm/t-arm-coff
644 arm-semi-aof | armel-semi-aof)
645 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
646 tmake_file=arm/t-semi
648 arm*-*-freebsd*|strongarm*-*-freebsd*)
649 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
650 tmake_file="${tmake_file} arm/t-strongarm-elf"
653 tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
654 tmake_file="${tmake_file} arm/t-netbsd"
657 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
658 tmake_file="t-netbsd arm/t-netbsd"
662 arm*-*-linux*) # ARM GNU/Linux with ELF
663 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"
664 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
665 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
667 case x${enable_threads} in
668 x | xyes | xpthreads | xposix)
673 arm*-*-uclinux*) # ARM ucLinux
674 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"
675 tmake_file=arm/t-arm-elf
678 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
679 tmake_file=arm/t-arm-elf
682 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"
683 tmake_file="arm/t-arm-elf t-rtems"
684 if test x$enable_threads = xyes; then
688 arm*-*-elf | ep9312-*-elf)
689 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
690 tmake_file=arm/t-arm-elf
693 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h"
699 c4x-*-rtems* | tic4x-*-rtems*)
700 tmake_file="c4x/t-c4x t-rtems"
701 tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
702 if test x$enable_threads = xyes; then
705 c_target_objs="c4x-c.o"
706 cxx_target_objs="c4x-c.o"
710 c_target_objs="c4x-c.o"
711 cxx_target_objs="c4x-c.o"
714 tm_file="dbxelf.h ${tm_file} cris/aout.h"
716 tmake_file="cris/t-cris cris/t-aout"
718 cris-*-elf | cris-*-none)
719 tm_file="dbxelf.h elfos.h ${tm_file}"
720 tmake_file="cris/t-cris cris/t-elfmulti"
724 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
725 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
728 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
733 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
734 tmake_file=fr30/t-fr30
735 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
738 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h"
742 tmake_file="h8300/t-h8300 t-rtems"
743 tm_file="h8300/h8300.h h8300/rtems.h rtems.h"
744 if test x$enable_threads = xyes; then
749 tmake_file="h8300/t-h8300 h8300/t-elf"
750 tm_file="h8300/h8300.h h8300/elf.h"
754 hppa*64*-*-linux* | parisc*64*-*-linux*)
755 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
756 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
757 pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
758 tmake_file=pa/t-linux64
762 hppa*-*-linux* | parisc*-*-linux*)
763 target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS"
764 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
765 pa/pa32-regs.h pa/pa32-linux.h"
766 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
769 target_cpu_default="MASK_PA_11"
773 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
774 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
775 tmake_file="pa/t-bsd pa/t-pro"
776 xmake_file="pa/x-ada"
779 target_cpu_default="MASK_PA_11"
780 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
781 tmake_file="pa/t-bsd pa/t-pa"
782 xmake_file="pa/x-ada"
786 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
787 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"
788 tmake_file="pa/t-bsd pa/t-pro t-rtems"
789 xmake_file="pa/x-ada"
790 if test x$enable_threads = xyes; then
795 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
796 target_cpu_default="MASK_PA_11"
797 tmake_file="pa/t-bsd pa/t-pa"
798 xmake_file="pa/x-ada"
801 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
802 target_cpu_default="MASK_PA_11"
803 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
804 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
805 xmake_file="pa/x-ada"
806 if test x$enable_threads = x; then
807 enable_threads=$have_pthread_h
809 case x${enable_threads} in
811 tmake_file="${tmake_file} pa/t-dce-thr"
814 install_headers_dir=install-headers-cpio
818 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
819 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
820 xmake_file="pa/x-ada"
821 if test x$enable_threads = x; then
822 enable_threads=$have_pthread_h
824 case x${enable_threads} in
826 tmake_file="${tmake_file} pa/t-dce-thr"
829 install_headers_dir=install-headers-cpio
835 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
836 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
837 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
839 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \
840 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
841 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
844 tmake_file="pa/t-pa64 pa/t-pa-hpux"
845 xmake_file="pa/x-ada"
846 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
847 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
848 if test x$gnu_ld = xyes
850 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
852 # if [ x$enable_threads = x ]; then
853 # enable_threads=$have_pthread_h
855 # if [ x$enable_threads = xyes ]; then
857 # tmake_file="${tmake_file} pa/t-dce-thr"
859 install_headers_dir=install-headers-cpio
861 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
862 target_cpu_default="MASK_PA_11"
863 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
864 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
865 xmake_file="pa/x-ada"
866 # if test x$enable_threads = x; then
867 # enable_threads=$have_pthread_h
869 # if test x$enable_threads = xyes; then
871 # tmake_file="${tmake_file} pa/t-dce-thr"
873 install_headers_dir=install-headers-cpio
877 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
878 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
879 xmake_file="pa/x-ada"
880 # if test x$enable_threads = x; then
881 # enable_threads=$have_pthread_h
883 # if test x$enable_threads = xyes; then
885 # tmake_file="${tmake_file} pa/t-dce-thr"
887 install_headers_dir=install-headers-cpio
890 i370-*-opened*) # IBM 360/370/390 Architecture
891 xm_defines='FATAL_EXIT_CODE=12'
893 tmake_file="i370/t-oe i370/t-i370"
894 c_target_objs="i370-c.o"
895 cxx_target_objs="i370-c.o"
898 xm_defines='FATAL_EXIT_CODE=12'
900 tmake_file="i370/t-i370"
901 c_target_objs="i370-c.o"
902 cxx_target_objs="i370-c.o"
905 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}"
906 tmake_file="t-slibgcc-elf-ver t-linux"
910 i[34567]86-*-darwin*)
911 tm_file="${tm_file} i386/darwin.h"
914 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
915 tmake_file="i386/t-i386elf t-svr4"
917 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
918 xm_defines="SMALL_ARG_MAX"
919 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
920 extra_parts="crtbegin.o crtend.o"
921 tmake_file=i386/t-crtpic
923 i[34567]86-*-netware) # Intel 80386's running netware
924 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
925 tmake_file=i386/t-netware
927 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
930 tm_file="${tm_file} usegas.h"
932 xm_defines="SMALL_ARG_MAX"
933 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
935 extra_parts="crtbegin.o crtend.o"
936 install_headers_dir=install-headers-cpio
939 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
941 i[34567]86-*-beoself* | i[34567]86-*-beos*)
942 tmake_file='i386/t-beos i386/t-crtpic'
943 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
944 extra_parts='crtbegin.o crtend.o'
946 i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*)
947 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
950 i[34567]86-*-freebsd*)
951 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
954 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"
956 i[34567]86-*-netbsdelf*)
957 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
959 i[34567]86-*-netbsd*)
960 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
966 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"
968 i[34567]86-*-openbsd*)
969 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}"
970 # needed to unconfuse gdb
971 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
972 # we need collect2 until our bug is fixed...
976 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
978 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
980 tmake_file="t-linux-aout i386/t-crtstuff"
981 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
984 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
985 # with ELF format using the
986 # GNU/Linux C library 5
987 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
988 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
989 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
991 if test x$enable_threads = xyes; then
995 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
996 # with ELF format using glibc 2
997 # aka GNU/Linux C library 6
998 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
999 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1002 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1003 i386/x86-64.h i386/linux64.h"
1004 tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64"
1008 i[34567]86-pc-msdosdjgpp*)
1009 xm_file=i386/xm-djgpp.h
1010 tm_file="dbxcoff.h ${tm_file} i386/djgpp.h"
1011 tmake_file=i386/t-djgpp
1015 case $host in *pc-msdosdjgpp*)
1020 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1021 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1022 tmake_file=t-libc-ok
1026 i[34567]86-*-lynxos*)
1027 if test x$gas = xyes
1029 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx.h i386/lynx.h"
1031 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
1035 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
1036 # tmake_file=t-libc-ok
1039 i[34567]86-*-rtems*)
1040 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
1041 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1042 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1043 if test x$enable_threads = xyes; then
1047 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1048 install_headers_dir=install-headers-cpio
1049 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h"
1050 if test x$gas = xyes
1052 tm_file="usegas.h ${tm_file}"
1054 tmake_file=i386/t-sco5
1055 extra_parts="crtbegin.o crtend.o"
1057 i[34567]86-*-solaris2*)
1058 xm_defines="SMALL_ARG_MAX"
1059 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
1060 tmake_file="i386/t-sol2 t-svr4"
1061 if test x$gnu_ld = xyes; then
1062 tmake_file="$tmake_file t-slibgcc-elf-ver"
1064 tmake_file="$tmake_file t-slibgcc-sld"
1066 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1067 if test x${enable_threads} = x; then
1068 enable_threads=$have_pthread_h
1069 if test x${enable_threads} = x; then
1070 enable_threads=$have_thread_h
1073 if test x${enable_threads} = xyes; then
1074 if test x${have_pthread_h} = xyes; then
1077 thread_file='solaris'
1081 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1082 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1083 if test x$stabs = xyes
1085 tm_file="${tm_file} dbx.h"
1087 tmake_file="i386/t-crtpic t-svr4"
1088 extra_parts="crtbegin.o crtend.o"
1089 if test x$enable_threads = xyes; then
1093 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
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 i386/sysv4-cpp.h"
1096 if test x$stabs = xyes
1098 tm_file="${tm_file} dbx.h"
1100 tmake_file="i386/t-crtpic t-svr4"
1101 extra_parts="crtbegin.o crtend.o"
1103 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1104 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"
1105 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1106 extra_parts="crtbegin.o crtend.o"
1107 install_headers_dir=install-headers-cpio
1109 i[34567]86-*-sysv*) # Intel 80386's running system V
1110 if test x$gas = xyes
1112 if test x$stabs = xyes
1114 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
1115 tmake_file=i386/t-svr3dbx
1116 extra_parts="svr3.ifile svr3z.ifile"
1118 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
1119 extra_parts="crtbegin.o crtend.o"
1120 tmake_file=i386/t-crtstuff
1123 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
1124 extra_parts="crtbegin.o crtend.o"
1125 tmake_file=i386/t-crtstuff
1127 tmake_file="$tmake_file i386/t-crtpic"
1129 i386-*-vsta) # Intel 80386's running VSTa kernel
1130 xm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/xm-vsta.h"
1131 tm_file="${tm_file} i386/vsta.h"
1133 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1134 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h"
1135 xm_file=i386/xm-cygwin.h
1136 tmake_file="i386/t-cygming i386/t-cygwin"
1138 c_target_objs=cygwin2.o
1139 cxx_target_objs=cygwin2.o
1140 if test x$enable_threads = xyes; then
1145 i[34567]86-*-mingw32*)
1146 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
1147 xm_file=i386/xm-mingw32.h
1148 tmake_file="i386/t-cygming i386/t-mingw32"
1150 if test x$enable_threads = xyes; then
1156 tm_file="${tm_file} i386/crtdll.h"
1158 *mingw32msv* | *mingw32*)
1163 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h"
1164 tmake_file="i386/t-cygwin i386/t-uwin"
1166 if test x$enable_threads = xyes; then
1171 i[34567]86-*-interix3*)
1172 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"
1173 tmake_file="t-interix i386/t-interix"
1175 xmake_file="x-interix"
1176 if test x$enable_threads = xyes ; then
1179 if test x$stabs = xyes ; then
1180 tm_file="${tm_file} dbxcoff.h"
1183 i[34567]86-*-interix*)
1184 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
1185 tmake_file="t-interix i386/t-interix"
1187 if test x$enable_threads = xyes ; then
1190 if test x$stabs = xyes ; then
1191 tm_file="${tm_file} dbxcoff.h"
1195 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1196 tmake_file=i960/t-960bare
1197 c_target_objs="i960-c.o"
1198 cxx_target_objs="i960-c.o"
1201 tmake_file="i960/t-960bare t-rtems"
1202 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1203 if test x$enable_threads = xyes; then
1206 c_target_objs="i960-c.o"
1207 cxx_target_objs="i960-c.o"
1209 i960-*-*) # Default i960 environment.
1211 tmake_file=i960/t-960bare
1212 c_target_objs="i960-c.o"
1213 cxx_target_objs="i960-c.o"
1216 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1217 tmake_file="ia64/t-ia64"
1218 target_cpu_default="0"
1219 if test x$gas = xyes
1221 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1223 if test x$gnu_ld = xyes
1225 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1227 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1230 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1231 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1232 tmake_file="${tmake_file} ia64/t-ia64"
1233 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1236 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1237 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1238 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1239 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1240 if test x"$use_libunwind_exceptions" = xyes; then
1241 tmake_file="$tmake_file t-libunwind"
1245 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1246 tmake_file="ia64/t-ia64 ia64/t-hpux"
1247 target_cpu_default="MASK_GNU_AS"
1248 if test x$enable_threads = xyes; then
1252 c_target_objs="ia64-c.o"
1253 cxx_target_objs="ia64-c.o"
1258 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1259 extra_parts="crtinit.o crtfini.o"
1261 # m68hc11 and m68hc12 share the same machine description.
1262 m68hc11-*-*|m6811-*-*)
1263 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1264 tm_p_file="m68hc11/m68hc11-protos.h"
1265 md_file="m68hc11/m68hc11.md"
1266 out_file="m68hc11/m68hc11.c"
1267 tmake_file="m68hc11/t-m68hc11-gas"
1269 m68hc12-*-*|m6812-*-*)
1270 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1271 tm_p_file="m68hc11/m68hc11-protos.h"
1272 md_file="m68hc11/m68hc11.md"
1273 out_file="m68hc11/m68hc11.c"
1274 tmake_file="m68hc11/t-m68hc11-gas"
1276 m68000-hp-hpux*) # HP 9000 series 300
1277 if test x$gas = xyes
1279 tm_file=m68k/hp310g.h
1281 tm_file=m68k/hp310.h
1283 tmake_file=m68k/t-hp320
1284 install_headers_dir=install-headers-cpio
1287 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1288 if test x$gas = xyes
1290 tm_file=m68k/hp320g.h
1292 tm_file=m68k/hpux7.h
1294 install_headers_dir=install-headers-cpio
1297 m68k-hp-hpux*) # HP 9000 series 300
1298 if test x$gas = xyes
1300 tm_file=m68k/hp320g.h
1302 tm_file=m68k/hp320.h
1304 install_headers_dir=install-headers-cpio
1308 tmake_file=m68k/t-m68kbare
1309 tm_file="m68k/m68k-aout.h libgloss.h"
1312 tmake_file=m68k/t-m68kbare
1313 tm_file="m68k/m68k-coff.h dbx.h"
1315 m68020-*-elf* | m68k-*-elf*)
1316 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1317 tmake_file=m68k/t-m68kelf
1318 extra_parts="crtbegin.o crtend.o"
1320 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1321 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1324 target_cpu_default="0"
1327 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1332 tm_file=m68k/netbsd.h
1338 # needed to unconfuse gdb
1339 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1340 # we need collect2 until our bug is fixed...
1343 m68k-*-sysv4*) # Motorola m68k's running system V.4
1344 tm_file=m68k/m68kv4.h
1346 extra_parts="crtbegin.o crtend.o"
1348 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1349 # with ELF format using glibc 2
1350 # aka the GNU/Linux C library 6.
1351 tm_file=m68k/linux.h
1352 tmake_file="t-slibgcc-elf-ver t-linux"
1355 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1356 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"
1357 extra_parts="crtbegin.o crtend.o"
1358 if test x$enable_threads = xyes; then
1363 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
1364 tmake_file=mcore/t-mcore
1367 tm_file=mcore/mcore-pe.h
1368 tmake_file=mcore/t-mcore-pe
1370 mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI
1371 if test x$gas = xyes
1373 tm_file="mips/iris5.h mips/iris5gas.h mips/iris6-o32-gas.h"
1374 if test x$stabs = xyes
1376 tm_file="${tm_file} dbx.h"
1378 tmake_file=mips/t-iris5-gas
1380 tm_file="mips/iris5.h mips/iris6-o32-as.h"
1381 tmake_file=mips/t-iris5-as
1383 tm_file="${tm_file} mips/iris6-o32.h"
1384 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1385 xm_file=mips/xm-iris5.h
1386 # mips-tfile doesn't work yet
1387 # See comment in mips/iris5.h file.
1389 # if test x$enable_threads = xyes; then
1390 # thread_file='irix'
1393 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1394 if test "x$gnu_ld" = xyes
1396 tm_file="mips/iris6.h mips/iris6gld.h"
1398 tm_file=mips/iris6.h
1400 tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
1401 # if test x$enable_threads = xyes; then
1402 # thread_file='irix'
1405 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1406 tm_file="mips/iris6.h mips/cross64.h"
1407 xm_file=mips/xm-iris5.h
1408 tmake_file="mips/t-iris mips/t-cross64"
1409 # See comment in mips/iris[56].h files.
1411 # if test x$enable_threads = xyes; then
1412 # thread_file='irix'
1415 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1416 if test x$gas = xyes
1418 tm_file="mips/iris5.h mips/iris5gas.h"
1419 if test x$stabs = xyes
1421 tm_file="${tm_file} dbx.h"
1423 tmake_file=mips/t-iris5-gas
1425 tm_file=mips/iris5.h
1426 tmake_file=mips/t-iris5-as
1428 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1429 xm_file=mips/xm-iris5.h
1430 # mips-tfile doesn't work yet
1431 # See comment in mips/iris5.h file.
1433 # if test x$enable_threads = xyes; then
1434 # thread_file='irix'
1437 mips*-*-netbsd*) # NetBSD/mips, either endian.
1438 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1439 tm_file="elfos.h ${tm_file} mips/netbsd.h"
1440 tmake_file="${tmake_file}"
1443 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h"
1444 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux64"
1446 # This default ABI is a partial lie: t-linux64 overrides the
1447 # DRIVER_SELF_SPEC that sets the default abi, in the spec file
1448 # that is installed. What GCC thinks of as the default must
1449 # remain as ABI_32 such that the SONAMEs of the libgcc shared
1450 # libraries remain compatible with those of mips-linux-gnu.
1451 tm_defines="MIPS_ISA_DEFAULT=1 MIPS_ABI_DEFAULT=ABI_32"
1452 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1453 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1456 if test x$enable_threads = xyes; then
1460 mips*-*-linux*) # Linux MIPS, either endian.
1461 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
1464 target_cpu_default="MASK_SOFT_FLOAT"
1465 tm_defines="MIPS_ISA_DEFAULT=32"
1468 tmake_file="t-slibgcc-elf-ver t-linux"
1470 mips*el-*-openbsd*) # mips little endian
1471 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1473 mips*-*-openbsd*) # mips big endian
1474 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1475 tm_file="mips/openbsd-be.h ${tm_file}"
1477 mipsisa32-*-elf* | mipsisa32el-*-elf*)
1478 tm_file="${tm_file} mips/elf.h"
1479 tmake_file=mips/t-isa3264
1480 tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
1482 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
1483 tm_file="${tm_file} mips/elf.h"
1484 tmake_file=mips/t-isa3264
1485 tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
1487 mipsisa64-*-elf* | mipsisa64el-*-elf*)
1488 tm_file="${tm_file} mips/elf.h"
1489 tmake_file=mips/t-isa3264
1490 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1491 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
1493 mipsisa64sr71k-*-elf*)
1494 tm_file="${tm_file} mips/elf.h"
1495 tmake_file=mips/t-sr71k
1496 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1497 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
1499 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1500 tm_file="${tm_file} mips/elf.h"
1501 tmake_file=mips/t-elf
1502 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1503 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1505 mips-*-elf* | mipsel-*-elf*)
1506 tm_file="${tm_file} mips/elf.h"
1507 tmake_file=mips/t-elf
1509 mips64-*-elf* | mips64el-*-elf*)
1510 tm_file="${tm_file} mips/elf64.h"
1511 tmake_file=mips/t-elf
1512 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1513 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1515 mips64vr-*-elf* | mips64vrel-*-elf*)
1516 tm_file="mips/vr.h ${tm_file} mips/elf64.h"
1517 tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1"
1518 tmake_file=mips/t-vr
1520 mips64orion-*-elf* | mips64orionel-*-elf*)
1521 tm_file="${tm_file} mips/elforion.h mips/elf64.h"
1522 tmake_file=mips/t-elf
1523 tmake_file=mips/t-elf
1524 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1525 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1528 tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
1529 tmake_file="mips/t-elf t-rtems"
1530 if test x$enable_threads = xyes; then
1534 mipstx39-*-elf* | mipstx39el-*-elf*)
1535 tm_file="${tm_file} mips/r3900.h mips/elf.h"
1536 tmake_file=mips/t-r3900
1538 mmix-knuth-mmixware)
1539 need_64bit_hwint=yes
1542 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1543 if test x$stabs = xyes
1545 tm_file="${tm_file} dbx.h"
1550 echo "GCC does not yet support the ${machine} target"; exit 1
1553 tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1554 # On NetBSD, the headers are already okay, except for math.h.
1555 tmake_file="t-netbsd ns32k/t-ns32k"
1560 tm_file="${tm_file} pdp11/2bsd.h"
1567 tmake_file="${tmake_file} rs6000/t-fprules "
1571 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h"
1572 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-linux64"
1575 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"
1576 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
1579 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
1580 tmake_file="rs6000/t-fprules rs6000/t-beos"
1584 tm_file="${tm_file} rs6000/darwin.h"
1585 tmake_file="rs6000/t-fprules t-darwin rs6000/t-darwin"
1586 extra_headers=altivec.h
1587 # override ppc default
1589 # powerpc-darwin host support.
1590 host_hook_obj=host-darwin.o
1591 xmake_file=rs6000/x-darwin
1593 powerpc*-*-freebsd*)
1594 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
1595 tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1598 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1599 tmake_file="${tmake_file} rs6000/t-netbsd"
1601 powerpc-*-chorusos*)
1602 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
1603 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1604 case x${enable_threads} in
1605 xyes | xpthreads | xposix)
1611 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
1612 tmake_file="rs6000/t-spe rs6000/t-ppccomm"
1614 powerpc-*-eabisimaltivec*)
1615 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"
1616 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1619 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
1620 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1623 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1624 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1626 powerpc-*-eabialtivec*)
1627 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
1628 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1631 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
1632 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1635 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
1636 tmake_file="rs6000/t-fprules t-rtems rs6000/t-ppccomm"
1637 if test x$enable_threads = xyes; then
1641 powerpc-*-linux*altivec*)
1642 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
1643 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1645 powerpc-*-linux*spe*)
1646 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
1647 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1650 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
1651 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1653 powerpc-*-gnu-gnualtivec*)
1654 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"
1655 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1656 if test x$enable_threads = xyes; then
1661 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"
1662 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1663 if test x$enable_threads = xyes; then
1667 powerpc-wrs-vxworks*)
1668 # We want vxworks.h after rs6000/sysv4.h, which unfortunately
1669 # means we have to redo the tm_file list from scratch.
1670 tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1671 tm_file="${tm_file} vxworks.h rs6000/vxworks.h"
1672 tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
1673 extra_headers=ppc-asm.h
1675 powerpc-wrs-windiss*)
1676 tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
1677 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1681 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1682 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1685 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1686 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1688 powerpcle-*-eabisim*)
1689 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"
1690 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1693 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
1694 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1696 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
1697 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
1698 tmake_file="rs6000/t-fprules rs6000/t-newas"
1702 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1703 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
1704 tmake_file=rs6000/t-aix43
1709 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1710 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
1711 tmake_file=rs6000/t-aix43
1716 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1717 tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
1718 tmake_file=rs6000/t-aix52
1724 tm_file="lynx.h rs6000/lynx.h"
1725 tmake_file=rs6000/t-fprules
1729 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1730 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff"
1733 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1734 tm_p_file=s390/s390-protos.h
1735 md_file=s390/s390.md
1736 extra_modes=s390/s390-modes.def
1737 out_file=s390/s390.c
1738 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64"
1740 sh-*-elf* | sh[2346l]*-*-elf*)
1741 tmake_file="sh/t-sh sh/t-elf"
1744 tm_file="sh/little.h ${tm_file}"
1745 tmake_file="${tmake_file} sh/t-le"
1748 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h"
1751 tmake_file="${tmake_file} sh/t-sh64"
1752 tm_file="${tm_file} sh/sh64.h"
1753 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1755 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1756 sh4*) target_cpu_default="SELECT_SH4" ;;
1757 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1758 sh3*) target_cpu_default="SELECT_SH3" ;;
1759 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1760 sh2*) target_cpu_default="SELECT_SH2" ;;
1763 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1767 tmake_file="sh/t-sh sh/t-elf t-rtems"
1768 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/rtemself.h rtems.h"
1769 if test x$enable_threads = xyes; then
1774 tmake_file="sh/t-sh t-rtems"
1775 tm_file="${tm_file} sh/coff.h sh/rtems.h rtems.h"
1776 if test x$enable_threads = xyes; then
1780 sh-*-linux* | sh[2346lbe]*-*-linux*)
1781 tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux sh/t-linux"
1783 sh*be-*-* | sh*eb-*-*) ;;
1785 tm_file="sh/little.h ${tm_file}"
1786 tmake_file="${tmake_file} sh/t-le"
1789 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
1792 tmake_file="${tmake_file} sh/t-sh64"
1793 tm_file="${tm_file} sh/sh64.h"
1794 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1796 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1797 sh4*) target_cpu_default="SELECT_SH4" ;;
1798 sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;;
1799 sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
1800 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1801 sh3*) target_cpu_default="SELECT_SH3" ;;
1802 sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;;
1803 sh2e[lb]*) target_cpu_default="SELECT_SH2" ;;
1804 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1805 sh2*) target_cpu_default="SELECT_SH2" ;;
1808 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1811 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1812 sh64-*-netbsd* | sh64l*-*-netbsd*)
1813 tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
1814 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
1817 tm_file="sh/little.h ${tm_file}"
1818 tmake_file="${tmake_file} sh/t-le"
1821 tmake_file="${tmake_file} sh/t-be"
1826 # SHmedia, 32-bit ABI
1827 target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT"
1828 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
1831 # SHmedia, 64-bit ABI
1832 target_cpu_default="SH5_BIT|SH4_BIT"
1833 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
1836 # SH3, software floating point
1837 target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
1838 tmake_file="${tmake_file} sh/t-netbsd"
1843 tm_file="${tm_file} sh/coff.h"
1846 tm_file="${tm_file} sparc/pbd.h"
1849 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
1852 tm_file="sparc/sparc.h ${tm_file}"
1853 # needed to unconfuse gdb
1854 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
1855 # we need collect2 until our bug is fixed...
1859 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"
1864 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
1865 tmake_file="sparc/t-elf sparc/t-crtfm"
1866 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1868 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1869 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
1870 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
1873 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"
1874 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
1875 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1876 if test x$enable_threads = xyes; then
1880 sparc64-*-solaris2* | sparcv9-*-solaris2*)
1881 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"
1882 if test x$gnu_ld = xyes; then
1883 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
1885 if test x$gas = xyes; then
1886 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1888 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
1889 if test x$gnu_ld = xyes; then
1890 tmake_file="$tmake_file t-slibgcc-elf-ver"
1892 tmake_file="$tmake_file t-slibgcc-sld"
1894 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
1895 if test x${enable_threads} = x ; then
1896 enable_threads=$have_pthread_h
1897 if test x${enable_threads} = x ; then
1898 enable_threads=$have_thread_h
1901 if test x${enable_threads} = xyes ; then
1902 if test x${have_pthread_h} = xyes ; then
1905 thread_file='solaris'
1908 need_64bit_hwint=yes
1911 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
1912 if test x$gnu_ld = xyes; then
1913 tm_file="${tm_file} sparc/sol2-gld.h"
1915 tmake_file="sparc/t-sol2 sparc/t-crtfm"
1916 if test x$gnu_ld = xyes; then
1917 tmake_file="$tmake_file t-slibgcc-elf-ver"
1919 tmake_file="$tmake_file t-slibgcc-sld"
1922 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
1923 if test x$gnu_ld = xno; then
1924 tm_file="${tm_file} sparc/sol26-sld.h"
1928 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
1929 if test x$gnu_ld = xyes; then
1930 tm_file="${tm_file} sparc/sol2-gld-bi.h"
1932 if test x$gas = xyes; then
1933 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1935 tmake_file="$tmake_file sparc/t-sol2-64"
1936 need_64bit_hwint=yes
1939 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1940 if test x${enable_threads} = x; then
1941 enable_threads=$have_pthread_h
1942 if test x${enable_threads} = x; then
1943 enable_threads=$have_thread_h
1946 if test x${enable_threads} = xyes; then
1947 if test x${have_pthread_h} = xyes; then
1950 thread_file='solaris'
1955 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sysv4-only.h"
1957 extra_parts="crtbegin.o crtend.o"
1960 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
1961 tmake_file=sparc/t-sparclite
1964 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"
1965 tmake_file="sparc/t-sparclite sparc/t-crtfm"
1966 extra_parts="crtbegin.o crtend.o"
1969 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"
1970 tmake_file="sparc/t-sp86x sparc/t-crtfm"
1971 extra_parts="crtbegin.o crtend.o"
1974 tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h"
1977 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h"
1978 tmake_file="${tmake_file} sparc/t-crtfm"
1979 extra_parts="crtbegin.o crtend.o"
1981 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1982 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
1983 tmake_file="${tmake_file} sparc/t-crtfm"
1985 case "x$with_cpu" in
1987 x) with_cpu=ultrasparc ;;
1988 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
1990 need_64bit_hwint=yes
1992 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1993 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
1994 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
1997 tmake_file="${tmake_file} sparc/t-netbsd64"
1998 tm_file="sparc/biarch64.h ${tm_file}"
1999 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2002 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2003 tmake_file=arm/t-strongarm-elf
2006 extra_modes=arm/arm-modes.def
2009 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"
2010 tmake_file=arm/t-strongarm-pe
2013 extra_modes=arm/arm-modes.def
2017 target_cpu_default="TARGET_CPU_v850e"
2018 tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2019 tm_p_file=v850/v850-protos.h
2020 tmake_file=v850/t-v850
2021 md_file=v850/v850.md
2022 out_file=v850/v850.c
2023 if test x$stabs = xyes
2025 tm_file="${tm_file} dbx.h"
2028 c_target_objs="v850-c.o"
2029 cxx_target_objs="v850-c.o"
2032 target_cpu_default="TARGET_CPU_generic"
2033 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2034 tmake_file=v850/t-v850
2035 if test x$stabs = xyes
2037 tm_file="${tm_file} dbx.h"
2040 c_target_objs="v850-c.o"
2041 cxx_target_objs="v850-c.o"
2043 vax-*-bsd*) # VAXen running BSD
2044 tm_file="${tm_file} vax/bsd.h"
2047 vax-*-sysv*) # VAXen running system V
2048 tm_file="${tm_file} vax/vaxv.h"
2051 tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
2054 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
2060 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
2063 vax-*-ultrix*) # VAXen running ultrix
2064 tm_file="${tm_file} vax/ultrix.h"
2066 vax-*-vms*) # VAXen running VMS
2067 echo "Configuration $machine no longer supported" 1>&2
2070 vax-*-*) # VAX default entry
2073 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2074 tmake_file=arm/t-xscale-elf
2077 extra_modes=arm/arm-modes.def
2080 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
2081 tmake_file=arm/t-xscale-coff
2084 extra_modes=arm/arm-modes.def
2087 # For historical reasons, the target files omit the 'x'.
2088 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
2089 tm_p_file=stormy16/stormy16-protos.h
2090 md_file=stormy16/stormy16.md
2091 out_file=stormy16/stormy16.c
2092 tmake_file="stormy16/t-stormy16"
2093 extra_parts="crtbegin.o crtend.o"
2096 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
2097 tmake_file="xtensa/t-xtensa xtensa/t-elf"
2100 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
2101 tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa xtensa/t-linux"
2104 echo "*** Configuration $machine not supported" 1>&2
2111 install_headers_dir=install-headers-cpio
2115 # Distinguish i[34567]86
2116 # Also, do not run mips-tfile on MIPS if using gas.
2117 # Process --with-cpu= for PowerPC/rs6000
2118 target_cpu_default2=
2121 target_cpu_default2=TARGET_CPU_DEFAULT_i486
2124 case $target_alias in
2126 target_cpu_default2=TARGET_CPU_DEFAULT_k6_2
2129 target_cpu_default2=TARGET_CPU_DEFAULT_k6_3
2132 target_cpu_default2=TARGET_CPU_DEFAULT_k6
2134 pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2135 target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx
2138 target_cpu_default2=TARGET_CPU_DEFAULT_pentium
2142 i686-*-* | i786-*-*)
2143 case $target_alias in
2145 target_cpu_default2=TARGET_CPU_DEFAULT_k8
2147 athlon_xp-*|athlon_mp-*|athlon_4-*)
2148 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
2150 athlon_tbird-*|athlon-*)
2151 target_cpu_default2=TARGET_CPU_DEFAULT_athlon
2154 target_cpu_default2=TARGET_CPU_DEFAULT_pentium2
2157 target_cpu_default2=TARGET_CPU_DEFAULT_pentium3
2160 target_cpu_default2=TARGET_CPU_DEFAULT_pentium4
2163 target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro
2168 # We should have hammer chip here, but it does not exist yet and
2169 # thus it is not supported. Athlon_SSE is probably equivalent feature
2170 # wise to hammer from our point of view except for 64bit mode.
2171 target_cpu_default2=TARGET_CPU_DEFAULT_k8
2176 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
2179 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
2182 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2185 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2188 target_cpu_default2="MASK_CPU_EV5"
2192 if test x$gas = xyes
2194 if test "$target_cpu_default2" = ""
2196 target_cpu_default2="MASK_GAS"
2198 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2203 case "x$with_cpu" in
2206 target_cpu_default2="TARGET_CPU_generic"
2209 # Distinguish cores, and major variants
2210 # arm7m doesn't exist, but D & I don't affect code
2211 xarm[236789] | xarm250 | xarm[67][01]0 \
2212 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
2213 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2216 | xstrongarm | xstrongarm110 | xstrongarm1100)
2217 target_cpu_default2="TARGET_CPU_$with_cpu"
2221 echo "--with-cpu must be passed a value" 1>&2
2226 if test x$pass2done = xyes
2228 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2235 target_cpu_default2="TARGET_CPU_9ep9312"
2240 hppa*-*-* | parisc*-*-*)
2241 if test x$gas = xyes
2243 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
2247 tm_defines="TARGET_SCHED_DEFAULT=\\\"7100LC\\\""
2253 mips*-*-ecoff* | mips*-*-elf*)
2254 if test x$gas = xyes
2256 if test x$gnu_ld = xyes
2258 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
2260 target_cpu_default2="MASK_GAS"
2265 if test x$gas = xyes
2267 target_cpu_default2="MASK_GAS"
2273 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
2277 *mips/elf.h* | *mips/elf64.h*)
2278 tm_defines="OBJECT_FORMAT_ELF $tm_defines"
2281 if test "x$enable_gofast" = xyes
2283 tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
2284 tm_file="gofast.h $tm_file"
2285 tmake_file="mips/t-gofast $tmake_file"
2287 tmake_file="mips/t-mips $tmake_file"
2290 powerpc*-*-* | rs6000-*-*)
2291 if test x$enable_altivec = xyes
2293 tm_file="$tm_file rs6000/altivec-defs.h"
2295 case "x$with_cpu" in
2299 xcommon | xpowerpc | xpowerpc64 \
2300 | xpower | xpower2 | xpower3 | xpower4 \
2301 | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
2302 | x601 | x602 | x603 | x603e | x604 | x604e | x620 | x630 \
2303 | x740 | x750 | x7400 | x7450 | x505)
2304 target_cpu_default2="\\\"$with_cpu\\\""
2307 x401 | x403 | x405 | xec603e | x801 | x821 | x823 | x860)
2308 target_cpu_default2="\\\"$with_cpu\\\""
2312 echo "--with-cpu must be passed a value" 1>&2
2317 if test x$pass2done = xyes
2319 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2324 out_file=rs6000/rs6000.c
2325 c_target_objs="${c_target_objs} rs6000-c.o"
2326 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
2327 tmake_file="rs6000/t-rs6000 ${tmake_file}"
2330 case ".$with_cpu" in
2332 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2334 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
2335 target_cpu_default2="TARGET_CPU_$with_cpu"
2338 if test x$pass2done = xyes
2340 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2347 case "x$with_cpu" in
2351 target_cpu_default2="TARGET_CPU_$with_cpu"
2354 if test x$pass2done = xyes
2356 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2364 if test "$target_cpu_default2" != ""
2366 if test "$target_cpu_default" != ""
2368 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2370 target_cpu_default=$target_cpu_default2
2374 # Save data on machine being used to compile GCC in build_xm_file.
2375 # Save data on host machine in vars host_xm_file and host_xmake_file.
2376 if test x$pass1done = x
2378 if test x$xm_file != x
2379 then build_xm_file=$xm_file
2381 build_xm_defines=$xm_defines
2382 build_install_headers_dir=$install_headers_dir
2383 build_exeext=$exeext
2386 if test x$pass2done = x
2388 if test x$xm_file != x
2389 then host_xm_file=$xm_file
2391 host_xm_defines=$xm_defines
2392 host_xmake_file="$xmake_file"
2393 host_truncate_target=$truncate_target
2394 host_extra_gcc_objs=$extra_gcc_objs
2395 host_extra_objs=$extra_host_objs
2397 out_host_hook_obj=$host_hook_obj