1 # GCC build-, host- and target-specific configuration file.
2 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003
3 # Free Software Foundation, Inc.
5 #This file is part of GCC.
7 #GCC is free software; you can redistribute it and/or modify it under
8 #the terms of the GNU General Public License as published by the Free
9 #Software Foundation; either version 2, or (at your option) any later
12 #GCC is distributed in the hope that it will be useful, but WITHOUT
13 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 #You should have received a copy of the GNU General Public License
18 #along with GCC; see the file COPYING. If not, write to the Free
19 #Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 # This is the GCC build-, host- and target-specific configuration file
23 # where a configuration type, as recognized and generated by config.bfd,
24 # is mapped to different system-specific definitions and files. This is
25 # invoked by the autoconf-generated configure script, called for build,
26 # host and target in that order, setting ${machine} to each. Putting it
27 # in a separate shell file lets us skip running autoconf when modifying
28 # build-, host- and target-specific information.
30 # This file switches on the shell variable ${machine}, and also uses the
31 # following shell variables:
33 # with_* Various variables as set by configure.
35 # enable_threads_flag Either the name, yes or no depending on whether
36 # threads support was requested.
38 # default_use_cxa_atexit
39 # "no" by default, can be set to "yes" if a target
40 # wishes to use __cxa_atexit() by default if the
41 # $enable___cxa_atexit variable is not set.
43 # gas_flag Either yes or no depending on whether GNU as was
46 # gnu_ld_flag Either yes or no depending on whether GNU ld was
49 # This file sets the following shell variables for use by the
50 # autoconf-generated configure script:
52 # cpu_type The name of the cpu, if different from machine.
54 # tm_defines List of target macros to define for all compilations.
56 # tm_file A list of target macro files, if different from
57 # "$cpu_type/$cpu_type.h". Usually it's constructed
58 # per target in a way like this:
59 # tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
60 # Note that the preferred order is:
61 # - specific target header "${cpu_type}/${cpu_type.h}"
62 # - generic headers like dbxelf.h elfos.h, netware.h, etc.
63 # - specializing target headers like ${cpu_type.h}/elf.h
64 # This helps to keep OS specific stuff out of the CPU
65 # defining header ${cpu_type}/${cpu_type.h}.
67 # tm_p_file Location of file with declarations for functions
70 # out_file The name of the machine description C support
71 # file, if different from "$cpu_type/$cpu_type.c".
73 # md_file The name of the machine-description file, if
74 # different from "$cpu_type/$cpu_type.md".
76 # tmake_file A list of machine-description-specific
77 # makefile-fragments, if different from
78 # "$cpu_type/t-$cpu_type".
80 # extra_modes The name of the file containing a list of extra
81 # machine modes, if necessary and different from
82 # "$cpu_type/$cpu_type-modes.def".
84 # extra_objs List of extra objects that should be linked into
85 # the compiler proper (cc1, cc1obj, cc1plus)
86 # depending on target.
88 # extra_headers List of used header files from the directory
91 # host_xmake_file List of host-specific makefile-fragments.
93 # extra_passes List of extra executables compiled for this target
94 # machine, used for compiling from source to object.
96 # extra_parts List of extra object files that should be compiled
97 # for this target machine.
99 # extra_programs Like extra_passes, but these are used when linking.
101 # host_extra_objs List of extra host-dependent objects that should
102 # be linked into the compiler proper.
104 # host_extra_gcc_objs List of extra host-dependent objects that should
105 # be linked into the gcc driver.
107 # out_host_hook_obj An object file that provides the host hooks.
109 # c_target_objs List of extra target-dependent objects that be
110 # linked into the C compiler only.
112 # cxx_target_objs List of extra target-dependent objects that be
113 # linked into the C++ compiler only.
115 # target_gtfiles List of extra source files with type information.
117 # build_xm_defines List of macros to define when compiling for the
120 # build_xm_file List of files to include when compiling for the
123 # host_xm_defines List of macros to define when compiling for the
126 # host_xm_file List of files to include when compiling for the
129 # xm_defines List of macros to define when compiling for the
132 # xm_file List of files to include when compiling for the
135 # use_collect2 Set to yes or no, depending on whether collect2
138 # target_cpu_default Set to override the default target model.
140 # build_install_headers_dir
141 # Target to use when installing header files.
143 # host_truncate_target
144 # Non-empty if the target name should be truncated
145 # on this host, due to filename length issues.
147 # gdb_needs_out_file_path
148 # Set to yes if gdb needs a dir command with
149 # `dirname $out_file`.
151 # build_exeext Set to the suffix, if the build machine requires
152 # executables to have a file name suffix.
154 # host_exeext Set to the suffix, if the host machine requires
155 # executables to have a file name suffix.
157 # thread_file Set to control which thread package to use.
159 # gas Set to yes or no depending on whether the target
160 # system normally uses GNU as.
162 # need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide
163 # for this target. This is true iff
164 # MAX_LONG_TYPE_SIZE is 64. (The code which
165 # determines the underlying integral type for
166 # HOST_WIDE_INT cannot see the definition of
167 # MAX_LONG_TYPE_SIZE.)
169 # configure_default_options
170 # Set to an initializer for configure_default_options
171 # in configargs.h, based on --with-cpu et cetera.
173 # The following variables are used in each case-construct to build up the
174 # outgoing variables:
176 # xmake_file Makefile-fragment when this system is as a host,
177 # for host_xmake_file.
179 # extra_host_objs List of extra objects that should be linked into
180 # the compiler proper when this system is a host,
181 # for host_extra_objs.
183 # host_hook_obj An object file that provides the host hooks.
185 # install_headers_dir Makefile-target for how the header file directory
186 # is installed, when this system is a build system,
187 # for build_install_headers_dir.
189 # truncate_target Non-empty if the target name should be truncated
190 # when this system is a host, due to filename length
191 # issues. For host_truncate_target.
193 # exeext The suffix for executables on this system.
195 # gnu_ld Set to yes or no depending on whether the target
196 # system normally uses GNU ld.
210 host_hook_obj=host-default.o
213 # Set this to force installation and use of collect2.
215 # Set this to override the default target model.
217 # Set this to control how the header file directory is installed.
218 install_headers_dir=install-headers-tar
219 # Set this if directory names should be truncated to 14 characters.
221 # Set this if gdb needs a dir command with `dirname $out_file`
222 gdb_needs_out_file_path=
223 # Set this if the build machine requires executables to have a
226 # Set this to control which thread package will be used.
228 # Reinitialize these from the flag values every loop pass, since some
229 # configure entries modify them.
231 gnu_ld="$gnu_ld_flag"
232 enable_threads=$enable_threads_flag
233 default_use_cxa_atexit=no
237 # Don't carry these over build->host->target. Please.
241 # Obsolete configurations.
244 if test "x$enable_obsolete" != xyes; then
245 echo "*** Configuration $machine is obsolete." >&2
246 echo "*** Specify --enable-obsolete to build it anyway." >&2
247 echo "*** Support will be REMOVED in the next major release of GCC," >&2
248 echo "*** unless a maintainer comes forward." >&2
253 # Unsupported targets list. Do not put an entry in this list unless
254 # it would otherwise be caught by a more permissive pattern. The list
255 # should be in alphabetical order.
257 alpha*-*-linux*libc1* \
258 | i[34567]86-sequent-sysv* \
259 | i[34567]86-go32-* \
260 | i[34567]86-*-go32* \
261 | m68k-*-linux*aout* \
262 | m68k-*-linux*libc1* \
263 | mips64orion*-*-rtems* \
264 | powerpc-*-linux*libc1* \
265 | sparc-*-linux*aout* \
266 | sparc-*-linux*libc1* \
267 | sparc-hal-solaris2* \
274 echo "*** Configuration $machine not supported" 1>&2
279 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
280 # updated in each machine entry. Also set default extra_headers for some
283 cpu_type=`echo $machine | sed 's/-.*$//'`
303 extra_headers="mmintrin.h xmmintrin.h emmintrin.h"
307 extra_headers="mmintrin.h xmmintrin.h emmintrin.h"
311 extra_headers=ia64intrin.h
314 hppa*-*-* | parisc*-*-*)
319 extra_headers=math-68881.h
322 extra_headers=math-68881.h
330 extra_headers="ppc-asm.h altivec.h spe.h"
346 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
356 tm_file=${cpu_type}/${cpu_type}.h
357 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
359 tm_p_file=${cpu_type}/${cpu_type}-protos.h
362 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
364 extra_modes=${cpu_type}/${cpu_type}-modes.def
369 tm_file="i386/biarch64.h ${tm_file}"
373 # On a.out targets, we need to use collect2.
380 # Common parts for widely ported systems.
384 *-*-linux*libc1* | *-*-linux*aout*)
387 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
389 case x${enable_threads} in
390 x | xyes | xposix) thread_file='posix'
397 # On the Hurd, the setup is just about the same on
398 # each different CPU. The specific machines that we
399 # support are matched above and just set $cpu_type.
400 tm_file="${cpu_type}/gnu.h"
401 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
402 # GNU always uses ELF.
404 # GNU tools are the only tools.
407 # These details are the same as for Linux.
408 # But here we need a little extra magic.
409 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
412 tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
415 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}"
420 tm_file=${cpu_type}/openbsd.h
421 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
422 if test x$enable_threads = xyes; then
424 tmake_file="${tmake_file} t-openbsd-thread"
428 tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd"
432 # NetBSD 2.0 and later get POSIX threads enabled by default.
433 # Allow them to be explicitly enabled on any other version.
434 case x${enable_threads} in
437 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
439 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
445 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
449 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
450 # ELF configurations. We will clear extra_parts in the
451 # a.out configurations.
453 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
454 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
458 # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
459 # default (unless overridden by --disable-__cxa_atexit).
461 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
462 default_use_cxa_atexit=yes
466 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
467 # This is the place-holder for the generic a.out configuration
468 # of FreeBSD. No actual configuration resides here since
469 # there was only ever a bare-bones ix86 configuration for
470 # a.out and it exists solely in the machine-specific section.
471 # This place-holder must exist to avoid dropping into
472 # the generic ELF configuration of FreeBSD (i.e. it must be
473 # ordered before that section).
476 # This is the generic ELF configuration of FreeBSD. Later
477 # machine-specific sections may refine and add to this
480 # Due to tm_file entry ordering issues that vary between cpu
481 # architectures, we only define fbsd_tm_file to allow the
482 # machine-specific section to dictate the final order of all
483 # entries of tm_file with the minor exception that components
484 # of the tm_file set here will always be of the form:
486 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
488 # The machine-specific section should not tamper with this
489 # ordering but may order all other entries of tm_file as it
490 # pleases around the provided core setting.
493 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
495 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
496 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
497 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
498 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
499 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
501 tmake_file="t-slibgcc-elf-ver t-freebsd"
503 case x${enable_threads} in
504 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
505 x | xyes | xpthreads | xposix)
507 tmake_file="${tmake_file} t-freebsd-thread"
508 # Before 5.0, FreeBSD can't bind shared libraries to -lc
509 # when "optionally" threaded via weak pthread_* checks.
511 *-*-freebsd[34] | *-*-freebsd[34].*)
512 tmake_file="${tmake_file} t-slibgcc-nolc-override";;
515 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
517 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
520 tm_file="${tm_file} darwin.h"
521 tm_p_file="${tm_p_file} darwin-protos.h"
522 tmake_file="t-darwin"
523 target_gtfiles="\$(srcdir)/config/darwin.c"
524 c_target_objs="darwin-c.o"
525 cxx_target_objs="darwin-c.o"
527 extra_objs="darwin.o"
531 tm_file="${tm_file} elfos.h svr4.h vxworks.h"
532 thread_file='vxworks'
538 # Support site-specific machine types.
540 rest=`echo $machine | sed -e "s/$cpu_type-//"`
541 tm_file=${cpu_type}/$rest.h
542 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
543 then xm_file=${cpu_type}/xm-$rest.h
545 if test -f $srcdir/config/${cpu_type}/x-$rest
546 then xmake_file=${cpu_type}/x-$rest
548 if test -f $srcdir/config/${cpu_type}/t-$rest
549 then tmake_file=${cpu_type}/t-$rest
554 tm_file="${tm_file} alpha/unicosmk.h"
556 # Don't include t-ieee for now because we don't support that yet
557 # tmake_file="alpha/t-ieee"
558 tmake_file="alpha/t-unicosmk"
561 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
562 target_cpu_default="MASK_GAS"
563 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
566 target_cpu_default="MASK_GAS"
567 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
570 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
571 target_cpu_default="MASK_GAS"
572 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
573 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
576 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
577 target_cpu_default="MASK_GAS"
578 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
582 tm_file="${cpu_type}/${cpu_type}.h ${tm_file}"
583 # default x-alpha is only appropriate for dec-osf.
584 target_cpu_default="MASK_GAS"
585 tmake_file="alpha/t-alpha alpha/t-ieee"
589 if test x$stabs = xyes
591 tm_file="${tm_file} dbx.h"
593 if test x$gas != xyes
595 extra_passes="mips-tfile mips-tdump"
598 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
599 tm_file="${tm_file} alpha/osf.h"
600 extra_headers=va_list.h
603 # Some versions of OSF4 (specifically X4.0-9 296.7) have
604 # a broken tar, so we use cpio instead.
605 install_headers_dir=install-headers-cpio
606 # Set target_cpu_default except on 4.0a.
609 *) target_cpu_default=MASK_SUPPORT_ARCH
613 tm_file="${tm_file} alpha/osf5.h"
614 target_cpu_default=MASK_SUPPORT_ARCH
619 tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
620 xm_file="alpha/xm-vms.h"
621 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
622 xmake_file=alpha/x-vms
624 # This removes the cpu type and manufacturer components and
625 # replaces "." with "_" in the operating system version.
626 case $host in *-*-*vms*)
627 target_alias=`echo $host \
628 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
631 install_headers_dir=install-headers-cp
636 tm_file="${tm_file} alpha/vms.h"
637 xm_file=alpha/xm-vms.h
638 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
639 xmake_file=alpha/x-vms
641 # This removes the cpu type and manufacturer components and
642 # replaces "." with "_" in the operating system version.
643 case $host in *-*-*vms*)
644 target_alias=`echo $host \
645 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
648 install_headers_dir=install-headers-cp
653 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
654 extra_parts="crtinit.o crtfini.o"
656 arm-*-coff* | armel-*-coff*)
657 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h"
658 tmake_file=arm/t-arm-coff
660 arm-semi-aof | armel-semi-aof)
661 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
662 tmake_file=arm/t-semi
664 arm*-*-freebsd*|strongarm*-*-freebsd*)
665 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
666 tmake_file="${tmake_file} arm/t-strongarm-elf"
669 tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
670 tmake_file="${tmake_file} arm/t-netbsd"
673 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
674 tmake_file="t-netbsd arm/t-netbsd"
678 arm*-*-linux*) # ARM GNU/Linux with ELF
679 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"
680 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
681 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
683 case x${enable_threads} in
684 x | xyes | xpthreads | xposix)
689 arm*-*-uclinux*) # ARM ucLinux
690 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"
691 tmake_file=arm/t-arm-elf
694 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
695 tmake_file=arm/t-arm-elf
698 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"
699 tmake_file="arm/t-arm-elf t-rtems"
700 if test x$enable_threads = xyes; then
704 arm*-*-elf | ep9312-*-elf)
705 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
706 tmake_file=arm/t-arm-elf
709 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h"
715 c4x-*-rtems* | tic4x-*-rtems*)
716 tmake_file="c4x/t-c4x t-rtems"
717 tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
718 if test x$enable_threads = xyes; then
721 c_target_objs="c4x-c.o"
722 cxx_target_objs="c4x-c.o"
726 c_target_objs="c4x-c.o"
727 cxx_target_objs="c4x-c.o"
730 tm_file="dbxelf.h ${tm_file} cris/aout.h"
732 tmake_file="cris/t-cris cris/t-aout"
734 cris-*-elf | cris-*-none)
735 tm_file="dbxelf.h elfos.h ${tm_file}"
736 tmake_file="cris/t-cris cris/t-elfmulti"
740 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
741 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
744 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
749 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
750 tmake_file=fr30/t-fr30
751 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
754 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h"
758 tmake_file="h8300/t-h8300 t-rtems"
759 tm_file="h8300/h8300.h h8300/rtems.h rtems.h"
760 if test x$enable_threads = xyes; then
765 tmake_file="h8300/t-h8300 h8300/t-elf"
766 tm_file="h8300/h8300.h h8300/elf.h"
770 hppa*64*-*-linux* | parisc*64*-*-linux*)
771 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
772 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
773 pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
774 tmake_file=pa/t-linux64
778 hppa*-*-linux* | parisc*-*-linux*)
779 target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS"
780 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
781 pa/pa32-regs.h pa/pa32-linux.h"
782 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
785 target_cpu_default="MASK_PA_11"
789 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
790 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
791 tmake_file="pa/t-bsd pa/t-pro"
792 xmake_file="pa/x-ada"
795 target_cpu_default="MASK_PA_11"
796 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
797 tmake_file="pa/t-bsd pa/t-pa"
798 xmake_file="pa/x-ada"
802 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
803 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"
804 tmake_file="pa/t-bsd pa/t-pro t-rtems"
805 xmake_file="pa/x-ada"
806 if test x$enable_threads = xyes; then
811 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
812 target_cpu_default="MASK_PA_11"
813 tmake_file="pa/t-bsd pa/t-pa"
814 xmake_file="pa/x-ada"
817 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
818 target_cpu_default="MASK_PA_11"
819 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
820 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
821 xmake_file="pa/x-ada"
822 if test x$enable_threads = x; then
823 enable_threads=$have_pthread_h
825 case x${enable_threads} in
827 tmake_file="${tmake_file} pa/t-dce-thr"
830 install_headers_dir=install-headers-cpio
834 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
835 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
836 xmake_file="pa/x-ada"
837 if test x$enable_threads = x; then
838 enable_threads=$have_pthread_h
840 case x${enable_threads} in
842 tmake_file="${tmake_file} pa/t-dce-thr"
845 install_headers_dir=install-headers-cpio
851 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
852 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
853 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
855 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \
856 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
857 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
860 tmake_file="pa/t-pa64 pa/t-pa-hpux"
861 xmake_file="pa/x-ada"
862 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
863 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
864 if test x$gnu_ld = xyes
866 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
868 # if [ x$enable_threads = x ]; then
869 # enable_threads=$have_pthread_h
871 # if [ x$enable_threads = xyes ]; then
873 # tmake_file="${tmake_file} pa/t-dce-thr"
875 install_headers_dir=install-headers-cpio
877 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
878 target_cpu_default="MASK_PA_11"
879 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
880 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
881 xmake_file="pa/x-ada"
882 # if test x$enable_threads = x; then
883 # enable_threads=$have_pthread_h
885 # if test x$enable_threads = xyes; then
887 # tmake_file="${tmake_file} pa/t-dce-thr"
889 install_headers_dir=install-headers-cpio
893 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
894 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
895 xmake_file="pa/x-ada"
896 # if test x$enable_threads = x; then
897 # enable_threads=$have_pthread_h
899 # if test x$enable_threads = xyes; then
901 # tmake_file="${tmake_file} pa/t-dce-thr"
903 install_headers_dir=install-headers-cpio
906 i370-*-opened*) # IBM 360/370/390 Architecture
907 xm_defines='FATAL_EXIT_CODE=12'
909 tmake_file="i370/t-oe i370/t-i370"
910 c_target_objs="i370-c.o"
911 cxx_target_objs="i370-c.o"
914 xm_defines='FATAL_EXIT_CODE=12'
916 tmake_file="i370/t-i370"
917 c_target_objs="i370-c.o"
918 cxx_target_objs="i370-c.o"
921 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}"
922 tmake_file="t-slibgcc-elf-ver t-linux"
926 i[34567]86-*-darwin*)
927 tm_file="${tm_file} i386/darwin.h"
930 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
931 tmake_file="i386/t-i386elf t-svr4"
933 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
934 xm_defines="SMALL_ARG_MAX"
935 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
936 extra_parts="crtbegin.o crtend.o"
937 tmake_file=i386/t-crtpic
939 i[34567]86-*-netware) # Intel 80386's running netware
940 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
941 tmake_file=i386/t-netware
943 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
946 tm_file="${tm_file} usegas.h"
948 xm_defines="SMALL_ARG_MAX"
949 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
951 extra_parts="crtbegin.o crtend.o"
952 install_headers_dir=install-headers-cpio
955 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
957 i[34567]86-*-beoself* | i[34567]86-*-beos*)
958 tmake_file='i386/t-beos i386/t-crtpic'
959 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
960 extra_parts='crtbegin.o crtend.o'
962 i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*)
963 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
966 i[34567]86-*-freebsd*)
967 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
970 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"
972 i[34567]86-*-netbsdelf*)
973 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
975 i[34567]86-*-netbsd*)
976 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
982 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"
984 i[34567]86-*-openbsd*)
985 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}"
986 # needed to unconfuse gdb
987 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
988 # we need collect2 until our bug is fixed...
992 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
994 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
996 tmake_file="t-linux-aout i386/t-crtstuff"
997 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
1000 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1001 # with ELF format using the
1002 # GNU/Linux C library 5
1003 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1004 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1005 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1007 if test x$enable_threads = xyes; then
1008 thread_file='single'
1011 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1012 # with ELF format using glibc 2
1013 # aka GNU/Linux C library 6
1014 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1015 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1018 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1019 i386/x86-64.h i386/linux64.h"
1020 tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64"
1024 i[34567]86-pc-msdosdjgpp*)
1025 xm_file=i386/xm-djgpp.h
1026 tm_file="dbxcoff.h ${tm_file} i386/djgpp.h"
1027 tmake_file=i386/t-djgpp
1031 case $host in *pc-msdosdjgpp*)
1036 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1037 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1038 tmake_file=t-libc-ok
1042 i[34567]86-*-lynxos*)
1043 if test x$gas = xyes
1045 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx.h i386/lynx.h"
1047 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
1051 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
1052 # tmake_file=t-libc-ok
1055 i[34567]86-*-rtems*)
1056 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
1057 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1058 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1059 if test x$enable_threads = xyes; then
1063 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1064 install_headers_dir=install-headers-cpio
1065 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h"
1066 if test x$gas = xyes
1068 tm_file="usegas.h ${tm_file}"
1070 tmake_file=i386/t-sco5
1071 extra_parts="crtbegin.o crtend.o"
1073 i[34567]86-*-solaris2*)
1074 xm_defines="SMALL_ARG_MAX"
1075 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
1076 tmake_file="i386/t-sol2 t-svr4"
1077 if test x$gnu_ld = xyes; then
1078 tmake_file="$tmake_file t-slibgcc-elf-ver"
1080 tmake_file="$tmake_file t-slibgcc-sld"
1082 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1083 if test x${enable_threads} = x; then
1084 enable_threads=$have_pthread_h
1085 if test x${enable_threads} = x; then
1086 enable_threads=$have_thread_h
1089 if test x${enable_threads} = xyes; then
1090 if test x${have_pthread_h} = xyes; then
1093 thread_file='solaris'
1097 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1098 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1099 if test x$stabs = xyes
1101 tm_file="${tm_file} dbx.h"
1103 tmake_file="i386/t-crtpic t-svr4"
1104 extra_parts="crtbegin.o crtend.o"
1105 if test x$enable_threads = xyes; then
1109 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1110 xm_defines="SMALL_ARG_MAX"
1111 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
1112 if test x$stabs = xyes
1114 tm_file="${tm_file} dbx.h"
1116 tmake_file="i386/t-crtpic t-svr4"
1117 extra_parts="crtbegin.o crtend.o"
1119 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1120 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"
1121 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1122 extra_parts="crtbegin.o crtend.o"
1123 install_headers_dir=install-headers-cpio
1125 i[34567]86-*-sysv*) # Intel 80386's running system V
1126 if test x$gas = xyes
1128 if test x$stabs = xyes
1130 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
1131 tmake_file=i386/t-svr3dbx
1132 extra_parts="svr3.ifile svr3z.ifile"
1134 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
1135 extra_parts="crtbegin.o crtend.o"
1136 tmake_file=i386/t-crtstuff
1139 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
1140 extra_parts="crtbegin.o crtend.o"
1141 tmake_file=i386/t-crtstuff
1143 tmake_file="$tmake_file i386/t-crtpic"
1145 i386-*-vsta) # Intel 80386's running VSTa kernel
1146 xm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/xm-vsta.h"
1147 tm_file="${tm_file} i386/vsta.h"
1149 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1150 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h"
1151 xm_file=i386/xm-cygwin.h
1152 tmake_file="i386/t-cygming i386/t-cygwin"
1154 c_target_objs=cygwin2.o
1155 cxx_target_objs=cygwin2.o
1156 if test x$enable_threads = xyes; then
1161 i[34567]86-*-mingw32*)
1162 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
1163 xm_file=i386/xm-mingw32.h
1164 tmake_file="i386/t-cygming i386/t-mingw32"
1165 xmake_file=i386/x-mingw32
1167 if test x$enable_threads = xyes; then
1173 tm_file="${tm_file} i386/crtdll.h"
1175 *mingw32msv* | *mingw32*)
1180 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h"
1181 tmake_file="i386/t-cygwin i386/t-uwin"
1183 if test x$enable_threads = xyes; then
1188 i[34567]86-*-interix3*)
1189 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"
1190 tmake_file="t-interix i386/t-interix"
1192 xmake_file="x-interix"
1193 if test x$enable_threads = xyes ; then
1196 if test x$stabs = xyes ; then
1197 tm_file="${tm_file} dbxcoff.h"
1200 i[34567]86-*-interix*)
1201 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
1202 tmake_file="t-interix i386/t-interix"
1204 if test x$enable_threads = xyes ; then
1207 if test x$stabs = xyes ; then
1208 tm_file="${tm_file} dbxcoff.h"
1212 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1213 tmake_file=i960/t-960bare
1214 c_target_objs="i960-c.o"
1215 cxx_target_objs="i960-c.o"
1218 tmake_file="i960/t-960bare t-rtems"
1219 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1220 if test x$enable_threads = xyes; then
1223 c_target_objs="i960-c.o"
1224 cxx_target_objs="i960-c.o"
1226 i960-*-*) # Default i960 environment.
1228 tmake_file=i960/t-960bare
1229 c_target_objs="i960-c.o"
1230 cxx_target_objs="i960-c.o"
1233 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1234 tmake_file="ia64/t-ia64"
1235 target_cpu_default="0"
1236 if test x$gas = xyes
1238 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1240 if test x$gnu_ld = xyes
1242 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1244 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1247 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1248 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1249 tmake_file="${tmake_file} ia64/t-ia64"
1250 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1253 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1254 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1255 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1256 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1257 if test x"$use_libunwind_exceptions" = xyes; then
1258 tmake_file="$tmake_file t-libunwind"
1262 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1263 tmake_file="ia64/t-ia64 ia64/t-hpux"
1264 target_cpu_default="MASK_GNU_AS"
1265 if test x$enable_threads = xyes; then
1269 c_target_objs="ia64-c.o"
1270 cxx_target_objs="ia64-c.o"
1275 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1276 extra_parts="crtinit.o crtfini.o"
1278 # m68hc11 and m68hc12 share the same machine description.
1279 m68hc11-*-*|m6811-*-*)
1280 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1281 tm_p_file="m68hc11/m68hc11-protos.h"
1282 md_file="m68hc11/m68hc11.md"
1283 out_file="m68hc11/m68hc11.c"
1284 tmake_file="m68hc11/t-m68hc11-gas"
1286 m68hc12-*-*|m6812-*-*)
1287 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1288 tm_p_file="m68hc11/m68hc11-protos.h"
1289 md_file="m68hc11/m68hc11.md"
1290 out_file="m68hc11/m68hc11.c"
1291 tmake_file="m68hc11/t-m68hc11-gas"
1293 m68000-hp-hpux*) # HP 9000 series 300
1294 if test x$gas = xyes
1296 tm_file=m68k/hp310g.h
1298 tm_file=m68k/hp310.h
1300 tmake_file=m68k/t-hp320
1301 install_headers_dir=install-headers-cpio
1304 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1305 if test x$gas = xyes
1307 tm_file=m68k/hp320g.h
1309 tm_file=m68k/hpux7.h
1311 install_headers_dir=install-headers-cpio
1314 m68k-hp-hpux*) # HP 9000 series 300
1315 if test x$gas = xyes
1317 tm_file=m68k/hp320g.h
1319 tm_file=m68k/hp320.h
1321 install_headers_dir=install-headers-cpio
1325 tmake_file=m68k/t-m68kbare
1326 tm_file="m68k/m68k-aout.h libgloss.h"
1329 tmake_file=m68k/t-m68kbare
1330 tm_file="m68k/m68k-coff.h dbx.h"
1332 m68020-*-elf* | m68k-*-elf*)
1333 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1334 tmake_file=m68k/t-m68kelf
1335 extra_parts="crtbegin.o crtend.o"
1337 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1338 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1341 target_cpu_default="0"
1344 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1349 tm_file=m68k/netbsd.h
1355 # needed to unconfuse gdb
1356 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1357 # we need collect2 until our bug is fixed...
1360 m68k-*-sysv4*) # Motorola m68k's running system V.4
1361 tm_file=m68k/m68kv4.h
1363 extra_parts="crtbegin.o crtend.o"
1365 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1366 # with ELF format using glibc 2
1367 # aka the GNU/Linux C library 6.
1368 tm_file=m68k/linux.h
1369 tmake_file="t-slibgcc-elf-ver t-linux"
1372 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1373 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"
1374 extra_parts="crtbegin.o crtend.o"
1375 if test x$enable_threads = xyes; then
1380 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
1381 tmake_file=mcore/t-mcore
1384 tm_file=mcore/mcore-pe.h
1385 tmake_file=mcore/t-mcore-pe
1387 mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI
1388 if test x$gas = xyes
1390 tm_file="mips/iris5.h mips/iris5gas.h mips/iris6-o32-gas.h"
1391 if test x$stabs = xyes
1393 tm_file="${tm_file} dbx.h"
1395 tmake_file=mips/t-iris5-gas
1397 tm_file="mips/iris5.h mips/iris6-o32-as.h"
1398 tmake_file=mips/t-iris5-as
1400 tm_file="${tm_file} mips/iris6-o32.h"
1401 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1402 xm_file=mips/xm-iris5.h
1403 # mips-tfile doesn't work yet
1404 # See comment in mips/iris5.h file.
1406 # if test x$enable_threads = xyes; then
1407 # thread_file='irix'
1410 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1411 if test "x$gnu_ld" = xyes
1413 tm_file="mips/iris6.h mips/iris6gld.h"
1415 tm_file=mips/iris6.h
1417 tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
1418 # if test x$enable_threads = xyes; then
1419 # thread_file='irix'
1422 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1423 tm_file="mips/iris6.h mips/cross64.h"
1424 xm_file=mips/xm-iris5.h
1425 tmake_file="mips/t-iris mips/t-cross64"
1426 # See comment in mips/iris[56].h files.
1428 # if test x$enable_threads = xyes; then
1429 # thread_file='irix'
1432 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1433 if test x$gas = xyes
1435 tm_file="mips/iris5.h mips/iris5gas.h"
1436 if test x$stabs = xyes
1438 tm_file="${tm_file} dbx.h"
1440 tmake_file=mips/t-iris5-gas
1442 tm_file=mips/iris5.h
1443 tmake_file=mips/t-iris5-as
1445 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1446 xm_file=mips/xm-iris5.h
1447 # mips-tfile doesn't work yet
1448 # See comment in mips/iris5.h file.
1450 # if test x$enable_threads = xyes; then
1451 # thread_file='irix'
1454 mips*-*-netbsd*) # NetBSD/mips, either endian.
1455 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1456 tm_file="elfos.h ${tm_file} mips/netbsd.h"
1457 tmake_file="${tmake_file}"
1460 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h"
1461 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux64"
1463 # This default ABI is a partial lie: t-linux64 overrides the
1464 # DRIVER_SELF_SPEC that sets the default abi, in the spec file
1465 # that is installed. What GCC thinks of as the default must
1466 # remain as ABI_32 such that the SONAMEs of the libgcc shared
1467 # libraries remain compatible with those of mips-linux-gnu.
1468 tm_defines="MIPS_ISA_DEFAULT=1 MIPS_ABI_DEFAULT=ABI_32"
1469 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1470 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1473 if test x$enable_threads = xyes; then
1477 mips*-*-linux*) # Linux MIPS, either endian.
1478 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
1481 target_cpu_default="MASK_SOFT_FLOAT"
1482 tm_defines="MIPS_ISA_DEFAULT=32"
1485 tmake_file="t-slibgcc-elf-ver t-linux"
1487 mips*el-*-openbsd*) # mips little endian
1488 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1490 mips*-*-openbsd*) # mips big endian
1491 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1492 tm_file="mips/openbsd-be.h ${tm_file}"
1494 mipsisa32-*-elf* | mipsisa32el-*-elf*)
1495 tm_file="${tm_file} mips/elf.h"
1496 tmake_file=mips/t-isa3264
1497 tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
1499 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
1500 tm_file="${tm_file} mips/elf.h"
1501 tmake_file=mips/t-isa3264
1502 tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
1504 mipsisa64-*-elf* | mipsisa64el-*-elf*)
1505 tm_file="${tm_file} mips/elf.h"
1506 tmake_file=mips/t-isa3264
1507 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1508 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
1510 mipsisa64sr71k-*-elf*)
1511 tm_file="${tm_file} mips/elf.h"
1512 tmake_file=mips/t-sr71k
1513 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1514 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
1516 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1517 tm_file="${tm_file} mips/elf.h"
1518 tmake_file=mips/t-elf
1519 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1520 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1522 mips-*-elf* | mipsel-*-elf*)
1523 tm_file="${tm_file} mips/elf.h"
1524 tmake_file=mips/t-elf
1526 mips64-*-elf* | mips64el-*-elf*)
1527 tm_file="${tm_file} mips/elf64.h"
1528 tmake_file=mips/t-elf
1529 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1530 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1532 mips64vr-*-elf* | mips64vrel-*-elf*)
1533 tm_file="mips/vr.h ${tm_file} mips/elf64.h"
1534 tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1"
1535 tmake_file=mips/t-vr
1537 mips64orion-*-elf* | mips64orionel-*-elf*)
1538 tm_file="${tm_file} mips/elforion.h mips/elf64.h"
1539 tmake_file=mips/t-elf
1540 tmake_file=mips/t-elf
1541 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1542 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1545 tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
1546 tmake_file="mips/t-elf t-rtems"
1547 if test x$enable_threads = xyes; then
1551 mipstx39-*-elf* | mipstx39el-*-elf*)
1552 tm_file="${tm_file} mips/r3900.h mips/elf.h"
1553 tmake_file=mips/t-r3900
1555 mmix-knuth-mmixware)
1556 need_64bit_hwint=yes
1559 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1560 if test x$stabs = xyes
1562 tm_file="${tm_file} dbx.h"
1567 echo "GCC does not yet support the ${machine} target"; exit 1
1570 tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1571 # On NetBSD, the headers are already okay, except for math.h.
1572 tmake_file="t-netbsd ns32k/t-ns32k"
1577 tm_file="${tm_file} pdp11/2bsd.h"
1584 tmake_file="${tmake_file} rs6000/t-fprules "
1588 tm_file="rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1590 x|xpowerpc64|xdefault64) tm_file="${tm_file} rs6000/default64.h";;
1592 tm_file="${tm_file} rs6000/linux64.h"
1593 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-ppccomm rs6000/t-linux64"
1596 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"
1597 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
1600 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
1601 tmake_file="rs6000/t-fprules rs6000/t-beos"
1605 tm_file="${tm_file} rs6000/darwin.h"
1606 tmake_file="rs6000/t-fprules t-darwin rs6000/t-darwin"
1607 extra_headers=altivec.h
1608 # override ppc default
1610 # powerpc-darwin host support.
1611 host_hook_obj=host-darwin.o
1612 xmake_file=rs6000/x-darwin
1614 powerpc*-*-freebsd*)
1615 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
1616 tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1619 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1620 tmake_file="${tmake_file} rs6000/t-netbsd"
1622 powerpc-*-chorusos*)
1623 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
1624 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1625 case x${enable_threads} in
1626 xyes | xpthreads | xposix)
1632 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
1633 tmake_file="rs6000/t-spe rs6000/t-ppccomm"
1635 powerpc-*-eabisimaltivec*)
1636 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"
1637 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1640 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
1641 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1644 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1645 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1647 powerpc-*-eabialtivec*)
1648 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
1649 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1652 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
1653 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1656 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
1657 tmake_file="rs6000/t-fprules t-rtems rs6000/t-ppccomm"
1658 if test x$enable_threads = xyes; then
1662 powerpc-*-linux*altivec*)
1663 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
1664 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1666 powerpc-*-linux*spe*)
1667 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
1668 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1671 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
1672 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1674 powerpc-*-gnu-gnualtivec*)
1675 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"
1676 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1677 if test x$enable_threads = xyes; then
1682 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"
1683 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1684 if test x$enable_threads = xyes; then
1688 powerpc-wrs-vxworks*)
1689 # We want vxworks.h after rs6000/sysv4.h, which unfortunately
1690 # means we have to redo the tm_file list from scratch.
1691 tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1692 tm_file="${tm_file} vxworks.h rs6000/vxworks.h"
1693 tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
1694 extra_headers=ppc-asm.h
1696 powerpc-wrs-windiss*)
1697 tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
1698 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1702 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1703 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1706 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1707 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1709 powerpcle-*-eabisim*)
1710 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"
1711 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1714 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
1715 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1717 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
1718 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
1719 tmake_file="rs6000/t-fprules rs6000/t-newas"
1723 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1724 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
1725 tmake_file=rs6000/t-aix43
1730 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1731 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
1732 tmake_file=rs6000/t-aix43
1737 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1738 tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
1739 tmake_file=rs6000/t-aix52
1745 tm_file="lynx.h rs6000/lynx.h"
1746 tmake_file=rs6000/t-fprules
1750 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1751 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff"
1754 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1755 tm_p_file=s390/s390-protos.h
1756 md_file=s390/s390.md
1757 extra_modes=s390/s390-modes.def
1758 out_file=s390/s390.c
1759 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64"
1761 sh-*-elf* | sh[2346l]*-*-elf*)
1762 tmake_file="sh/t-sh sh/t-elf"
1765 tm_file="sh/little.h ${tm_file}"
1766 tmake_file="${tmake_file} sh/t-le"
1769 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h"
1772 tmake_file="${tmake_file} sh/t-sh64"
1773 tm_file="${tm_file} sh/sh64.h"
1774 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1776 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1777 sh4*) target_cpu_default="SELECT_SH4" ;;
1778 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1779 sh3*) target_cpu_default="SELECT_SH3" ;;
1780 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1781 sh2*) target_cpu_default="SELECT_SH2" ;;
1784 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1788 tmake_file="sh/t-sh sh/t-elf t-rtems"
1789 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/rtemself.h rtems.h"
1790 if test x$enable_threads = xyes; then
1795 tmake_file="sh/t-sh t-rtems"
1796 tm_file="${tm_file} sh/coff.h sh/rtems.h rtems.h"
1797 if test x$enable_threads = xyes; then
1801 sh-*-linux* | sh[2346lbe]*-*-linux*)
1802 tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux sh/t-linux"
1804 sh*be-*-* | sh*eb-*-*) ;;
1806 tm_file="sh/little.h ${tm_file}"
1807 tmake_file="${tmake_file} sh/t-le"
1810 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
1813 tmake_file="${tmake_file} sh/t-sh64"
1814 tm_file="${tm_file} sh/sh64.h"
1815 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1817 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1818 sh4*) target_cpu_default="SELECT_SH4" ;;
1819 sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;;
1820 sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
1821 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1822 sh3*) target_cpu_default="SELECT_SH3" ;;
1823 sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;;
1824 sh2e[lb]*) target_cpu_default="SELECT_SH2" ;;
1825 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1826 sh2*) target_cpu_default="SELECT_SH2" ;;
1829 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1832 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1833 sh64-*-netbsd* | sh64l*-*-netbsd*)
1834 tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
1835 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
1838 tm_file="sh/little.h ${tm_file}"
1839 tmake_file="${tmake_file} sh/t-le"
1842 tmake_file="${tmake_file} sh/t-be"
1847 # SHmedia, 32-bit ABI
1848 target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT"
1849 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
1852 # SHmedia, 64-bit ABI
1853 target_cpu_default="SH5_BIT|SH4_BIT"
1854 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
1857 # SH3, software floating point
1858 target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
1859 tmake_file="${tmake_file} sh/t-netbsd"
1864 tm_file="${tm_file} sh/coff.h"
1867 tm_file="${tm_file} sparc/pbd.h"
1870 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
1873 tm_file="sparc/sparc.h ${tm_file}"
1874 # needed to unconfuse gdb
1875 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
1876 # we need collect2 until our bug is fixed...
1880 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"
1885 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
1886 tmake_file="sparc/t-elf sparc/t-crtfm"
1887 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1889 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1890 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
1891 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
1894 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"
1895 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
1896 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1897 if test x$enable_threads = xyes; then
1901 sparc64-*-solaris2* | sparcv9-*-solaris2*)
1902 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"
1903 if test x$gnu_ld = xyes; then
1904 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
1906 if test x$gas = xyes; then
1907 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1909 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
1910 if test x$gnu_ld = xyes; then
1911 tmake_file="$tmake_file t-slibgcc-elf-ver"
1913 tmake_file="$tmake_file t-slibgcc-sld"
1915 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
1916 if test x${enable_threads} = x ; then
1917 enable_threads=$have_pthread_h
1918 if test x${enable_threads} = x ; then
1919 enable_threads=$have_thread_h
1922 if test x${enable_threads} = xyes ; then
1923 if test x${have_pthread_h} = xyes ; then
1926 thread_file='solaris'
1929 need_64bit_hwint=yes
1932 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
1933 if test x$gnu_ld = xyes; then
1934 tm_file="${tm_file} sparc/sol2-gld.h"
1936 tmake_file="sparc/t-sol2 sparc/t-crtfm"
1937 if test x$gnu_ld = xyes; then
1938 tmake_file="$tmake_file t-slibgcc-elf-ver"
1940 tmake_file="$tmake_file t-slibgcc-sld"
1943 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
1944 if test x$gnu_ld = xno; then
1945 tm_file="${tm_file} sparc/sol26-sld.h"
1949 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
1950 if test x$gnu_ld = xyes; then
1951 tm_file="${tm_file} sparc/sol2-gld-bi.h"
1953 if test x$gas = xyes; then
1954 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1956 tmake_file="$tmake_file sparc/t-sol2-64"
1957 need_64bit_hwint=yes
1960 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1961 if test x${enable_threads} = x; then
1962 enable_threads=$have_pthread_h
1963 if test x${enable_threads} = x; then
1964 enable_threads=$have_thread_h
1967 if test x${enable_threads} = xyes; then
1968 if test x${have_pthread_h} = xyes; then
1971 thread_file='solaris'
1976 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sysv4-only.h"
1978 extra_parts="crtbegin.o crtend.o"
1981 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
1982 tmake_file=sparc/t-sparclite
1985 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"
1986 tmake_file="sparc/t-sparclite sparc/t-crtfm"
1987 extra_parts="crtbegin.o crtend.o"
1990 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"
1991 tmake_file="sparc/t-sp86x sparc/t-crtfm"
1992 extra_parts="crtbegin.o crtend.o"
1995 tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h"
1998 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h"
1999 tmake_file="${tmake_file} sparc/t-crtfm"
2000 extra_parts="crtbegin.o crtend.o"
2002 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
2003 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
2004 tmake_file="${tmake_file} sparc/t-crtfm"
2006 case "x$with_cpu" in
2008 x) with_cpu=ultrasparc ;;
2009 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
2011 need_64bit_hwint=yes
2013 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
2014 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
2015 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
2018 tmake_file="${tmake_file} sparc/t-netbsd64"
2019 tm_file="sparc/biarch64.h ${tm_file}"
2020 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2023 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2024 tmake_file=arm/t-strongarm-elf
2027 extra_modes=arm/arm-modes.def
2030 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"
2031 tmake_file=arm/t-strongarm-pe
2034 extra_modes=arm/arm-modes.def
2038 target_cpu_default="TARGET_CPU_v850e"
2039 tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2040 tm_p_file=v850/v850-protos.h
2041 tmake_file=v850/t-v850
2042 md_file=v850/v850.md
2043 out_file=v850/v850.c
2044 if test x$stabs = xyes
2046 tm_file="${tm_file} dbx.h"
2049 c_target_objs="v850-c.o"
2050 cxx_target_objs="v850-c.o"
2053 target_cpu_default="TARGET_CPU_generic"
2054 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2055 tmake_file=v850/t-v850
2056 if test x$stabs = xyes
2058 tm_file="${tm_file} dbx.h"
2061 c_target_objs="v850-c.o"
2062 cxx_target_objs="v850-c.o"
2064 vax-*-bsd*) # VAXen running BSD
2065 tm_file="${tm_file} vax/bsd.h"
2068 vax-*-sysv*) # VAXen running system V
2069 tm_file="${tm_file} vax/vaxv.h"
2072 tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
2075 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
2081 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
2084 vax-*-ultrix*) # VAXen running ultrix
2085 tm_file="${tm_file} vax/ultrix.h"
2087 vax-*-vms*) # VAXen running VMS
2088 echo "Configuration $machine no longer supported" 1>&2
2091 vax-*-*) # VAX default entry
2094 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2095 tmake_file=arm/t-xscale-elf
2098 extra_modes=arm/arm-modes.def
2101 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
2102 tmake_file=arm/t-xscale-coff
2105 extra_modes=arm/arm-modes.def
2108 # For historical reasons, the target files omit the 'x'.
2109 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
2110 tm_p_file=stormy16/stormy16-protos.h
2111 md_file=stormy16/stormy16.md
2112 out_file=stormy16/stormy16.c
2113 tmake_file="stormy16/t-stormy16"
2114 extra_parts="crtbegin.o crtend.o"
2117 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
2118 tmake_file="xtensa/t-xtensa xtensa/t-elf"
2121 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
2122 tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa xtensa/t-linux"
2125 echo "*** Configuration $machine not supported" 1>&2
2132 install_headers_dir=install-headers-cpio
2136 # Support for --with-cpu and related options (and a few unrelated options,
2137 # too). Only do this if $machine is the target, or we'll try to validate
2138 # the CPU argument against the wrong machine type.
2140 if test "x$pass2done" = xyes
2142 case "x$with_cpu" in
2144 echo "--with-cpu must be passed a value" 1>&2
2149 # If there is no $with_cpu option, try to infer one from ${machine}.
2150 # This block sets nothing except for with_cpu.
2151 if test x$with_cpu = x
2155 # A Cirrus ARM variant.
2162 case $target_alias in
2172 pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2173 with_cpu=pentium-mmx
2180 i686-*-* | i786-*-*)
2181 case $target_alias in
2185 athlon_xp-*|athlon_mp-*|athlon_4-*)
2188 athlon_tbird-*|athlon-*)
2228 with_cpu="`echo $machine | sed 's/-.*$//'`"
2229 if [ x$with_cpu = xsparc64 ]; then
2236 # Similarly for --with-schedule.
2237 if test x$with_schedule = x; then
2240 # Override default PA8000 scheduling model.
2241 with_schedule=7100LC
2246 # Validate and mark as valid any --with options supported
2247 # by this target. In order to use a particular --with option
2248 # you must list it in supported_defaults; validating the value
2249 # is optional. This case statement should set nothing besides
2250 # supported_defaults.
2255 supported_defaults="cpu tune"
2256 for which in cpu tune; do
2257 eval "val=\$with_$which"
2260 | xev4 | xev45 | x21064 | xev5 | x21164 | xev56 | x21164a \
2261 | xpca56 | x21164PC | x21164pc | xev6 | x21264 | xev67 \
2265 echo "Unknown CPU used in --with-$which=$val" 1>&2
2273 supported_defaults="arch cpu float tune"
2274 for which in cpu tune; do
2275 eval "val=\$with_$which"
2278 | xarm[236789] | xarm250 | xarm[67][01]0 \
2279 | xarm60 | xarm620 | xarm7d | xarm7di \
2280 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
2281 | xarm70 | xarm700i | xarm710t | xarm720 \
2282 | xarm720t | xarm740t | xarm710c | xarm920 \
2283 | xarm920t | xarm940t | xarm9e | xarm10tdmi \
2284 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2288 | xstrongarm | xstrongarm110 | xstrongarm11[01]0)
2292 echo "Unknown CPU used in --with-$which=$val" 1>&2
2298 case "x$with_arch" in
2300 | xarmv[2345] | xarmv2a | xarmv3m | xarmv4t | xarmv5t \
2301 | xarmv5te | ep9312)
2305 echo "Unknown arch used in --with-arch=$with_arch" 1>&2
2310 case "x$with_float" in
2316 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2321 if test "x$with_arch" != x && test "x$with_cpu" != x; then
2322 echo "Warning: --with-arch overrides --with-cpu" 1>&2
2326 hppa*-*-* | parisc*-*-*)
2327 supported_defaults="arch schedule"
2329 case "x$with_arch" in
2330 x | x1.0 | x1.1 | x2.0)
2334 echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
2339 case "x$with_schedule" in
2340 x | x700 | x7100 | x7100LC | x7200 | x7300 | x8000)
2344 echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
2350 i[34567]86-*-* | x86_64-*-*)
2351 supported_defaults="arch cpu tune"
2352 for which in arch cpu tune; do
2353 eval "val=\$with_$which"
2357 | xi586 | xpentium | xpentium-mmx | xwinchip-c6 | xwinchip2 \
2358 | xc3 | xc3-2 | xi686 | xpentiumpro | xpentium2 | xpentium3 \
2359 | xpentium4 | xk6 | xk6-2 | xk6-3 | xathlon | xathlon-tbird \
2360 | xathlon-4 | xathlon-xp | xathlon-mp | xk8)
2364 echo "Unknown CPU given in --with-$which=$val." 1>&2
2372 supported_defaults="abi arch float tune"
2374 case "x$with_float" in
2380 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2385 case "x$with_abi" in
2387 | x32 | xo64 | xn32 | x64 | xeabi)
2391 echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
2397 powerpc*-*-* | rs6000-*-*)
2398 supported_defaults="cpu float tune"
2400 for which in cpu tune; do
2401 eval "val=\$with_$which"
2404 | xdefault32 | xdefault64 \
2406 | xpower | xpower2 | xpower3 | xpower4 \
2407 | xpowerpc | xpowerpc64 \
2408 | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
2409 | x401 | x403 | x405 | x405fp | x440 | x440fp | x505 \
2410 | x601 | x602 | x603 | x603e | xec603e | x604 \
2411 | x604e | x620 | x630 | x740 | x750 | x7400 | x7450 \
2412 | x8540 | x801 | x821 | x823 | x860)
2416 echo "Unknown cpu used in --with-$which=$val." 1>&2
2424 supported_defaults="cpu float tune"
2426 for which in cpu tune; do
2427 eval "val=\$with_$which"
2430 | xsparc | xsparcv9 | xsparc64 | xsparc86x \
2431 | xv7 | xcypress | xv8 | xsupersparc | xsparclite | xf930 \
2432 | xf934 | xhypersparc | xsparclite86x | xsparclet | tsc701 \
2433 | xv9 | xultrasparc | xultrasparc3)
2437 echo "Unknown cpu used in --with-$which=$val" 1>&2
2443 case "x$with_float" in
2449 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2456 supported_defaults=cpu
2457 case "x$with_cpu" in
2462 echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
2469 # Set some miscellaneous flags for particular targets.
2470 target_cpu_default2=
2473 if test x$gas = xyes
2475 target_cpu_default2="MASK_GAS"
2480 case "x$with_cpu" in
2483 target_cpu_default2="TARGET_CPU_generic"
2487 target_cpu_default2="TARGET_CPU_$with_cpu"
2492 hppa*-*-* | parisc*-*-*)
2493 if test x$gas = xyes
2495 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
2501 mips*-*-ecoff* | mips*-*-elf*)
2502 if test x$gas = xyes
2504 if test x$gnu_ld = xyes
2506 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
2508 target_cpu_default2="MASK_GAS"
2513 if test x$gas = xyes
2515 target_cpu_default2="MASK_GAS"
2521 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
2525 *mips/elf.h* | *mips/elf64.h*)
2526 tm_defines="OBJECT_FORMAT_ELF $tm_defines"
2529 if test "x$enable_gofast" = xyes
2531 tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
2532 tm_file="gofast.h $tm_file"
2533 tmake_file="mips/t-gofast $tmake_file"
2535 tmake_file="mips/t-mips $tmake_file"
2539 powerpc*-*-* | rs6000-*-*)
2540 if test x$enable_altivec = xyes
2542 tm_file="$tm_file rs6000/altivec-defs.h"
2544 # FIXME: The PowerPC port uses the value set at compile time,
2545 # although it's only cosmetic.
2546 if test "x$with_cpu" != x
2548 target_cpu_default2="\\\"$with_cpu\\\""
2550 out_file=rs6000/rs6000.c
2551 c_target_objs="${c_target_objs} rs6000-c.o"
2552 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
2553 tmake_file="rs6000/t-rs6000 ${tmake_file}"
2557 # Some standard aliases.
2563 with_cpu=sparclite86x
2565 xsparcv9 | xsparc64)
2570 # The Sparc port checks this value at compile-time.
2571 target_cpu_default2="TARGET_CPU_$with_cpu"
2574 # FIXME: The v850 is "special" in that it does not support
2575 # runtime CPU selection, only --with-cpu.
2576 case "x$with_cpu" in
2580 target_cpu_default2="TARGET_CPU_$with_cpu"
2587 all_defaults="abi cpu arch tune schedule float"
2588 for option in $all_defaults
2590 eval "val=\$with_$option"
2591 if test -n "$val"; then
2592 case " $supported_defaults " in
2596 echo "This target does not support --with-$option." 2>&1
2603 t="{ \"$option\", \"$val\" }"
2605 t="${t}, { \"$option\", \"$val\" }"
2611 configure_default_options="{ { NULL, NULL} }"
2613 configure_default_options="{ ${t} }"
2616 if test "$target_cpu_default2" != ""
2618 if test "$target_cpu_default" != ""
2620 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2622 target_cpu_default=$target_cpu_default2
2627 # Save data on machine being used to compile GCC in build_xm_file.
2628 # Save data on host machine in vars host_xm_file and host_xmake_file.
2629 if test x$pass1done = x
2631 if test x$xm_file != x
2632 then build_xm_file=$xm_file
2634 build_xm_defines=$xm_defines
2635 build_install_headers_dir=$install_headers_dir
2636 build_exeext=$exeext
2639 if test x$pass2done = x
2641 if test x$xm_file != x
2642 then host_xm_file=$xm_file
2644 host_xm_defines=$xm_defines
2645 host_xmake_file="$xmake_file"
2646 host_truncate_target=$truncate_target
2647 host_extra_gcc_objs=$extra_gcc_objs
2648 host_extra_objs=$extra_host_objs
2650 out_host_hook_obj=$host_hook_obj