1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
4 #This file is part of GNU CC.
6 #GNU CC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 2, or (at your option)
11 #GNU CC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GNU CC; see the file COPYING. If not, write to
18 #the Free Software Foundation, 59 Temple Place - Suite 330,
19 #Boston, MA 02111-1307, USA.
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".
51 # tm_p_file Location of file with declarations for functions
54 # out_file The name of the machine description C support
55 # file, if different from "$cpu_type/$cpu_type.c".
57 # md_file The name of the machine-description file, if
58 # different from "$cpu_type/$cpu_type.md".
60 # tmake_file A list of machine-description-specific
61 # makefile-fragments, if different from
62 # "$cpu_type/t-$cpu_type".
64 # float_format Set to the symbolic name for the floating-point
65 # formats used for this machine, if different from
66 # "i64". Used to derive a header file name to
67 # include, like "vax" for "float-vax.h". If no such
68 # file is wanted, set to "none".
70 # extra_objs List of extra objects that should be linked into
71 # the compiler proper (cc1, cc1obj, cc1plus)
72 # depending on target.
74 # extra_headers List of used header files from the directory
77 # host_xmake_file List of host-specific makefile-fragments.
79 # extra_passes List of extra executables compiled for this target
80 # machine, used for compiling from source to object.
82 # extra_parts List of extra object files that should be compiled
83 # for this target machine.
85 # extra_programs Like extra_passes, but these are used when linking.
87 # host_extra_objs List of extra host-dependant objects that should
88 # be linked into the compiler proper.
90 # host_extra_gcc_objs List of extra host-dependant objects that should
91 # be linked into the gcc driver.
93 # c_target_objs List of extra target-dependant objects that be
94 # linked into the C compiler only.
96 # cxx_target_objs List of extra target-dependant objects that be
97 # linked into the C++ compiler only.
99 # build_xm_defines List of macros to define when compiling for the
102 # build_xm_file List of files to include when compiling for the
105 # host_xm_defines List of macros to define when compiling for the
108 # host_xm_file List of files to include when compiling for the
111 # xm_defines List of macros to define when compiling for the
114 # xm_file List of files to include when compiling for the
117 # use_collect2 Set to yes or no, depending on whether collect2
120 # target_cpu_default Set to override the default target model.
122 # build_install_headers_dir
123 # Target to use when installing header files.
125 # host_truncate_target
126 # Non-empty if the target name should be truncated
127 # on this host, due to filename length issues.
129 # gdb_needs_out_file_path
130 # Set to yes if gdb needs a dir command with
131 # `dirname $out_file`.
133 # build_exeext Set to the suffix, if the build machine requires
134 # executables to have a file name suffix.
136 # host_exeext Set to the suffix, if the host machine requires
137 # executables to have a file name suffix.
139 # thread_file Set to control which thread package to use.
141 # gas Set to yes or no depending on whether the target
142 # system normally uses GNU as.
144 # The following variables are used in each case-construct to build up the
145 # outgoing variables:
147 # xmake_file Makefile-fragment when this system is as a host,
148 # for host_xmake_file.
150 # extra_host_objs List of extra objects that should be linked into
151 # the compiler proper when this system is a host,
152 # for host_extra_objs.
154 # install_headers_dir Makefile-target for how the header file directory
155 # is installed, when this system is a build system,
156 # for build_install_headers_dir.
158 # truncate_target Non-empty if the target name should be truncated
159 # when this system is a host, due to filename length
160 # issues. For host_truncate_target.
162 # exeext The suffix for executables on this system.
164 # gnu_ld Set to yes or no depending on whether the target
165 # system normally uses GNU ld.
181 # Set this to force installation and use of collect2.
183 # Set this to override the default target model.
185 # Set this to control how the header file directory is installed.
186 install_headers_dir=install-headers-tar
187 # Set this if directory names should be truncated to 14 characters.
189 # Set this if gdb needs a dir command with `dirname $out_file`
190 gdb_needs_out_file_path=
191 # Set this if the build machine requires executables to have a
194 # Set this to control which thread package will be used.
196 # Reinitialize these from the flag values every loop pass, since some
197 # configure entries modify them.
199 gnu_ld="$gnu_ld_flag"
200 enable_threads=$enable_threads_flag
202 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
203 # updated in each machine entry.
205 cpu_type=`echo $machine | sed 's/-.*$//'`
245 tm_file=${cpu_type}/${cpu_type}.h
246 xm_file=${cpu_type}/xm-${cpu_type}.h
247 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
249 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
251 # On a.out targets, we need to use collect2.
258 # Common parts for GNU/Linux, GNU/Hurd, OpenBSD and FreeBSD systems.
264 # On the Hurd, the setup is just about the same on
265 # each different CPU. The specific machines that we
266 # support are matched above and just set $cpu_type.
267 xm_file="xm-gnu.h ${xm_file}"
268 tm_file="${cpu_type}/gnu.h"
269 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
270 # GNU always uses ELF.
272 # GNU tools are the only tools.
275 # These details are the same as for Linux.
277 # But here we need a little extra magic.
278 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
281 tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}"
284 tm_file="svr4.h ${cpu_type}/${cpu_type}.h ${tm_file}"
289 tm_file=${cpu_type}/openbsd.h
290 tmake_file="t-libc-ok t-openbsd"
291 # avoid surprises, always provide an xm-openbsd file
292 xm_file=${cpu_type}/xm-openbsd.h
293 # don't depend on processor x-fragments as well
295 if test x$enable_threads = xyes; then
297 tmake_file="${tmake_file} t-openbsd-thread"
300 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
301 # This is the place-holder for the generic a.out configuration
302 # of FreeBSD. No actual configuration resides here since
303 # there was only ever a bare-bones ix86 configuration for
304 # a.out and it exists solely in the machine-specific section.
305 # This place-holder must exist to avoid dropping into
306 # the generic ELF configuration of FreeBSD (i.e. it must be
307 # ordered before that section).
310 # This is the generic ELF configuration of FreeBSD. Later
311 # machine-specific sections may refine and add to this
314 # Due to tm_file entry ordering issues that vary between cpu
315 # architectures, we only define fbsd_tm_file to allow the
316 # machine-specific section to dictate the final order of all
317 # entries of tm_file with the minor exception that components
318 # of the tm_file set here will always be of the form:
320 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd.h
322 # The machine-specific section should not tamper with this
323 # ordering but may order all other entries of tm_file as it
324 # pleases around the provided core setting.
327 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
329 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
330 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
331 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
332 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
333 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
337 case x${enable_threads} in
338 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
339 x | xyes | xpthreads | xposix)
341 tmake_file="${tmake_file} t-freebsd-thread"
343 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
345 fbsd_tm_file="${fbsd_tm_file} freebsd.h"
346 if test x${thread_file} = xposix; then
347 if test x${enable_libgcj} = xyes; then
348 echo 'FreeBSD does not currently handle --enable-threads (now'
349 echo 'the default to match system compiler) and --enable-libgcj.'
350 echo 'Please explicitly configure with --disable-threads or'
351 echo '--disable-libgcj'
359 # Support site-specific machine types.
361 cpu_type=`echo $machine | sed -e 's/-.*//'`
362 rest=`echo $machine | sed -e "s/$cpu_type-//"`
363 xm_file=${cpu_type}/xm-$rest.h
364 tm_file=${cpu_type}/$rest.h
365 if test -f $srcdir/config/${cpu_type}/x-$rest; \
366 then xmake_file=${cpu_type}/x-$rest; \
369 if test -f $srcdir/config/${cpu_type}/t-$rest; \
370 then tmake_file=${cpu_type}/t-$rest; \
376 a29k-*-bsd* | a29k-*-sym1*)
377 tm_file="${tm_file} a29k/unix.h"
379 xmake_file=a29k/x-unix
382 a29k-*-udi | a29k-*-coff)
383 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
384 tmake_file=a29k/t-a29kbare
388 tmake_file="a29k/t-a29kbare t-rtems"
389 if test x$enable_threads = xyes; then
394 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
395 tmake_file=a29k/t-vx29k
396 extra_parts="crtbegin.o crtend.o"
397 thread_file='vxworks'
399 a29k-*-*) # Default a29k environment.
403 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
405 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
406 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
408 # GAS + IEEE_CONFORMANT
409 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
411 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
412 xmake_file="x-interix alpha/t-pe"
413 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
414 if test x$enable_threads = xyes ; then
417 if test x$stabs = xyes ; then
418 tm_file="${tm_file} dbxcoff.h"
420 #prefix='$$INTERIX_ROOT'/usr/contrib
421 #local_prefix='$$INTERIX_ROOT'/usr/contrib
423 alpha*-*-linux*ecoff*)
424 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
425 target_cpu_default="MASK_GAS"
426 tmake_file="alpha/t-alpha alpha/t-ieee"
431 alpha*-*-linux*libc1*)
432 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
433 target_cpu_default="MASK_GAS"
434 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
435 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
438 if test x$enable_threads = xyes; then
443 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
444 target_cpu_default="MASK_GAS"
445 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
446 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
449 if test x$enable_threads = xyes; then
454 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
455 target_cpu_default="MASK_GAS"
457 tmake_file="${tmake_file} alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
460 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
461 target_cpu_default="MASK_GAS"
462 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
463 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
469 # default x-alpha is only appropriate for dec-osf.
470 target_cpu_default="MASK_GAS"
471 tmake_file="alpha/t-alpha alpha/t-ieee"
475 if test x$stabs = xyes
477 tm_file="${tm_file} dbx.h"
479 if test x$gas != xyes
481 extra_passes="mips-tfile mips-tdump"
484 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
485 xmake_file=alpha/x-osf
488 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
491 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
494 tm_file="${tm_file} alpha/osf.h"
495 tmake_file="$tmake_file alpha/t-osf4"
496 # Some versions of OSF4 (specifically X4.0-9 296.7) have
497 # a broken tar, so we use cpio instead.
498 install_headers_dir=install-headers-cpio
501 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
502 tmake_file="$tmake_file alpha/t-osf4"
507 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
508 target_cpu_default=MASK_SUPPORT_ARCH
513 tm_file="${tm_file} dbx.h alpha/vxworks.h"
514 tmake_file="alpha/t-alpha alpha/t-ieee"
517 extra_passes="mips-tfile mips-tdump"
520 thread_file='vxworks'
523 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
524 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
525 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
526 xmake_file=winnt/x-winnt
527 extra_host_objs=oldnames.o
528 extra_gcc_objs="spawnv.o oldnames.o"
529 if test x$gnu_ld != xyes
531 extra_programs=ld.exe
533 if test x$enable_threads = xyes; then
539 xm_file="${xm_file} alpha/xm-vms.h"
540 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
543 tm_file=arm/rtems-elf.h
544 tmake_file="arm/t-arm-elf t-rtems"
545 if test x$enable_threads = xyes; then
548 extra_parts="crtinit.o crtfini.o"
551 extra_parts="crtinit.o crtfini.o"
553 arm-*-coff* | armel-*-coff*)
555 tmake_file=arm/t-arm-coff
559 tmake_file=arm/t-arm-coff
560 thread_file='vxworks'
562 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
563 tm_file=arm/riscix1-1.h
566 arm-*-riscix*) # Acorn RISC machine
569 tm_file=arm/rix-gas.h
573 xmake_file=arm/x-riscix
574 tmake_file=arm/t-riscix
577 arm-semi-aout | armel-semi-aout)
579 tmake_file=arm/t-semi
581 arm-semi-aof | armel-semi-aof)
582 tm_file=arm/semiaof.h
583 tmake_file=arm/t-semiaof
587 tmake_file="t-netbsd arm/t-netbsd"
590 arm*-*-linux*) # ARM GNU/Linux with ELF
591 xm_file=arm/xm-linux.h
593 tm_file="arm/linux-elf.h"
594 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
595 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
597 case x${enable_threads} in
598 x | xyes | xpthreads | xposix)
603 arm*-*-uclinux*) # ARM ucLinux
604 tm_file=arm/uclinux-elf.h
605 tmake_file=arm/t-arm-elf
609 tmake_file=arm/t-arm-aout
612 tm_file=arm/ecos-elf.h
613 tmake_file=arm/t-arm-elf
616 tm_file=arm/unknown-elf.h
617 tmake_file=arm/t-arm-elf
620 tm_file=arm/conix-elf.h
621 tmake_file=arm/t-arm-elf
624 tm_file=arm/unknown-elf-oabi.h
625 tmake_file=arm/t-arm-elf
634 c1-convex-*) # Convex C1
638 c2-convex-*) # Convex C2
651 target_cpu_default=16
656 tmake_file="c4x/t-c4x t-rtems"
658 if test x$enable_threads = xyes; then
667 clipper-intergraph-clix*)
668 tm_file="${tm_file} svr3.h clipper/clix.h"
669 xm_file=clipper/xm-clix.h
670 xmake_file=clipper/x-clix
671 extra_headers=va-clipper.h
672 extra_parts="crtbegin.o crtend.o"
673 install_headers_dir=install-headers-cpio
684 tm_file="fr30/fr30.h"
685 tmake_file=fr30/t-fr30
686 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
689 tmake_file="h8300/t-h8300 t-rtems"
690 tm_file=h8300/rtems.h
691 if test x$enable_threads = xyes; then
700 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
701 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
702 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
703 extra_parts="crtbegin.o crtend.o"
706 if test x$enable_threads = xyes; then
711 target_cpu_default="MASK_PA_11"
712 tmake_file=pa/t-openbsd
715 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
716 xm_file=pa/xm-papro.h
717 tmake_file="pa/t-pro t-rtems"
718 if test x$enable_threads = xyes; then
723 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
724 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
725 xm_file=pa/xm-papro.h
729 target_cpu_default="MASK_PA_11"
730 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
734 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
735 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
736 xm_file=pa/xm-papro.h
740 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
744 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
745 target_cpu_default="MASK_PA_11"
749 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
753 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
754 xm_file=pa/xm-pahpux.h
755 xmake_file=pa/x-pa-hpux
758 tm_file="${tm_file} pa/gas.h"
760 install_headers_dir=install-headers-cpio
763 hppa1.0-*-hpux8.0[0-2]*)
764 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
765 xm_file=pa/xm-pahpux.h
766 xmake_file=pa/x-pa-hpux
769 tm_file="${tm_file} pa/pa-gas.h"
771 tm_file="pa/pa-oldas.h ${tm_file}"
773 install_headers_dir=install-headers-cpio
776 hppa1.1-*-hpux8.0[0-2]*)
777 target_cpu_default="MASK_PA_11"
778 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
779 xm_file=pa/xm-pahpux.h
780 xmake_file=pa/x-pa-hpux
783 tm_file="${tm_file} pa/pa-gas.h"
785 tm_file="pa/pa-oldas.h ${tm_file}"
787 install_headers_dir=install-headers-cpio
791 target_cpu_default="MASK_PA_11"
792 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
793 xm_file=pa/xm-pahpux.h
794 xmake_file=pa/x-pa-hpux
797 tm_file="${tm_file} pa/pa-gas.h"
799 install_headers_dir=install-headers-cpio
803 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
804 xm_file=pa/xm-pahpux.h
805 xmake_file=pa/x-pa-hpux
808 tm_file="${tm_file} pa/pa-gas.h"
810 install_headers_dir=install-headers-cpio
813 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
814 target_cpu_default="MASK_PA_11"
815 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
817 xm_file=pa/xm-pahpux.h
818 xmake_file=pa/x-pa-hpux
822 tm_file="${tm_file} pa/pa-gas.h"
824 if test x$enable_threads = x; then
825 enable_threads=$have_pthread_h
827 case x${enable_threads} in
829 tmake_file="${tmake_file} pa/t-dce-thr"
832 install_headers_dir=install-headers-cpio
836 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
838 xm_file=pa/xm-pahpux.h
839 xmake_file=pa/x-pa-hpux
843 tm_file="${tm_file} pa/pa-gas.h"
845 if test x$enable_threads = x; then
846 enable_threads=$have_pthread_h
848 case x${enable_threads} in
850 tmake_file="${tmake_file} pa/t-dce-thr"
853 install_headers_dir=install-headers-cpio
857 xm_file=pa/xm-pa64hpux.h
858 xmake_file=pa/x-pa-hpux
860 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"
863 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
867 tm_file="${tm_file} pa/pa-gas.h"
869 # if [ x$enable_threads = x ]; then
870 # enable_threads=$have_pthread_h
872 # if [ x$enable_threads = xyes ]; then
874 # tmake_file="${tmake_file} pa/t-dce-thr"
876 install_headers_dir=install-headers-cpio
879 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
880 target_cpu_default="MASK_PA_11"
881 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
883 xm_file=pa/xm-pahpux.h
884 xmake_file=pa/x-pa-hpux
888 tm_file="${tm_file} pa/pa-gas.h"
890 # if test x$enable_threads = x; then
891 # enable_threads=$have_pthread_h
893 # if test x$enable_threads = xyes; then
895 # tmake_file="${tmake_file} pa/t-dce-thr"
897 install_headers_dir=install-headers-cpio
901 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
903 xm_file=pa/xm-pahpux.h
904 xmake_file=pa/x-pa-hpux
907 tm_file="${tm_file} pa/pa-gas.h"
909 # if test x$enable_threads = x; then
910 # enable_threads=$have_pthread_h
912 # if test x$enable_threads = xyes; then
914 # tmake_file="${tmake_file} pa/t-dce-thr"
916 install_headers_dir=install-headers-cpio
919 hppa1.1-*-hpux* | hppa2*-*-hpux*)
920 target_cpu_default="MASK_PA_11"
921 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
922 xm_file=pa/xm-pahpux.h
923 xmake_file=pa/x-pa-hpux
926 tm_file="${tm_file} pa/pa-gas.h"
928 install_headers_dir=install-headers-cpio
932 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
933 xm_file=pa/xm-pahpux.h
934 xmake_file=pa/x-pa-hpux
937 tm_file="${tm_file} pa/pa-gas.h"
939 install_headers_dir=install-headers-cpio
942 hppa1.1-*-hiux* | hppa2*-*-hiux*)
943 target_cpu_default="MASK_PA_11"
944 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
945 xm_file=pa/xm-pahpux.h
946 xmake_file=pa/x-pa-hpux
949 tm_file="${tm_file} pa/pa-gas.h"
951 install_headers_dir=install-headers-cpio
955 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
956 xm_file=pa/xm-pahpux.h
957 xmake_file=pa/x-pa-hpux
960 tm_file="${tm_file} pa/pa-gas.h"
962 install_headers_dir=install-headers-cpio
966 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
967 target_cpu_default="MASK_PA_11"
971 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
972 xm_file=pa/xm-pampeix.h
973 xmake_file=pa/x-pa-mpeix
974 echo "You must use gas. Assuming it is already installed."
975 install_headers_dir=install-headers-tar
978 i370-*-opened*) # IBM 360/370/390 Architecture
985 xm_file=i370/xm-mvs.h
987 tmake_file=i370/t-mvs
990 xm_file="xm-linux.h i370/xm-linux.h"
992 tm_file="i370/linux.h ${tm_file}"
993 tmake_file="t-slibgcc-elf-ver t-linux i370/t-linux"
995 extra_parts="crtbegin.o crtbeginS.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*)
1005 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1006 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h i386/chorus.h"
1007 tmake_file=i386/t-i386elf
1009 case x${enable_threads} in
1010 xyes | xpthreads | xposix)
1016 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1017 tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h"
1018 tmake_file=i386/t-i386elf
1021 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1022 if test x$gas = xyes
1024 tm_file=i386/aix386.h
1025 extra_parts="crtbegin.o crtend.o"
1026 tmake_file=i386/t-crtstuff
1028 tm_file=i386/aix386ng.h
1031 xm_file="xm-alloca.h ${xm_file}"
1033 xmake_file=i386/x-aix
1035 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1036 xm_file="xm-alloca.h ${xm_file}"
1037 xm_defines="USG POSIX SMALL_ARG_MAX"
1038 xmake_file=i386/x-ncr3000
1039 if test x$stabs = xyes -a x$gas = xyes
1041 tm_file=i386/sysv4gdb.h
1043 tm_file=i386/sysv4.h
1045 extra_parts="crtbegin.o crtend.o"
1046 tmake_file=i386/t-crtpic
1050 xm_file=i386/xm-next.h
1051 tmake_file=i386/t-next
1052 xmake_file=i386/x-next
1053 extra_objs=nextstep.o
1054 extra_parts="crtbegin.o crtend.o"
1055 if test x$enable_threads = xyes; then
1059 i[34567]86-*-netware) # Intel 80386's running netware
1060 tm_file=i386/netware.h
1061 tmake_file=i386/t-netware
1063 i[34567]86-sequent-bsd*) # 80386 from Sequent
1065 if test x$gas = xyes
1067 tm_file=i386/seq-gas.h
1069 tm_file=i386/sequent.h
1072 i[34567]86-sequent-ptx1*)
1073 xm_defines="USG SVR3"
1074 xmake_file=i386/x-sysv3
1075 tm_file=i386/seq-sysv3.h
1076 tmake_file=i386/t-crtstuff
1077 extra_parts="crtbegin.o crtend.o"
1078 install_headers_dir=install-headers-cpio
1080 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1081 xm_defines="USG SVR3"
1082 xmake_file=i386/x-sysv3
1083 tm_file=i386/seq2-sysv3.h
1084 tmake_file=i386/t-crtstuff
1085 extra_parts="crtbegin.o crtend.o"
1086 install_headers_dir=install-headers-cpio
1088 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1089 xm_file="xm-alloca.h ${xm_file}"
1090 if test x$gas = xyes
1092 tm_file="${tm_file} usegas.h"
1094 xm_defines="USG POSIX SMALL_ARG_MAX"
1096 tm_file=i386/ptx4-i.h
1098 extra_parts="crtbegin.o crtend.o"
1099 install_headers_dir=install-headers-cpio
1101 i386-sun-sunos*) # Sun i386 roadrunner
1106 i[34567]86-wrs-vxworks*)
1107 tm_file=i386/vxi386.h
1108 tmake_file=i386/t-i386bare
1109 thread_file='vxworks'
1112 tm_file=i386/i386-aout.h
1113 tmake_file=i386/t-i386bare
1115 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1116 xm_file=i386/xm-beos.h
1117 tmake_file='i386/t-beos i386/t-crtpic'
1118 tm_file=i386/beos-elf.h
1119 xmake_file=i386/x-beos
1120 extra_parts='crtbegin.o crtend.o'
1122 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1123 tm_file=i386/bsd386.h
1124 # tmake_file=t-libc-ok
1127 tm_file=i386/386bsd.h
1128 # tmake_file=t-libc-ok
1129 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1132 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1133 tm_file="i386/freebsd-aout.h i386/perform.h"
1134 tmake_file=t-freebsd
1136 i[34567]86-*-freebsd*)
1137 tm_file="${tm_file} i386/att.h svr4.h ${fbsd_tm_file} i386/freebsd.h i386/perform.h"
1139 i[34567]86-*-netbsd*)
1140 tm_file=i386/netbsd.h
1144 i[34567]86-*-openbsd*)
1145 # we need collect2 until our bug is fixed...
1149 tm_file=i386/i386-coff.h
1150 tmake_file=i386/t-i386bare
1152 i[34567]86-*-isc*) # 80386 running ISC system
1153 xm_file="${xm_file} i386/xm-isc.h"
1154 xm_defines="USG SVR3"
1156 i[34567]86-*-isc[34]*)
1157 xmake_file=i386/x-isc3
1160 xmake_file=i386/x-isc
1163 if test x$gas = xyes -a x$stabs = xyes
1165 tm_file=i386/iscdbx.h
1166 tmake_file=i386/t-svr3dbx
1167 extra_parts="svr3.ifile svr3z.ifile"
1169 tm_file=i386/isccoff.h
1170 tmake_file=i386/t-crtstuff
1171 extra_parts="crtbegin.o crtend.o"
1173 tmake_file="$tmake_file i386/t-i386bare"
1174 install_headers_dir=install-headers-cpio
1176 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1177 # with a.out format using
1179 xmake_file=x-linux-aout
1180 tmake_file="t-linux-aout i386/t-crtstuff"
1181 tm_file=i386/linux-oldld.h
1185 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1187 xmake_file=x-linux-aout
1188 tmake_file="t-linux-aout i386/t-crtstuff"
1189 tm_file=i386/linux-aout.h
1193 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1194 # with ELF format using the
1195 # GNU/Linux C library 5
1197 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1198 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1199 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1202 if test x$enable_threads = xyes; then
1203 thread_file='single'
1206 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1207 # with ELF format using glibc 2
1208 # aka GNU/Linux C library 6
1210 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h"
1211 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1212 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1215 if test x$enable_threads = xyes; then
1222 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1223 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1226 i[34567]86-pc-msdosdjgpp*)
1227 xm_file=i386/xm-djgpp.h
1228 tm_file=i386/djgpp.h
1229 tmake_file=i386/t-djgpp
1230 xmake_file=i386/x-djgpp
1235 case $host in *pc-msdosdjgpp*)
1240 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1241 tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h"
1242 tmake_file=t-libc-ok
1246 i[34567]86-*-lynxos*)
1247 if test x$gas = xyes
1251 tm_file=i386/lynx-ng.h
1253 xm_file=i386/xm-lynx.h
1254 tmake_file=i386/t-i386bare
1259 # tmake_file=t-libc-ok
1262 i[34567]86-*-osfrose*) # 386 using OSF/rose
1263 if test x$elf = xyes
1265 tm_file=i386/osfelf.h
1268 tm_file=i386/osfrose.h
1271 xmake_file=i386/x-osfrose
1272 tmake_file=i386/t-osf
1273 extra_objs=halfpic.o
1275 i[34567]86-go32-rtems*)
1277 xm_file=i386/xm-go32.h
1278 tm_file=i386/go32-rtems.h
1279 tmake_file="i386/t-go32 t-rtems"
1280 if test x$enable_threads = xyes; then
1284 i[34567]86-*-rtemscoff*)
1286 tm_file=i386/rtems.h
1287 tmake_file="i386/t-i386bare t-rtems"
1288 if test x$enable_threads = xyes; then
1292 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1294 tm_file=i386/rtemself.h
1295 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1296 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1297 if test x$enable_threads = xyes; then
1301 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1302 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1303 xm_defines="USG SVR3"
1304 xmake_file=i386/x-sco5
1305 install_headers_dir=install-headers-cpio
1307 if test x$gas = xyes
1309 tm_file="usegas.h ${tm_file}"
1310 tmake_file=i386/t-sco5gas
1312 tmake_file=i386/t-sco5
1314 tmake_file="$tmake_file i386/t-i386bare"
1315 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1317 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1318 xm_file="${xm_file} i386/xm-sco.h"
1319 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1320 xmake_file=i386/x-sco4
1321 install_headers_dir=install-headers-cpio
1322 if test x$stabs = xyes
1324 tm_file=i386/sco4dbx.h
1325 tmake_file=i386/t-svr3dbx
1326 extra_parts="svr3.ifile svr3z.rfile"
1329 tmake_file=i386/t-crtstuff
1330 extra_parts="crtbegin.o crtend.o"
1332 tmake_file="$tmake_file i386/t-i386bare"
1333 # The default EAFS filesystem supports long file names.
1334 # Truncating the target makes $host != $target which
1335 # makes gcc think it is doing a cross-compile.
1336 # truncate_target=yes
1338 i[34567]86-*-sco*) # 80386 running SCO system
1339 xm_file=i386/xm-sco.h
1340 xmake_file=i386/x-sco
1341 install_headers_dir=install-headers-cpio
1342 if test x$stabs = xyes
1344 tm_file=i386/scodbx.h
1345 tmake_file=i386/t-svr3dbx
1346 extra_parts="svr3.ifile svr3z.rfile"
1349 extra_parts="crtbegin.o crtend.o"
1350 tmake_file=i386/t-crtstuff
1352 tmake_file="$tmake_file i386/t-i386bare"
1355 i[34567]86-*-solaris2*)
1356 xm_file="xm-alloca.h ${xm_file}"
1357 xm_defines="USG POSIX SMALL_ARG_MAX"
1359 if test x$gas = xyes; then
1360 # Only needed if gas does not support -s
1361 tm_file="i386/sol2gas.h ${tm_file}"
1363 tmake_file="i386/t-i386bare i386/t-sol2"
1364 if test x$gnu_ld = xyes; then
1365 tmake_file="$tmake_file t-slibgcc-elf-ver"
1367 tmake_file="$tmake_file t-slibgcc-sld"
1369 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1371 if test x${enable_threads} = x; then
1372 enable_threads=$have_pthread_h
1373 if test x${enable_threads} = x; then
1374 enable_threads=$have_thread_h
1377 if test x${enable_threads} = xyes; then
1378 if test x${have_pthread_h} = xyes; then
1381 thread_file='solaris'
1385 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1386 xm_file="xm-alloca.h ${xm_file}"
1387 xm_defines="USG POSIX"
1388 tm_file=i386/sysv5.h
1389 if test x$stabs = xyes
1391 tm_file="${tm_file} dbx.h"
1393 tmake_file="i386/t-i386bare i386/t-crtpic"
1395 extra_parts="crtbegin.o crtend.o"
1396 if test x$enable_threads = xyes; then
1400 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1401 xm_file="xm-alloca.h ${xm_file}"
1402 xm_defines="USG POSIX SMALL_ARG_MAX"
1403 tm_file=i386/sysv4.h
1404 if test x$stabs = xyes
1406 tm_file="${tm_file} dbx.h"
1408 tmake_file="i386/t-i386bare i386/t-crtpic"
1410 extra_parts="crtbegin.o crtend.o"
1412 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1413 xm_file="xm-alloca.h ${xm_file}"
1414 xm_defines="USG POSIX"
1416 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1418 extra_parts="crtbegin.o crtend.o"
1419 install_headers_dir=install-headers-cpio
1421 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1423 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1424 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1425 if test x$stabs = xyes
1427 tm_file=i386/osf1elfgdb.h
1429 tm_file=i386/osf1elf.h
1431 tmake_file=i386/t-osf1elf
1432 xmake_file=i386/x-osf1elf
1433 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1435 i[34567]86-*-sysv*) # Intel 80386's running system V
1436 xm_defines="USG SVR3"
1437 xmake_file=i386/x-sysv3
1438 if test x$gas = xyes
1440 if test x$stabs = xyes
1442 tm_file=i386/svr3dbx.h
1443 tmake_file=i386/t-svr3dbx
1444 extra_parts="svr3.ifile svr3z.rfile"
1446 tm_file=i386/svr3gas.h
1447 extra_parts="crtbegin.o crtend.o"
1448 tmake_file=i386/t-crtstuff
1451 tm_file=i386/sysv3.h
1452 extra_parts="crtbegin.o crtend.o"
1453 tmake_file=i386/t-crtstuff
1455 tmake_file="$tmake_file i386/t-crtpic"
1457 i386-*-vsta) # Intel 80386's running VSTa kernel
1458 xm_file="${xm_file} i386/xm-vsta.h"
1460 tmake_file=i386/t-vsta
1461 xmake_file=i386/x-vsta
1464 xm_file="${xm_file} i386/xm-cygwin.h"
1466 tmake_file=i386/t-cygwin
1467 tm_file=i386/win32.h
1468 xmake_file=i386/x-cygwin
1470 if test x$enable_threads = xyes; then
1475 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1476 xm_file="${xm_file} i386/xm-cygwin.h"
1478 tmake_file=i386/t-cygwin
1479 tm_file=i386/cygwin.h
1480 xmake_file=i386/x-cygwin
1482 if test x$enable_threads = xyes; then
1487 i[34567]86-*-mingw32*)
1488 tm_file=i386/mingw32.h
1490 xm_file="${xm_file} i386/xm-mingw32.h"
1491 tmake_file="i386/t-cygwin i386/t-mingw32"
1493 xmake_file=i386/x-cygwin
1494 if test x$enable_threads = xyes; then
1501 *minwg32crt* | *mingw32*)
1502 tm_file="${tm_file} i386/crtdll.h"
1508 tmake_file="i386/t-cygwin i386/t-uwin"
1510 xmake_file=i386/x-cygwin
1511 if test x$enable_threads = xyes; then
1516 i[34567]86-*-interix*)
1517 tm_file="i386/i386-interix.h interix.h"
1518 xm_file="i386/xm-i386-interix.h xm-interix.h"
1520 tmake_file="i386/t-interix"
1521 extra_objs=interix.o
1522 xmake_file=x-interix
1523 if test x$enable_threads = xyes ; then
1526 if test x$stabs = xyes ; then
1527 tm_file="${tm_file} dbxcoff.h"
1530 i[34567]86-*-winnt3*)
1531 tm_file=i386/win-nt.h
1532 out_file=i386/i386.c
1533 xm_file="xm-winnt.h ${xm_file}"
1534 xmake_file=winnt/x-winnt
1535 tmake_file=i386/t-winnt
1536 extra_host_objs="winnt.o oldnames.o"
1537 extra_gcc_objs="spawnv.o oldnames.o"
1538 if test x$gnu_ld != xyes
1540 extra_programs=ld.exe
1542 if test x$enable_threads = xyes; then
1546 i[34567]86-dg-dgux*)
1547 xm_file="xm-alloca.h ${xm_file}"
1548 xm_defines="USG POSIX"
1549 out_file=i386/dgux.c
1551 tmake_file=i386/t-dgux
1552 xmake_file=i386/x-dgux
1553 install_headers_dir=install-headers-cpio
1555 i860-alliant-*) # Alliant FX/2800
1556 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1557 xm_file="${xm_file}"
1558 xmake_file=i860/x-fx2800
1559 tmake_file=i860/t-fx2800
1560 extra_parts="crtbegin.o crtend.o"
1563 tm_file="${tm_file} i860/bsd.h"
1564 if test x$gas = xyes
1566 tm_file="${tm_file} i860/bsd-gas.h"
1571 tm_file="${tm_file} i860/mach.h"
1572 tmake_file=t-libc-ok
1574 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1575 tm_file="${tm_file} svr3.h i860/paragon.h"
1576 xm_defines="USG SVR3"
1580 tm_file="${tm_file} svr3.h i860/sysv3.h"
1581 xm_defines="USG SVR3"
1582 xmake_file=i860/x-sysv3
1583 extra_parts="crtbegin.o crtend.o"
1586 tm_file="${tm_file} svr4.h i860/sysv4.h"
1587 xm_defines="USG SVR3"
1588 xmake_file=i860/x-sysv4
1590 extra_parts="crtbegin.o crtend.o"
1592 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1593 tm_file="${tm_file} i960/vx960.h"
1594 tmake_file=i960/t-vxworks960
1596 thread_file='vxworks'
1598 i960-wrs-vxworks5* | i960-wrs-vxworks)
1599 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1600 tmake_file=i960/t-vxworks960
1602 thread_file='vxworks'
1605 tm_file="${tm_file} i960/vx960.h"
1606 tmake_file=i960/t-vxworks960
1608 thread_file='vxworks'
1611 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1612 tmake_file=i960/t-960bare
1616 tmake_file="i960/t-960bare t-rtems"
1617 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1619 if test x$enable_threads = xyes; then
1623 i960-*-*) # Default i960 environment.
1628 tmake_file="ia64/t-ia64"
1629 target_cpu_default="0"
1630 if test x$gas = xyes
1632 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1634 if test x$gnu_ld = xyes
1636 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1641 tm_file=ia64/linux.h
1642 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1643 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1644 if test x$enable_threads = xyes; then
1650 tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h"
1651 tmake_file="ia64/t-ia64 ia64/t-hpux"
1652 target_cpu_default="MASK_GNU_AS"
1653 if test x$enable_threads = xyes; then
1659 extra_parts="crtinit.o crtfini.o"
1661 # m68hc11 and m68hc12 share the same machine description.
1662 m68hc11-*-*|m6811-*-*)
1663 tm_file="m68hc11/m68hc11.h"
1664 xm_file="m68hc11/xm-m68hc11.h"
1665 tm_p_file="m68hc11/m68hc11-protos.h"
1666 md_file="m68hc11/m68hc11.md"
1667 out_file="m68hc11/m68hc11.c"
1668 tmake_file="m68hc11/t-m68hc11-gas"
1670 m68hc12-*-*|m6812-*-*)
1671 tm_file="m68hc11/m68hc12.h"
1672 tm_p_file="m68hc11/m68hc11-protos.h"
1673 xm_file="m68hc11/xm-m68hc11.h"
1674 md_file="m68hc11/m68hc11.md"
1675 out_file="m68hc11/m68hc11.c"
1676 tmake_file="m68hc11/t-m68hc11-gas"
1678 m68000-convergent-sysv*)
1680 xm_file="m68k/xm-3b1.h ${xm_file}"
1683 extra_headers=math-68881.h
1685 m68000-hp-bsd*) # HP 9000/200 running BSD
1686 tm_file=m68k/hp2bsd.h
1687 xmake_file=m68k/x-hp2bsd
1689 extra_headers=math-68881.h
1691 m68000-hp-hpux*) # HP 9000 series 300
1692 xm_file="xm-alloca.h ${xm_file}"
1694 if test x$gas = xyes
1696 xmake_file=m68k/x-hp320g
1697 tm_file=m68k/hp310g.h
1699 xmake_file=m68k/x-hp320
1700 tm_file=m68k/hp310.h
1702 install_headers_dir=install-headers-cpio
1704 extra_headers=math-68881.h
1709 extra_headers=math-68881.h
1712 tm_file=m68k/sun2o4.h
1714 extra_headers=math-68881.h
1717 xm_file="m68k/xm-3b1.h ${xm_file}"
1719 if test x$gas = xyes
1726 extra_headers=math-68881.h
1728 m68k-apple-aux*) # Apple Macintosh running A/UX
1729 xm_defines="USG AUX"
1730 tmake_file=m68k/t-aux
1731 install_headers_dir=install-headers-cpio
1732 extra_headers=math-68881.h
1733 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1735 if test "$gnu_ld" = yes
1737 tm_file="${tm_file} m68k/auxgld.h"
1739 tm_file="${tm_file} m68k/auxld.h"
1741 if test "$gas" = yes
1743 tm_file="${tm_file} m68k/auxgas.h"
1745 tm_file="${tm_file} m68k/auxas.h"
1747 tm_file="${tm_file} m68k/a-ux.h"
1751 tm_file=m68k/apollo68.h
1752 xmake_file=m68k/x-apollo68
1754 extra_headers=math-68881.h
1757 m68k-altos-sysv*) # Altos 3068
1758 if test x$gas = xyes
1760 tm_file=m68k/altos3068.h
1763 echo "The Altos is supported only with the GNU assembler" 1>&2
1766 extra_headers=math-68881.h
1768 m68k-bull-sysv*) # Bull DPX/2
1769 if test x$gas = xyes
1771 if test x$stabs = xyes
1773 tm_file=m68k/dpx2cdbx.h
1775 tm_file=m68k/dpx2g.h
1780 xm_file="xm-alloca.h ${xm_file}"
1782 xmake_file=m68k/x-dpx2
1784 extra_headers=math-68881.h
1786 m68k-atari-sysv4*) # Atari variant of V.4.
1787 tm_file=m68k/atari.h
1788 xm_file="xm-alloca.h ${xm_file}"
1789 xm_defines="USG FULL_PROTOTYPES"
1791 extra_parts="crtbegin.o crtend.o"
1792 extra_headers=math-68881.h
1795 m68k-motorola-sysv*)
1796 tm_file=m68k/mot3300.h
1797 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1798 if test x$gas = xyes
1800 xmake_file=m68k/x-mot3300-gas
1801 if test x$gnu_ld = xyes
1803 tmake_file=m68k/t-mot3300-gald
1805 tmake_file=m68k/t-mot3300-gas
1809 xmake_file=m68k/x-mot3300
1810 if test x$gnu_ld = xyes
1812 tmake_file=m68k/t-mot3300-gld
1814 tmake_file=m68k/t-mot3300
1818 gdb_needs_out_file_path=yes
1819 extra_parts="crt0.o mcrt0.o"
1820 extra_headers=math-68881.h
1823 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1824 tm_file=m68k/tower-as.h
1825 xm_defines="USG SVR3"
1826 xmake_file=m68k/x-tower
1827 extra_parts="crtbegin.o crtend.o"
1828 extra_headers=math-68881.h
1831 tm_file=m68k/plexus.h
1832 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1835 extra_headers=math-68881.h
1839 xm_file="xm-alloca.h ${xm_file}"
1841 extra_headers=math-68881.h
1844 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1845 xm_defines="USG unos"
1846 xmake_file=m68k/x-crds
1849 extra_headers=math-68881.h
1851 m68k-cbm-sysv4*) # Commodore variant of V.4.
1853 xm_file="xm-alloca.h ${xm_file}"
1854 xm_defines="USG FULL_PROTOTYPES"
1855 xmake_file=m68k/x-amix
1857 extra_parts="crtbegin.o crtend.o"
1858 extra_headers=math-68881.h
1862 tm_file=m68k/ccur-GAS.h
1863 xmake_file=m68k/x-ccur
1864 extra_headers=math-68881.h
1868 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1869 tm_file=m68k/hp3bsd44.h
1870 xmake_file=m68k/x-hp3bsd44
1872 extra_headers=math-68881.h
1875 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1876 tm_file=m68k/hp3bsd.h
1878 extra_headers=math-68881.h
1882 if test x$with_fp = xno
1884 tm_file=m68k/isi-nfp.h
1890 extra_headers=math-68881.h
1892 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1893 xm_file="xm-alloca.h ${xm_file}"
1895 if test x$gas = xyes
1897 xmake_file=m68k/x-hp320g
1898 tm_file=m68k/hp320g.h
1900 xmake_file=m68k/x-hp320
1901 tm_file=m68k/hpux7.h
1903 install_headers_dir=install-headers-cpio
1905 extra_headers=math-68881.h
1908 m68k-hp-hpux*) # HP 9000 series 300
1909 xm_file="xm-alloca.h ${xm_file}"
1911 if test x$gas = xyes
1913 xmake_file=m68k/x-hp320g
1914 tm_file=m68k/hp320g.h
1916 xmake_file=m68k/x-hp320
1917 tm_file=m68k/hp320.h
1919 install_headers_dir=install-headers-cpio
1921 extra_headers=math-68881.h
1925 tm_file=m68k/sun3mach.h
1927 extra_headers=math-68881.h
1931 if test x$gas = xyes
1933 tm_file=m68k/news3gas.h
1935 tm_file=m68k/news3.h
1938 extra_headers=math-68881.h
1941 m68k-sony-bsd* | m68k-sony-newsos*)
1942 if test x$gas = xyes
1944 tm_file=m68k/newsgas.h
1949 extra_headers=math-68881.h
1952 m68k-next-nextstep2*)
1953 tm_file=m68k/next21.h
1954 xm_file="m68k/xm-next.h ${xm_file}"
1955 tmake_file=m68k/t-next
1956 xmake_file=m68k/x-next
1957 extra_objs=nextstep.o
1958 extra_headers=math-68881.h
1962 m68k-next-nextstep[34]*)
1964 xm_file="m68k/xm-next.h ${xm_file}"
1965 tmake_file=m68k/t-next
1966 xmake_file=m68k/x-next
1967 extra_objs=nextstep.o
1968 extra_parts="crtbegin.o crtend.o"
1969 extra_headers=math-68881.h
1971 if test x$enable_threads = xyes; then
1976 if test x$with_fp = xno
1978 tm_file=m68k/sun3n3.h
1980 tm_file=m68k/sun3o3.h
1984 extra_headers=math-68881.h
1986 m68k-sun-sunos*) # For SunOS 4 (the default).
1987 if test x$with_fp = xno
1989 tm_file=m68k/sun3n.h
1995 extra_headers=math-68881.h
1998 tm_file=m68k/vxm68k.h
1999 tmake_file=m68k/t-vxworks68
2000 extra_headers=math-68881.h
2001 thread_file='vxworks'
2005 tmake_file=m68k/t-m68kbare
2006 tm_file="m68k/m68k-aout.h libgloss.h"
2007 extra_headers=math-68881.h
2011 tmake_file=m68k/t-m68kbare
2012 tm_file="m68k/m68k-coff.h dbx.h"
2013 extra_headers=math-68881.h
2016 m68020-*-elf* | m68k-*-elf*)
2017 tm_file="m68k/m68020-elf.h"
2018 xm_file=m68k/xm-m68kv.h
2019 tmake_file=m68k/t-m68kelf
2020 header_files=math-68881.h
2023 if test x$gas = xyes
2027 tm_file=m68k/lynx-ng.h
2029 xm_file=m68k/xm-lynx.h
2031 tmake_file=m68k/t-lynx
2032 extra_headers=math-68881.h
2036 tm_file=m68k/netbsd.h
2043 # we need collect2 until our bug is fixed...
2046 m68k-*-sysv3*) # Motorola m68k's running system V.3
2047 xm_file="xm-alloca.h ${xm_file}"
2049 xmake_file=m68k/x-m68kv
2050 extra_parts="crtbegin.o crtend.o"
2051 extra_headers=math-68881.h
2054 m68k-*-sysv4*) # Motorola m68k's running system V.4
2055 tm_file=m68k/m68kv4.h
2056 xm_file="xm-alloca.h ${xm_file}"
2059 extra_parts="crtbegin.o crtend.o"
2060 extra_headers=math-68881.h
2063 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2066 tm_file=m68k/linux-aout.h
2067 tmake_file="t-linux-aout m68k/t-linux-aout"
2068 extra_headers=math-68881.h
2072 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2073 # with ELF format using the
2074 # GNU/Linux C library 5
2076 tm_file=m68k/linux.h
2077 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
2078 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2079 extra_headers=math-68881.h
2083 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2084 # with ELF format using glibc 2
2085 # aka the GNU/Linux C library 6.
2087 tm_file=m68k/linux.h
2088 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
2089 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2090 extra_headers=math-68881.h
2093 if test x$enable_threads = xyes; then
2098 tmake_file=m68k/t-m68kbare
2099 tm_file=m68k/m68k-psos.h
2100 extra_headers=math-68881.h
2104 tmake_file="m68k/t-m68kbare t-rtems"
2105 tm_file=m68k/rtems.h
2106 extra_headers=math-68881.h
2108 if test x$enable_threads = xyes; then
2112 m68k-*-rtemself*|m68k-*-rtems*)
2113 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2114 tm_file=m68k/rtemself.h
2115 extra_headers=math-68881.h
2117 if test x$enable_threads = xyes; then
2124 tm_file=m88k/dguxbcs.h
2125 tmake_file=m88k/t-dguxbcs
2129 tmake_file=m88k/t-dgux
2132 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2133 xmake_file=m88k/x-dgux
2134 if test x$gas = xyes
2136 tmake_file=m88k/t-dgux-gas
2139 m88k-dolphin-sysv3*)
2140 tm_file=m88k/dolph.h
2141 extra_parts="crtbegin.o crtend.o"
2142 xm_file="m88k/xm-sysv3.h ${xm_file}"
2143 xmake_file=m88k/x-dolph
2144 if test x$gas = xyes
2146 tmake_file=m88k/t-m88k-gas
2149 m88k-tektronix-sysv3)
2150 tm_file=m88k/tekXD88.h
2151 extra_parts="crtbegin.o crtend.o"
2152 xm_file="m88k/xm-sysv3.h ${xm_file}"
2153 xmake_file=m88k/x-tekXD88
2154 if test x$gas = xyes
2156 tmake_file=m88k/t-m88k-gas
2160 tm_file=m88k/m88k-aout.h
2163 tm_file=m88k/m88k-coff.h
2164 tmake_file=m88k/t-bug
2168 extra_parts="crtbegin.o crtend.o"
2169 if test x$gas = xyes
2171 tmake_file=m88k/t-luna-gas
2173 tmake_file=m88k/t-luna
2177 tmake_file="${tmake_file} m88k/t-luna-gas"
2178 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2179 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2182 tm_file=m88k/sysv3.h
2183 extra_parts="crtbegin.o crtend.o"
2184 xm_file="m88k/xm-sysv3.h ${xm_file}"
2185 xmake_file=m88k/x-sysv3
2186 if test x$gas = xyes
2188 tmake_file=m88k/t-m88k-gas
2192 tm_file=m88k/sysv4.h
2193 extra_parts="crtbegin.o crtend.o"
2194 xmake_file=m88k/x-sysv4
2195 tmake_file=m88k/t-sysv4
2198 tm_file=mcore/mcore-elf.h
2199 tmake_file=mcore/t-mcore
2202 tm_file=mcore/mcore-pe.h
2203 tmake_file=mcore/t-mcore-pe
2205 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2206 if test "x$gnu_ld" = xyes
2208 tm_file="mips/iris6.h mips/iris6gld.h"
2210 tm_file=mips/iris6.h
2212 tmake_file=mips/t-iris6
2213 xm_file=mips/xm-iris6.h
2214 xmake_file=mips/x-iris6
2215 # if test x$enable_threads = xyes; then
2216 # thread_file='irix'
2220 tm_file="mips/elf.h mips/vxworks.h"
2221 tmake_file=mips/t-ecoff
2224 extra_parts="crtbegin.o crtend.o"
2225 thread_file='vxworks'
2227 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2228 tm_file="mips/iris6.h mips/cross64.h"
2230 xm_file="mips/xm-iris5.h"
2231 xmake_file=mips/x-iris
2232 tmake_file=mips/t-cross64
2233 # See comment in mips/iris[56].h files.
2235 # if test x$enable_threads = xyes; then
2236 # thread_file='irix'
2240 if test x$gas = xyes
2242 if test x$stabs = xyes
2244 tm_file=mips/iris5gdb.h
2246 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2249 tm_file=mips/sni-svr4.h
2252 xmake_file=mips/x-sni-svr4
2253 tmake_file=mips/t-mips-gas
2254 if test x$gnu_ld != xyes
2259 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2260 if test x$gas = xyes
2262 tm_file="mips/iris5.h mips/iris5gas.h"
2263 if test x$stabs = xyes
2265 tm_file="${tm_file} dbx.h"
2268 tm_file=mips/iris5.h
2271 xm_file="mips/xm-iris5.h"
2272 xmake_file=mips/x-iris
2273 # mips-tfile doesn't work yet
2274 tmake_file=mips/t-mips-gas
2275 # See comment in mips/iris5.h file.
2277 # if test x$enable_threads = xyes; then
2278 # thread_file='irix'
2281 mips-sgi-irix4loser*) # Mostly like a MIPS.
2282 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2283 if test x$stabs = xyes; then
2284 tm_file="${tm_file} dbx.h"
2287 xmake_file=mips/x-iris
2288 if test x$gas = xyes
2290 tmake_file=mips/t-mips-gas
2292 extra_passes="mips-tfile mips-tdump"
2294 if test x$gnu_ld != xyes
2298 # if test x$enable_threads = xyes; then
2299 # thread_file='irix'
2302 mips-sgi-irix4*) # Mostly like a MIPS.
2303 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2304 if test x$stabs = xyes; then
2305 tm_file="${tm_file} dbx.h"
2308 xmake_file=mips/x-iris
2309 if test x$gas = xyes
2311 tmake_file=mips/t-mips-gas
2313 extra_passes="mips-tfile mips-tdump"
2315 if test x$gnu_ld != xyes
2319 # if test x$enable_threads = xyes; then
2320 # thread_file='irix'
2323 mips-sgi-*) # Mostly like a MIPS.
2324 tm_file="mips/iris3.h ${tm_file}"
2325 if test x$stabs = xyes; then
2326 tm_file="${tm_file} dbx.h"
2329 xmake_file=mips/x-iris3
2330 if test x$gas = xyes
2332 tmake_file=mips/t-mips-gas
2334 extra_passes="mips-tfile mips-tdump"
2336 if test x$gnu_ld != xyes
2341 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2342 tm_file="mips/osfrose.h ${tm_file}"
2343 xmake_file=mips/x-osfrose
2344 tmake_file=mips/t-osfrose
2345 extra_objs=halfpic.o
2348 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2349 tm_file=mips/dec-osf1.h
2350 if test x$stabs = xyes; then
2351 tm_file="${tm_file} dbx.h"
2353 xmake_file=mips/x-dec-osf1
2354 if test x$gas = xyes
2356 tmake_file=mips/t-mips-gas
2358 tmake_file=mips/t-ultrix
2359 extra_passes="mips-tfile mips-tdump"
2361 if test x$gnu_ld != xyes
2366 mips-dec-bsd*) # Decstation running 4.4 BSD
2367 tm_file=mips/dec-bsd.h
2368 if test x$gas = xyes
2370 tmake_file=mips/t-mips-gas
2372 tmake_file=mips/t-ultrix
2373 extra_passes="mips-tfile mips-tdump"
2375 if test x$gnu_ld != xyes
2380 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2381 tm_file=mips/netbsd.h
2382 # On NetBSD, the headers are already okay, except for math.h.
2385 mips*-*-linux*) # Linux MIPS, either endian.
2388 mips*el-*) tm_file="elfos.h mips/elfl.h mips/linux.h" ;;
2389 *) tm_file="elfos.h mips/elf.h mips/linux.h" ;;
2391 tmake_file="t-slibgcc-elf-ver t-linux"
2392 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2395 if test x$enable_threads = xyes; then
2399 mips*el-*-openbsd*) # mips little endian
2400 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2402 mips*-*-openbsd*) # mips big endian
2403 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2404 tm_file="mips/openbsd-be.h ${tm_file}"
2406 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2407 tm_file="mips/news4.h ${tm_file}"
2408 if test x$stabs = xyes; then
2409 tm_file="${tm_file} dbx.h"
2411 if test x$gas = xyes
2413 tmake_file=mips/t-mips-gas
2415 extra_passes="mips-tfile mips-tdump"
2417 if test x$gnu_ld != xyes
2421 xmake_file=mips/x-sony
2423 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2424 # That is based on svr4.
2425 # t-svr4 is not right because this system doesn't use ELF.
2426 tm_file="mips/news5.h ${tm_file}"
2427 if test x$stabs = xyes; then
2428 tm_file="${tm_file} dbx.h"
2431 if test x$gas = xyes
2433 tmake_file=mips/t-mips-gas
2435 extra_passes="mips-tfile mips-tdump"
2437 if test x$gnu_ld != xyes
2442 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2443 tm_file="mips/svr4-5.h mips/svr4-t.h"
2444 if test x$stabs = xyes; then
2445 tm_file="${tm_file} dbx.h"
2448 xmake_file=mips/x-sysv
2449 if test x$gas = xyes
2451 tmake_file=mips/t-mips-gas
2452 extra_parts="crtbegin.o crtend.o"
2454 tmake_file=mips/t-mips
2455 extra_passes="mips-tfile mips-tdump"
2457 if test x$gnu_ld != xyes
2462 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2463 tm_file="mips/ultrix.h ${tm_file}"
2464 if test x$stabs = xyes; then
2465 tm_file="${tm_file} dbx.h"
2467 xmake_file=mips/x-ultrix
2468 if test x$gas = xyes
2470 tmake_file=mips/t-mips-gas
2472 tmake_file=mips/t-ultrix
2473 extra_passes="mips-tfile mips-tdump"
2475 if test x$gnu_ld != xyes
2480 mips-*-riscos[56789]bsd*)
2481 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2482 if test x$stabs = xyes; then
2483 tm_file="${tm_file} dbx.h"
2485 if test x$gas = xyes
2487 tmake_file=mips/t-bsd-gas
2489 tmake_file=mips/t-bsd
2490 extra_passes="mips-tfile mips-tdump"
2492 if test x$gnu_ld != xyes
2497 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2498 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2499 if test x$stabs = xyes; then
2500 tm_file="${tm_file} dbx.h"
2502 if test x$gas = xyes
2504 tmake_file=mips/t-bsd-gas
2506 tmake_file=mips/t-bsd
2507 extra_passes="mips-tfile mips-tdump"
2509 if test x$gnu_ld != xyes
2514 mips-*-riscos[56789]sysv4*)
2515 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2516 if test x$stabs = xyes; then
2517 tm_file="${tm_file} dbx.h"
2519 xmake_file=mips/x-sysv
2520 if test x$gas = xyes
2522 tmake_file=mips/t-svr4-gas
2524 tmake_file=mips/t-svr4
2525 extra_passes="mips-tfile mips-tdump"
2527 if test x$gnu_ld != xyes
2532 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2533 tm_file="mips/svr4-4.h ${tm_file}"
2534 if test x$stabs = xyes; then
2535 tm_file="${tm_file} dbx.h"
2538 xmake_file=mips/x-sysv
2539 if test x$gas = xyes
2541 tmake_file=mips/t-svr4-gas
2543 tmake_file=mips/t-svr4
2544 extra_passes="mips-tfile mips-tdump"
2546 if test x$gnu_ld != xyes
2551 mips-*-riscos[56789]sysv*)
2552 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2553 if test x$stabs = xyes; then
2554 tm_file="${tm_file} dbx.h"
2557 xmake_file=mips/x-sysv
2558 if test x$gas = xyes
2560 tmake_file=mips/t-svr3-gas
2562 tmake_file=mips/t-svr3
2563 extra_passes="mips-tfile mips-tdump"
2565 if test x$gnu_ld != xyes
2570 mips-*-sysv* | mips-*-riscos*sysv*)
2571 tm_file="mips/svr3-4.h ${tm_file}"
2572 if test x$stabs = xyes; then
2573 tm_file="${tm_file} dbx.h"
2576 xmake_file=mips/x-sysv
2577 if test x$gas = xyes
2579 tmake_file=mips/t-svr3-gas
2581 tmake_file=mips/t-svr3
2582 extra_passes="mips-tfile mips-tdump"
2584 if test x$gnu_ld != xyes
2589 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2590 tm_file=mips/mips-5.h
2591 if test x$stabs = xyes; then
2592 tm_file="${tm_file} dbx.h"
2594 if test x$gas = xyes
2596 tmake_file=mips/t-mips-gas
2598 extra_passes="mips-tfile mips-tdump"
2600 if test x$gnu_ld != xyes
2608 tm_file=mips/ecoffl.h
2609 if test x$stabs = xyes; then
2610 tm_file="${tm_file} dbx.h"
2612 tmake_file=mips/t-ecoff
2615 tm_file="gofast.h mips/ecoff.h"
2616 if test x$stabs = xyes; then
2617 tm_file="${tm_file} dbx.h"
2619 tmake_file=mips/t-ecoff
2622 tm_file="mips/elfl.h"
2623 tmake_file=mips/t-elf
2626 tm_file="mips/elf.h"
2627 tmake_file=mips/t-elf
2630 tm_file="mips/elfl64.h"
2631 tmake_file=mips/t-elf
2633 mips64orionel-*-elf*)
2634 tm_file="mips/elforion.h mips/elfl64.h"
2635 tmake_file=mips/t-elf
2638 tm_file="mips/elf64.h"
2639 tmake_file=mips/t-elf
2642 tm_file="mips/elforion.h mips/elf64.h"
2643 tmake_file=mips/t-elf
2645 mips64orion-*-rtems*)
2646 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2647 tmake_file="mips/t-elf t-rtems"
2648 if test x$enable_threads = xyes; then
2653 tm_file="mips/elf.h mips/rtems.h"
2654 tmake_file="mips/t-elf t-rtems"
2655 if test x$enable_threads = xyes; then
2660 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2661 tmake_file=mips/t-r3900
2664 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2665 tmake_file=mips/t-r3900
2667 mips-*-*) # Default MIPS RISC-OS 4.0.
2668 if test x$stabs = xyes; then
2669 tm_file="${tm_file} dbx.h"
2671 if test x$gas = xyes
2673 tmake_file=mips/t-mips-gas
2675 extra_passes="mips-tfile mips-tdump"
2677 if test x$gnu_ld != xyes
2685 tm_file="mn10200/mn10200.h"
2686 if test x$stabs = xyes
2688 tm_file="${tm_file} dbx.h"
2694 tm_file="mn10300/mn10300.h"
2695 if test x$stabs = xyes
2697 tm_file="${tm_file} dbx.h"
2702 tm_file=ns32k/encore.h
2706 tm_file=ns32k/sequent.h
2710 tm_file=ns32k/tek6100.h
2714 tm_file=ns32k/tek6200.h
2718 tm_file=ns32k/merlin.h
2722 tm_file=ns32k/pc532-mach.h
2726 tm_file=ns32k/pc532-min.h
2727 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2732 tm_file=ns32k/netbsd.h
2733 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2734 # On NetBSD, the headers are already okay, except for math.h.
2739 tm_file="${tm_file} pdp11/2bsd.h"
2749 tm_file="svr4.h pj/linux.h ${tm_file}"
2754 tm_file="svr4.h pj/pjl.h ${tm_file}"
2761 xmake_file=romp/x-mach
2768 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2772 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
2773 xm_file=rs6000/xm-beos.h
2774 tmake_file=rs6000/t-beos
2775 xmake_file=rs6000/x-beos
2778 xm_file="rs6000/xm-rs6000.h rs6000/xm-darwin.h"
2779 xmake_file=rs6000/x-darwin
2782 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2783 xm_file="rs6000/xm-sysv4.h"
2784 xm_defines="USG POSIX"
2785 extra_headers=ppc-asm.h
2786 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2787 xmake_file=rs6000/x-sysv4
2789 powerpc-*-chorusos*)
2790 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
2791 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2792 extra_headers=ppc-asm.h
2793 case x${enable_threads} in
2794 xyes | xpthreads | xposix)
2800 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2801 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2802 extra_headers=ppc-asm.h
2805 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2806 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2807 extra_headers=ppc-asm.h
2810 tm_file="${tm_file} svr4.h rs6000/sysv4.h"
2811 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2812 extra_headers=ppc-asm.h
2815 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
2816 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2817 extra_headers=ppc-asm.h
2820 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
2821 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2822 extra_headers=ppc-asm.h
2823 if test x$enable_threads = xyes; then
2827 powerpc-*-linux*libc1)
2828 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2829 xm_file=rs6000/xm-sysv4.h
2830 out_file=rs6000/rs6000.c
2831 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2833 extra_headers=ppc-asm.h
2834 if test x$enable_threads = xyes; then
2839 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
2840 xm_file="rs6000/xm-sysv4.h"
2841 xm_defines="USG ${xm_defines}"
2842 out_file=rs6000/rs6000.c
2843 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2845 extra_headers=ppc-asm.h
2846 if test x$enable_threads = xyes; then
2850 powerpc-wrs-vxworks*)
2852 xm_file="rs6000/xm-sysv4.h"
2853 xm_defines="USG POSIX"
2854 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
2855 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2856 extra_headers=ppc-asm.h
2857 thread_file='vxworks'
2859 powerpcle-wrs-vxworks*)
2861 xm_file="rs6000/xm-sysv4.h"
2862 xm_defines="USG POSIX"
2863 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2864 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2865 extra_headers=ppc-asm.h
2866 thread_file='vxworks'
2869 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2870 xm_file="rs6000/xm-sysv4.h"
2871 xm_defines="USG POSIX"
2872 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2873 xmake_file=rs6000/x-sysv4
2874 extra_headers=ppc-asm.h
2877 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
2878 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2879 extra_headers=ppc-asm.h
2881 powerpcle-*-eabisim*)
2882 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2883 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2884 extra_headers=ppc-asm.h
2887 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2888 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2889 extra_headers=ppc-asm.h
2891 powerpcle-*-solaris2*)
2892 tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2893 xm_file="rs6000/xm-sysv4.h"
2894 xm_defines="USG POSIX"
2895 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2896 xmake_file=rs6000/x-sysv4
2897 extra_headers=ppc-asm.h
2899 rs6000-ibm-aix3.[01]*)
2900 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
2901 xmake_file=rs6000/x-aix31
2905 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2906 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
2907 if test x$host != x$target
2909 tmake_file=rs6000/t-xnewas
2911 tmake_file=rs6000/t-newas
2916 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2917 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
2918 if test x$host != x$target
2920 tmake_file=rs6000/t-xnewas
2922 tmake_file=rs6000/t-newas
2924 if test "$gnu_ld" = yes
2926 xmake_file=rs6000/x-aix41-gld
2928 tmake_file='rs6000/t-newas'
2930 xmake_file=rs6000/x-aix41
2934 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2935 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
2936 tmake_file=rs6000/t-aix43
2937 xmake_file=rs6000/x-aix41
2942 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2943 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
2944 tmake_file=rs6000/t-aix43
2945 xmake_file=rs6000/x-aix41
2951 tm_file="${tm_file} rs6000/aix.h"
2956 tm_file="${tm_file} rs6000/aix.h"
2961 tm_file=rs6000/mach.h
2962 xm_file="${xm_file} rs6000/xm-mach.h"
2963 xmake_file=rs6000/x-mach
2967 tm_file=rs6000/lynx.h
2968 xm_file=rs6000/xm-lynx.h
2969 tmake_file=rs6000/t-rs6000
2970 xmake_file=rs6000/x-lynx
2974 tmake_file="sh/t-sh sh/t-elf"
2975 tm_file="sh/sh.h sh/elf.h"
2979 tmake_file="sh/t-sh sh/t-elf t-rtems"
2980 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2982 if test x$enable_threads = xyes; then
2987 tmake_file="sh/t-sh t-rtems"
2988 tm_file="sh/sh.h sh/rtems.h"
2990 if test x$enable_threads = xyes; then
2995 tm_file="sh/sh.h sh/elf.h sh/linux.h"
2996 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2999 if test x$enable_threads = xyes; then
3009 xm_file="xm-alloca.h ${xm_file}"
3012 sparc64-wrs-vxworks*)
3013 tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
3014 tmake_file=sparc/t-vxsparc64
3017 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3018 tm_file=sparc/vxsparc.h
3019 tmake_file=sparc/t-vxsparc
3021 thread_file='vxworks'
3024 tmake_file=sparc/t-sparcbare
3025 tm_file="sparc/aout.h libgloss.h"
3028 tm_file=sparc/netbsd.h
3033 # we need collect2 until our bug is fixed...
3040 tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
3041 tmake_file=sparc/t-chorus-elf
3042 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3044 case x${enable_threads} in
3045 xyes | xpthreads | xposix)
3051 tm_file="sparc/sol2.h sparc/elf.h"
3052 tmake_file=sparc/t-elf
3053 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3057 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
3058 xm_file="${xm_file} sparc/xm-linux.h"
3059 tm_file=sparc/linux-aout.h
3063 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
3064 xm_file="${xm_file} sparc/xm-linux.h"
3066 tm_file=sparc/linux.h
3067 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1"
3068 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3072 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3073 xm_file="${xm_file} sparc/xm-linux.h"
3075 tm_file=sparc/linux.h
3076 tmake_file="t-slibgcc-elf-ver t-linux"
3077 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3079 if test x$enable_threads = xyes; then
3085 if test x$gas = xyes
3087 tm_file=sparc/lynx.h
3089 tm_file=sparc/lynx-ng.h
3091 xm_file=sparc/xm-lynx.h
3092 tmake_file=sparc/t-sunos41
3096 tmake_file="sparc/t-sparcbare t-rtems"
3097 tm_file=sparc/rtems.h
3098 if test x$enable_threads = xyes; then
3102 sparc-*-rtems*|sparc-*-rtemself*)
3103 tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
3104 tmake_file="sparc/t-elf t-rtems"
3105 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3108 if test x$enable_threads = xyes; then
3112 sparcv9-*-solaris2*)
3113 if test x$gnu_ld = xyes
3115 tm_file=sparc/sol2-64.h
3117 tm_file=sparc/sol2-sld-64.h
3119 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3120 xm_defines="USG POSIX"
3121 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3122 if test x$gnu_ld = xyes; then
3123 tmake_file="$tmake_file t-slibgcc-elf-ver"
3125 tmake_file="$tmake_file t-slibgcc-sld"
3127 xmake_file=sparc/x-sysv4
3128 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3130 if test x${enable_threads} = x ; then
3131 enable_threads=$have_pthread_h
3132 if test x${enable_threads} = x ; then
3133 enable_threads=$have_thread_h
3136 if test x${enable_threads} = xyes ; then
3137 if test x${have_pthread_h} = xyes ; then
3140 thread_file='solaris'
3144 sparc-hal-solaris2*)
3145 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3146 xm_defines="USG POSIX"
3147 tm_file="sparc/sol2.h sparc/hal.h"
3148 tmake_file="sparc/t-halos sparc/t-sol2"
3149 if test x$gnu_ld = xyes; then
3150 tmake_file="$tmake_file t-slibgcc-elf-ver"
3152 tmake_file="$tmake_file t-slibgcc-sld"
3154 xmake_file=sparc/x-sysv4
3155 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3164 thread_file='solaris'
3167 if test x$gnu_ld = xyes
3169 tm_file=sparc/sol2.h
3171 tm_file=sparc/sol2-sld.h
3173 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3174 xm_defines="USG POSIX"
3175 tmake_file=sparc/t-sol2
3176 if test x$gnu_ld = xyes; then
3177 tmake_file="$tmake_file t-slibgcc-elf-ver"
3179 tmake_file="$tmake_file t-slibgcc-sld"
3181 xmake_file=sparc/x-sysv4
3182 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3183 # At the moment, 32-to-64 cross compilation doesn't work.
3185 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3187 # if test x$gnu_ld = xyes
3189 # tm_file=sparc/sol2-64.h
3191 # tm_file=sparc/sol2-sld-64.h
3193 # tmake_file="$tmake_file sparc/t-sol2-64"
3204 if test x${enable_threads} = x; then
3205 enable_threads=$have_pthread_h
3206 if test x${enable_threads} = x; then
3207 enable_threads=$have_thread_h
3210 if test x${enable_threads} = xyes; then
3211 if test x${have_pthread_h} = xyes; then
3214 thread_file='solaris'
3219 tm_file=sparc/sunos4.h
3220 tmake_file=sparc/t-sunos40
3224 tm_file=sparc/sunos4.h
3225 tmake_file=sparc/t-sunos41
3227 if test x$gas = xyes; then
3228 tm_file="${tm_file} sparc/sun4gas.h"
3232 tm_file=sparc/sun4o3.h
3236 tm_file=sparc/sysv4.h
3237 xm_file="sparc/xm-sysv4.h"
3238 xm_defines="USG POSIX"
3240 xmake_file=sparc/x-sysv4
3241 extra_parts="crtbegin.o crtend.o"
3244 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3245 xm_defines="USG POSIX"
3246 tm_file=sparc/vxsim.h
3247 tmake_file=sparc/t-vxsparc
3248 xmake_file=sparc/x-sysv4
3251 tm_file="sparc/splet.h libgloss.h"
3252 tmake_file=sparc/t-splet
3255 tm_file="sparc/litecoff.h libgloss.h"
3256 tmake_file=sparc/t-sparclite
3259 tm_file="sparc/lite.h aoutos.h libgloss.h"
3260 tmake_file=sparc/t-sparclite
3263 tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3264 tmake_file=sparc/t-sparclite
3265 extra_parts="crtbegin.o crtend.o"
3268 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3269 tmake_file=sparc/t-sp86x
3272 tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3273 tmake_file=sparc/t-sp86x
3274 extra_parts="crtbegin.o crtend.o"
3277 tmake_file=sparc/t-sp64
3278 tm_file=sparc/sp64-aout.h
3281 tmake_file=sparc/t-sp64
3282 tm_file=sparc/sp64-elf.h
3283 extra_parts="crtbegin.o crtend.o"
3285 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3286 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64"
3287 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3288 tm_file=sparc/linux64.h
3290 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3292 if test x$enable_threads = xyes; then
3298 tm_file=arm/strongarm-elf.h
3299 tmake_file=arm/t-strongarm-elf
3301 xm_file=arm/xm-arm.h
3305 tm_file=arm/strongarm-coff.h
3306 tmake_file=arm/t-strongarm-coff
3308 xm_file=arm/xm-arm.h
3312 tm_file=arm/strongarm-pe.h
3313 tmake_file=arm/t-strongarm-pe
3315 xm_file=arm/xm-arm.h
3320 { echo "config.gcc: error:
3321 *** The Thumb targets have been deprecated. The equivalent
3322 *** ARM based toolchain can now generate Thumb instructions
3323 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3327 tm_file="v850/rtems.h"
3328 xm_file="v850/xm-v850.h"
3329 tmake_file="v850/t-v850 t-rtems"
3330 if test x$stabs = xyes
3332 tm_file="${tm_file} dbx.h"
3335 c_target_objs="v850-c.o"
3336 cxx_target_objs="v850-c.o"
3339 target_cpu_default="TARGET_CPU_generic"
3341 tm_file="v850/v850.h"
3342 xm_file="v850/xm-v850.h"
3343 tmake_file=v850/t-v850
3344 if test x$stabs = xyes
3346 tm_file="${tm_file} dbx.h"
3349 c_target_objs="v850-c.o"
3350 cxx_target_objs="v850-c.o"
3352 vax-*-bsd*) # vaxen running BSD
3356 vax-*-sysv*) # vaxen running system V
3357 tm_file="${tm_file} vax/vaxv.h"
3362 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3368 tmake_file="${tmake_file} vax/t-openbsd"
3369 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3370 xm_file="xm-openbsd.h vax/xm-vax.h"
3374 vax-*-ultrix*) # vaxen running ultrix
3375 tm_file="${tm_file} vax/ultrix.h"
3378 vax-*-vms*) # vaxen running VMS
3379 xm_file=vax/xm-vms.h
3383 vax-*-*) # vax default entry
3387 xm_file="${xm_file} xm-svr3"
3391 tm_file=arm/xscale-elf.h
3392 tmake_file=arm/t-xscale-elf
3394 xm_file=arm/xm-arm.h
3398 tm_file=arm/xscale-coff.h
3399 tmake_file=arm/t-xscale-coff
3401 xm_file=arm/xm-arm.h
3405 echo "Configuration $machine not supported" 1>&2
3412 xmake_try_sysv=x-sysv
3413 install_headers_dir=install-headers-cpio
3416 install_headers_dir=install-headers-cpio
3420 # Distinguish i[34567]86
3421 # Also, do not run mips-tfile on MIPS if using gas.
3422 # Process --with-cpu= for PowerPC/rs6000
3423 target_cpu_default2=
3426 target_cpu_default2=1
3429 case $target_alias in
3431 target_cpu_default2=4
3434 target_cpu_default2=2
3438 i686-*-* | i786-*-*)
3439 target_cpu_default2=3
3444 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3447 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3450 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3453 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3456 target_cpu_default2="MASK_CPU_EV5"
3460 if test x$gas = xyes
3462 if test "$target_cpu_default2" = ""
3464 target_cpu_default2="MASK_GAS"
3466 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3471 case "x$with_cpu" in
3474 target_cpu_default2="TARGET_CPU_generic"
3477 # Distinguish cores, and major variants
3478 # arm7m doesn't exist, but D & I don't affect code
3479 xarm[236789] | xarm250 | xarm[67][01]0 \
3480 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3481 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3483 | xstrongarm | xstrongarm110 | xstrongarm1100)
3484 target_cpu_default2="TARGET_CPU_$with_cpu"
3488 echo "--with-cpu must be passed a value" 1>&2
3493 if test x$pass2done = xyes
3495 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3502 mips*-*-ecoff* | mips*-*-elf*)
3503 if test x$gas = xyes
3505 if test x$gnu_ld = xyes
3507 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3509 target_cpu_default2="MASK_GAS"
3514 if test x$gas = xyes
3516 target_cpu_default2="MASK_GAS"
3519 powerpc*-*-* | rs6000-*-*)
3520 case "x$with_cpu" in
3524 xcommon | xpower | xpower2 | xpowerpc | xrios \
3525 | xrios1 | xrios2 | xrsc | xrsc1 \
3526 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3527 | xec603e | x740 | x750 | x401 \
3528 | x403 | x505 | x801 | x821 | x823 | x860)
3529 target_cpu_default2="\"$with_cpu\""
3533 echo "--with-cpu must be passed a value" 1>&2
3538 if test x$pass2done = xyes
3540 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3547 case ".$with_cpu" in
3549 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3551 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3552 target_cpu_default2="TARGET_CPU_$with_cpu"
3555 if test x$pass2done = xyes
3557 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3565 if test "$target_cpu_default2" != ""
3567 if test "$target_cpu_default" != ""
3569 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3571 target_cpu_default=$target_cpu_default2
3575 # No need for collect2 if we have the GNU linker.
3576 # Actually, there is now; GNU ld doesn't handle the EH info or
3577 # collecting for shared libraries.
3584 # Save data on machine being used to compile GCC in build_xm_file.
3585 # Save data on host machine in vars host_xm_file and host_xmake_file.
3586 if test x$pass1done = x
3588 if test x"$xm_file" = x
3589 then build_xm_file=$cpu_type/xm-$cpu_type.h
3590 else build_xm_file=$xm_file
3592 build_xm_defines=$xm_defines
3593 build_install_headers_dir=$install_headers_dir
3594 build_exeext=$exeext
3597 if test x$pass2done = x
3599 if test x"$xm_file" = x
3600 then host_xm_file=$cpu_type/xm-$cpu_type.h
3601 else host_xm_file=$xm_file
3603 host_xm_defines=$xm_defines
3604 if test x"$xmake_file" = x
3605 then xmake_file=$cpu_type/x-$cpu_type
3607 host_xmake_file="$xmake_file"
3608 host_truncate_target=$truncate_target
3609 host_extra_gcc_objs=$extra_gcc_objs
3610 host_extra_objs=$extra_host_objs