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 # The following variables are used in each case-construct to build up the
170 # outgoing variables:
172 # xmake_file Makefile-fragment when this system is as a host,
173 # for host_xmake_file.
175 # extra_host_objs List of extra objects that should be linked into
176 # the compiler proper when this system is a host,
177 # for host_extra_objs.
179 # host_hook_obj An object file that provides the host hooks.
181 # install_headers_dir Makefile-target for how the header file directory
182 # is installed, when this system is a build system,
183 # for build_install_headers_dir.
185 # truncate_target Non-empty if the target name should be truncated
186 # when this system is a host, due to filename length
187 # issues. For host_truncate_target.
189 # exeext The suffix for executables on this system.
191 # gnu_ld Set to yes or no depending on whether the target
192 # system normally uses GNU ld.
206 host_hook_obj=host-default.o
209 # Set this to force installation and use of collect2.
211 # Set this to override the default target model.
213 # Set this to control how the header file directory is installed.
214 install_headers_dir=install-headers-tar
215 # Set this if directory names should be truncated to 14 characters.
217 # Set this if gdb needs a dir command with `dirname $out_file`
218 gdb_needs_out_file_path=
219 # Set this if the build machine requires executables to have a
222 # Set this to control which thread package will be used.
224 # Reinitialize these from the flag values every loop pass, since some
225 # configure entries modify them.
227 gnu_ld="$gnu_ld_flag"
228 enable_threads=$enable_threads_flag
229 default_use_cxa_atexit=no
233 # Don't carry these over build->host->target. Please.
237 # Obsolete configurations.
240 if test "x$enable_obsolete" != xyes; then
241 echo "*** Configuration $machine is obsolete." >&2
242 echo "*** Specify --enable-obsolete to build it anyway." >&2
243 echo "*** Support will be REMOVED in the next major release of GCC," >&2
244 echo "*** unless a maintainer comes forward." >&2
249 # Unsupported targets list. Do not put an entry in this list unless
250 # it would otherwise be caught by a more permissive pattern. The list
251 # should be in alphabetical order.
253 alpha*-*-linux*libc1* \
254 | i[34567]86-sequent-sysv* \
255 | i[34567]86-go32-* \
256 | i[34567]86-*-go32* \
257 | m68k-*-linux*aout* \
258 | m68k-*-linux*libc1* \
259 | mips64orion*-*-rtems* \
260 | powerpc-*-linux*libc1* \
261 | sparc-*-linux*aout* \
262 | sparc-*-linux*libc1* \
263 | sparc-hal-solaris2* \
270 echo "*** Configuration $machine not supported" 1>&2
275 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
276 # updated in each machine entry. Also set default extra_headers for some
279 cpu_type=`echo $machine | sed 's/-.*$//'`
285 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
290 extra_headers="mmintrin.h xmmintrin.h"
294 extra_headers="mmintrin.h xmmintrin.h"
298 extra_headers=ia64intrin.h
301 hppa*-*-* | parisc*-*-*)
306 extra_headers=math-68881.h
309 extra_headers=math-68881.h
317 extra_headers="ppc-asm.h altivec.h spe.h"
333 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
343 tm_file=${cpu_type}/${cpu_type}.h
344 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
346 tm_p_file=${cpu_type}/${cpu_type}-protos.h
349 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
351 extra_modes=${cpu_type}/${cpu_type}-modes.def
356 tm_file="i386/biarch64.h ${tm_file}"
360 # On a.out targets, we need to use collect2.
367 # Common parts for widely ported systems.
371 *-*-linux*libc1* | *-*-linux*aout*)
374 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
376 case x${enable_threads} in
377 x | xyes | xposix) thread_file='posix'
384 # On the Hurd, the setup is just about the same on
385 # each different CPU. The specific machines that we
386 # support are matched above and just set $cpu_type.
387 tm_file="${cpu_type}/gnu.h"
388 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
389 # GNU always uses ELF.
391 # GNU tools are the only tools.
394 # These details are the same as for Linux.
395 # But here we need a little extra magic.
396 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
399 tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
402 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}"
407 tm_file=${cpu_type}/openbsd.h
408 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
409 if test x$enable_threads = xyes; then
411 tmake_file="${tmake_file} t-openbsd-thread"
415 tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd"
419 # NetBSD 2.0 and later get POSIX threads enabled by default.
420 # Allow them to be explicitly enabled on any other version.
421 case x${enable_threads} in
424 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
426 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
432 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
436 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
437 # ELF configurations. We will clear extra_parts in the
438 # a.out configurations.
440 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
441 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
445 # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
446 # default (unless overridden by --disable-__cxa_atexit).
448 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
449 default_use_cxa_atexit=yes
453 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
454 # This is the place-holder for the generic a.out configuration
455 # of FreeBSD. No actual configuration resides here since
456 # there was only ever a bare-bones ix86 configuration for
457 # a.out and it exists solely in the machine-specific section.
458 # This place-holder must exist to avoid dropping into
459 # the generic ELF configuration of FreeBSD (i.e. it must be
460 # ordered before that section).
463 # This is the generic ELF configuration of FreeBSD. Later
464 # machine-specific sections may refine and add to this
467 # Due to tm_file entry ordering issues that vary between cpu
468 # architectures, we only define fbsd_tm_file to allow the
469 # machine-specific section to dictate the final order of all
470 # entries of tm_file with the minor exception that components
471 # of the tm_file set here will always be of the form:
473 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
475 # The machine-specific section should not tamper with this
476 # ordering but may order all other entries of tm_file as it
477 # pleases around the provided core setting.
480 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
482 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
483 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
484 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
485 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
486 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
488 tmake_file="t-slibgcc-elf-ver t-freebsd"
490 case x${enable_threads} in
491 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
492 x | xyes | xpthreads | xposix)
494 tmake_file="${tmake_file} t-freebsd-thread"
495 # Before 5.0, FreeBSD can't bind shared libraries to -lc
496 # when "optionally" threaded via weak pthread_* checks.
498 *-*-freebsd[34] | *-*-freebsd[34].*)
499 tmake_file="${tmake_file} t-slibgcc-nolc-override";;
502 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
504 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
507 tm_file="${tm_file} darwin.h"
508 tm_p_file="${tm_p_file} darwin-protos.h"
509 tmake_file="t-darwin"
510 target_gtfiles="\$(srcdir)/config/darwin.c"
511 c_target_objs="darwin-c.o"
512 cxx_target_objs="darwin-c.o"
514 extra_objs="darwin.o"
518 tm_file="${tm_file} elfos.h svr4.h vxworks.h"
519 thread_file='vxworks'
525 # Support site-specific machine types.
527 rest=`echo $machine | sed -e "s/$cpu_type-//"`
528 tm_file=${cpu_type}/$rest.h
529 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
530 then xm_file=${cpu_type}/xm-$rest.h
532 if test -f $srcdir/config/${cpu_type}/x-$rest
533 then xmake_file=${cpu_type}/x-$rest
535 if test -f $srcdir/config/${cpu_type}/t-$rest
536 then tmake_file=${cpu_type}/t-$rest
541 tm_file="${tm_file} alpha/unicosmk.h"
543 # Don't include t-ieee for now because we don't support that yet
544 # tmake_file="alpha/t-ieee"
545 tmake_file="alpha/t-unicosmk"
548 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
549 target_cpu_default="MASK_GAS"
550 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
553 target_cpu_default="MASK_GAS"
554 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
557 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
558 target_cpu_default="MASK_GAS"
559 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
560 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
563 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
564 target_cpu_default="MASK_GAS"
565 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
569 tm_file="${cpu_type}/${cpu_type}.h ${tm_file}"
570 # default x-alpha is only appropriate for dec-osf.
571 target_cpu_default="MASK_GAS"
572 tmake_file="alpha/t-alpha alpha/t-ieee"
576 if test x$stabs = xyes
578 tm_file="${tm_file} dbx.h"
580 if test x$gas != xyes
582 extra_passes="mips-tfile mips-tdump"
585 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
586 tm_file="${tm_file} alpha/osf.h"
587 extra_headers=va_list.h
590 # Some versions of OSF4 (specifically X4.0-9 296.7) have
591 # a broken tar, so we use cpio instead.
592 install_headers_dir=install-headers-cpio
593 # Set target_cpu_default except on 4.0a.
596 *) target_cpu_default=MASK_SUPPORT_ARCH
600 tm_file="${tm_file} alpha/osf5.h"
601 target_cpu_default=MASK_SUPPORT_ARCH
606 tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
607 xm_file="alpha/xm-vms.h"
608 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
609 xmake_file=alpha/x-vms
611 # This removes the cpu type and manufacturer components and
612 # replaces "." with "_" in the operating system version.
613 case $host in *-*-*vms*)
614 target_alias=`echo $host \
615 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
618 install_headers_dir=install-headers-cp
623 tm_file="${tm_file} alpha/vms.h"
624 xm_file=alpha/xm-vms.h
625 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
626 xmake_file=alpha/x-vms
628 # This removes the cpu type and manufacturer components and
629 # replaces "." with "_" in the operating system version.
630 case $host in *-*-*vms*)
631 target_alias=`echo $host \
632 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
635 install_headers_dir=install-headers-cp
640 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
641 extra_parts="crtinit.o crtfini.o"
643 arm-*-coff* | armel-*-coff*)
644 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h"
645 tmake_file=arm/t-arm-coff
647 arm-semi-aof | armel-semi-aof)
648 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
649 tmake_file=arm/t-semi
651 arm*-*-freebsd*|strongarm*-*-freebsd*)
652 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
653 tmake_file="${tmake_file} arm/t-strongarm-elf"
656 tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
657 tmake_file="${tmake_file} arm/t-netbsd"
660 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
661 tmake_file="t-netbsd arm/t-netbsd"
665 arm*-*-linux*) # ARM GNU/Linux with ELF
666 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"
667 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
668 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
670 case x${enable_threads} in
671 x | xyes | xpthreads | xposix)
676 arm*-*-uclinux*) # ARM ucLinux
677 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"
678 tmake_file=arm/t-arm-elf
681 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
682 tmake_file=arm/t-arm-elf
685 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"
686 tmake_file="arm/t-arm-elf t-rtems"
687 if test x$enable_threads = xyes; then
691 arm*-*-elf | ep9312-*-elf)
692 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
693 tmake_file=arm/t-arm-elf
696 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h"
702 c4x-*-rtems* | tic4x-*-rtems*)
703 tmake_file="c4x/t-c4x t-rtems"
704 tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
705 if test x$enable_threads = xyes; then
708 c_target_objs="c4x-c.o"
709 cxx_target_objs="c4x-c.o"
713 c_target_objs="c4x-c.o"
714 cxx_target_objs="c4x-c.o"
717 tm_file="dbxelf.h ${tm_file} cris/aout.h"
719 tmake_file="cris/t-cris cris/t-aout"
721 cris-*-elf | cris-*-none)
722 tm_file="dbxelf.h elfos.h ${tm_file}"
723 tmake_file="cris/t-cris cris/t-elfmulti"
727 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
728 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
731 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
736 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
737 tmake_file=fr30/t-fr30
738 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
741 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h"
745 tmake_file="h8300/t-h8300 t-rtems"
746 tm_file="h8300/h8300.h h8300/rtems.h rtems.h"
747 if test x$enable_threads = xyes; then
752 tmake_file="h8300/t-h8300 h8300/t-elf"
753 tm_file="h8300/h8300.h h8300/elf.h"
757 hppa*64*-*-linux* | parisc*64*-*-linux*)
758 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
759 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
760 pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
761 tmake_file=pa/t-linux64
765 hppa*-*-linux* | parisc*-*-linux*)
766 target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS"
767 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
768 pa/pa32-regs.h pa/pa32-linux.h"
769 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
772 target_cpu_default="MASK_PA_11"
776 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
777 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
778 tmake_file="pa/t-bsd pa/t-pro"
779 xmake_file="pa/x-ada"
782 target_cpu_default="MASK_PA_11"
783 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
784 tmake_file="pa/t-bsd pa/t-pa"
785 xmake_file="pa/x-ada"
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 pa/rtems.h rtems.h"
791 tmake_file="pa/t-bsd pa/t-pro t-rtems"
792 xmake_file="pa/x-ada"
793 if test x$enable_threads = xyes; then
798 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
799 target_cpu_default="MASK_PA_11"
800 tmake_file="pa/t-bsd pa/t-pa"
801 xmake_file="pa/x-ada"
804 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
805 target_cpu_default="MASK_PA_11"
806 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
807 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
808 xmake_file="pa/x-ada"
809 if test x$enable_threads = x; then
810 enable_threads=$have_pthread_h
812 case x${enable_threads} in
814 tmake_file="${tmake_file} pa/t-dce-thr"
817 install_headers_dir=install-headers-cpio
821 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
822 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
823 xmake_file="pa/x-ada"
824 if test x$enable_threads = x; then
825 enable_threads=$have_pthread_h
827 case x${enable_threads} in
829 tmake_file="${tmake_file} pa/t-dce-thr"
832 install_headers_dir=install-headers-cpio
838 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
839 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
840 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
842 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \
843 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
844 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
847 tmake_file="pa/t-pa64 pa/t-pa-hpux"
848 xmake_file="pa/x-ada"
849 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
850 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
851 if test x$gnu_ld = xyes
853 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
855 # if [ x$enable_threads = x ]; then
856 # enable_threads=$have_pthread_h
858 # if [ x$enable_threads = xyes ]; then
860 # tmake_file="${tmake_file} pa/t-dce-thr"
862 install_headers_dir=install-headers-cpio
864 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
865 target_cpu_default="MASK_PA_11"
866 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
867 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
868 xmake_file="pa/x-ada"
869 # if test x$enable_threads = x; then
870 # enable_threads=$have_pthread_h
872 # if test x$enable_threads = xyes; then
874 # tmake_file="${tmake_file} pa/t-dce-thr"
876 install_headers_dir=install-headers-cpio
880 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
881 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
882 xmake_file="pa/x-ada"
883 # if test x$enable_threads = x; then
884 # enable_threads=$have_pthread_h
886 # if test x$enable_threads = xyes; then
888 # tmake_file="${tmake_file} pa/t-dce-thr"
890 install_headers_dir=install-headers-cpio
893 i370-*-opened*) # IBM 360/370/390 Architecture
894 xm_defines='FATAL_EXIT_CODE=12'
896 tmake_file="i370/t-oe i370/t-i370"
897 c_target_objs="i370-c.o"
898 cxx_target_objs="i370-c.o"
901 xm_defines='FATAL_EXIT_CODE=12'
903 tmake_file="i370/t-i370"
904 c_target_objs="i370-c.o"
905 cxx_target_objs="i370-c.o"
908 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}"
909 tmake_file="t-slibgcc-elf-ver t-linux"
913 i[34567]86-*-darwin*)
914 tm_file="${tm_file} i386/darwin.h"
917 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
918 tmake_file="i386/t-i386elf t-svr4"
920 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
921 xm_defines="SMALL_ARG_MAX"
922 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
923 extra_parts="crtbegin.o crtend.o"
924 tmake_file=i386/t-crtpic
926 i[34567]86-*-netware) # Intel 80386's running netware
927 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
928 tmake_file=i386/t-netware
930 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
933 tm_file="${tm_file} usegas.h"
935 xm_defines="SMALL_ARG_MAX"
936 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
938 extra_parts="crtbegin.o crtend.o"
939 install_headers_dir=install-headers-cpio
942 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
944 i[34567]86-*-beoself* | i[34567]86-*-beos*)
945 tmake_file='i386/t-beos i386/t-crtpic'
946 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
947 extra_parts='crtbegin.o crtend.o'
949 i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*)
950 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
953 i[34567]86-*-freebsd*)
954 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
957 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"
959 i[34567]86-*-netbsdelf*)
960 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
962 i[34567]86-*-netbsd*)
963 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
969 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"
971 i[34567]86-*-openbsd*)
972 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}"
973 # needed to unconfuse gdb
974 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
975 # we need collect2 until our bug is fixed...
979 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
981 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
983 tmake_file="t-linux-aout i386/t-crtstuff"
984 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
987 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
988 # with ELF format using the
989 # GNU/Linux C library 5
990 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
991 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
992 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
994 if test x$enable_threads = xyes; then
998 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
999 # with ELF format using glibc 2
1000 # aka GNU/Linux C library 6
1001 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1002 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1005 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1006 i386/x86-64.h i386/linux64.h"
1007 tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64"
1011 i[34567]86-pc-msdosdjgpp*)
1012 xm_file=i386/xm-djgpp.h
1013 tm_file="dbxcoff.h ${tm_file} i386/djgpp.h"
1014 tmake_file=i386/t-djgpp
1018 case $host in *pc-msdosdjgpp*)
1023 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1024 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1025 tmake_file=t-libc-ok
1029 i[34567]86-*-lynxos*)
1030 if test x$gas = xyes
1032 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx.h i386/lynx.h"
1034 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
1038 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
1039 # tmake_file=t-libc-ok
1042 i[34567]86-*-rtems*)
1043 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
1044 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1045 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1046 if test x$enable_threads = xyes; then
1050 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1051 install_headers_dir=install-headers-cpio
1052 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h"
1053 if test x$gas = xyes
1055 tm_file="usegas.h ${tm_file}"
1057 tmake_file=i386/t-sco5
1058 extra_parts="crtbegin.o crtend.o"
1060 i[34567]86-*-solaris2*)
1061 xm_defines="SMALL_ARG_MAX"
1062 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
1063 tmake_file="i386/t-sol2 t-svr4"
1064 if test x$gnu_ld = xyes; then
1065 tmake_file="$tmake_file t-slibgcc-elf-ver"
1067 tmake_file="$tmake_file t-slibgcc-sld"
1069 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1070 if test x${enable_threads} = x; then
1071 enable_threads=$have_pthread_h
1072 if test x${enable_threads} = x; then
1073 enable_threads=$have_thread_h
1076 if test x${enable_threads} = xyes; then
1077 if test x${have_pthread_h} = xyes; then
1080 thread_file='solaris'
1084 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1085 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1086 if test x$stabs = xyes
1088 tm_file="${tm_file} dbx.h"
1090 tmake_file="i386/t-crtpic t-svr4"
1091 extra_parts="crtbegin.o crtend.o"
1092 if test x$enable_threads = xyes; then
1096 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1097 xm_defines="SMALL_ARG_MAX"
1098 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.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"
1106 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1107 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"
1108 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1109 extra_parts="crtbegin.o crtend.o"
1110 install_headers_dir=install-headers-cpio
1112 i[34567]86-*-sysv*) # Intel 80386's running system V
1113 if test x$gas = xyes
1115 if test x$stabs = xyes
1117 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
1118 tmake_file=i386/t-svr3dbx
1119 extra_parts="svr3.ifile svr3z.ifile"
1121 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
1122 extra_parts="crtbegin.o crtend.o"
1123 tmake_file=i386/t-crtstuff
1126 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
1127 extra_parts="crtbegin.o crtend.o"
1128 tmake_file=i386/t-crtstuff
1130 tmake_file="$tmake_file i386/t-crtpic"
1132 i386-*-vsta) # Intel 80386's running VSTa kernel
1133 xm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/xm-vsta.h"
1134 tm_file="${tm_file} i386/vsta.h"
1136 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1137 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h"
1138 xm_file=i386/xm-cygwin.h
1139 tmake_file="i386/t-cygming i386/t-cygwin"
1141 c_target_objs=cygwin2.o
1142 cxx_target_objs=cygwin2.o
1143 if test x$enable_threads = xyes; then
1148 i[34567]86-*-mingw32*)
1149 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
1150 xm_file=i386/xm-mingw32.h
1151 tmake_file="i386/t-cygming i386/t-mingw32"
1152 xmake_file=i386/x-mingw32
1154 if test x$enable_threads = xyes; then
1160 tm_file="${tm_file} i386/crtdll.h"
1162 *mingw32msv* | *mingw32*)
1167 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h"
1168 tmake_file="i386/t-cygwin i386/t-uwin"
1170 if test x$enable_threads = xyes; then
1175 i[34567]86-*-interix3*)
1176 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"
1177 tmake_file="t-interix i386/t-interix"
1179 xmake_file="x-interix"
1180 if test x$enable_threads = xyes ; then
1183 if test x$stabs = xyes ; then
1184 tm_file="${tm_file} dbxcoff.h"
1187 i[34567]86-*-interix*)
1188 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
1189 tmake_file="t-interix i386/t-interix"
1191 if test x$enable_threads = xyes ; then
1194 if test x$stabs = xyes ; then
1195 tm_file="${tm_file} dbxcoff.h"
1199 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1200 tmake_file=i960/t-960bare
1201 c_target_objs="i960-c.o"
1202 cxx_target_objs="i960-c.o"
1205 tmake_file="i960/t-960bare t-rtems"
1206 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1207 if test x$enable_threads = xyes; then
1210 c_target_objs="i960-c.o"
1211 cxx_target_objs="i960-c.o"
1213 i960-*-*) # Default i960 environment.
1215 tmake_file=i960/t-960bare
1216 c_target_objs="i960-c.o"
1217 cxx_target_objs="i960-c.o"
1220 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1221 tmake_file="ia64/t-ia64"
1222 target_cpu_default="0"
1223 if test x$gas = xyes
1225 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1227 if test x$gnu_ld = xyes
1229 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1231 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1234 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1235 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1236 tmake_file="${tmake_file} ia64/t-ia64"
1237 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1240 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1241 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1242 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1243 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1244 if test x"$use_libunwind_exceptions" = xyes; then
1245 tmake_file="$tmake_file t-libunwind"
1249 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1250 tmake_file="ia64/t-ia64 ia64/t-hpux"
1251 target_cpu_default="MASK_GNU_AS"
1252 if test x$enable_threads = xyes; then
1256 c_target_objs="ia64-c.o"
1257 cxx_target_objs="ia64-c.o"
1262 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1263 extra_parts="crtinit.o crtfini.o m32rx/crtinit.o m32rx/crtfini.o"
1265 # m68hc11 and m68hc12 share the same machine description.
1266 m68hc11-*-*|m6811-*-*)
1267 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1268 tm_p_file="m68hc11/m68hc11-protos.h"
1269 md_file="m68hc11/m68hc11.md"
1270 out_file="m68hc11/m68hc11.c"
1271 tmake_file="m68hc11/t-m68hc11-gas"
1273 m68hc12-*-*|m6812-*-*)
1274 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1275 tm_p_file="m68hc11/m68hc11-protos.h"
1276 md_file="m68hc11/m68hc11.md"
1277 out_file="m68hc11/m68hc11.c"
1278 tmake_file="m68hc11/t-m68hc11-gas"
1280 m68000-hp-hpux*) # HP 9000 series 300
1281 if test x$gas = xyes
1283 tm_file=m68k/hp310g.h
1285 tm_file=m68k/hp310.h
1287 tmake_file=m68k/t-hp320
1288 install_headers_dir=install-headers-cpio
1291 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1292 if test x$gas = xyes
1294 tm_file=m68k/hp320g.h
1296 tm_file=m68k/hpux7.h
1298 install_headers_dir=install-headers-cpio
1301 m68k-hp-hpux*) # HP 9000 series 300
1302 if test x$gas = xyes
1304 tm_file=m68k/hp320g.h
1306 tm_file=m68k/hp320.h
1308 install_headers_dir=install-headers-cpio
1312 tmake_file=m68k/t-m68kbare
1313 tm_file="m68k/m68k-aout.h libgloss.h"
1316 tmake_file=m68k/t-m68kbare
1317 tm_file="m68k/m68k-coff.h dbx.h"
1319 m68020-*-elf* | m68k-*-elf*)
1320 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1321 tmake_file=m68k/t-m68kelf
1322 extra_parts="crtbegin.o crtend.o"
1324 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1325 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1328 target_cpu_default="0"
1331 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1336 tm_file=m68k/netbsd.h
1342 # needed to unconfuse gdb
1343 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1344 # we need collect2 until our bug is fixed...
1347 m68k-*-sysv4*) # Motorola m68k's running system V.4
1348 tm_file=m68k/m68kv4.h
1350 extra_parts="crtbegin.o crtend.o"
1352 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1353 # with ELF format using glibc 2
1354 # aka the GNU/Linux C library 6.
1355 tm_file=m68k/linux.h
1356 tmake_file="t-slibgcc-elf-ver t-linux"
1359 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1360 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"
1361 extra_parts="crtbegin.o crtend.o"
1362 if test x$enable_threads = xyes; then
1367 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
1368 tmake_file=mcore/t-mcore
1371 tm_file=mcore/mcore-pe.h
1372 tmake_file=mcore/t-mcore-pe
1374 mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI
1375 if test x$gas = xyes
1377 tm_file="mips/iris5.h mips/iris5gas.h mips/iris6-o32-gas.h"
1378 if test x$stabs = xyes
1380 tm_file="${tm_file} dbx.h"
1382 tmake_file=mips/t-iris5-gas
1384 tm_file="mips/iris5.h mips/iris6-o32-as.h"
1385 tmake_file=mips/t-iris5-as
1387 tm_file="${tm_file} mips/iris6-o32.h"
1388 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1389 xm_file=mips/xm-iris5.h
1390 # mips-tfile doesn't work yet
1391 # See comment in mips/iris5.h file.
1393 # if test x$enable_threads = xyes; then
1394 # thread_file='irix'
1397 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1398 if test "x$gnu_ld" = xyes
1400 tm_file="mips/iris6.h mips/iris6gld.h"
1402 tm_file=mips/iris6.h
1404 tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
1405 # if test x$enable_threads = xyes; then
1406 # thread_file='irix'
1409 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1410 tm_file="mips/iris6.h mips/cross64.h"
1411 xm_file=mips/xm-iris5.h
1412 tmake_file="mips/t-iris mips/t-cross64"
1413 # See comment in mips/iris[56].h files.
1415 # if test x$enable_threads = xyes; then
1416 # thread_file='irix'
1419 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1420 if test x$gas = xyes
1422 tm_file="mips/iris5.h mips/iris5gas.h"
1423 if test x$stabs = xyes
1425 tm_file="${tm_file} dbx.h"
1427 tmake_file=mips/t-iris5-gas
1429 tm_file=mips/iris5.h
1430 tmake_file=mips/t-iris5-as
1432 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1433 xm_file=mips/xm-iris5.h
1434 # mips-tfile doesn't work yet
1435 # See comment in mips/iris5.h file.
1437 # if test x$enable_threads = xyes; then
1438 # thread_file='irix'
1441 mips*-*-netbsd*) # NetBSD/mips, either endian.
1442 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1443 tm_file="elfos.h ${tm_file} mips/netbsd.h"
1444 tmake_file="${tmake_file}"
1447 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h"
1448 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux64"
1450 # This default ABI is a partial lie: t-linux64 overrides the
1451 # DRIVER_SELF_SPEC that sets the default abi, in the spec file
1452 # that is installed. What GCC thinks of as the default must
1453 # remain as ABI_32 such that the SONAMEs of the libgcc shared
1454 # libraries remain compatible with those of mips-linux-gnu.
1455 tm_defines="MIPS_ISA_DEFAULT=1 MIPS_ABI_DEFAULT=ABI_32"
1456 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1457 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1460 if test x$enable_threads = xyes; then
1464 mips*-*-linux*) # Linux MIPS, either endian.
1465 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
1468 target_cpu_default="MASK_SOFT_FLOAT"
1469 tm_defines="MIPS_ISA_DEFAULT=32"
1472 tmake_file="t-slibgcc-elf-ver t-linux"
1474 mips*el-*-openbsd*) # mips little endian
1475 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1477 mips*-*-openbsd*) # mips big endian
1478 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1479 tm_file="mips/openbsd-be.h ${tm_file}"
1481 mipsisa32-*-elf* | mipsisa32el-*-elf*)
1482 tm_file="${tm_file} mips/elf.h"
1483 tmake_file=mips/t-isa3264
1484 tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
1486 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
1487 tm_file="${tm_file} mips/elf.h"
1488 tmake_file=mips/t-isa3264
1489 tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
1491 mipsisa64-*-elf* | mipsisa64el-*-elf*)
1492 tm_file="${tm_file} mips/elf.h"
1493 tmake_file=mips/t-isa3264
1494 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1495 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
1497 mipsisa64sr71k-*-elf*)
1498 tm_file="${tm_file} mips/elf.h"
1499 tmake_file=mips/t-sr71k
1500 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1501 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
1503 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1504 tm_file="${tm_file} mips/elf.h"
1505 tmake_file=mips/t-elf
1506 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1507 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1509 mips-*-elf* | mipsel-*-elf*)
1510 tm_file="${tm_file} mips/elf.h"
1511 tmake_file=mips/t-elf
1513 mips64-*-elf* | mips64el-*-elf*)
1514 tm_file="${tm_file} mips/elf64.h"
1515 tmake_file=mips/t-elf
1516 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1517 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1519 mips64vr-*-elf* | mips64vrel-*-elf*)
1520 tm_file="mips/vr.h ${tm_file} mips/elf64.h"
1521 tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1"
1522 tmake_file=mips/t-vr
1524 mips64orion-*-elf* | mips64orionel-*-elf*)
1525 tm_file="${tm_file} mips/elforion.h mips/elf64.h"
1526 tmake_file=mips/t-elf
1527 tmake_file=mips/t-elf
1528 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1529 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1532 tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
1533 tmake_file="mips/t-elf t-rtems"
1534 if test x$enable_threads = xyes; then
1538 mipstx39-*-elf* | mipstx39el-*-elf*)
1539 tm_file="${tm_file} mips/r3900.h mips/elf.h"
1540 tmake_file=mips/t-r3900
1542 mmix-knuth-mmixware)
1543 need_64bit_hwint=yes
1546 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1547 if test x$stabs = xyes
1549 tm_file="${tm_file} dbx.h"
1554 echo "GCC does not yet support the ${machine} target"; exit 1
1557 tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1558 # On NetBSD, the headers are already okay, except for math.h.
1559 tmake_file="t-netbsd ns32k/t-ns32k"
1564 tm_file="${tm_file} pdp11/2bsd.h"
1571 tmake_file="${tmake_file} rs6000/t-fprules "
1575 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h"
1576 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-linux64"
1579 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"
1580 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
1583 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
1584 tmake_file="rs6000/t-fprules rs6000/t-beos"
1588 tm_file="${tm_file} rs6000/darwin.h"
1589 tmake_file="rs6000/t-fprules t-darwin rs6000/t-darwin"
1590 extra_headers=altivec.h
1591 # override ppc default
1593 # powerpc-darwin host support.
1594 host_hook_obj=host-darwin.o
1595 xmake_file=rs6000/x-darwin
1597 powerpc*-*-freebsd*)
1598 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
1599 tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1602 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1603 tmake_file="${tmake_file} rs6000/t-netbsd"
1605 powerpc-*-chorusos*)
1606 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
1607 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1608 case x${enable_threads} in
1609 xyes | xpthreads | xposix)
1615 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
1616 tmake_file="rs6000/t-spe rs6000/t-ppccomm"
1618 powerpc-*-eabisimaltivec*)
1619 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"
1620 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1623 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
1624 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1627 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1628 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1630 powerpc-*-eabialtivec*)
1631 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
1632 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1635 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
1636 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1639 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
1640 tmake_file="rs6000/t-fprules t-rtems rs6000/t-ppccomm"
1641 if test x$enable_threads = xyes; then
1645 powerpc-*-linux*altivec*)
1646 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
1647 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1649 powerpc-*-linux*spe*)
1650 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
1651 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1654 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
1655 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1657 powerpc-*-gnu-gnualtivec*)
1658 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"
1659 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1660 if test x$enable_threads = xyes; then
1665 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"
1666 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1667 if test x$enable_threads = xyes; then
1671 powerpc-wrs-vxworks*)
1672 # We want vxworks.h after rs6000/sysv4.h, which unfortunately
1673 # means we have to redo the tm_file list from scratch.
1674 tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1675 tm_file="${tm_file} vxworks.h rs6000/vxworks.h"
1676 tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
1677 extra_headers=ppc-asm.h
1679 powerpc-wrs-windiss*)
1680 tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
1681 tmake_file="rs6000/t-fprules rs6000/t-ppcgas 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-ppcos rs6000/t-ppccomm"
1689 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1690 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1692 powerpcle-*-eabisim*)
1693 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"
1694 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1697 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
1698 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1700 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
1701 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
1702 tmake_file="rs6000/t-fprules rs6000/t-newas"
1706 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1707 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
1708 tmake_file=rs6000/t-aix43
1713 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1714 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
1715 tmake_file=rs6000/t-aix43
1720 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1721 tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
1722 tmake_file=rs6000/t-aix52
1728 tm_file="lynx.h rs6000/lynx.h"
1729 tmake_file=rs6000/t-fprules
1733 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1734 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff"
1737 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1738 tm_p_file=s390/s390-protos.h
1739 md_file=s390/s390.md
1740 extra_modes=s390/s390-modes.def
1741 out_file=s390/s390.c
1742 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64"
1744 sh-*-elf* | sh[2346l]*-*-elf*)
1745 tmake_file="sh/t-sh sh/t-elf"
1748 tm_file="sh/little.h ${tm_file}"
1749 tmake_file="${tmake_file} sh/t-le"
1752 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h"
1755 tmake_file="${tmake_file} sh/t-sh64"
1756 tm_file="${tm_file} sh/sh64.h"
1757 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1759 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1760 sh4*) target_cpu_default="SELECT_SH4" ;;
1761 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1762 sh3*) target_cpu_default="SELECT_SH3" ;;
1763 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1764 sh2*) target_cpu_default="SELECT_SH2" ;;
1767 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1771 tmake_file="sh/t-sh sh/t-elf t-rtems"
1772 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/rtemself.h rtems.h"
1773 if test x$enable_threads = xyes; then
1778 tmake_file="sh/t-sh t-rtems"
1779 tm_file="${tm_file} sh/coff.h sh/rtems.h rtems.h"
1780 if test x$enable_threads = xyes; then
1784 sh-*-linux* | sh[2346lbe]*-*-linux*)
1785 tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux sh/t-linux"
1787 sh*be-*-* | sh*eb-*-*) ;;
1789 tm_file="sh/little.h ${tm_file}"
1790 tmake_file="${tmake_file} sh/t-le"
1793 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
1796 tmake_file="${tmake_file} sh/t-sh64"
1797 tm_file="${tm_file} sh/sh64.h"
1798 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1800 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1801 sh4*) target_cpu_default="SELECT_SH4" ;;
1802 sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;;
1803 sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
1804 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1805 sh3*) target_cpu_default="SELECT_SH3" ;;
1806 sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;;
1807 sh2e[lb]*) target_cpu_default="SELECT_SH2" ;;
1808 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1809 sh2*) target_cpu_default="SELECT_SH2" ;;
1812 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1815 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1816 sh64-*-netbsd* | sh64l*-*-netbsd*)
1817 tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
1818 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
1821 tm_file="sh/little.h ${tm_file}"
1822 tmake_file="${tmake_file} sh/t-le"
1825 tmake_file="${tmake_file} sh/t-be"
1830 # SHmedia, 32-bit ABI
1831 target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT"
1832 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
1835 # SHmedia, 64-bit ABI
1836 target_cpu_default="SH5_BIT|SH4_BIT"
1837 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
1840 # SH3, software floating point
1841 target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
1842 tmake_file="${tmake_file} sh/t-netbsd"
1847 tm_file="${tm_file} sh/coff.h"
1850 tm_file="${tm_file} sparc/pbd.h"
1853 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
1856 tm_file="sparc/sparc.h ${tm_file}"
1857 # needed to unconfuse gdb
1858 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
1859 # we need collect2 until our bug is fixed...
1863 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"
1868 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
1869 tmake_file="sparc/t-elf sparc/t-crtfm"
1870 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1872 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1873 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
1874 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
1877 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"
1878 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
1879 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1880 if test x$enable_threads = xyes; then
1884 sparc64-*-solaris2* | sparcv9-*-solaris2*)
1885 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"
1886 if test x$gnu_ld = xyes; then
1887 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
1889 if test x$gas = xyes; then
1890 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1892 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
1893 if test x$gnu_ld = xyes; then
1894 tmake_file="$tmake_file t-slibgcc-elf-ver"
1896 tmake_file="$tmake_file t-slibgcc-sld"
1898 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
1899 if test x${enable_threads} = x ; then
1900 enable_threads=$have_pthread_h
1901 if test x${enable_threads} = x ; then
1902 enable_threads=$have_thread_h
1905 if test x${enable_threads} = xyes ; then
1906 if test x${have_pthread_h} = xyes ; then
1909 thread_file='solaris'
1912 need_64bit_hwint=yes
1915 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
1916 if test x$gnu_ld = xyes; then
1917 tm_file="${tm_file} sparc/sol2-gld.h"
1919 tmake_file="sparc/t-sol2 sparc/t-crtfm"
1920 if test x$gnu_ld = xyes; then
1921 tmake_file="$tmake_file t-slibgcc-elf-ver"
1923 tmake_file="$tmake_file t-slibgcc-sld"
1926 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
1927 if test x$gnu_ld = xno; then
1928 tm_file="${tm_file} sparc/sol26-sld.h"
1932 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
1933 if test x$gnu_ld = xyes; then
1934 tm_file="${tm_file} sparc/sol2-gld-bi.h"
1936 if test x$gas = xyes; then
1937 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1939 tmake_file="$tmake_file sparc/t-sol2-64"
1940 need_64bit_hwint=yes
1943 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1944 if test x${enable_threads} = x; then
1945 enable_threads=$have_pthread_h
1946 if test x${enable_threads} = x; then
1947 enable_threads=$have_thread_h
1950 if test x${enable_threads} = xyes; then
1951 if test x${have_pthread_h} = xyes; then
1954 thread_file='solaris'
1959 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sysv4-only.h"
1961 extra_parts="crtbegin.o crtend.o"
1964 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
1965 tmake_file=sparc/t-sparclite
1968 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h"
1969 tmake_file="sparc/t-sparclite sparc/t-crtfm"
1970 extra_parts="crtbegin.o crtend.o"
1973 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"
1974 tmake_file="sparc/t-sp86x sparc/t-crtfm"
1975 extra_parts="crtbegin.o crtend.o"
1978 tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h"
1981 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h"
1982 tmake_file="${tmake_file} sparc/t-crtfm"
1983 extra_parts="crtbegin.o crtend.o"
1985 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1986 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
1987 tmake_file="${tmake_file} sparc/t-crtfm"
1989 case "x$with_cpu" in
1991 x) with_cpu=ultrasparc ;;
1992 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
1994 need_64bit_hwint=yes
1996 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1997 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
1998 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
2001 tmake_file="${tmake_file} sparc/t-netbsd64"
2002 tm_file="sparc/biarch64.h ${tm_file}"
2003 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2006 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2007 tmake_file=arm/t-strongarm-elf
2010 extra_modes=arm/arm-modes.def
2013 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"
2014 tmake_file=arm/t-strongarm-pe
2017 extra_modes=arm/arm-modes.def
2021 target_cpu_default="TARGET_CPU_v850e"
2022 tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2023 tm_p_file=v850/v850-protos.h
2024 tmake_file=v850/t-v850
2025 md_file=v850/v850.md
2026 out_file=v850/v850.c
2027 if test x$stabs = xyes
2029 tm_file="${tm_file} dbx.h"
2032 c_target_objs="v850-c.o"
2033 cxx_target_objs="v850-c.o"
2036 target_cpu_default="TARGET_CPU_generic"
2037 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2038 tmake_file=v850/t-v850
2039 if test x$stabs = xyes
2041 tm_file="${tm_file} dbx.h"
2044 c_target_objs="v850-c.o"
2045 cxx_target_objs="v850-c.o"
2047 vax-*-bsd*) # VAXen running BSD
2048 tm_file="${tm_file} vax/bsd.h"
2051 vax-*-sysv*) # VAXen running system V
2052 tm_file="${tm_file} vax/vaxv.h"
2055 tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
2058 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
2064 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
2067 vax-*-ultrix*) # VAXen running ultrix
2068 tm_file="${tm_file} vax/ultrix.h"
2070 vax-*-vms*) # VAXen running VMS
2071 echo "Configuration $machine no longer supported" 1>&2
2074 vax-*-*) # VAX default entry
2077 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2078 tmake_file=arm/t-xscale-elf
2081 extra_modes=arm/arm-modes.def
2084 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
2085 tmake_file=arm/t-xscale-coff
2088 extra_modes=arm/arm-modes.def
2091 # For historical reasons, the target files omit the 'x'.
2092 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
2093 tm_p_file=stormy16/stormy16-protos.h
2094 md_file=stormy16/stormy16.md
2095 out_file=stormy16/stormy16.c
2096 tmake_file="stormy16/t-stormy16"
2097 extra_parts="crtbegin.o crtend.o"
2100 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
2101 tmake_file="xtensa/t-xtensa xtensa/t-elf"
2104 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
2105 tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa xtensa/t-linux"
2108 echo "*** Configuration $machine not supported" 1>&2
2115 install_headers_dir=install-headers-cpio
2119 # Distinguish i[34567]86
2120 # Also, do not run mips-tfile on MIPS if using gas.
2121 # Process --with-cpu= for PowerPC/rs6000
2122 target_cpu_default2=
2125 target_cpu_default2=TARGET_CPU_DEFAULT_i486
2128 case $target_alias in
2130 target_cpu_default2=TARGET_CPU_DEFAULT_k6_2
2133 target_cpu_default2=TARGET_CPU_DEFAULT_k6_3
2136 target_cpu_default2=TARGET_CPU_DEFAULT_k6
2138 pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2139 target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx
2142 target_cpu_default2=TARGET_CPU_DEFAULT_pentium
2146 i686-*-* | i786-*-*)
2147 case $target_alias in
2149 target_cpu_default2=TARGET_CPU_DEFAULT_k8
2151 athlon_xp-*|athlon_mp-*|athlon_4-*)
2152 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
2154 athlon_tbird-*|athlon-*)
2155 target_cpu_default2=TARGET_CPU_DEFAULT_athlon
2158 target_cpu_default2=TARGET_CPU_DEFAULT_pentium2
2161 target_cpu_default2=TARGET_CPU_DEFAULT_pentium3
2164 target_cpu_default2=TARGET_CPU_DEFAULT_pentium4
2167 target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro
2172 # We should have hammer chip here, but it does not exist yet and
2173 # thus it is not supported. Athlon_SSE is probably equivalent feature
2174 # wise to hammer from our point of view except for 64bit mode.
2175 target_cpu_default2=TARGET_CPU_DEFAULT_k8
2180 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
2183 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
2186 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2189 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2192 target_cpu_default2="MASK_CPU_EV5"
2196 if test x$gas = xyes
2198 if test "$target_cpu_default2" = ""
2200 target_cpu_default2="MASK_GAS"
2202 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2206 arm*-*-* | xscale-*-*)
2207 case "x$with_cpu" in
2210 target_cpu_default2="TARGET_CPU_generic"
2213 # Distinguish cores, and major variants
2214 # arm7m doesn't exist, but D & I don't affect code
2215 xarm[236789] | xarm250 | xarm[67][01]0 \
2216 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
2217 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2218 | xxscale | xiwmmxt \
2220 | xstrongarm | xstrongarm110 | xstrongarm1100)
2221 target_cpu_default2="TARGET_CPU_$with_cpu"
2225 echo "--with-cpu must be passed a value" 1>&2
2230 if test x$pass2done = xyes
2232 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2239 target_cpu_default2="TARGET_CPU_9ep9312"
2244 hppa*-*-* | parisc*-*-*)
2245 if test x$gas = xyes
2247 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
2251 tm_defines="TARGET_SCHED_DEFAULT=\\\"7100LC\\\""
2257 mips*-*-ecoff* | mips*-*-elf*)
2258 if test x$gas = xyes
2260 if test x$gnu_ld = xyes
2262 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
2264 target_cpu_default2="MASK_GAS"
2269 if test x$gas = xyes
2271 target_cpu_default2="MASK_GAS"
2277 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
2281 *mips/elf.h* | *mips/elf64.h*)
2282 tm_defines="OBJECT_FORMAT_ELF $tm_defines"
2285 if test "x$enable_gofast" = xyes
2287 tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
2288 tm_file="gofast.h $tm_file"
2289 tmake_file="mips/t-gofast $tmake_file"
2291 tmake_file="mips/t-mips $tmake_file"
2294 powerpc*-*-* | rs6000-*-*)
2295 if test x$enable_altivec = xyes
2297 tm_file="$tm_file rs6000/altivec-defs.h"
2299 case "x$with_cpu" in
2303 xcommon | xpowerpc | xpowerpc64 \
2304 | xpower | xpower2 | xpower3 | xpower4 \
2305 | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
2306 | x601 | x602 | x603 | x603e | x604 | x604e | x620 | x630 \
2307 | x740 | x750 | x7400 | x7450 | x505)
2308 target_cpu_default2="\\\"$with_cpu\\\""
2311 x401 | x403 | x405 | xec603e | x801 | x821 | x823 | x860)
2312 target_cpu_default2="\\\"$with_cpu\\\""
2316 echo "--with-cpu must be passed a value" 1>&2
2321 if test x$pass2done = xyes
2323 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2328 out_file=rs6000/rs6000.c
2329 c_target_objs="${c_target_objs} rs6000-c.o"
2330 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
2331 tmake_file="rs6000/t-rs6000 ${tmake_file}"
2334 case ".$with_cpu" in
2336 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2338 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
2339 target_cpu_default2="TARGET_CPU_$with_cpu"
2342 if test x$pass2done = xyes
2344 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2351 case "x$with_cpu" in
2355 target_cpu_default2="TARGET_CPU_$with_cpu"
2358 if test x$pass2done = xyes
2360 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2368 if test "$target_cpu_default2" != ""
2370 if test "$target_cpu_default" != ""
2372 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2374 target_cpu_default=$target_cpu_default2
2378 # Save data on machine being used to compile GCC in build_xm_file.
2379 # Save data on host machine in vars host_xm_file and host_xmake_file.
2380 if test x$pass1done = x
2382 if test x$xm_file != x
2383 then build_xm_file=$xm_file
2385 build_xm_defines=$xm_defines
2386 build_install_headers_dir=$install_headers_dir
2387 build_exeext=$exeext
2390 if test x$pass2done = x
2392 if test x$xm_file != x
2393 then host_xm_file=$xm_file
2395 host_xm_defines=$xm_defines
2396 host_xmake_file="$xmake_file"
2397 host_truncate_target=$truncate_target
2398 host_extra_gcc_objs=$extra_gcc_objs
2399 host_extra_objs=$extra_host_objs
2401 out_host_hook_obj=$host_hook_obj