1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify it under
7 #the terms of the GNU General Public License as published by the Free
8 #Software Foundation; either version 2, or (at your option) any later
11 #GCC is distributed in the hope that it will be useful, but WITHOUT
12 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING. If not, write to the Free
18 #Software Foundation, 59 Temple Place - Suite 330, Boston, MA
21 # This is the GCC build-, host- and target-specific configuration file
22 # where a configuration type, as recognized and generated by config.bfd,
23 # is mapped to different system-specific definitions and files. This is
24 # invoked by the autoconf-generated configure script, called for build,
25 # host and target in that order, setting ${machine} to each. Putting it
26 # in a separate shell file lets us skip running autoconf when modifying
27 # build-, host- and target-specific information.
29 # This file switches on the shell variable ${machine}, and also uses the
30 # following shell variables:
32 # with_* Various variables as set by configure.
34 # enable_threads_flag Either the name, yes or no depending on whether
35 # threads support was requested.
37 # gas_flag Either yes or no depending on whether GNU as was
40 # gnu_ld_flag Either yes or no depending on whether GNU ld was
43 # This file sets the following shell variables for use by the
44 # autoconf-generated configure script:
46 # cpu_type The name of the cpu, if different from machine.
48 # tm_file A list of target macro files, if different from
49 # "$cpu_type/$cpu_type.h". Usually it's constructed
50 # per target in a way like this:
51 # tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
52 # Note that the preferred order is:
53 # - specific target header "${cpu_type}/${cpu_type.h}"
54 # - generic headers like dbxelf.h elfos.h, netware.h, etc.
55 # - specializing target headers like ${cpu_type.h}/elf.h
56 # This helps to keep OS specific stuff out of the CPU
57 # defining header ${cpu_type}/${cpu_type.h}.
59 # tm_p_file Location of file with declarations for functions
62 # out_file The name of the machine description C support
63 # file, if different from "$cpu_type/$cpu_type.c".
65 # md_file The name of the machine-description file, if
66 # different from "$cpu_type/$cpu_type.md".
68 # tmake_file A list of machine-description-specific
69 # makefile-fragments, if different from
70 # "$cpu_type/t-$cpu_type".
72 # float_format Set to the symbolic name for the floating-point
73 # formats used for this machine, if different from
74 # "i64". Used to derive a header file name to
75 # include, like "vax" for "float-vax.h". If no such
76 # file is wanted, set to "none".
78 # extra_objs List of extra objects that should be linked into
79 # the compiler proper (cc1, cc1obj, cc1plus)
80 # depending on target.
82 # extra_headers List of used header files from the directory
85 # host_xmake_file List of host-specific makefile-fragments.
87 # extra_passes List of extra executables compiled for this target
88 # machine, used for compiling from source to object.
90 # extra_parts List of extra object files that should be compiled
91 # for this target machine.
93 # extra_programs Like extra_passes, but these are used when linking.
95 # host_extra_objs List of extra host-dependent objects that should
96 # be linked into the compiler proper.
98 # host_extra_gcc_objs List of extra host-dependent objects that should
99 # be linked into the gcc driver.
101 # c_target_objs List of extra target-dependent objects that be
102 # linked into the C compiler only.
104 # cxx_target_objs List of extra target-dependent objects that be
105 # linked into the C++ compiler only.
107 # build_xm_defines List of macros to define when compiling for the
110 # build_xm_file List of files to include when compiling for the
113 # host_xm_defines List of macros to define when compiling for the
116 # host_xm_file List of files to include when compiling for the
119 # xm_defines List of macros to define when compiling for the
122 # xm_file List of files to include when compiling for the
125 # use_collect2 Set to yes or no, depending on whether collect2
128 # target_cpu_default Set to override the default target model.
130 # build_install_headers_dir
131 # Target to use when installing header files.
133 # host_truncate_target
134 # Non-empty if the target name should be truncated
135 # on this host, due to filename length issues.
137 # gdb_needs_out_file_path
138 # Set to yes if gdb needs a dir command with
139 # `dirname $out_file`.
141 # build_exeext Set to the suffix, if the build machine requires
142 # executables to have a file name suffix.
144 # host_exeext Set to the suffix, if the host machine requires
145 # executables to have a file name suffix.
147 # thread_file Set to control which thread package to use.
149 # gas Set to yes or no depending on whether the target
150 # system normally uses GNU as.
152 # The following variables are used in each case-construct to build up the
153 # outgoing variables:
155 # xmake_file Makefile-fragment when this system is as a host,
156 # for host_xmake_file.
158 # extra_host_objs List of extra objects that should be linked into
159 # the compiler proper when this system is a host,
160 # for host_extra_objs.
162 # install_headers_dir Makefile-target for how the header file directory
163 # is installed, when this system is a build system,
164 # for build_install_headers_dir.
166 # truncate_target Non-empty if the target name should be truncated
167 # when this system is a host, due to filename length
168 # issues. For host_truncate_target.
170 # exeext The suffix for executables on this system.
172 # gnu_ld Set to yes or no depending on whether the target
173 # system normally uses GNU ld.
189 # Set this to force installation and use of collect2.
191 # Set this to override the default target model.
193 # Set this to control how the header file directory is installed.
194 install_headers_dir=install-headers-tar
195 # Set this if directory names should be truncated to 14 characters.
197 # Set this if gdb needs a dir command with `dirname $out_file`
198 gdb_needs_out_file_path=
199 # Set this if the build machine requires executables to have a
202 # Set this to control which thread package will be used.
204 # Reinitialize these from the flag values every loop pass, since some
205 # configure entries modify them.
207 gnu_ld="$gnu_ld_flag"
208 enable_threads=$enable_threads_flag
210 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
211 # updated in each machine entry. Also set default extra_headers for some
214 cpu_type=`echo $machine | sed 's/-.*$//'`
230 extra_headers=proto.h
234 extra_headers="mmintrin.h xmmintrin.h"
238 extra_headers="mmintrin.h xmmintrin.h"
241 extra_headers=ia64intrin.h
243 hppa*-*-* | parisc*-*-*)
248 extra_headers=math-68881.h
251 extra_headers=math-68881.h
261 extra_headers="ppc-asm.h altivec.h"
271 tm_file=${cpu_type}/${cpu_type}.h
272 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
274 tm_p_file=${cpu_type}/${cpu_type}-protos.h
279 tm_file="i386/biarch64.h ${tm_file}"
283 # On a.out targets, we need to use collect2.
290 # Common parts for GNU/Linux, GNU/Hurd, OpenBSD, NetBSD, and FreeBSD systems.
296 # On the Hurd, the setup is just about the same on
297 # each different CPU. The specific machines that we
298 # support are matched above and just set $cpu_type.
300 tm_file="${cpu_type}/gnu.h"
301 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
302 # GNU always uses ELF.
304 # GNU tools are the only tools.
307 # These details are the same as for Linux.
308 # But here we need a little extra magic.
309 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
312 tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
315 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}"
320 tm_file=${cpu_type}/openbsd.h
321 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
323 if test x$enable_threads = xyes; then
325 tmake_file="${tmake_file} t-openbsd-thread"
329 tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd"
334 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
335 # This is the place-holder for the generic a.out configuration
336 # of FreeBSD. No actual configuration resides here since
337 # there was only ever a bare-bones ix86 configuration for
338 # a.out and it exists solely in the machine-specific section.
339 # This place-holder must exist to avoid dropping into
340 # the generic ELF configuration of FreeBSD (i.e. it must be
341 # ordered before that section).
344 # This is the generic ELF configuration of FreeBSD. Later
345 # machine-specific sections may refine and add to this
348 # Due to tm_file entry ordering issues that vary between cpu
349 # architectures, we only define fbsd_tm_file to allow the
350 # machine-specific section to dictate the final order of all
351 # entries of tm_file with the minor exception that components
352 # of the tm_file set here will always be of the form:
354 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
356 # The machine-specific section should not tamper with this
357 # ordering but may order all other entries of tm_file as it
358 # pleases around the provided core setting.
361 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
363 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
364 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
365 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
366 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
367 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
369 tmake_file="t-slibgcc-elf-ver t-freebsd"
372 case x${enable_threads} in
373 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
374 x | xyes | xpthreads | xposix)
376 tmake_file="${tmake_file} t-freebsd-thread"
377 # Before 5.0, FreeBSD can't bind shared libraries to -lc
378 # when "optionally" threaded via weak pthread_* checks.
380 *-*-freebsd[34] | *-*-freebsd[34].*)
381 tmake_file="${tmake_file} t-slibgcc-nolc-override";;
384 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
386 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
391 # Support site-specific machine types.
393 rest=`echo $machine | sed -e "s/$cpu_type-//"`
394 tm_file=${cpu_type}/$rest.h
395 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
396 then xm_file=${cpu_type}/xm-$rest.h
398 if test -f $srcdir/config/${cpu_type}/x-$rest
399 then xmake_file=${cpu_type}/x-$rest
401 if test -f $srcdir/config/${cpu_type}/t-$rest
402 then tmake_file=${cpu_type}/t-$rest
406 # 1750a is only supported as a target.
407 case "$build,$host" in 1750a*,* | *,1750a* )
408 echo "*** $machine is only supported as a target" >&2
412 a29k-*-bsd* | a29k-*-sym1*)
413 tm_file="${tm_file} a29k/unix.h"
417 a29k-*-udi | a29k-*-coff)
418 tm_file="${tm_file} dbxcoff.h"
419 tmake_file=a29k/t-a29kbare
423 tm_file="a29k/a29k.h a29k/rtems.h rtems.h"
424 tmake_file="a29k/t-a29kbare t-rtems"
425 if test x$enable_threads = xyes; then
430 tm_file="${tm_file} dbxcoff.h a29k/vx29k.h"
431 tmake_file=a29k/t-vx29k
432 extra_parts="crtbegin.o crtend.o"
433 thread_file='vxworks'
435 a29k-*-*) # Default a29k environment.
440 tm_file="${tm_file} alpha/unicosmk.h"
442 # Don't include t-ieee for now because we don't support that yet
443 # tmake_file="alpha/t-ieee"
444 tmake_file="alpha/t-unicosmk"
447 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
449 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
450 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
452 # GAS + IEEE_CONFORMANT
453 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
456 xm_file="alpha/xm-alpha-interix.h"
457 tmake_file="alpha/t-alpha t-interix alpha/t-interix alpha/t-ieee"
458 if test x$enable_threads = xyes ; then
461 if test x$stabs = xyes ; then
462 tm_file="${tm_file} dbxcoff.h"
464 #prefix='$$INTERIX_ROOT'/usr/contrib
465 #local_prefix='$$INTERIX_ROOT'/usr/contrib
467 alpha*-*-linux*ecoff*)
468 echo "Configuration $machine no longer supported" 1>&2
471 alpha*-*-linux*libc1*)
472 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
473 target_cpu_default="MASK_GAS"
474 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtfm alpha/t-ieee"
475 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
477 if test x$enable_threads = xyes; then
482 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
483 target_cpu_default="MASK_GAS"
484 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
485 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
487 if test x$enable_threads = xyes; then
492 target_cpu_default="MASK_GAS"
493 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
496 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
497 target_cpu_default="MASK_GAS"
498 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
499 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
502 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
503 target_cpu_default="MASK_GAS"
504 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
505 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
509 tm_file="${cpu_type}/${cpu_type}.h ${tm_file}"
510 # default x-alpha is only appropriate for dec-osf.
511 target_cpu_default="MASK_GAS"
512 tmake_file="alpha/t-alpha alpha/t-ieee"
517 if test x$stabs = xyes
519 tm_file="${tm_file} dbx.h"
521 if test x$gas != xyes
523 extra_passes="mips-tfile mips-tdump"
526 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm"
527 extra_headers=va_list.h
530 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
533 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
536 tm_file="${tm_file} alpha/osf.h"
537 tmake_file="$tmake_file alpha/t-osf4"
538 # Some versions of OSF4 (specifically X4.0-9 296.7) have
539 # a broken tar, so we use cpio instead.
540 install_headers_dir=install-headers-cpio
543 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
544 tmake_file="$tmake_file alpha/t-osf4"
549 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
550 target_cpu_default=MASK_SUPPORT_ARCH
556 tm_file="${tm_file} dbx.h alpha/vxworks.h"
557 tmake_file="alpha/t-alpha alpha/t-ieee"
560 extra_passes="mips-tfile mips-tdump"
563 thread_file='vxworks'
567 tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
568 xm_file="alpha/xm-vms.h alpha/xm-vms64.h"
569 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
570 xmake_file=alpha/x-vms
572 # This removes the cpu type and manufacturer components and
573 # replaces "." with "_" in the operating system version.
574 case $host in *-*-*vms*)
575 target_alias=`echo $host \
576 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
579 install_headers_dir=install-headers-cp
585 tm_file="${tm_file} alpha/vms.h"
586 xm_file=alpha/xm-vms.h
587 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
588 xmake_file=alpha/x-vms
590 # This removes the cpu type and manufacturer components and
591 # replaces "." with "_" in the operating system version.
592 case $host in *-*-*vms*)
593 target_alias=`echo $host \
594 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
597 install_headers_dir=install-headers-cp
602 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
603 extra_parts="crtinit.o crtfini.o"
605 arm-*-coff* | armel-*-coff*)
606 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h"
607 tmake_file=arm/t-arm-coff
610 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/vxarm.h arm/arm.h"
611 tmake_file=arm/t-arm-coff
612 thread_file='vxworks'
614 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
615 tm_file="arm/riscix1-1.h arm/arm.h"
618 arm-*-riscix*) # Acorn RISC machine
621 tm_file="arm/riscix.h arm/rix-gas.h arm/arm.h"
623 tm_file="arm/riscix.h arm/arm.h"
625 tmake_file=arm/t-riscix
628 arm-semi-aout | armel-semi-aout)
629 tm_file="arm/semi.h arm/aout.h arm/arm.h"
630 tmake_file=arm/t-semi
632 arm-semi-aof | armel-semi-aof)
633 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
634 tmake_file=arm/t-semi
636 arm*-*-freebsd*|strongarm*-*-freebsd*)
637 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
638 tmake_file="${tmake_file} arm/t-strongarm-elf"
641 echo "GCC does not yet support the ${machine} target"; exit 1
644 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
645 tmake_file="t-netbsd arm/t-netbsd"
648 arm*-*-linux*) # ARM GNU/Linux with ELF
649 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"
650 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
651 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
653 case x${enable_threads} in
654 x | xyes | xpthreads | xposix)
659 arm*-*-uclinux*) # ARM ucLinux
660 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"
661 tmake_file=arm/t-arm-elf
664 tm_file="arm/aout.h arm/arm.h"
665 tmake_file=arm/t-arm-aout
668 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
669 tmake_file=arm/t-arm-elf
673 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"
674 tmake_file="arm/t-arm-elf t-rtems"
675 if test x$enable_threads = xyes; then
680 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
681 tmake_file=arm/t-arm-elf
684 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/conix-elf.h arm/aout.h arm/arm.h"
685 tmake_file=arm/t-arm-elf
688 tm_file="arm/unknown-elf-oabi.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
689 tmake_file=arm/t-arm-elf
692 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h"
698 c1-convex-*) # Convex C1
702 c2-convex-*) # Convex C2
715 target_cpu_default=16
720 tmake_file="c4x/t-c4x t-rtems"
721 tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
722 if test x$enable_threads = xyes; then
725 c_target_objs="c4x-c.o"
726 cxx_target_objs="c4x-c.o"
731 c_target_objs="c4x-c.o"
732 cxx_target_objs="c4x-c.o"
734 clipper-intergraph-clix*)
735 tm_file="${tm_file} svr3.h clipper/clix.h"
737 extra_parts="crtbegin.o crtend.o"
738 install_headers_dir=install-headers-cpio
741 tm_file="dbxelf.h ${tm_file} cris/aout.h"
743 tmake_file="cris/t-cris cris/t-aout"
745 cris-*-elf | cris-*-none)
746 tm_file="dbxelf.h elfos.h ${tm_file}"
747 tmake_file="cris/t-cris cris/t-elfmulti"
751 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
752 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
753 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
754 case x${enable_threads} in
755 x | xyes | xpthreads | xposix)
762 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
771 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
772 tmake_file=fr30/t-fr30
773 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
777 tmake_file="h8300/t-h8300 t-rtems"
778 tm_file="h8300/h8300.h h8300/rtems.h rtems.h"
779 if test x$enable_threads = xyes; then
785 tmake_file="h8300/t-h8300 h8300/t-elf"
786 tm_file="h8300/h8300.h h8300/elf.h"
792 hppa*64*-*-linux* | parisc*64*-*-linux*)
793 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
794 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
795 pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
796 tmake_file=pa/t-linux64
799 hppa*-*-linux* | parisc*-*-linux*)
800 target_cpu_default="MASK_PA_11"
801 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
802 pa/pa32-regs.h pa/pa32-linux.h"
803 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
804 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
806 if test x$enable_threads = xyes; then
811 target_cpu_default="MASK_PA_11"
815 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
816 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
817 tmake_file="pa/t-bsd pa/t-pro"
820 target_cpu_default="MASK_PA_11"
821 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
822 tmake_file="pa/t-bsd pa/t-pa"
827 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
828 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"
829 tmake_file="pa/t-bsd pa/t-pro"
832 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
833 tmake_file="pa/t-bsd pa/t-pa"
837 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
838 target_cpu_default="MASK_PA_11"
839 tmake_file="pa/t-bsd pa/t-pa"
843 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
844 tmake_file="pa/t-bsd pa/t-pa"
848 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
850 tmake_file=pa/t-pa-hpux
851 install_headers_dir=install-headers-cpio
854 hppa1.0-*-hpux8.0[0-2]*)
855 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
857 tmake_file=pa/t-pa-hpux
858 if test x$gas != xyes
860 tm_file="pa/pa-oldas.h ${tm_file}"
862 install_headers_dir=install-headers-cpio
865 hppa1.1-*-hpux8.0[0-2]*)
866 target_cpu_default="MASK_PA_11"
867 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
869 tmake_file=pa/t-pa-hpux
870 if test x$gas != xyes
872 tm_file="pa/pa-oldas.h ${tm_file}"
874 install_headers_dir=install-headers-cpio
878 target_cpu_default="MASK_PA_11"
879 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
881 tmake_file=pa/t-pa-hpux
882 install_headers_dir=install-headers-cpio
886 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
888 tmake_file=pa/t-pa-hpux
889 install_headers_dir=install-headers-cpio
892 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
893 target_cpu_default="MASK_PA_11"
894 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
897 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
898 if test x$enable_threads = x; then
899 enable_threads=$have_pthread_h
901 case x${enable_threads} in
903 tmake_file="${tmake_file} pa/t-dce-thr"
906 install_headers_dir=install-headers-cpio
910 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
913 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
914 if test x$enable_threads = x; then
915 enable_threads=$have_pthread_h
917 case x${enable_threads} in
919 tmake_file="${tmake_file} pa/t-dce-thr"
922 install_headers_dir=install-headers-cpio
927 tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
929 tmake_file="pa/t-pa64 pa/t-pa-hpux"
930 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
932 # if [ x$enable_threads = x ]; then
933 # enable_threads=$have_pthread_h
935 # if [ x$enable_threads = xyes ]; then
937 # tmake_file="${tmake_file} pa/t-dce-thr"
939 install_headers_dir=install-headers-cpio
942 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
943 target_cpu_default="MASK_PA_11"
944 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
947 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
948 # if test x$enable_threads = x; then
949 # enable_threads=$have_pthread_h
951 # if test x$enable_threads = xyes; then
953 # tmake_file="${tmake_file} pa/t-dce-thr"
955 install_headers_dir=install-headers-cpio
959 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
962 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
963 # if test x$enable_threads = x; then
964 # enable_threads=$have_pthread_h
966 # if test x$enable_threads = xyes; then
968 # tmake_file="${tmake_file} pa/t-dce-thr"
970 install_headers_dir=install-headers-cpio
973 hppa1.1-*-hpux* | hppa2*-*-hpux*)
974 target_cpu_default="MASK_PA_11"
975 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
977 tmake_file=pa/t-pa-hpux
978 install_headers_dir=install-headers-cpio
982 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
984 tmake_file=pa/t-pa-hpux
985 install_headers_dir=install-headers-cpio
988 hppa1.1-*-hiux* | hppa2*-*-hiux*)
989 target_cpu_default="MASK_PA_11"
990 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
992 tmake_file=pa/t-pa-hpux
993 install_headers_dir=install-headers-cpio
997 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
999 tmake_file=pa/t-pa-hpux
1000 install_headers_dir=install-headers-cpio
1004 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h"
1005 target_cpu_default="MASK_PA_11"
1006 tmake_file="pa/t-bsd pa/t-pa"
1010 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1011 tmake_file=pa/t-mpeix
1012 echo "You must use gas. Assuming it is already installed."
1014 install_headers_dir=install-headers-tar
1017 i370-*-opened*) # IBM 360/370/390 Architecture
1018 xm_defines='POSIX FATAL_EXIT_CODE=12'
1020 tmake_file="i370/t-oe i370/t-i370"
1021 c_target_objs="i370-c.o"
1022 cxx_target_objs="i370-c.o"
1025 xm_defines='POSIX FATAL_EXIT_CODE=12'
1027 tmake_file="i370/t-i370"
1028 c_target_objs="i370-c.o"
1029 cxx_target_objs="i370-c.o"
1032 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}"
1033 tmake_file="t-slibgcc-elf-ver t-linux"
1034 # broken_install=yes
1035 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1036 # extra_parts="crtbegin.o crtend.o"
1040 if test x$enable_threads = xyes; then
1044 i[34567]86-*-chorusos*)
1046 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h chorus.h"
1047 tmake_file="i386/t-i386elf t-svr4"
1048 case x${enable_threads} in
1049 xyes | xpthreads | xposix)
1056 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
1057 tmake_file="i386/t-i386elf t-svr4"
1059 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1060 if test x$gas = xyes
1062 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/aix386.h"
1063 extra_parts="crtbegin.o crtend.o"
1064 tmake_file=i386/t-crtstuff
1066 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/aix386ng.h"
1071 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1072 xm_defines="POSIX SMALL_ARG_MAX"
1073 if test x$stabs = xyes -a x$gas = xyes
1075 tm_file=i386/sysv4gdb.h
1077 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h"
1079 extra_parts="crtbegin.o crtend.o"
1080 tmake_file=i386/t-crtpic
1083 tm_p_file="${tm_p_file} nextstep-protos.h"
1084 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h nextstep.h i386/next.h"
1085 tmake_file=i386/t-next
1086 extra_objs=nextstep.o
1087 extra_parts="crtbegin.o crtend.o"
1088 if test x$enable_threads = xyes; then
1092 i[34567]86-*-netware) # Intel 80386's running netware
1093 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
1094 tmake_file=i386/t-netware
1096 i[34567]86-sequent-bsd*) # 80386 from Sequent
1098 if test x$gas = xyes
1100 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/sequent.h i386/seq-gas.h"
1102 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/sequent.h"
1105 i[34567]86-sequent-ptx1*)
1107 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h i386/seq-sysv3.h"
1108 tmake_file=i386/t-crtstuff
1109 extra_parts="crtbegin.o crtend.o"
1110 install_headers_dir=install-headers-cpio
1112 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1114 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h i386/seq-sysv3.h i386/seq2-sysv3.h"
1115 tmake_file=i386/t-crtstuff
1116 extra_parts="crtbegin.o crtend.o"
1117 install_headers_dir=install-headers-cpio
1119 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1120 if test x$gas = xyes
1122 tm_file="${tm_file} usegas.h"
1124 xm_defines="POSIX SMALL_ARG_MAX"
1125 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
1127 extra_parts="crtbegin.o crtend.o"
1128 install_headers_dir=install-headers-cpio
1130 i386-sun-sunos*) # Sun i386 roadrunner
1132 tm_file="${tm_file} i386/unix.h i386/sun386.h i386/sun.h"
1135 i[34567]86-wrs-vxworks*)
1136 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h i386/vxi386.h"
1137 thread_file='vxworks'
1140 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
1142 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1144 tmake_file='i386/t-beos i386/t-crtpic'
1145 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
1146 extra_parts='crtbegin.o crtend.o'
1148 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1149 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/386bsd.h i386/bsd386.h"
1150 # tmake_file=t-libc-ok
1153 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/386bsd.h"
1154 # tmake_file=t-libc-ok
1155 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1158 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1159 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
1160 tmake_file=t-freebsd
1162 i[34567]86-*-freebsd*)
1163 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
1166 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"
1168 i[34567]86-*-netbsdelf*)
1169 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
1172 i[34567]86-*-netbsd*)
1173 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
1178 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"
1181 i[34567]86-*-openbsd*)
1182 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}"
1183 # needed to unconfuse gdb
1184 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1185 # we need collect2 until our bug is fixed...
1189 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
1191 i[34567]86-*-isc*) # 80386 running ISC system
1193 if test x$gas = xyes -a x$stabs = xyes
1195 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h i386/iscdbx.h"
1196 tmake_file=i386/t-svr3dbx
1197 extra_parts="svr3.ifile svr3z.ifile"
1199 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h i386/isc.h"
1200 tmake_file=i386/t-crtstuff
1201 extra_parts="crtbegin.o crtend.o"
1203 install_headers_dir=install-headers-cpio
1205 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1206 # with a.out format using
1208 tmake_file="t-linux-aout i386/t-crtstuff"
1209 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-oldld.h"
1213 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1215 tmake_file="t-linux-aout i386/t-crtstuff"
1216 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
1220 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1221 # with ELF format using the
1222 # GNU/Linux C library 5
1223 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1224 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1225 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1228 if test x$enable_threads = xyes; then
1229 thread_file='single'
1232 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1233 # with ELF format using glibc 2
1234 # aka GNU/Linux C library 6
1235 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1236 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1237 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1240 if test x$enable_threads = xyes; then
1245 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1246 i386/x86-64.h i386/linux64.h"
1247 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff i386/t-linux64"
1248 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1251 if test x$enable_threads = xyes; then
1258 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1259 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1262 i[34567]86-pc-msdosdjgpp*)
1263 xm_file=i386/xm-djgpp.h
1264 tm_file="dbxcoff.h ${tm_file} i386/djgpp.h"
1265 tmake_file=i386/t-djgpp
1270 case $host in *pc-msdosdjgpp*)
1275 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1276 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1277 tmake_file=t-libc-ok
1281 i[34567]86-*-lynxos*)
1282 if test x$gas = xyes
1284 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx.h i386/lynx.h"
1286 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
1290 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
1291 # tmake_file=t-libc-ok
1294 i[34567]86-*-osfrose*) # 386 using OSF/rose
1295 if test x$elf = xyes
1297 tm_file="${tm_file} halfpic.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/osfrose.h i386/osfelf.h"
1300 tm_file="${tm_file} halfpic.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/osfrose.h"
1303 tmake_file=i386/t-osf
1304 extra_objs=halfpic.o
1306 i[34567]86-go32-rtems*)
1308 tm_file="dbxcoff.h ${tm_file} i386/djgpp.h i386/djgpp-rtems.h rtems.h"
1310 if test x$enable_threads = xyes; then
1314 i[34567]86-*-rtemscoff*)
1316 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h i386/rtems.h rtems.h"
1318 if test x$enable_threads = xyes; then
1322 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1324 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
1325 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1326 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1327 if test x$enable_threads = xyes; then
1331 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1333 install_headers_dir=install-headers-cpio
1334 tm_file="${tm_file} i386/unix.h i386/att.h i386/sco5.h"
1335 if test x$gas = xyes
1337 tm_file="usegas.h ${tm_file}"
1338 tmake_file=i386/t-sco5gas
1340 tmake_file=i386/t-sco5
1342 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1344 i[34567]86-*-solaris2*)
1345 xm_defines="POSIX SMALL_ARG_MAX"
1346 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sol2.h"
1347 if test x$gas = xyes; then
1348 tm_file="i386/sol2gas.h ${tm_file}"
1350 tmake_file="i386/t-sol2 t-svr4"
1351 if test x$gnu_ld = xyes; then
1352 tmake_file="$tmake_file t-slibgcc-elf-ver"
1354 tmake_file="$tmake_file t-slibgcc-sld"
1356 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1357 if test x${enable_threads} = x; then
1358 enable_threads=$have_pthread_h
1359 if test x${enable_threads} = x; then
1360 enable_threads=$have_thread_h
1363 if test x${enable_threads} = xyes; then
1364 if test x${have_pthread_h} = xyes; then
1367 thread_file='solaris'
1371 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1373 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1374 if test x$stabs = xyes
1376 tm_file="${tm_file} dbx.h"
1378 tmake_file="i386/t-crtpic t-svr4"
1379 extra_parts="crtbegin.o crtend.o"
1380 if test x$enable_threads = xyes; then
1384 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1385 xm_defines="POSIX SMALL_ARG_MAX"
1386 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h"
1387 if test x$stabs = xyes
1389 tm_file="${tm_file} dbx.h"
1391 tmake_file="i386/t-crtpic t-svr4"
1392 extra_parts="crtbegin.o crtend.o"
1394 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1396 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"
1397 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1398 extra_parts="crtbegin.o crtend.o"
1399 install_headers_dir=install-headers-cpio
1401 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1402 xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1403 if test x$stabs = xyes
1405 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/osf1elf.h i386/osf1elfgdb.h"
1407 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/osf1elf.h"
1409 tmake_file=i386/t-osf1elf
1410 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1412 i[34567]86-*-sysv*) # Intel 80386's running system V
1414 if test x$gas = xyes
1416 if test x$stabs = xyes
1418 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
1419 tmake_file=i386/t-svr3dbx
1420 extra_parts="svr3.ifile svr3z.rfile"
1422 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
1423 extra_parts="crtbegin.o crtend.o"
1424 tmake_file=i386/t-crtstuff
1427 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
1428 extra_parts="crtbegin.o crtend.o"
1429 tmake_file=i386/t-crtstuff
1431 tmake_file="$tmake_file i386/t-crtpic"
1433 i386-*-vsta) # Intel 80386's running VSTa kernel
1434 xm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/xm-vsta.h"
1435 tm_file="${tm_file} i386/vsta.h"
1439 xm_file=i386/xm-cygwin.h
1441 tmake_file=i386/t-cygwin
1442 tm_file="${tm_file} i386/win32.h"
1444 if test x$enable_threads = xyes; then
1449 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1451 xm_file=i386/xm-cygwin.h
1453 tmake_file=i386/t-cygwin
1454 tm_file=i386/cygwin.h
1456 if test x$enable_threads = xyes; then
1461 i[34567]86-*-mingw32*)
1462 tm_file=i386/mingw32.h
1465 xm_file=i386/xm-mingw32.h
1466 tmake_file="i386/t-cygwin i386/t-mingw32"
1468 if test x$enable_threads = xyes; then
1474 tm_file="${tm_file} i386/crtdll.h"
1476 *minwg32msv* | *mingw32*)
1481 tm_file="i386/cygwin.h i386/uwin.h"
1482 tmake_file="i386/t-cygwin i386/t-uwin"
1484 if test x$enable_threads = xyes; then
1489 i[34567]86-*-interix3*)
1490 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"
1491 xm_file="i386/xm-i386-interix.h"
1493 tmake_file="t-interix i386/t-interix"
1494 extra_objs=interix.o
1495 xmake_file="x-interix"
1496 if test x$enable_threads = xyes ; then
1499 if test x$stabs = xyes ; then
1500 tm_file="${tm_file} dbxcoff.h"
1503 i[34567]86-*-interix*)
1504 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
1505 xm_file="i386/xm-i386-interix.h"
1507 tmake_file="t-interix i386/t-interix"
1508 extra_objs=interix.o
1509 if test x$enable_threads = xyes ; then
1512 if test x$stabs = xyes ; then
1513 tm_file="${tm_file} dbxcoff.h"
1516 i[34567]86-dg-dgux*)
1518 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/dgux.h"
1519 tmake_file=i386/t-dgux
1520 install_headers_dir=install-headers-cpio
1522 i860-alliant-*) # Alliant FX/2800
1523 tm_file="${tm_file} dbxelf.h elfos.h svr4.h i860/sysv4.h i860/fx2800.h"
1524 tmake_file=i860/t-fx2800
1525 extra_parts="crtbegin.o crtend.o"
1528 tm_file="${tm_file} i860/bsd.h"
1529 if test x$gas = xyes
1531 tm_file="${tm_file} i860/bsd-gas.h"
1536 tm_file="${tm_file} i860/mach.h"
1537 tmake_file=t-libc-ok
1539 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1540 tm_file="${tm_file} svr3.h i860/paragon.h"
1544 tm_file="${tm_file} svr3.h i860/sysv3.h"
1546 extra_parts="crtbegin.o crtend.o"
1549 tm_file="${tm_file} dbxelf.h elfos.h svr4.h i860/sysv4.h"
1552 extra_parts="crtbegin.o crtend.o"
1554 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1555 tm_file="${tm_file} i960/vx960.h"
1556 tmake_file=i960/t-vxworks960
1558 thread_file='vxworks'
1559 c_target_objs="i960-c.o"
1560 cxx_target_objs="i960-c.o"
1562 i960-wrs-vxworks5* | i960-wrs-vxworks)
1563 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1564 tmake_file=i960/t-vxworks960
1566 thread_file='vxworks'
1567 c_target_objs="i960-c.o"
1568 cxx_target_objs="i960-c.o"
1571 tm_file="${tm_file} i960/vx960.h"
1572 tmake_file=i960/t-vxworks960
1574 thread_file='vxworks'
1575 c_target_objs="i960-c.o"
1576 cxx_target_objs="i960-c.o"
1579 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1580 tmake_file=i960/t-960bare
1581 c_target_objs="i960-c.o"
1582 cxx_target_objs="i960-c.o"
1586 tmake_file="i960/t-960bare t-rtems"
1587 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1588 if test x$enable_threads = xyes; then
1591 c_target_objs="i960-c.o"
1592 cxx_target_objs="i960-c.o"
1594 i960-*-*) # Default i960 environment.
1596 tmake_file=i960/t-960bare
1597 c_target_objs="i960-c.o"
1598 cxx_target_objs="i960-c.o"
1601 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/aix.h"
1602 tmake_file="ia64/t-ia64 ia64/t-aix"
1603 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1606 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1607 tmake_file="ia64/t-ia64"
1608 target_cpu_default="0"
1609 if test x$gas = xyes
1611 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1613 if test x$gnu_ld = xyes
1615 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1620 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1621 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1622 tmake_file="${tmake_file} ia64/t-ia64"
1626 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1627 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1628 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1629 if test x$enable_threads = xyes; then
1635 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1636 tmake_file="ia64/t-ia64 ia64/t-hpux"
1637 target_cpu_default="MASK_GNU_AS"
1638 if test x$enable_threads = xyes; then
1644 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1645 extra_parts="crtinit.o crtfini.o"
1647 # m68hc11 and m68hc12 share the same machine description.
1648 m68hc11-*-*|m6811-*-*)
1649 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1650 tm_p_file="m68hc11/m68hc11-protos.h"
1651 md_file="m68hc11/m68hc11.md"
1652 out_file="m68hc11/m68hc11.c"
1653 tmake_file="m68hc11/t-m68hc11-gas"
1655 m68hc12-*-*|m6812-*-*)
1656 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1657 tm_p_file="m68hc11/m68hc11-protos.h"
1658 md_file="m68hc11/m68hc11.md"
1659 out_file="m68hc11/m68hc11.c"
1660 tmake_file="m68hc11/t-m68hc11-gas"
1662 m68000-convergent-sysv*)
1667 m68000-hp-bsd*) # HP 9000/200 running BSD
1668 tm_file=m68k/hp2bsd.h
1671 m68000-hp-hpux*) # HP 9000 series 300
1673 if test x$gas = xyes
1675 tm_file=m68k/hp310g.h
1677 tm_file=m68k/hp310.h
1679 tmake_file=m68k/t-hp320
1680 install_headers_dir=install-headers-cpio
1688 tm_file=m68k/sun2o4.h
1693 if test x$gas = xyes
1701 m68k-apple-aux*) # Apple Macintosh running A/UX
1703 tmake_file=m68k/t-aux
1704 install_headers_dir=install-headers-cpio
1705 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1707 if test "$gnu_ld" = yes
1709 tm_file="${tm_file} m68k/auxgld.h"
1711 tm_file="${tm_file} m68k/auxld.h"
1713 if test "$gas" = yes
1715 tm_file="${tm_file} m68k/auxgas.h"
1717 tm_file="${tm_file} m68k/auxas.h"
1719 tm_file="${tm_file} m68k/a-ux.h"
1723 tm_file=m68k/apollo68.h
1727 m68k-altos-sysv*) # Altos 3068
1728 if test x$gas = xyes
1730 tm_file=m68k/altos3068.h
1733 echo "The Altos is supported only with the GNU assembler" 1>&2
1737 m68k-bull-sysv*) # Bull DPX/2
1738 if test x$gas = xyes
1740 if test x$stabs = xyes
1742 tm_file=m68k/dpx2cdbx.h
1744 tm_file=m68k/dpx2g.h
1752 m68k-atari-sysv4*) # Atari variant of V.4.
1753 tm_file=m68k/atari.h
1756 extra_parts="crtbegin.o crtend.o"
1759 m68k-motorola-sysv*)
1760 tm_file=m68k/mot3300.h
1762 if test x$gas = xyes
1764 if test x$gnu_ld = xyes
1766 tmake_file=m68k/t-mot3300-gald
1768 tmake_file=m68k/t-mot3300-gas
1772 if test x$gnu_ld = xyes
1774 tmake_file=m68k/t-mot3300-gld
1776 tmake_file=m68k/t-mot3300
1780 gdb_needs_out_file_path=yes
1781 extra_parts="crt0.o mcrt0.o"
1784 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1785 tm_file=m68k/tower-as.h
1787 extra_parts="crtbegin.o crtend.o"
1790 tm_file=m68k/plexus.h
1803 m68k-cbm-sysv4*) # Commodore variant of V.4.
1807 extra_parts="crtbegin.o crtend.o"
1811 tm_file=m68k/ccur-GAS.h
1815 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1816 tm_file=m68k/hp3bsd44.h
1820 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1821 tm_file=m68k/hp3bsd.h
1826 if test x$with_fp = xno
1828 tm_file=m68k/isi-nfp.h
1835 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1837 if test x$gas = xyes
1839 xmake_file=m68k/x-hp320g
1840 tm_file=m68k/hp320g.h
1842 xmake_file=m68k/x-hp320
1843 tm_file=m68k/hpux7.h
1845 install_headers_dir=install-headers-cpio
1849 m68k-hp-hpux*) # HP 9000 series 300
1851 if test x$gas = xyes
1853 xmake_file=m68k/x-hp320g
1854 tm_file=m68k/hp320g.h
1856 xmake_file=m68k/x-hp320
1857 tm_file=m68k/hp320.h
1859 install_headers_dir=install-headers-cpio
1864 tm_file=m68k/sun3mach.h
1869 if test x$gas = xyes
1871 tm_file=m68k/news3gas.h
1873 tm_file=m68k/news3.h
1878 m68k-sony-bsd* | m68k-sony-newsos*)
1879 if test x$gas = xyes
1881 tm_file=m68k/newsgas.h
1888 m68k-next-nextstep2*)
1889 tm_p_file="${tm_p_file} nextstep-protos.h"
1890 tm_file=m68k/next21.h
1891 tmake_file=m68k/t-next
1892 xmake_file=m68k/x-next
1893 extra_objs=nextstep.o
1897 m68k-next-nextstep[34]*)
1898 tm_p_file="${tm_p_file} nextstep-protos.h"
1900 tmake_file=m68k/t-next
1901 xmake_file=m68k/x-next
1902 extra_objs=nextstep.o
1903 extra_parts="crtbegin.o crtend.o"
1905 if test x$enable_threads = xyes; then
1910 if test x$with_fp = xno
1912 tm_file=m68k/sun3n3.h
1914 tm_file=m68k/sun3o3.h
1919 m68k-sun-sunos*) # For SunOS 4 (the default).
1920 if test x$with_fp = xno
1922 tm_file=m68k/sun3n.h
1930 tm_file=m68k/vxm68k.h
1931 tmake_file=m68k/t-vxworks68
1932 thread_file='vxworks'
1936 tmake_file=m68k/t-m68kbare
1937 tm_file="m68k/m68k-aout.h libgloss.h"
1941 tmake_file=m68k/t-m68kbare
1942 tm_file="m68k/m68k-coff.h dbx.h"
1945 m68020-*-elf* | m68k-*-elf*)
1946 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1948 tmake_file=m68k/t-m68kelf
1949 extra_parts="crtbegin.o crtend.o"
1952 if test x$gas = xyes
1956 tm_file=m68k/lynx-ng.h
1958 tmake_file=m68k/t-lynx
1961 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1962 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1965 target_cpu_default="0"
1968 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1974 tm_file=m68k/netbsd.h
1980 # needed to unconfuse gdb
1981 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1983 # we need collect2 until our bug is fixed...
1986 m68k-*-sysv3*) # Motorola m68k's running system V.3
1988 extra_parts="crtbegin.o crtend.o"
1991 m68k-*-sysv4*) # Motorola m68k's running system V.4
1992 tm_file=m68k/m68kv4.h
1995 extra_parts="crtbegin.o crtend.o"
1998 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2000 tm_file=m68k/linux-aout.h
2001 tmake_file="t-linux-aout m68k/t-linux-aout"
2005 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2006 # with ELF format using the
2007 # GNU/Linux C library 5
2008 tm_file=m68k/linux.h
2009 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
2010 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2014 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2015 # with ELF format using glibc 2
2016 # aka the GNU/Linux C library 6.
2017 tm_file=m68k/linux.h
2018 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
2019 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2022 if test x$enable_threads = xyes; then
2027 tmake_file=m68k/t-m68kbare
2028 tm_file=m68k/m68k-psos.h
2033 tmake_file="m68k/t-m68kbare t-rtems"
2034 tm_file="m68k/m68k-coff.h m68k/rtems.h rtems.h"
2036 if test x$enable_threads = xyes; then
2040 m68k-*-rtemself*|m68k-*-rtems*)
2042 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2043 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"
2045 extra_parts="crtbegin.o crtend.o"
2046 if test x$enable_threads = xyes; then
2054 tm_file="dbxelf.h elfos.h svr4.h m88k/dgux.h m88k/dguxbcs.h"
2055 tmake_file="m88k/t-dgux m88k/t-dguxbcs"
2058 tm_file="dbxelf.h elfos.h svr4.h m88k/dgux.h"
2059 tmake_file=m88k/t-dgux
2062 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2063 if test x$gas = xyes
2065 tmake_file=m88k/t-dgux-gas
2068 m88k-dolphin-sysv3*)
2070 tm_file=m88k/dolph.h
2071 extra_parts="crtbegin.o crtend.o"
2072 tmake_file=m88k/t-dolph
2073 if test x$gas = xyes
2075 tmake_file=m88k/t-m88k-gas
2078 m88k-tektronix-sysv3)
2080 tm_file=m88k/tekXD88.h
2081 extra_parts="crtbegin.o crtend.o"
2082 tmake_file=m88k/t-tekXD88
2083 if test x$gas = xyes
2085 tmake_file=m88k/t-m88k-gas
2090 tm_file=m88k/m88k-aout.h
2094 tm_file=m88k/m88k-coff.h
2095 tmake_file=m88k/t-bug
2099 extra_parts="crtbegin.o crtend.o"
2100 if test x$gas = xyes
2102 tmake_file=m88k/t-luna-gas
2104 tmake_file=m88k/t-luna
2108 tmake_file="${tmake_file} m88k/t-luna-gas"
2109 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2113 tm_file=m88k/sysv3.h
2114 extra_parts="crtbegin.o crtend.o"
2115 if test x$gas = xyes
2117 tmake_file=m88k/t-m88k-gas
2122 tm_file="dbxelf.h elfos.h svr4.h m88k/sysv4.h"
2123 extra_parts="crtbegin.o crtend.o"
2124 tmake_file=m88k/t-sysv4
2127 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
2128 tmake_file=mcore/t-mcore
2131 tm_file=mcore/mcore-pe.h
2132 tmake_file=mcore/t-mcore-pe
2134 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2135 if test "x$gnu_ld" = xyes
2137 tm_file="mips/iris6.h mips/iris6gld.h"
2139 tm_file=mips/iris6.h
2141 tmake_file="mips/t-iris mips/t-iris6"
2143 # if test x$enable_threads = xyes; then
2144 # thread_file='irix'
2148 tm_file="mips/elf.h mips/vxworks.h"
2149 tmake_file=mips/t-ecoff
2152 extra_parts="crtbegin.o crtend.o"
2153 thread_file='vxworks'
2155 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2156 tm_file="mips/iris6.h mips/cross64.h"
2158 xm_file=mips/xm-iris5.h
2159 tmake_file="mips/t-iris mips/t-cross64"
2160 # See comment in mips/iris[56].h files.
2162 # if test x$enable_threads = xyes; then
2163 # thread_file='irix'
2167 if test x$gas = xyes
2169 if test x$stabs = xyes
2171 tm_file=mips/iris5gdb.h
2173 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2176 tm_file=mips/sni-svr4.h
2179 if test x$gnu_ld != xyes
2184 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2185 if test x$gas = xyes
2187 tm_file="mips/iris5.h mips/iris5gas.h"
2188 if test x$stabs = xyes
2190 tm_file="${tm_file} dbx.h"
2193 tm_file=mips/iris5.h
2195 tmake_file=mips/t-iris
2197 xm_file=mips/xm-iris5.h
2198 # mips-tfile doesn't work yet
2199 # See comment in mips/iris5.h file.
2201 # if test x$enable_threads = xyes; then
2202 # thread_file='irix'
2205 mips-sgi-irix4loser*) # Mostly like a MIPS.
2206 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2207 if test x$stabs = xyes; then
2208 tm_file="${tm_file} dbx.h"
2210 tmake_file=mips/t-iris
2212 if test x$gas = xyes
2215 extra_passes="mips-tfile mips-tdump"
2217 if test x$gnu_ld != xyes
2221 # if test x$enable_threads = xyes; then
2222 # thread_file='irix'
2225 mips-sgi-irix4*) # Mostly like a MIPS.
2226 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2227 if test x$stabs = xyes; then
2228 tm_file="${tm_file} dbx.h"
2230 tmake_file=mips/t-iris
2232 if test x$gas = xyes
2235 extra_passes="mips-tfile mips-tdump"
2237 if test x$gnu_ld != xyes
2241 # if test x$enable_threads = xyes; then
2242 # thread_file='irix'
2245 mips-sgi-*) # Mostly like a MIPS.
2246 tm_file="mips/iris3.h ${tm_file}"
2247 if test x$stabs = xyes; then
2248 tm_file="${tm_file} dbx.h"
2251 if test x$gas = xyes
2254 extra_passes="mips-tfile mips-tdump"
2256 if test x$gnu_ld != xyes
2261 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2262 tm_file="mips/osfrose.h ${tm_file}"
2263 extra_objs=halfpic.o
2266 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2267 tm_file=mips/dec-osf1.h
2268 if test x$stabs = xyes; then
2269 tm_file="${tm_file} dbx.h"
2271 if test x$gas = xyes
2274 tmake_file=mips/t-ultrix
2275 extra_passes="mips-tfile mips-tdump"
2277 if test x$gnu_ld != xyes
2282 mips-dec-bsd*) # Decstation running 4.4 BSD
2283 tm_file=mips/dec-bsd.h
2284 if test x$gas = xyes
2287 tmake_file=mips/t-ultrix
2288 extra_passes="mips-tfile mips-tdump"
2290 if test x$gnu_ld != xyes
2295 mips*-*-netbsd*) # NetBSD/mips, either endian.
2296 tm_file="elfos.h mips/netbsd.h"
2299 tm_file="mips/little.h $tm_file"
2303 mips*-*-linux*) # Linux MIPS, either endian.
2304 tm_file="dbxelf.h elfos.h svr4.h linux.h mips/linux.h"
2307 tm_file="$tm_file mips/isa32-linux.h"
2308 target_cpu_default="MASK_SOFT_FLOAT"
2313 tm_file="mips/little.h $tm_file"
2316 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux"
2317 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
2320 if test x$enable_threads = xyes; then
2324 mips*el-*-openbsd*) # mips little endian
2325 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2327 mips*-*-openbsd*) # mips big endian
2328 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2329 tm_file="mips/openbsd-be.h ${tm_file}"
2331 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2332 tm_file="mips/news4.h ${tm_file}"
2333 if test x$stabs = xyes; then
2334 tm_file="${tm_file} dbx.h"
2336 if test x$gas = xyes
2339 extra_passes="mips-tfile mips-tdump"
2341 if test x$gnu_ld != xyes
2346 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2347 # That is based on svr4.
2348 # t-svr4 is not right because this system doesn't use ELF.
2349 tm_file="mips/news5.h ${tm_file}"
2350 if test x$stabs = xyes; then
2351 tm_file="${tm_file} dbx.h"
2354 if test x$gas = xyes
2357 extra_passes="mips-tfile mips-tdump"
2359 if test x$gnu_ld != xyes
2364 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2365 tm_file="mips/svr4-5.h mips/svr4-t.h"
2366 if test x$stabs = xyes; then
2367 tm_file="${tm_file} dbx.h"
2370 if test x$gas = xyes
2372 extra_parts="crtbegin.o crtend.o"
2374 extra_passes="mips-tfile mips-tdump"
2376 if test x$gnu_ld != xyes
2381 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2382 tm_file="mips/ultrix.h ${tm_file}"
2383 if test x$stabs = xyes; then
2384 tm_file="${tm_file} dbx.h"
2386 if test x$gas = xyes
2389 tmake_file=mips/t-ultrix
2390 extra_passes="mips-tfile mips-tdump"
2392 if test x$gnu_ld != xyes
2397 mips-*-riscos[56789]bsd*)
2398 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2399 if test x$stabs = xyes; then
2400 tm_file="${tm_file} dbx.h"
2402 if test x$gas = xyes
2404 tmake_file=mips/t-bsd-gas
2406 tmake_file=mips/t-bsd
2407 extra_passes="mips-tfile mips-tdump"
2409 if test x$gnu_ld != xyes
2414 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2415 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2416 if test x$stabs = xyes; then
2417 tm_file="${tm_file} dbx.h"
2419 if test x$gas = xyes
2421 tmake_file=mips/t-bsd-gas
2423 tmake_file=mips/t-bsd
2424 extra_passes="mips-tfile mips-tdump"
2426 if test x$gnu_ld != xyes
2431 mips-*-riscos[56789]sysv4*)
2432 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2433 if test x$stabs = xyes; then
2434 tm_file="${tm_file} dbx.h"
2436 if test x$gas = xyes
2438 tmake_file=mips/t-svr4-gas
2440 tmake_file=mips/t-svr4
2441 extra_passes="mips-tfile mips-tdump"
2443 if test x$gnu_ld != xyes
2448 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2449 tm_file="mips/svr4-4.h ${tm_file}"
2450 if test x$stabs = xyes; then
2451 tm_file="${tm_file} dbx.h"
2454 if test x$gas = xyes
2456 tmake_file=mips/t-svr4-gas
2458 tmake_file=mips/t-svr4
2459 extra_passes="mips-tfile mips-tdump"
2461 if test x$gnu_ld != xyes
2466 mips-*-riscos[56789]sysv*)
2467 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2468 if test x$stabs = xyes; then
2469 tm_file="${tm_file} dbx.h"
2472 if test x$gas = xyes
2474 tmake_file=mips/t-svr3-gas
2476 tmake_file=mips/t-svr3
2477 extra_passes="mips-tfile mips-tdump"
2479 if test x$gnu_ld != xyes
2484 mips-*-sysv* | mips-*-riscos*sysv*)
2485 tm_file="mips/svr3-4.h ${tm_file}"
2486 if test x$stabs = xyes; then
2487 tm_file="${tm_file} dbx.h"
2490 if test x$gas = xyes
2492 tmake_file=mips/t-svr3-gas
2494 tmake_file=mips/t-svr3
2495 extra_passes="mips-tfile mips-tdump"
2497 if test x$gnu_ld != xyes
2502 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2503 tm_file=mips/mips-5.h
2504 if test x$stabs = xyes; then
2505 tm_file="${tm_file} dbx.h"
2507 if test x$gas = xyes
2510 extra_passes="mips-tfile mips-tdump"
2512 if test x$gnu_ld != xyes
2518 tm_file=mips/ecoffl.h
2519 if test x$stabs = xyes; then
2520 tm_file="${tm_file} dbx.h"
2522 tmake_file=mips/t-ecoff
2525 tm_file="gofast.h mips/ecoff.h"
2526 if test x$stabs = xyes; then
2527 tm_file="${tm_file} dbx.h"
2529 tmake_file=mips/t-ecoff
2532 tm_file="mips/isa3264.h mips/abi64.h"
2533 tmake_file=mips/t-isa3264
2534 target_cpu_default="MASK_SOFT_FLOAT"
2537 tm_file="mips/elfl.h"
2538 tmake_file=mips/t-elf
2541 tm_file="mips/elf.h"
2542 tmake_file=mips/t-elf
2545 tm_file="mips/elfl64.h"
2546 tmake_file=mips/t-elf
2548 mips64orionel-*-elf*)
2549 tm_file="mips/elforion.h mips/elfl64.h"
2550 tmake_file=mips/t-elf
2553 tm_file="mips/elf64.h"
2554 tmake_file=mips/t-elf
2557 tm_file="mips/elforion.h mips/elf64.h"
2558 tmake_file=mips/t-elf
2560 mips64orion-*-rtems*)
2562 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h rtems.h"
2563 tmake_file="mips/t-elf t-rtems"
2564 if test x$enable_threads = xyes; then
2570 tm_file="mips/elf.h mips/rtems.h rtems.h"
2571 tmake_file="mips/t-elf t-rtems"
2572 if test x$enable_threads = xyes; then
2577 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2578 tmake_file=mips/t-r3900
2579 target_cpu_default="MASK_SOFT_FLOAT"
2582 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2583 tmake_file=mips/t-r3900
2585 mips-*-*) # Default MIPS RISC-OS 4.0.
2586 if test x$stabs = xyes; then
2587 tm_file="${tm_file} dbx.h"
2589 if test x$gas = xyes
2592 extra_passes="mips-tfile mips-tdump"
2594 if test x$gnu_ld != xyes
2599 mmix-knuth-mmixware)
2603 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2604 if test x$stabs = xyes
2606 tm_file="${tm_file} dbx.h"
2611 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2612 if test x$stabs = xyes
2614 tm_file="${tm_file} dbx.h"
2619 tm_file=ns32k/encore.h
2623 tm_file=ns32k/sequent.h
2627 tm_file=ns32k/tek6100.h
2631 tm_file=ns32k/tek6200.h
2635 tm_file=ns32k/merlin.h
2639 tm_file=ns32k/pc532-mach.h
2643 tm_file=ns32k/pc532-min.h
2644 xm_defines='POSIX HZ=60'
2648 echo "GCC does not yet support the ${machine} target"; exit 1
2651 tm_file=ns32k/netbsd.h
2652 # On NetBSD, the headers are already okay, except for math.h.
2657 tm_file="${tm_file} pdp11/2bsd.h"
2667 tm_file="dbxelf.h elfos.h svr4.h pj/linux.h ${tm_file}"
2672 tm_file="dbxelf.h elfos.h svr4.h pj/pjl.h ${tm_file}"
2685 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2689 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h"
2690 out_file=rs6000/rs6000.c
2691 tmake_file="rs6000/t-rs6000 t-slibgcc-elf-ver t-linux rs6000/t-linux64"
2694 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"
2695 out_file=rs6000/rs6000.c
2696 tmake_file="rs6000/t-rs6000 t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
2699 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
2701 tmake_file=rs6000/t-beos
2705 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2706 tm_p_file="${tm_p_file} darwin-protos.h"
2707 tmake_file=rs6000/t-darwin
2708 extra_objs="darwin.o"
2709 c_target_objs="darwin-c.o"
2710 cxx_target_objs="darwin-c.o"
2711 # Darwin linker does collect2 functionality
2713 extra_headers=altivec.h
2715 powerpc*-*-freebsd*)
2716 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
2717 xm_file=rs6000/xm-sysv4.h
2718 out_file=rs6000/rs6000.c
2719 tmake_file="rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
2722 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2724 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2727 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
2728 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2730 powerpc-*-chorusos*)
2732 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
2733 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2734 case x${enable_threads} in
2735 xyes | xpthreads | xposix)
2742 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2743 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2745 powerpc-*-eabisimaltivec*)
2747 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"
2748 tmake_file="rs6000/t-ppcendian rs6000/t-ppccomm"
2752 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2753 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2757 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2758 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2760 powerpc-*-eabialtivec*)
2762 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
2763 tmake_file="rs6000/t-ppcendian rs6000/t-ppccomm"
2767 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
2768 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2772 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
2773 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2774 if test x$enable_threads = xyes; then
2778 powerpc-*-linux*libc1)
2779 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2780 out_file=rs6000/rs6000.c
2781 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2782 if test x$enable_threads = xyes; then
2786 powerpc-*-linux-gnualtivec*)
2787 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
2788 out_file=rs6000/rs6000.c
2789 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2790 if test x$enable_threads = xyes; then
2795 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2796 out_file=rs6000/rs6000.c
2797 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2798 if test x$enable_threads = xyes; then
2802 powerpc-*-gnu-gnualtivec*)
2803 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"
2804 out_file=rs6000/rs6000.c
2805 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
2806 if test x$enable_threads = xyes; then
2811 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"
2812 out_file=rs6000/rs6000.c
2813 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
2814 if test x$enable_threads = xyes; then
2818 powerpc-wrs-vxworks*)
2820 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/vxppc.h"
2821 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2822 thread_file='vxworks'
2824 powerpcle-wrs-vxworks*)
2826 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2827 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2828 thread_file='vxworks'
2831 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2833 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2837 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2838 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2840 powerpcle-*-eabisim*)
2842 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"
2843 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2847 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2848 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2850 rs6000-ibm-aix3.[01]*)
2852 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h"
2856 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2858 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h"
2859 tmake_file=rs6000/t-newas
2864 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2866 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
2867 tmake_file=rs6000/t-newas
2872 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2874 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
2875 tmake_file=rs6000/t-aix43
2881 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2883 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
2884 tmake_file=rs6000/t-aix43
2892 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2898 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2903 tm_file="${tm_file} rs6000/mach.h"
2908 tm_file="lynx.h rs6000/lynx.h"
2909 tmake_file=rs6000/t-rs6000
2913 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
2914 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2915 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
2916 if test x$enable_threads = xyes; then
2921 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
2922 tm_p_file=s390/s390-protos.h
2923 md_file=s390/s390.md
2924 out_file=s390/s390.c
2925 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux s390/t-linux64"
2926 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
2927 if test x$enable_threads = xyes; then
2932 tmake_file="sh/t-sh sh/t-elf"
2933 tm_file="${tm_file} sh/embed-elf.h"
2937 tmake_file="sh/t-sh sh/t-elf sh/t-sh64"
2938 tm_file="${tm_file} sh/sh.h sh/embed-elf.h sh/sh64.h"
2940 extra_headers="../../config/sh/shmedia.h ../../config/sh/ushmedia.h ../../config/sh/sshmedia.h"
2941 # Not strictly necessary to check this, but a good idea anyway.
2942 if test $machine = $target; then
2943 target_requires_64bit_host_wide_int=yes
2948 tmake_file="sh/t-sh sh/t-elf t-rtems"
2949 tm_file="${tm_file} sh/embed-elf.h sh/rtemself.h rtems.h"
2951 if test x$enable_threads = xyes; then
2957 tmake_file="sh/t-sh t-rtems"
2958 tm_file="${tm_file} sh/rtems.h rtems.h"
2960 if test x$enable_threads = xyes; then
2965 tm_file="${tm_file} sh/elf.h sh/linux.h"
2966 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2968 if test x$enable_threads = xyes; then
2977 tm_file="${tm_file} sparc/pbd.h"
2980 sparc64-wrs-vxworks*)
2981 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h sparc/biarch64.h gofast.h sparc/vxsparc64.h"
2982 tmake_file="sparc/t-vxsparc64 sparc/t-crtfm"
2985 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2986 tm_file="${tm_file} aoutos.h sparc/aout.h gofast.h sparc/vxsparc.h"
2987 tmake_file=sparc/t-vxsparc
2989 thread_file='vxworks'
2992 tmake_file=sparc/t-sparcbare
2993 tm_file="sparc/sparc.h aoutos.h sparc/aout.h libgloss.h"
2996 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2999 tm_file="${tm_file} sparc/aout.h netbsd.h netbsd-aout.h sparc/netbsd.h"
3004 tm_file="sparc/sparc.h ${tm_file}"
3005 # needed to unconfuse gdb
3006 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
3007 # we need collect2 until our bug is fixed...
3011 tm_file="${tm_file} sparc/bsd.h"
3014 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h chorus.h"
3015 tmake_file="sparc/t-chorus-elf sparc/t-crtfm"
3016 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3018 case x${enable_threads} in
3019 xyes | xpthreads | xposix)
3025 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h"
3026 tmake_file="sparc/t-elf sparc/t-crtfm"
3027 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3031 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
3032 tm_file="aoutos.h sparc/sparc.h sparc/aout.h sparc/linux-aout.h"
3035 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
3036 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
3037 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 sparc/t-crtfm"
3038 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3042 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3043 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
3044 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
3045 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
3047 if test x$enable_threads = xyes; then
3053 if test x$gas = xyes
3055 tm_file="${tm_file} lynx.h sparc/aout.h sparc/lynx.h"
3057 tm_file="${tm_file} lynx-ng.h sparc/aout.h sparc/lynx-ng.h"
3059 tmake_file=sparc/t-sunos41
3063 tmake_file="sparc/t-sparcbare t-rtems"
3064 tm_file="${tm_file} aoutos.h sparc/aout.h sparc/rtems.h rtems.h"
3065 if test x$enable_threads = xyes; then
3069 sparc-*-rtems*|sparc-*-rtemself*)
3071 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
3072 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
3073 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3076 if test x$enable_threads = xyes; then
3080 sparc64-*-solaris2*)
3081 tm_file="sparc/biarch64.h sparc/sol2-64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sol2-bi.h"
3082 if test x$gnu_ld = xyes; then
3083 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
3086 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
3087 if test x$gnu_ld = xyes; then
3088 tmake_file="$tmake_file t-slibgcc-elf-ver"
3090 tmake_file="$tmake_file t-slibgcc-sld"
3092 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3094 if test x${enable_threads} = x ; then
3095 enable_threads=$have_pthread_h
3096 if test x${enable_threads} = x ; then
3097 enable_threads=$have_thread_h
3100 if test x${enable_threads} = xyes ; then
3101 if test x${have_pthread_h} = xyes ; then
3104 thread_file='solaris'
3108 sparc-hal-solaris2*)
3110 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/hal.h"
3111 tmake_file="sparc/t-halos sparc/t-sol2 sparc/t-crtfm"
3112 if test x$gnu_ld = xyes; then
3113 tm_file="${tm_file} sparc/sol2-gld.h"
3114 tmake_file="$tmake_file t-slibgcc-elf-ver"
3116 tmake_file="$tmake_file t-slibgcc-sld"
3118 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3127 thread_file='solaris'
3129 sparc-*-solaris2* | sparcv9-*-solaris2*)
3130 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h"
3131 if test x$gnu_ld = xyes; then
3132 tm_file="${tm_file} sparc/sol2-gld.h"
3134 tmake_file="sparc/t-sol2 sparc/t-crtfm"
3135 if test x$gnu_ld = xyes; then
3136 tmake_file="$tmake_file t-slibgcc-elf-ver"
3138 tmake_file="$tmake_file t-slibgcc-sld"
3142 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
3143 if test x$gnu_ld = xyes; then
3144 tm_file="${tm_file} sparc/sol2-gld-bi.h"
3146 tmake_file="$tmake_file sparc/t-sol2-64"
3148 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
3149 if test x$gnu_ld = xno; then
3150 tm_file="${tm_file} sparc/sol26-sld.h"
3154 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3163 if test x${enable_threads} = x; then
3164 enable_threads=$have_pthread_h
3165 if test x${enable_threads} = x; then
3166 enable_threads=$have_thread_h
3169 if test x${enable_threads} = xyes; then
3170 if test x${have_pthread_h} = xyes; then
3173 thread_file='solaris'
3178 tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
3182 tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
3183 tmake_file=sparc/t-sunos41
3185 if test x$gas = xyes; then
3186 tm_file="${tm_file} sparc/sun4gas.h"
3190 tm_file="${tm_file} sparc/aout.h sparc/sun4o3.h"
3194 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h"
3197 extra_parts="crtbegin.o crtend.o"
3201 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/vxsim.h"
3202 tmake_file=sparc/t-vxsparc
3205 tm_file="${tm_file} aoutos.h sparc/aout.h sparc/splet.h libgloss.h"
3206 tmake_file=sparc/t-splet
3209 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
3210 tmake_file=sparc/t-sparclite
3213 tm_file="${tm_file} gofast.h sparc/aout.h sparc/lite.h aoutos.h libgloss.h"
3214 tmake_file=sparc/t-sparclite
3217 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h"
3218 tmake_file="sparc/t-sparclite sparc/t-crtfm"
3219 extra_parts="crtbegin.o crtend.o"
3222 tm_file="${tm_file} gofast.h sparc/aout.h sparc/sp86x-aout.h aoutos.h libgloss.h"
3223 tmake_file=sparc/t-sp86x
3226 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h gofast.h sparc/sp86x-elf.h"
3227 tmake_file="sparc/t-sp86x sparc/t-crtfm"
3228 extra_parts="crtbegin.o crtend.o"
3231 tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h"
3234 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h"
3235 tmake_file="${tmake_file} sparc/t-crtfm"
3236 extra_parts="crtbegin.o crtend.o"
3238 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
3239 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
3240 tmake_file="${tmake_file} sparc/t-crtfm"
3242 case "x$with_cpu" in
3244 x) with_cpu=ultrasparc ;;
3245 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
3248 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3249 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
3250 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
3251 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
3253 if test x$enable_threads = xyes; then
3259 tmake_file="${tmake_file} sparc/t-netbsd64"
3260 tm_file="sparc/biarch64.h ${tm_file}"
3261 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
3265 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
3266 tmake_file=arm/t-strongarm-elf
3271 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h"
3272 tmake_file=arm/t-strongarm-coff
3277 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"
3278 tmake_file=arm/t-strongarm-pe
3284 { echo "config.gcc: error:
3285 *** The Thumb targets have been deprecated. The equivalent
3286 *** ARM based toolchain can now generate Thumb instructions
3287 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3291 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} v850/v850.h v850/rtems.h rtems.h"
3292 tmake_file="v850/t-v850 t-rtems"
3293 if test x$stabs = xyes
3295 tm_file="${tm_file} dbx.h"
3298 c_target_objs="v850-c.o"
3299 cxx_target_objs="v850-c.o"
3302 target_cpu_default="TARGET_CPU_generic"
3303 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
3304 tmake_file=v850/t-v850
3305 if test x$stabs = xyes
3307 tm_file="${tm_file} dbx.h"
3310 c_target_objs="v850-c.o"
3311 cxx_target_objs="v850-c.o"
3313 vax-*-bsd*) # VAXen running BSD
3317 vax-*-sysv*) # VAXen running system V
3318 tm_file="${tm_file} vax/vaxv.h"
3323 echo "GCC does not yet support the ${machine} target"; exit 1
3326 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
3332 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3336 vax-*-ultrix*) # VAXen running ultrix
3337 tm_file="${tm_file} vax/ultrix.h"
3340 vax-*-vms*) # VAXen running VMS
3341 xm_file=vax/xm-vms.h
3345 vax-*-*) # VAX default entry
3353 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
3354 tmake_file=arm/t-xscale-elf
3359 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
3360 tmake_file=arm/t-xscale-coff
3365 # For historical reasons, the target files omit the 'x'.
3366 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
3367 tm_p_file=stormy16/stormy16-protos.h
3368 md_file=stormy16/stormy16.md
3369 out_file=stormy16/stormy16.c
3370 tmake_file="stormy16/t-stormy16"
3371 extra_parts="crtbegin.o crtend.o"
3374 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
3376 tmake_file=xtensa/t-xtensa
3377 extra_parts="crtbegin.o crtend.o"
3378 fixincludes=Makefile.in # newlib headers should be OK
3381 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
3382 tmake_file="t-linux xtensa/t-xtensa"
3383 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
3385 if test x$enable_threads = xyes; then
3390 echo "Configuration $machine not supported" 1>&2
3397 install_headers_dir=install-headers-cpio
3401 # Distinguish i[34567]86
3402 # Also, do not run mips-tfile on MIPS if using gas.
3403 # Process --with-cpu= for PowerPC/rs6000
3404 target_cpu_default2=
3407 target_cpu_default2=TARGET_CPU_DEFAULT_i486
3410 case $target_alias in
3412 target_cpu_default2=TARGET_CPU_DEFAULT_k6_2
3415 target_cpu_default2=TARGET_CPU_DEFAULT_k6_3
3418 target_cpu_default2=TARGET_CPU_DEFAULT_k6
3421 target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx
3424 target_cpu_default2=TARGET_CPU_DEFAULT_pentium
3428 i686-*-* | i786-*-*)
3429 case $target_alias in
3430 athlon_xp-*|athlon_mp-*|athlon_4-*)
3431 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
3433 athlon_tbird-*|athlon-*)
3434 target_cpu_default2=TARGET_CPU_DEFAULT_athlon
3437 target_cpu_default2=TARGET_CPU_DEFAULT_pentium2
3440 target_cpu_default2=TARGET_CPU_DEFAULT_pentium3
3443 target_cpu_default2=TARGET_CPU_DEFAULT_pentium4
3446 target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro
3451 # We should have hammer chip here, but it does not exist yet and
3452 # thus it is not supported. Athlon_SSE is probably equivalent feature
3453 # wise to hammer from our point of view except for 64bit mode.
3454 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
3459 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3462 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3465 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3468 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3471 target_cpu_default2="MASK_CPU_EV5"
3475 if test x$gas = xyes
3477 if test "$target_cpu_default2" = ""
3479 target_cpu_default2="MASK_GAS"
3481 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3486 case "x$with_cpu" in
3489 target_cpu_default2="TARGET_CPU_generic"
3492 # Distinguish cores, and major variants
3493 # arm7m doesn't exist, but D & I don't affect code
3494 xarm[236789] | xarm250 | xarm[67][01]0 \
3495 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3496 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3498 | xstrongarm | xstrongarm110 | xstrongarm1100)
3499 target_cpu_default2="TARGET_CPU_$with_cpu"
3503 echo "--with-cpu must be passed a value" 1>&2
3508 if test x$pass2done = xyes
3510 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3517 hppa*-*-* | parisc*-*-*)
3518 if test x$gas = xyes
3520 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3524 mips*-*-ecoff* | mips*-*-elf*)
3525 if test x$gas = xyes
3527 if test x$gnu_ld = xyes
3529 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3531 target_cpu_default2="MASK_GAS"
3536 if test x$gas = xyes
3538 target_cpu_default2="MASK_GAS"
3541 powerpc*-*-* | rs6000-*-*)
3542 if test x$enable_altivec = xyes
3544 tm_file="$tm_file rs6000/altivec-defs.h"
3546 case "x$with_cpu" in
3550 xcommon | xpower | xpower2 | xpower3 | xpowerpc | xpowerpc64 \
3551 | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
3552 | x601 | x602 | x603 | x603e | x604 | x604e | x620 | x630 \
3553 | x740 | x750 | x7400 | x7450 | x505)
3554 target_cpu_default2="\\\"$with_cpu\\\""
3557 x401 | x403 | x405 | xec603e | x801 | x821 | x823 | x860)
3558 target_cpu_default2="\\\"$with_cpu\\\""
3559 tm_file="$tm_file rs6000/softfloat.h"
3563 echo "--with-cpu must be passed a value" 1>&2
3568 if test x$pass2done = xyes
3570 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3577 case ".$with_cpu" in
3579 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3581 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3582 target_cpu_default2="TARGET_CPU_$with_cpu"
3585 if test x$pass2done = xyes
3587 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3595 if test "$target_cpu_default2" != ""
3597 if test "$target_cpu_default" != ""
3599 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3601 target_cpu_default=$target_cpu_default2
3605 # Save data on machine being used to compile GCC in build_xm_file.
3606 # Save data on host machine in vars host_xm_file and host_xmake_file.
3607 if test x$pass1done = x
3609 if test x$xm_file != x
3610 then build_xm_file=$xm_file
3612 build_xm_defines=$xm_defines
3613 build_install_headers_dir=$install_headers_dir
3614 build_exeext=$exeext
3617 if test x$pass2done = x
3619 if test x$xm_file != x
3620 then host_xm_file=$xm_file
3622 host_xm_defines=$xm_defines
3623 host_xmake_file="$xmake_file"
3624 host_truncate_target=$truncate_target
3625 host_extra_gcc_objs=$extra_gcc_objs
3626 host_extra_objs=$extra_host_objs