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
239 extra_headers=ia64intrin.h
241 hppa*-*-* | parisc*-*-*)
246 extra_headers=math-68881.h
249 extra_headers=math-68881.h
259 extra_headers=ppc-asm.h
266 tm_file=${cpu_type}/${cpu_type}.h
267 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
269 tm_p_file=${cpu_type}/${cpu_type}-protos.h
271 # On a.out targets, we need to use collect2.
278 # Common parts for GNU/Linux, GNU/Hurd, OpenBSD and FreeBSD systems.
284 # On the Hurd, the setup is just about the same on
285 # each different CPU. The specific machines that we
286 # support are matched above and just set $cpu_type.
288 tm_file="${cpu_type}/gnu.h"
289 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
290 # GNU always uses ELF.
292 # GNU tools are the only tools.
295 # These details are the same as for Linux.
296 # But here we need a little extra magic.
297 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
300 tm_file="${cpu_type}/${cpu_type}.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}"
305 tm_file=${cpu_type}/openbsd.h
306 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
308 if test x$enable_threads = xyes; then
310 tmake_file="${tmake_file} t-openbsd-thread"
313 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
314 # This is the place-holder for the generic a.out configuration
315 # of FreeBSD. No actual configuration resides here since
316 # there was only ever a bare-bones ix86 configuration for
317 # a.out and it exists solely in the machine-specific section.
318 # This place-holder must exist to avoid dropping into
319 # the generic ELF configuration of FreeBSD (i.e. it must be
320 # ordered before that section).
323 # This is the generic ELF configuration of FreeBSD. Later
324 # machine-specific sections may refine and add to this
327 # Due to tm_file entry ordering issues that vary between cpu
328 # architectures, we only define fbsd_tm_file to allow the
329 # machine-specific section to dictate the final order of all
330 # entries of tm_file with the minor exception that components
331 # of the tm_file set here will always be of the form:
333 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
335 # The machine-specific section should not tamper with this
336 # ordering but may order all other entries of tm_file as it
337 # pleases around the provided core setting.
340 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
342 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
343 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
344 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
345 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
346 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
351 case x${enable_threads} in
352 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
353 x | xyes | xpthreads | xposix)
355 tmake_file="${tmake_file} t-freebsd-thread"
357 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
359 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
364 # Support site-specific machine types.
366 rest=`echo $machine | sed -e "s/$cpu_type-//"`
367 tm_file=${cpu_type}/$rest.h
368 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
369 then xm_file=${cpu_type}/xm-$rest.h
371 if test -f $srcdir/config/${cpu_type}/x-$rest
372 then xmake_file=${cpu_type}/x-$rest
374 if test -f $srcdir/config/${cpu_type}/t-$rest
375 then tmake_file=${cpu_type}/t-$rest
379 # 1750a is only supported as a target.
380 case "$build,$host" in 1750a*,* | *,1750a* )
381 echo "*** $machine is only supported as a target" >&2
385 a29k-*-bsd* | a29k-*-sym1*)
386 tm_file="${tm_file} a29k/unix.h"
390 a29k-*-udi | a29k-*-coff)
391 tm_file="${tm_file} dbxcoff.h"
392 tmake_file=a29k/t-a29kbare
396 tmake_file="a29k/t-a29kbare t-rtems"
397 if test x$enable_threads = xyes; then
402 tm_file="${tm_file} dbxcoff.h a29k/vx29k.h"
403 tmake_file=a29k/t-vx29k
404 extra_parts="crtbegin.o crtend.o"
405 thread_file='vxworks'
407 a29k-*-*) # Default a29k environment.
412 tm_file="${tm_file} alpha/unicosmk.h"
414 # Don't include t-ieee for now because we don't support that yet
415 # tmake_file="alpha/t-ieee"
416 tmake_file="alpha/t-unicosmk"
419 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
421 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
422 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
424 # GAS + IEEE_CONFORMANT
425 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
428 xm_file="alpha/xm-alpha-interix.h"
429 tmake_file="alpha/t-alpha t-interix alpha/t-interix alpha/t-ieee"
430 if test x$enable_threads = xyes ; then
433 if test x$stabs = xyes ; then
434 tm_file="${tm_file} dbxcoff.h"
436 #prefix='$$INTERIX_ROOT'/usr/contrib
437 #local_prefix='$$INTERIX_ROOT'/usr/contrib
439 alpha*-*-linux*ecoff*)
440 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
441 target_cpu_default="MASK_GAS"
442 tmake_file="alpha/t-alpha alpha/t-ieee"
446 alpha*-*-linux*libc1*)
447 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
448 target_cpu_default="MASK_GAS"
449 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-crtfm alpha/t-ieee"
451 if test x$enable_threads = xyes; then
456 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
457 target_cpu_default="MASK_GAS"
458 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
460 if test x$enable_threads = xyes; then
465 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
466 target_cpu_default="MASK_GAS"
467 tmake_file="${tmake_file} alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
471 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
472 target_cpu_default="MASK_GAS"
473 tmake_file="alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
478 # default x-alpha is only appropriate for dec-osf.
479 target_cpu_default="MASK_GAS"
480 tmake_file="alpha/t-alpha alpha/t-ieee"
485 if test x$stabs = xyes
487 tm_file="${tm_file} dbx.h"
489 if test x$gas != xyes
491 extra_passes="mips-tfile mips-tdump"
494 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm"
495 extra_headers=va_list.h
498 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
501 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
504 tm_file="${tm_file} alpha/osf.h"
505 tmake_file="$tmake_file alpha/t-osf4"
506 # Some versions of OSF4 (specifically X4.0-9 296.7) have
507 # a broken tar, so we use cpio instead.
508 install_headers_dir=install-headers-cpio
511 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
512 tmake_file="$tmake_file alpha/t-osf4"
517 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
518 target_cpu_default=MASK_SUPPORT_ARCH
524 tm_file="${tm_file} dbx.h alpha/vxworks.h"
525 tmake_file="alpha/t-alpha alpha/t-ieee"
528 extra_passes="mips-tfile mips-tdump"
531 thread_file='vxworks'
535 tm_file="alpha/vms.h alpha/vms64.h"
536 xm_file="alpha/xm-vms.h alpha/xm-vms64.h"
537 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
538 xmake_file=alpha/x-vms
540 # This removes the cpu type and manufacturer components and
541 # replaces "." with "_" in the operating system version.
542 case $host in *-*-*vms*)
543 target_alias=`echo $host \
544 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
553 xm_file=alpha/xm-vms.h
554 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
555 xmake_file=alpha/x-vms
557 # This removes the cpu type and manufacturer components and
558 # replaces "." with "_" in the operating system version.
559 case $host in *-*-*vms*)
560 target_alias=`echo $host \
561 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
568 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
569 extra_parts="crtinit.o crtfini.o"
572 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"
573 tmake_file="arm/t-arm-elf t-rtems"
574 if test x$enable_threads = xyes; then
578 arm-*-coff* | armel-*-coff*)
579 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h"
580 tmake_file=arm/t-arm-coff
583 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/vxarm.h arm/arm.h"
584 tmake_file=arm/t-arm-coff
585 thread_file='vxworks'
587 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
588 tm_file="arm/riscix1-1.h arm/arm.h"
591 arm-*-riscix*) # Acorn RISC machine
594 tm_file="arm/riscix.h arm/rix-gas.h arm/arm.h"
596 tm_file="arm/riscix.h arm/arm.h"
598 tmake_file=arm/t-riscix
601 arm-semi-aout | armel-semi-aout)
602 tm_file="arm/semi.h arm/aout.h arm/arm.h"
603 tmake_file=arm/t-semi
605 arm-semi-aof | armel-semi-aof)
606 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
607 tmake_file=arm/t-semi
609 arm*-*-freebsd*|strongarm*-*-freebsd*)
610 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
611 tmake_file="${tmake_file} arm/t-strongarm-elf"
614 tm_file="arm/aout.h arm/arm.h netbsd.h arm/netbsd.h"
615 tmake_file="t-netbsd arm/t-netbsd"
618 arm*-*-linux*) # ARM GNU/Linux with ELF
619 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"
620 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
621 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
623 case x${enable_threads} in
624 x | xyes | xpthreads | xposix)
629 arm*-*-uclinux*) # ARM ucLinux
630 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"
631 tmake_file=arm/t-arm-elf
634 tm_file="arm/aout.h arm/arm.h"
635 tmake_file=arm/t-arm-aout
638 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
639 tmake_file=arm/t-arm-elf
642 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
643 tmake_file=arm/t-arm-elf
646 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/conix-elf.h arm/aout.h arm/arm.h"
647 tmake_file=arm/t-arm-elf
650 tm_file="arm/unknown-elf-oabi.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
651 tmake_file=arm/t-arm-elf
654 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h"
660 c1-convex-*) # Convex C1
664 c2-convex-*) # Convex C2
677 target_cpu_default=16
681 tmake_file="c4x/t-c4x t-rtems"
683 if test x$enable_threads = xyes; then
686 c_target_objs="c4x-c.o"
687 cxx_target_objs="c4x-c.o"
692 c_target_objs="c4x-c.o"
693 cxx_target_objs="c4x-c.o"
695 clipper-intergraph-clix*)
696 tm_file="${tm_file} svr3.h clipper/clix.h"
698 extra_parts="crtbegin.o crtend.o"
699 install_headers_dir=install-headers-cpio
702 tm_file="dbxelf.h ${tm_file} cris/aout.h"
704 tmake_file="cris/t-cris cris/t-aout"
706 cris-*-elf | cris-*-none)
707 tm_file="dbxelf.h elfos.h ${tm_file}"
708 tmake_file="cris/t-cris cris/t-elfmulti"
712 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
713 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
714 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
715 case x${enable_threads} in
716 x | xyes | xpthreads | xposix)
723 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
732 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
733 tmake_file=fr30/t-fr30
734 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
737 tmake_file="h8300/t-h8300 t-rtems"
738 tm_file=h8300/rtems.h
739 if test x$enable_threads = xyes; then
745 tmake_file="h8300/t-h8300 h8300/t-elf"
746 tm_file="h8300/h8300.h h8300/elf.h"
752 hppa*64*-*-linux* | parisc*64*-*-linux*)
753 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
754 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
755 pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
756 tmake_file=pa/t-linux64
759 hppa*-*-linux* | parisc*-*-linux*)
760 target_cpu_default="MASK_PA_11"
761 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
762 pa/pa32-regs.h pa/pa32-linux.h"
763 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
764 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
766 if test x$enable_threads = xyes; then
771 target_cpu_default="MASK_PA_11"
775 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
776 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
777 tmake_file="pa/t-bsd pa/t-pro"
780 target_cpu_default="MASK_PA_11"
781 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
782 tmake_file="pa/t-bsd pa/t-pa"
786 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
787 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
788 tmake_file="pa/t-bsd pa/t-pro"
791 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
792 tmake_file="pa/t-bsd pa/t-pa"
796 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
797 target_cpu_default="MASK_PA_11"
798 tmake_file="pa/t-bsd pa/t-pa"
802 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
803 tmake_file="pa/t-bsd pa/t-pa"
807 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
809 tmake_file=pa/t-pa-hpux
810 install_headers_dir=install-headers-cpio
813 hppa1.0-*-hpux8.0[0-2]*)
814 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
816 tmake_file=pa/t-pa-hpux
817 if test x$gas != xyes
819 tm_file="pa/pa-oldas.h ${tm_file}"
821 install_headers_dir=install-headers-cpio
824 hppa1.1-*-hpux8.0[0-2]*)
825 target_cpu_default="MASK_PA_11"
826 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
828 tmake_file=pa/t-pa-hpux
829 if test x$gas != xyes
831 tm_file="pa/pa-oldas.h ${tm_file}"
833 install_headers_dir=install-headers-cpio
837 target_cpu_default="MASK_PA_11"
838 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
840 tmake_file=pa/t-pa-hpux
841 install_headers_dir=install-headers-cpio
845 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
847 tmake_file=pa/t-pa-hpux
848 install_headers_dir=install-headers-cpio
851 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
852 target_cpu_default="MASK_PA_11"
853 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
856 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
857 if test x$enable_threads = x; then
858 enable_threads=$have_pthread_h
860 case x${enable_threads} in
862 tmake_file="${tmake_file} pa/t-dce-thr"
865 install_headers_dir=install-headers-cpio
869 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
872 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
873 if test x$enable_threads = x; then
874 enable_threads=$have_pthread_h
876 case x${enable_threads} in
878 tmake_file="${tmake_file} pa/t-dce-thr"
881 install_headers_dir=install-headers-cpio
886 tmake_file="pa/t-pa pa/t-pa-hpux"
887 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"
890 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
892 # if [ x$enable_threads = x ]; then
893 # enable_threads=$have_pthread_h
895 # if [ x$enable_threads = xyes ]; then
897 # tmake_file="${tmake_file} pa/t-dce-thr"
899 install_headers_dir=install-headers-cpio
902 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
903 target_cpu_default="MASK_PA_11"
904 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
907 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
908 # if test x$enable_threads = x; then
909 # enable_threads=$have_pthread_h
911 # if test x$enable_threads = xyes; then
913 # tmake_file="${tmake_file} pa/t-dce-thr"
915 install_headers_dir=install-headers-cpio
919 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
922 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
923 # if test x$enable_threads = x; then
924 # enable_threads=$have_pthread_h
926 # if test x$enable_threads = xyes; then
928 # tmake_file="${tmake_file} pa/t-dce-thr"
930 install_headers_dir=install-headers-cpio
933 hppa1.1-*-hpux* | hppa2*-*-hpux*)
934 target_cpu_default="MASK_PA_11"
935 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
937 tmake_file=pa/t-pa-hpux
938 install_headers_dir=install-headers-cpio
942 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
944 tmake_file=pa/t-pa-hpux
945 install_headers_dir=install-headers-cpio
948 hppa1.1-*-hiux* | hppa2*-*-hiux*)
949 target_cpu_default="MASK_PA_11"
950 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
952 tmake_file=pa/t-pa-hpux
953 install_headers_dir=install-headers-cpio
957 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
959 tmake_file=pa/t-pa-hpux
960 install_headers_dir=install-headers-cpio
964 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h"
965 target_cpu_default="MASK_PA_11"
966 tmake_file="pa/t-bsd pa/t-pa"
970 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
971 tmake_file=pa/t-mpeix
972 echo "You must use gas. Assuming it is already installed."
974 install_headers_dir=install-headers-tar
977 i370-*-opened*) # IBM 360/370/390 Architecture
978 xm_defines='POSIX FATAL_EXIT_CODE=12'
980 tmake_file="i370/t-oe i370/t-i370"
981 c_target_objs="i370-c.o"
982 cxx_target_objs="i370-c.o"
985 xm_defines='POSIX FATAL_EXIT_CODE=12'
987 tmake_file="i370/t-i370"
988 c_target_objs="i370-c.o"
989 cxx_target_objs="i370-c.o"
992 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}"
993 tmake_file="t-slibgcc-elf-ver t-linux"
995 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
996 # extra_parts="crtbegin.o crtend.o"
1000 if test x$enable_threads = xyes; then
1004 i[34567]86-*-chorusos*)
1006 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h i386/i386elf.h chorus.h"
1007 tmake_file="i386/t-i386elf t-svr4"
1008 case x${enable_threads} in
1009 xyes | xpthreads | xposix)
1016 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h i386/i386elf.h"
1017 tmake_file="i386/t-i386elf t-svr4"
1019 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1020 if test x$gas = xyes
1022 tm_file=i386/aix386.h
1023 extra_parts="crtbegin.o crtend.o"
1024 tmake_file=i386/t-crtstuff
1026 tm_file=i386/aix386ng.h
1031 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1032 xm_defines="POSIX SMALL_ARG_MAX"
1033 if test x$stabs = xyes -a x$gas = xyes
1035 tm_file=i386/sysv4gdb.h
1037 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h"
1039 extra_parts="crtbegin.o crtend.o"
1040 tmake_file=i386/t-crtpic
1043 tm_p_file="${tm_p_file} nextstep-protos.h"
1045 tmake_file=i386/t-next
1046 extra_objs=nextstep.o
1047 extra_parts="crtbegin.o crtend.o"
1048 if test x$enable_threads = xyes; then
1052 i[34567]86-*-netware) # Intel 80386's running netware
1053 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
1054 tmake_file=i386/t-netware
1056 i[34567]86-sequent-bsd*) # 80386 from Sequent
1058 if test x$gas = xyes
1060 tm_file=i386/seq-gas.h
1062 tm_file=i386/sequent.h
1065 i[34567]86-sequent-ptx1*)
1067 tm_file=i386/seq-sysv3.h
1068 tmake_file=i386/t-crtstuff
1069 extra_parts="crtbegin.o crtend.o"
1070 install_headers_dir=install-headers-cpio
1072 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1074 tm_file=i386/seq2-sysv3.h
1075 tmake_file=i386/t-crtstuff
1076 extra_parts="crtbegin.o crtend.o"
1077 install_headers_dir=install-headers-cpio
1079 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1080 if test x$gas = xyes
1082 tm_file="${tm_file} usegas.h"
1084 xm_defines="POSIX SMALL_ARG_MAX"
1085 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
1087 extra_parts="crtbegin.o crtend.o"
1088 install_headers_dir=install-headers-cpio
1090 i386-sun-sunos*) # Sun i386 roadrunner
1095 i[34567]86-wrs-vxworks*)
1096 tm_file=i386/vxi386.h
1097 thread_file='vxworks'
1100 tm_file=i386/i386-aout.h
1102 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1104 tmake_file='i386/t-beos i386/t-crtpic'
1105 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
1106 extra_parts='crtbegin.o crtend.o'
1108 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1109 tm_file="i386/386bsd.h i386/bsd386.h"
1110 # tmake_file=t-libc-ok
1113 tm_file=i386/386bsd.h
1114 # tmake_file=t-libc-ok
1115 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1118 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1119 tm_file=i386/freebsd-aout.h
1120 tmake_file=t-freebsd
1122 i[34567]86-*-freebsd*)
1123 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h ${fbsd_tm_file} i386/freebsd.h"
1125 i[34567]86-*-netbsdelf*)
1127 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/netbsd-elf.h"
1132 i[34567]86-*-netbsd*)
1133 tm_file=i386/netbsd.h
1137 i[34567]86-*-openbsd*)
1138 # needed to unconfuse gdb
1139 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1140 # we need collect2 until our bug is fixed...
1144 tm_file=i386/i386-coff.h
1146 i[34567]86-*-isc*) # 80386 running ISC system
1148 if test x$gas = xyes -a x$stabs = xyes
1150 tm_file=i386/iscdbx.h
1151 tmake_file=i386/t-svr3dbx
1152 extra_parts="svr3.ifile svr3z.ifile"
1154 tm_file=i386/isccoff.h
1155 tmake_file=i386/t-crtstuff
1156 extra_parts="crtbegin.o crtend.o"
1158 install_headers_dir=install-headers-cpio
1160 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1161 # with a.out format using
1163 tmake_file="t-linux-aout i386/t-crtstuff"
1164 tm_file=i386/linux-oldld.h
1168 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1170 tmake_file="t-linux-aout i386/t-crtstuff"
1171 tm_file=i386/linux-aout.h
1175 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1176 # with ELF format using the
1177 # GNU/Linux C library 5
1178 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1179 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1180 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1183 if test x$enable_threads = xyes; then
1184 thread_file='single'
1187 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1188 # with ELF format using glibc 2
1189 # aka GNU/Linux C library 6
1190 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1191 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1192 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1195 if test x$enable_threads = xyes; then
1200 tm_file="i386/biarch64.h i386/i386.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1201 i386/x86-64.h i386/linux64.h"
1202 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1203 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1206 if test x$enable_threads = xyes; then
1213 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1214 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1217 i[34567]86-pc-msdosdjgpp*)
1218 xm_file=i386/xm-djgpp.h
1219 tm_file=i386/djgpp.h
1220 tmake_file=i386/t-djgpp
1225 case $host in *pc-msdosdjgpp*)
1230 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1231 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1232 tmake_file=t-libc-ok
1236 i[34567]86-*-lynxos*)
1237 if test x$gas = xyes
1241 tm_file=i386/lynx-ng.h
1246 # tmake_file=t-libc-ok
1249 i[34567]86-*-osfrose*) # 386 using OSF/rose
1250 if test x$elf = xyes
1252 tm_file=i386/osfelf.h
1255 tm_file=i386/osfrose.h
1258 tmake_file=i386/t-osf
1259 extra_objs=halfpic.o
1261 i[34567]86-go32-rtems*)
1262 tm_file=i386/djgpp-rtems.h
1264 if test x$enable_threads = xyes; then
1268 i[34567]86-*-rtemscoff*)
1269 tm_file=i386/rtems.h
1271 if test x$enable_threads = xyes; then
1275 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1276 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/rtemself.h rtems.h"
1277 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1278 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1279 if test x$enable_threads = xyes; then
1283 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1285 install_headers_dir=install-headers-cpio
1287 if test x$gas = xyes
1289 tm_file="usegas.h ${tm_file}"
1290 tmake_file=i386/t-sco5gas
1292 tmake_file=i386/t-sco5
1294 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1296 i[34567]86-*-solaris2*)
1297 xm_defines="POSIX SMALL_ARG_MAX"
1298 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sol2.h"
1299 if test x$gas = xyes; then
1300 # Only needed if gas does not support -s
1301 tm_file="i386/sol2gas.h ${tm_file}"
1303 tmake_file="i386/t-sol2 t-svr4"
1304 if test x$gnu_ld = xyes; then
1305 tmake_file="$tmake_file t-slibgcc-elf-ver"
1307 tmake_file="$tmake_file t-slibgcc-sld"
1309 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1310 if test x${enable_threads} = x; then
1311 enable_threads=$have_pthread_h
1312 if test x${enable_threads} = x; then
1313 enable_threads=$have_thread_h
1316 if test x${enable_threads} = xyes; then
1317 if test x${have_pthread_h} = xyes; then
1320 thread_file='solaris'
1324 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1326 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1327 if test x$stabs = xyes
1329 tm_file="${tm_file} dbx.h"
1331 tmake_file="i386/t-crtpic t-svr4"
1332 extra_parts="crtbegin.o crtend.o"
1333 if test x$enable_threads = xyes; then
1337 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1338 xm_defines="POSIX SMALL_ARG_MAX"
1339 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h"
1340 if test x$stabs = xyes
1342 tm_file="${tm_file} dbx.h"
1344 tmake_file="i386/t-crtpic t-svr4"
1345 extra_parts="crtbegin.o crtend.o"
1347 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1349 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h i386/udk.h"
1350 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1351 extra_parts="crtbegin.o crtend.o"
1352 install_headers_dir=install-headers-cpio
1354 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1355 xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
1356 if test x$stabs = xyes
1358 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/osf1elf.h i386/osf1elfgdb.h"
1360 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/osf1elf.h"
1362 tmake_file=i386/t-osf1elf
1363 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1365 i[34567]86-*-sysv*) # Intel 80386's running system V
1367 if test x$gas = xyes
1369 if test x$stabs = xyes
1371 tm_file=i386/svr3dbx.h
1372 tmake_file=i386/t-svr3dbx
1373 extra_parts="svr3.ifile svr3z.rfile"
1375 tm_file=i386/svr3gas.h
1376 extra_parts="crtbegin.o crtend.o"
1377 tmake_file=i386/t-crtstuff
1380 tm_file=i386/sysv3.h
1381 extra_parts="crtbegin.o crtend.o"
1382 tmake_file=i386/t-crtstuff
1384 tmake_file="$tmake_file i386/t-crtpic"
1386 i386-*-vsta) # Intel 80386's running VSTa kernel
1387 xm_file=i386/xm-vsta.h
1392 xm_file=i386/xm-cygwin.h
1394 tmake_file=i386/t-cygwin
1395 tm_file=i386/win32.h
1397 if test x$enable_threads = xyes; then
1402 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1404 xm_file=i386/xm-cygwin.h
1406 tmake_file=i386/t-cygwin
1407 tm_file=i386/cygwin.h
1409 if test x$enable_threads = xyes; then
1414 i[34567]86-*-mingw32*)
1415 tm_file=i386/mingw32.h
1418 xm_file=i386/xm-mingw32.h
1419 tmake_file="i386/t-cygwin i386/t-mingw32"
1421 if test x$enable_threads = xyes; then
1427 tm_file="${tm_file} i386/crtdll.h"
1429 *minwg32msv* | *mingw32*)
1435 tmake_file="i386/t-cygwin i386/t-uwin"
1437 if test x$enable_threads = xyes; then
1442 i[34567]86-*-interix3*)
1443 tm_file="i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h"
1444 xm_file="i386/xm-i386-interix.h"
1446 tmake_file="t-interix i386/t-interix"
1447 extra_objs=interix.o
1448 xmake_file="x-interix"
1449 if test x$enable_threads = xyes ; then
1452 if test x$stabs = xyes ; then
1453 tm_file="${tm_file} dbxcoff.h"
1456 i[34567]86-*-interix*)
1457 tm_file="i386/i386-interix.h interix.h"
1458 xm_file="i386/xm-i386-interix.h"
1460 tmake_file="t-interix i386/t-interix"
1461 extra_objs=interix.o
1462 if test x$enable_threads = xyes ; then
1465 if test x$stabs = xyes ; then
1466 tm_file="${tm_file} dbxcoff.h"
1469 i[34567]86-dg-dgux*)
1471 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/dgux.h"
1472 tmake_file=i386/t-dgux
1473 install_headers_dir=install-headers-cpio
1475 i860-alliant-*) # Alliant FX/2800
1476 tm_file="${tm_file} dbxelf.h elfos.h svr4.h i860/sysv4.h i860/fx2800.h"
1477 tmake_file=i860/t-fx2800
1478 extra_parts="crtbegin.o crtend.o"
1481 tm_file="${tm_file} i860/bsd.h"
1482 if test x$gas = xyes
1484 tm_file="${tm_file} i860/bsd-gas.h"
1489 tm_file="${tm_file} i860/mach.h"
1490 tmake_file=t-libc-ok
1492 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1493 tm_file="${tm_file} svr3.h i860/paragon.h"
1497 tm_file="${tm_file} svr3.h i860/sysv3.h"
1499 extra_parts="crtbegin.o crtend.o"
1502 tm_file="${tm_file} dbxelf.h elfos.h svr4.h i860/sysv4.h"
1505 extra_parts="crtbegin.o crtend.o"
1507 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1508 tm_file="${tm_file} i960/vx960.h"
1509 tmake_file=i960/t-vxworks960
1511 thread_file='vxworks'
1512 c_target_objs="i960-c.o"
1513 cxx_target_objs="i960-c.o"
1515 i960-wrs-vxworks5* | i960-wrs-vxworks)
1516 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1517 tmake_file=i960/t-vxworks960
1519 thread_file='vxworks'
1520 c_target_objs="i960-c.o"
1521 cxx_target_objs="i960-c.o"
1524 tm_file="${tm_file} i960/vx960.h"
1525 tmake_file=i960/t-vxworks960
1527 thread_file='vxworks'
1528 c_target_objs="i960-c.o"
1529 cxx_target_objs="i960-c.o"
1532 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1533 tmake_file=i960/t-960bare
1534 c_target_objs="i960-c.o"
1535 cxx_target_objs="i960-c.o"
1538 tmake_file="i960/t-960bare t-rtems"
1539 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1540 if test x$enable_threads = xyes; then
1543 c_target_objs="i960-c.o"
1544 cxx_target_objs="i960-c.o"
1546 i960-*-*) # Default i960 environment.
1548 tmake_file=i960/t-960bare
1549 c_target_objs="i960-c.o"
1550 cxx_target_objs="i960-c.o"
1553 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/aix.h"
1554 tmake_file="ia64/t-ia64 ia64/t-aix"
1555 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1558 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1559 tmake_file="ia64/t-ia64"
1560 target_cpu_default="0"
1561 if test x$gas = xyes
1563 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1565 if test x$gnu_ld = xyes
1567 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1572 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/freebsd.h"
1573 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1574 tmake_file="${tmake_file} ia64/t-ia64"
1578 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1579 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1580 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1581 if test x$enable_threads = xyes; then
1587 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1588 tmake_file="ia64/t-ia64 ia64/t-hpux"
1589 target_cpu_default="MASK_GNU_AS"
1590 if test x$enable_threads = xyes; then
1596 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1597 extra_parts="crtinit.o crtfini.o"
1599 # m68hc11 and m68hc12 share the same machine description.
1600 m68hc11-*-*|m6811-*-*)
1601 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1602 tm_p_file="m68hc11/m68hc11-protos.h"
1603 md_file="m68hc11/m68hc11.md"
1604 out_file="m68hc11/m68hc11.c"
1605 tmake_file="m68hc11/t-m68hc11-gas"
1607 m68hc12-*-*|m6812-*-*)
1608 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1609 tm_p_file="m68hc11/m68hc11-protos.h"
1610 md_file="m68hc11/m68hc11.md"
1611 out_file="m68hc11/m68hc11.c"
1612 tmake_file="m68hc11/t-m68hc11-gas"
1614 m68000-convergent-sysv*)
1619 m68000-hp-bsd*) # HP 9000/200 running BSD
1620 tm_file=m68k/hp2bsd.h
1623 m68000-hp-hpux*) # HP 9000 series 300
1625 if test x$gas = xyes
1627 tm_file=m68k/hp310g.h
1629 tm_file=m68k/hp310.h
1631 tmake_file=m68k/t-hp320
1632 install_headers_dir=install-headers-cpio
1640 tm_file=m68k/sun2o4.h
1645 if test x$gas = xyes
1653 m68k-apple-aux*) # Apple Macintosh running A/UX
1655 tmake_file=m68k/t-aux
1656 install_headers_dir=install-headers-cpio
1657 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1659 if test "$gnu_ld" = yes
1661 tm_file="${tm_file} m68k/auxgld.h"
1663 tm_file="${tm_file} m68k/auxld.h"
1665 if test "$gas" = yes
1667 tm_file="${tm_file} m68k/auxgas.h"
1669 tm_file="${tm_file} m68k/auxas.h"
1671 tm_file="${tm_file} m68k/a-ux.h"
1675 tm_file=m68k/apollo68.h
1679 m68k-altos-sysv*) # Altos 3068
1680 if test x$gas = xyes
1682 tm_file=m68k/altos3068.h
1685 echo "The Altos is supported only with the GNU assembler" 1>&2
1689 m68k-bull-sysv*) # Bull DPX/2
1690 if test x$gas = xyes
1692 if test x$stabs = xyes
1694 tm_file=m68k/dpx2cdbx.h
1696 tm_file=m68k/dpx2g.h
1704 m68k-atari-sysv4*) # Atari variant of V.4.
1705 tm_file=m68k/atari.h
1708 extra_parts="crtbegin.o crtend.o"
1711 m68k-motorola-sysv*)
1712 tm_file=m68k/mot3300.h
1714 if test x$gas = xyes
1716 if test x$gnu_ld = xyes
1718 tmake_file=m68k/t-mot3300-gald
1720 tmake_file=m68k/t-mot3300-gas
1724 if test x$gnu_ld = xyes
1726 tmake_file=m68k/t-mot3300-gld
1728 tmake_file=m68k/t-mot3300
1732 gdb_needs_out_file_path=yes
1733 extra_parts="crt0.o mcrt0.o"
1736 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1737 tm_file=m68k/tower-as.h
1739 extra_parts="crtbegin.o crtend.o"
1742 tm_file=m68k/plexus.h
1755 m68k-cbm-sysv4*) # Commodore variant of V.4.
1759 extra_parts="crtbegin.o crtend.o"
1763 tm_file=m68k/ccur-GAS.h
1767 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1768 tm_file=m68k/hp3bsd44.h
1772 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1773 tm_file=m68k/hp3bsd.h
1778 if test x$with_fp = xno
1780 tm_file=m68k/isi-nfp.h
1787 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1789 if test x$gas = xyes
1791 xmake_file=m68k/x-hp320g
1792 tm_file=m68k/hp320g.h
1794 xmake_file=m68k/x-hp320
1795 tm_file=m68k/hpux7.h
1797 install_headers_dir=install-headers-cpio
1801 m68k-hp-hpux*) # HP 9000 series 300
1803 if test x$gas = xyes
1805 xmake_file=m68k/x-hp320g
1806 tm_file=m68k/hp320g.h
1808 xmake_file=m68k/x-hp320
1809 tm_file=m68k/hp320.h
1811 install_headers_dir=install-headers-cpio
1816 tm_file=m68k/sun3mach.h
1821 if test x$gas = xyes
1823 tm_file=m68k/news3gas.h
1825 tm_file=m68k/news3.h
1830 m68k-sony-bsd* | m68k-sony-newsos*)
1831 if test x$gas = xyes
1833 tm_file=m68k/newsgas.h
1840 m68k-next-nextstep2*)
1841 tm_p_file="${tm_p_file} nextstep-protos.h"
1842 tm_file=m68k/next21.h
1843 tmake_file=m68k/t-next
1844 xmake_file=m68k/x-next
1845 extra_objs=nextstep.o
1849 m68k-next-nextstep[34]*)
1850 tm_p_file="${tm_p_file} nextstep-protos.h"
1852 tmake_file=m68k/t-next
1853 xmake_file=m68k/x-next
1854 extra_objs=nextstep.o
1855 extra_parts="crtbegin.o crtend.o"
1857 if test x$enable_threads = xyes; then
1862 if test x$with_fp = xno
1864 tm_file=m68k/sun3n3.h
1866 tm_file=m68k/sun3o3.h
1871 m68k-sun-sunos*) # For SunOS 4 (the default).
1872 if test x$with_fp = xno
1874 tm_file=m68k/sun3n.h
1882 tm_file=m68k/vxm68k.h
1883 tmake_file=m68k/t-vxworks68
1884 thread_file='vxworks'
1888 tmake_file=m68k/t-m68kbare
1889 tm_file="m68k/m68k-aout.h libgloss.h"
1893 tmake_file=m68k/t-m68kbare
1894 tm_file="m68k/m68k-coff.h dbx.h"
1897 m68020-*-elf* | m68k-*-elf*)
1898 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1900 tmake_file=m68k/t-m68kelf
1901 extra_parts="crtbegin.o crtend.o"
1904 if test x$gas = xyes
1908 tm_file=m68k/lynx-ng.h
1910 tmake_file=m68k/t-lynx
1914 tm_file=m68k/netbsd.h
1920 # needed to unconfuse gdb
1921 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1923 # we need collect2 until our bug is fixed...
1926 m68k-*-sysv3*) # Motorola m68k's running system V.3
1928 extra_parts="crtbegin.o crtend.o"
1931 m68k-*-sysv4*) # Motorola m68k's running system V.4
1932 tm_file=m68k/m68kv4.h
1935 extra_parts="crtbegin.o crtend.o"
1938 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1940 tm_file=m68k/linux-aout.h
1941 tmake_file="t-linux-aout m68k/t-linux-aout"
1945 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1946 # with ELF format using the
1947 # GNU/Linux C library 5
1948 tm_file=m68k/linux.h
1949 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
1950 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1954 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1955 # with ELF format using glibc 2
1956 # aka the GNU/Linux C library 6.
1957 tm_file=m68k/linux.h
1958 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
1959 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1962 if test x$enable_threads = xyes; then
1967 tmake_file=m68k/t-m68kbare
1968 tm_file=m68k/m68k-psos.h
1972 tmake_file="m68k/t-m68kbare t-rtems"
1973 tm_file=m68k/rtems.h
1975 if test x$enable_threads = xyes; then
1979 m68k-*-rtemself*|m68k-*-rtems*)
1980 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1981 tm_file=m68k/rtemself.h
1983 extra_parts="crtbegin.o crtend.o"
1984 if test x$enable_threads = xyes; then
1992 tm_file="dbxelf.h elfos.h svr4.h m88k/dgux.h m88k/dguxbcs.h"
1993 tmake_file="m88k/t-dgux m88k/t-dguxbcs"
1996 tm_file="dbxelf.h elfos.h svr4.h m88k/dgux.h"
1997 tmake_file=m88k/t-dgux
2000 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2001 if test x$gas = xyes
2003 tmake_file=m88k/t-dgux-gas
2006 m88k-dolphin-sysv3*)
2008 tm_file=m88k/dolph.h
2009 extra_parts="crtbegin.o crtend.o"
2010 tmake_file=m88k/t-dolph
2011 if test x$gas = xyes
2013 tmake_file=m88k/t-m88k-gas
2016 m88k-tektronix-sysv3)
2018 tm_file=m88k/tekXD88.h
2019 extra_parts="crtbegin.o crtend.o"
2020 tmake_file=m88k/t-tekXD88
2021 if test x$gas = xyes
2023 tmake_file=m88k/t-m88k-gas
2028 tm_file=m88k/m88k-aout.h
2032 tm_file=m88k/m88k-coff.h
2033 tmake_file=m88k/t-bug
2037 extra_parts="crtbegin.o crtend.o"
2038 if test x$gas = xyes
2040 tmake_file=m88k/t-luna-gas
2042 tmake_file=m88k/t-luna
2046 tmake_file="${tmake_file} m88k/t-luna-gas"
2047 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2051 tm_file=m88k/sysv3.h
2052 extra_parts="crtbegin.o crtend.o"
2053 if test x$gas = xyes
2055 tmake_file=m88k/t-m88k-gas
2060 tm_file="dbxelf.h elfos.h svr4.h m88k/sysv4.h"
2061 extra_parts="crtbegin.o crtend.o"
2062 tmake_file=m88k/t-sysv4
2065 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
2066 tmake_file=mcore/t-mcore
2069 tm_file=mcore/mcore-pe.h
2070 tmake_file=mcore/t-mcore-pe
2072 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2073 if test "x$gnu_ld" = xyes
2075 tm_file="mips/iris6.h mips/iris6gld.h"
2077 tm_file=mips/iris6.h
2079 tmake_file="mips/t-iris mips/t-iris6"
2081 # if test x$enable_threads = xyes; then
2082 # thread_file='irix'
2086 tm_file="mips/elf.h mips/vxworks.h"
2087 tmake_file=mips/t-ecoff
2090 extra_parts="crtbegin.o crtend.o"
2091 thread_file='vxworks'
2093 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2094 tm_file="mips/iris6.h mips/cross64.h"
2096 xm_file=mips/xm-iris5.h
2097 tmake_file="mips/t-iris mips/t-cross64"
2098 # See comment in mips/iris[56].h files.
2100 # if test x$enable_threads = xyes; then
2101 # thread_file='irix'
2105 if test x$gas = xyes
2107 if test x$stabs = xyes
2109 tm_file=mips/iris5gdb.h
2111 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2114 tm_file=mips/sni-svr4.h
2117 if test x$gnu_ld != xyes
2122 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2123 if test x$gas = xyes
2125 tm_file="mips/iris5.h mips/iris5gas.h"
2126 if test x$stabs = xyes
2128 tm_file="${tm_file} dbx.h"
2131 tm_file=mips/iris5.h
2133 tmake_file=mips/t-iris
2135 xm_file=mips/xm-iris5.h
2136 # mips-tfile doesn't work yet
2137 # See comment in mips/iris5.h file.
2139 # if test x$enable_threads = xyes; then
2140 # thread_file='irix'
2143 mips-sgi-irix4loser*) # Mostly like a MIPS.
2144 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2145 if test x$stabs = xyes; then
2146 tm_file="${tm_file} dbx.h"
2148 tmake_file=mips/t-iris
2150 if test x$gas = xyes
2153 extra_passes="mips-tfile mips-tdump"
2155 if test x$gnu_ld != xyes
2159 # if test x$enable_threads = xyes; then
2160 # thread_file='irix'
2163 mips-sgi-irix4*) # Mostly like a MIPS.
2164 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2165 if test x$stabs = xyes; then
2166 tm_file="${tm_file} dbx.h"
2168 tmake_file=mips/t-iris
2170 if test x$gas = xyes
2173 extra_passes="mips-tfile mips-tdump"
2175 if test x$gnu_ld != xyes
2179 # if test x$enable_threads = xyes; then
2180 # thread_file='irix'
2183 mips-sgi-*) # Mostly like a MIPS.
2184 tm_file="mips/iris3.h ${tm_file}"
2185 if test x$stabs = xyes; then
2186 tm_file="${tm_file} dbx.h"
2189 if test x$gas = xyes
2192 extra_passes="mips-tfile mips-tdump"
2194 if test x$gnu_ld != xyes
2199 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2200 tm_file="mips/osfrose.h ${tm_file}"
2201 extra_objs=halfpic.o
2204 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2205 tm_file=mips/dec-osf1.h
2206 if test x$stabs = xyes; then
2207 tm_file="${tm_file} dbx.h"
2209 if test x$gas = xyes
2212 tmake_file=mips/t-ultrix
2213 extra_passes="mips-tfile mips-tdump"
2215 if test x$gnu_ld != xyes
2220 mips-dec-bsd*) # Decstation running 4.4 BSD
2221 tm_file=mips/dec-bsd.h
2222 if test x$gas = xyes
2225 tmake_file=mips/t-ultrix
2226 extra_passes="mips-tfile mips-tdump"
2228 if test x$gnu_ld != xyes
2233 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2234 tm_file=mips/netbsd.h
2235 # On NetBSD, the headers are already okay, except for math.h.
2238 mips*-*-linux*) # Linux MIPS, either endian.
2239 tm_file="dbxelf.h elfos.h svr4.h linux.h mips/linux.h"
2242 tm_file="$tm_file mips/isa32-linux.h"
2243 target_cpu_default="MASK_SOFT_FLOAT"
2248 tm_file="mips/little.h $tm_file"
2251 tmake_file="t-slibgcc-elf-ver t-linux"
2252 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
2255 if test x$enable_threads = xyes; then
2259 mips*el-*-openbsd*) # mips little endian
2260 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2262 mips*-*-openbsd*) # mips big endian
2263 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2264 tm_file="mips/openbsd-be.h ${tm_file}"
2266 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2267 tm_file="mips/news4.h ${tm_file}"
2268 if test x$stabs = xyes; then
2269 tm_file="${tm_file} dbx.h"
2271 if test x$gas = xyes
2274 extra_passes="mips-tfile mips-tdump"
2276 if test x$gnu_ld != xyes
2281 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2282 # That is based on svr4.
2283 # t-svr4 is not right because this system doesn't use ELF.
2284 tm_file="mips/news5.h ${tm_file}"
2285 if test x$stabs = xyes; then
2286 tm_file="${tm_file} dbx.h"
2289 if test x$gas = xyes
2292 extra_passes="mips-tfile mips-tdump"
2294 if test x$gnu_ld != xyes
2299 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2300 tm_file="mips/svr4-5.h mips/svr4-t.h"
2301 if test x$stabs = xyes; then
2302 tm_file="${tm_file} dbx.h"
2305 if test x$gas = xyes
2307 extra_parts="crtbegin.o crtend.o"
2309 extra_passes="mips-tfile mips-tdump"
2311 if test x$gnu_ld != xyes
2316 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2317 tm_file="mips/ultrix.h ${tm_file}"
2318 if test x$stabs = xyes; then
2319 tm_file="${tm_file} dbx.h"
2321 if test x$gas = xyes
2324 tmake_file=mips/t-ultrix
2325 extra_passes="mips-tfile mips-tdump"
2327 if test x$gnu_ld != xyes
2332 mips-*-riscos[56789]bsd*)
2333 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2334 if test x$stabs = xyes; then
2335 tm_file="${tm_file} dbx.h"
2337 if test x$gas = xyes
2339 tmake_file=mips/t-bsd-gas
2341 tmake_file=mips/t-bsd
2342 extra_passes="mips-tfile mips-tdump"
2344 if test x$gnu_ld != xyes
2349 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2350 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2351 if test x$stabs = xyes; then
2352 tm_file="${tm_file} dbx.h"
2354 if test x$gas = xyes
2356 tmake_file=mips/t-bsd-gas
2358 tmake_file=mips/t-bsd
2359 extra_passes="mips-tfile mips-tdump"
2361 if test x$gnu_ld != xyes
2366 mips-*-riscos[56789]sysv4*)
2367 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2368 if test x$stabs = xyes; then
2369 tm_file="${tm_file} dbx.h"
2371 if test x$gas = xyes
2373 tmake_file=mips/t-svr4-gas
2375 tmake_file=mips/t-svr4
2376 extra_passes="mips-tfile mips-tdump"
2378 if test x$gnu_ld != xyes
2383 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2384 tm_file="mips/svr4-4.h ${tm_file}"
2385 if test x$stabs = xyes; then
2386 tm_file="${tm_file} dbx.h"
2389 if test x$gas = xyes
2391 tmake_file=mips/t-svr4-gas
2393 tmake_file=mips/t-svr4
2394 extra_passes="mips-tfile mips-tdump"
2396 if test x$gnu_ld != xyes
2401 mips-*-riscos[56789]sysv*)
2402 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2403 if test x$stabs = xyes; then
2404 tm_file="${tm_file} dbx.h"
2407 if test x$gas = xyes
2409 tmake_file=mips/t-svr3-gas
2411 tmake_file=mips/t-svr3
2412 extra_passes="mips-tfile mips-tdump"
2414 if test x$gnu_ld != xyes
2419 mips-*-sysv* | mips-*-riscos*sysv*)
2420 tm_file="mips/svr3-4.h ${tm_file}"
2421 if test x$stabs = xyes; then
2422 tm_file="${tm_file} dbx.h"
2425 if test x$gas = xyes
2427 tmake_file=mips/t-svr3-gas
2429 tmake_file=mips/t-svr3
2430 extra_passes="mips-tfile mips-tdump"
2432 if test x$gnu_ld != xyes
2437 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2438 tm_file=mips/mips-5.h
2439 if test x$stabs = xyes; then
2440 tm_file="${tm_file} dbx.h"
2442 if test x$gas = xyes
2445 extra_passes="mips-tfile mips-tdump"
2447 if test x$gnu_ld != xyes
2453 tm_file=mips/ecoffl.h
2454 if test x$stabs = xyes; then
2455 tm_file="${tm_file} dbx.h"
2457 tmake_file=mips/t-ecoff
2460 tm_file="gofast.h mips/ecoff.h"
2461 if test x$stabs = xyes; then
2462 tm_file="${tm_file} dbx.h"
2464 tmake_file=mips/t-ecoff
2467 tm_file="mips/isa3264.h mips/abi64.h"
2468 tmake_file=mips/t-isa3264
2469 target_cpu_default="MASK_SOFT_FLOAT"
2472 tm_file="mips/elfl.h"
2473 tmake_file=mips/t-elf
2476 tm_file="mips/elf.h"
2477 tmake_file=mips/t-elf
2480 tm_file="mips/elfl64.h"
2481 tmake_file=mips/t-elf
2483 mips64orionel-*-elf*)
2484 tm_file="mips/elforion.h mips/elfl64.h"
2485 tmake_file=mips/t-elf
2488 tm_file="mips/elf64.h"
2489 tmake_file=mips/t-elf
2492 tm_file="mips/elforion.h mips/elf64.h"
2493 tmake_file=mips/t-elf
2495 mips64orion-*-rtems*)
2496 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2497 tmake_file="mips/t-elf t-rtems"
2498 if test x$enable_threads = xyes; then
2503 tm_file="mips/elf.h mips/rtems.h"
2504 tmake_file="mips/t-elf t-rtems"
2505 if test x$enable_threads = xyes; then
2510 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2511 tmake_file=mips/t-r3900
2512 target_cpu_default="MASK_SOFT_FLOAT"
2515 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2516 tmake_file=mips/t-r3900
2518 mips-*-*) # Default MIPS RISC-OS 4.0.
2519 if test x$stabs = xyes; then
2520 tm_file="${tm_file} dbx.h"
2522 if test x$gas = xyes
2525 extra_passes="mips-tfile mips-tdump"
2527 if test x$gnu_ld != xyes
2532 mmix-knuth-mmixware)
2536 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2537 if test x$stabs = xyes
2539 tm_file="${tm_file} dbx.h"
2544 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2545 if test x$stabs = xyes
2547 tm_file="${tm_file} dbx.h"
2552 tm_file=ns32k/encore.h
2556 tm_file=ns32k/sequent.h
2560 tm_file=ns32k/tek6100.h
2564 tm_file=ns32k/tek6200.h
2568 tm_file=ns32k/merlin.h
2572 tm_file=ns32k/pc532-mach.h
2576 tm_file=ns32k/pc532-min.h
2577 xm_defines='POSIX HZ=60'
2581 tm_file=ns32k/netbsd.h
2582 # On NetBSD, the headers are already okay, except for math.h.
2587 tm_file="${tm_file} pdp11/2bsd.h"
2597 tm_file="dbxelf.h elfos.h svr4.h pj/linux.h ${tm_file}"
2602 tm_file="dbxelf.h elfos.h svr4.h pj/pjl.h ${tm_file}"
2615 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2619 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h"
2620 out_file=rs6000/rs6000.c
2621 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2624 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
2626 tmake_file=rs6000/t-beos
2630 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2631 tm_p_file="${tm_p_file} darwin-protos.h"
2632 tmake_file=rs6000/t-darwin
2633 extra_objs="darwin.o"
2634 c_target_objs="darwin-c.o"
2635 cxx_target_objs="darwin-c.o"
2636 # Darwin linker does collect2 functionality
2640 powerpc*-*-freebsd*)
2641 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
2642 xm_file=rs6000/xm-sysv4.h
2643 out_file=rs6000/rs6000.c
2644 tmake_file="rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
2647 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2649 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2653 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
2654 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2656 powerpc-*-chorusos*)
2658 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
2659 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2660 case x${enable_threads} in
2661 xyes | xpthreads | xposix)
2668 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2669 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2671 powerpc-*-eabisimaltivec*)
2673 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"
2674 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2678 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2679 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2683 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2684 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2686 powerpc-*-eabialtivec*)
2688 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
2689 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2693 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
2694 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2698 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2699 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2700 if test x$enable_threads = xyes; then
2704 powerpc-*-linux*libc1)
2705 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2706 out_file=rs6000/rs6000.c
2707 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2708 if test x$enable_threads = xyes; then
2712 powerpc-*-linux-gnualtivec*)
2713 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
2714 out_file=rs6000/rs6000.c
2715 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2716 if test x$enable_threads = xyes; then
2721 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2722 out_file=rs6000/rs6000.c
2723 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2724 if test x$enable_threads = xyes; then
2728 powerpc-wrs-vxworks*)
2730 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/vxppc.h"
2731 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2732 thread_file='vxworks'
2734 powerpcle-wrs-vxworks*)
2736 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2737 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2738 thread_file='vxworks'
2741 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2743 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2747 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2748 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2750 powerpcle-*-eabisim*)
2752 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"
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 rs6000/sysv4le.h rs6000/eabi.h"
2758 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2760 rs6000-ibm-aix3.[01]*)
2762 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h"
2766 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2768 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h"
2769 tmake_file=rs6000/t-newas
2774 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2776 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
2777 tmake_file=rs6000/t-newas
2782 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2784 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
2785 tmake_file=rs6000/t-aix43
2791 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2793 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
2794 tmake_file=rs6000/t-aix43
2802 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2808 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2813 tm_file="${tm_file} rs6000/mach.h"
2818 tm_file="lynx.h rs6000/lynx.h"
2819 tmake_file=rs6000/t-rs6000
2823 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
2824 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2825 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
2826 if test x$enable_threads = xyes; then
2831 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h s390/linux64.h"
2832 tm_p_file=s390/s390-protos.h
2833 md_file=s390/s390.md
2834 out_file=s390/s390.c
2835 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2836 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
2837 if test x$enable_threads = xyes; then
2842 tmake_file="sh/t-sh sh/t-elf"
2843 tm_file="${tm_file} sh/elf.h"
2847 tmake_file="sh/t-sh sh/t-elf t-rtems"
2848 tm_file="${tm_file} sh/elf.h sh/rtemself.h"
2850 if test x$enable_threads = xyes; then
2855 tmake_file="sh/t-sh t-rtems"
2856 tm_file="${tm_file} sh/rtems.h"
2858 if test x$enable_threads = xyes; then
2863 tm_file="${tm_file} sh/elf.h sh/linux.h"
2864 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2866 if test x$enable_threads = xyes; then
2875 tm_file="${tm_file} sparc/pbd.h"
2878 sparc64-wrs-vxworks*)
2879 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h sparc/sparc_bi.h gofast.h sparc/vxsparc64.h"
2880 tmake_file=sparc/t-vxsparc64
2883 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2884 tm_file="${tm_file} aoutos.h sparc/aout.h gofast.h sparc/vxsparc.h"
2885 tmake_file=sparc/t-vxsparc
2887 thread_file='vxworks'
2890 tmake_file=sparc/t-sparcbare
2891 tm_file="sparc/sparc.h aoutos.h sparc/aout.h libgloss.h"
2894 tm_file="${tm_file} sparc/aout.h netbsd.h sparc/netbsd.h"
2899 tm_file="sparc/sparc.h ${tm_file}"
2900 # needed to unconfuse gdb
2901 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
2902 # we need collect2 until our bug is fixed...
2906 tm_file="${tm_file} sparc/bsd.h"
2909 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h chorus.h"
2910 tmake_file=sparc/t-chorus-elf
2911 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2913 case x${enable_threads} in
2914 xyes | xpthreads | xposix)
2920 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h"
2921 tmake_file=sparc/t-elf
2922 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2926 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2927 tm_file="aoutos.h sparc/sparc.h sparc/aout.h sparc/linux-aout.h"
2930 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2931 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
2932 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
2933 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2937 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2938 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
2939 tmake_file="t-slibgcc-elf-ver t-linux"
2940 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
2942 if test x$enable_threads = xyes; then
2948 if test x$gas = xyes
2950 tm_file="${tm_file} lynx.h sparc/aout.h sparc/lynx.h"
2952 tm_file="${tm_file} lynx-ng.h sparc/aout.h sparc/lynx-ng.h"
2954 tmake_file=sparc/t-sunos41
2957 tmake_file="sparc/t-sparcbare t-rtems"
2958 tm_file="${tm_file} aoutos.h sparc/aout.h sparc/rtems.h rtems.h"
2959 if test x$enable_threads = xyes; then
2963 sparc-*-rtems*|sparc-*-rtemself*)
2964 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
2965 tmake_file="sparc/t-elf t-rtems"
2966 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2969 if test x$enable_threads = xyes; then
2973 sparcv9-*-solaris2* | sparc64-*-solaris2*)
2974 if test x$gnu_ld = xyes
2976 tm_file="sparc/sol2-sld-64.h sparc/sol2-64.h"
2978 tm_file=sparc/sol2-sld-64.h
2981 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2982 if test x$gnu_ld = xyes; then
2983 tmake_file="$tmake_file t-slibgcc-elf-ver"
2985 tmake_file="$tmake_file t-slibgcc-sld"
2987 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2989 if test x${enable_threads} = x ; then
2990 enable_threads=$have_pthread_h
2991 if test x${enable_threads} = x ; then
2992 enable_threads=$have_thread_h
2995 if test x${enable_threads} = xyes ; then
2996 if test x${have_pthread_h} = xyes ; then
2999 thread_file='solaris'
3003 sparc-hal-solaris2*)
3005 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/hal.h"
3006 tmake_file="sparc/t-halos sparc/t-sol2"
3007 if test x$gnu_ld = xyes; then
3008 tmake_file="$tmake_file t-slibgcc-elf-ver"
3010 tmake_file="$tmake_file t-slibgcc-sld"
3012 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3021 thread_file='solaris'
3024 if test x$gnu_ld = xyes
3026 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h"
3028 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sol2-sld.h"
3031 tmake_file=sparc/t-sol2
3032 if test x$gnu_ld = xyes; then
3033 tmake_file="$tmake_file t-slibgcc-elf-ver"
3035 tmake_file="$tmake_file t-slibgcc-sld"
3037 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3039 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3041 if test x$gnu_ld = xyes
3043 tm_file="sparc/sol2-sld-64.h sparc/sol2-64.h"
3045 tm_file="sparc/sol2-sld-64.h"
3047 tmake_file="$tmake_file sparc/t-sol2-64"
3058 if test x${enable_threads} = x; then
3059 enable_threads=$have_pthread_h
3060 if test x${enable_threads} = x; then
3061 enable_threads=$have_thread_h
3064 if test x${enable_threads} = xyes; then
3065 if test x${have_pthread_h} = xyes; then
3068 thread_file='solaris'
3073 tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
3077 tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
3078 tmake_file=sparc/t-sunos41
3080 if test x$gas = xyes; then
3081 tm_file="${tm_file} sparc/sun4gas.h"
3085 tm_file="${tm_file} sparc/aout.h sparc/sun4o3.h"
3089 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h"
3092 extra_parts="crtbegin.o crtend.o"
3096 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/vxsim.h"
3097 tmake_file=sparc/t-vxsparc
3100 tm_file="${tm_file} aoutos.h sparc/aout.h sparc/splet.h libgloss.h"
3101 tmake_file=sparc/t-splet
3104 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
3105 tmake_file=sparc/t-sparclite
3108 tm_file="${tm_file} gofast.h sparc/aout.h sparc/lite.h aoutos.h libgloss.h"
3109 tmake_file=sparc/t-sparclite
3112 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h"
3113 tmake_file=sparc/t-sparclite
3114 extra_parts="crtbegin.o crtend.o"
3117 tm_file="${tm_file} gofast.h sparc/aout.h sparc/sp86x-aout.h aoutos.h libgloss.h"
3118 tmake_file=sparc/t-sp86x
3121 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"
3122 tmake_file=sparc/t-sp86x
3123 extra_parts="crtbegin.o crtend.o"
3126 tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h"
3129 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h"
3130 extra_parts="crtbegin.o crtend.o"
3132 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
3133 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
3135 case "x$with_cpu" in
3136 x) with_cpu=ultrasparc ;;
3137 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
3140 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3141 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64"
3142 tm_file="sparc/sparc_bi.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
3143 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
3145 if test x$enable_threads = xyes; then
3151 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
3152 tmake_file=arm/t-strongarm-elf
3157 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h"
3158 tmake_file=arm/t-strongarm-coff
3163 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"
3164 tmake_file=arm/t-strongarm-pe
3170 { echo "config.gcc: error:
3171 *** The Thumb targets have been deprecated. The equivalent
3172 *** ARM based toolchain can now generate Thumb instructions
3173 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3176 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} v850/rtems.h"
3177 tmake_file="v850/t-v850 t-rtems"
3178 if test x$stabs = xyes
3180 tm_file="${tm_file} dbx.h"
3183 c_target_objs="v850-c.o"
3184 cxx_target_objs="v850-c.o"
3187 target_cpu_default="TARGET_CPU_generic"
3188 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
3189 tmake_file=v850/t-v850
3190 if test x$stabs = xyes
3192 tm_file="${tm_file} dbx.h"
3195 c_target_objs="v850-c.o"
3196 cxx_target_objs="v850-c.o"
3198 vax-*-bsd*) # VAXen running BSD
3202 vax-*-sysv*) # VAXen running system V
3203 tm_file="${tm_file} vax/vaxv.h"
3208 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3214 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3218 vax-*-ultrix*) # VAXen running ultrix
3219 tm_file="${tm_file} vax/ultrix.h"
3222 vax-*-vms*) # VAXen running VMS
3223 xm_file=vax/xm-vms.h
3227 vax-*-*) # VAX default entry
3235 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
3236 tmake_file=arm/t-xscale-elf
3241 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
3242 tmake_file=arm/t-xscale-coff
3247 # For historical reasons, the target files omit the 'x'.
3248 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
3249 tm_p_file=stormy16/stormy16-protos.h
3250 md_file=stormy16/stormy16.md
3251 out_file=stormy16/stormy16.c
3252 tmake_file="stormy16/t-stormy16"
3253 extra_parts="crtbegin.o crtend.o"
3256 echo "Configuration $machine not supported" 1>&2
3263 install_headers_dir=install-headers-cpio
3267 # Distinguish i[34567]86
3268 # Also, do not run mips-tfile on MIPS if using gas.
3269 # Process --with-cpu= for PowerPC/rs6000
3270 target_cpu_default2=
3273 target_cpu_default2=TARGET_CPU_DEFAULT_i486
3276 case $target_alias in
3278 target_cpu_default2=TARGET_CPU_DEFAULT_k6_2
3281 target_cpu_default2=TARGET_CPU_DEFAULT_k6_3
3284 target_cpu_default2=TARGET_CPU_DEFAULT_k6
3287 target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx
3290 target_cpu_default2=TARGET_CPU_DEFAULT_pentium
3294 i686-*-* | i786-*-*)
3295 case $target_alias in
3296 athlon_xp-*|athlon_mp-*|athlon_4-*)
3297 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
3299 athlon_tbird-*|athlon-*)
3300 target_cpu_default2=TARGET_CPU_DEFAULT_athlon
3303 target_cpu_default2=TARGET_CPU_DEFAULT_pentium2
3306 target_cpu_default2=TARGET_CPU_DEFAULT_pentium3
3309 target_cpu_default2=TARGET_CPU_DEFAULT_pentium4
3312 target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro
3317 # We should have hammer chip here, but it does not exist yet and
3318 # thus it is not supported. Athlon_SSE is probably equivalent feature
3319 # wise to hammer from our point of view except for 64bit mode.
3320 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
3325 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3328 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3331 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3334 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3337 target_cpu_default2="MASK_CPU_EV5"
3341 if test x$gas = xyes
3343 if test "$target_cpu_default2" = ""
3345 target_cpu_default2="MASK_GAS"
3347 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3352 case "x$with_cpu" in
3355 target_cpu_default2="TARGET_CPU_generic"
3358 # Distinguish cores, and major variants
3359 # arm7m doesn't exist, but D & I don't affect code
3360 xarm[236789] | xarm250 | xarm[67][01]0 \
3361 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3362 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3364 | xstrongarm | xstrongarm110 | xstrongarm1100)
3365 target_cpu_default2="TARGET_CPU_$with_cpu"
3369 echo "--with-cpu must be passed a value" 1>&2
3374 if test x$pass2done = xyes
3376 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3383 hppa*-*-* | parisc*-*-*)
3384 if test x$gas = xyes
3386 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3390 mips*-*-ecoff* | mips*-*-elf*)
3391 if test x$gas = xyes
3393 if test x$gnu_ld = xyes
3395 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3397 target_cpu_default2="MASK_GAS"
3402 if test x$gas = xyes
3404 target_cpu_default2="MASK_GAS"
3407 powerpc*-*-* | rs6000-*-*)
3408 if test x$enable_altivec = xyes
3410 tm_file="$tm_file rs6000/altivec.h"
3412 case "x$with_cpu" in
3416 xcommon | xpower | xpower2 | xpowerpc | xrios \
3417 | xrios1 | xrios2 | xrsc | xrsc1 \
3418 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3419 | x740 | x750 | x505)
3420 target_cpu_default2="\\\"$with_cpu\\\""
3423 x401 | x403 | xec603e | x801 | x821 | x823 | x860)
3424 target_cpu_default2="\\\"$with_cpu\\\""
3425 tm_file="$tm_file rs6000/softfloat.h"
3429 echo "--with-cpu must be passed a value" 1>&2
3434 if test x$pass2done = xyes
3436 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3443 case ".$with_cpu" in
3445 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3447 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3448 target_cpu_default2="TARGET_CPU_$with_cpu"
3451 if test x$pass2done = xyes
3453 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3461 if test "$target_cpu_default2" != ""
3463 if test "$target_cpu_default" != ""
3465 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3467 target_cpu_default=$target_cpu_default2
3471 # Save data on machine being used to compile GCC in build_xm_file.
3472 # Save data on host machine in vars host_xm_file and host_xmake_file.
3473 if test x$pass1done = x
3475 if test x$xm_file != x
3476 then build_xm_file=$xm_file
3478 build_xm_defines=$xm_defines
3479 build_install_headers_dir=$install_headers_dir
3480 build_exeext=$exeext
3483 if test x$pass2done = x
3485 if test x$xm_file != x
3486 then host_xm_file=$xm_file
3488 host_xm_defines=$xm_defines
3489 host_xmake_file="$xmake_file"
3490 host_truncate_target=$truncate_target
3491 host_extra_gcc_objs=$extra_gcc_objs
3492 host_extra_objs=$extra_host_objs