1 # GCC target-specific configuration file.
2 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003
3 # Free Software Foundation, Inc.
5 #This file is part of GCC.
7 #GCC is free software; you can redistribute it and/or modify it under
8 #the terms of the GNU General Public License as published by the Free
9 #Software Foundation; either version 2, or (at your option) any later
12 #GCC is distributed in the hope that it will be useful, but WITHOUT
13 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 #You should have received a copy of the GNU General Public License
18 #along with GCC; see the file COPYING. If not, write to the Free
19 #Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 # This is the GCC target-specific configuration file
23 # where a configuration type is mapped to different system-specific
24 # definitions and files. This is invoked by the autoconf-generated
25 # configure script. Putting it in a separate shell file lets us skip
26 # running autoconf when modifying target-specific information.
28 # This file switches on the shell variable ${machine}, and also uses the
29 # following shell variables:
31 # with_* Various variables as set by configure.
33 # enable_threads_flag Either the name, yes or no depending on whether
34 # threads support was requested.
36 # default_use_cxa_atexit
37 # "no" by default, can be set to "yes" if a target
38 # wishes to use __cxa_atexit() by default if the
39 # $enable___cxa_atexit variable is not set.
41 # gas_flag Either yes or no depending on whether GNU as was
44 # gnu_ld_flag Either yes or no depending on whether GNU ld was
47 # This file sets the following shell variables for use by the
48 # autoconf-generated configure script:
50 # cpu_type The name of the cpu, if different from machine.
52 # tm_defines List of target macros to define for all compilations.
54 # tm_file A list of target macro files, if different from
55 # "$cpu_type/$cpu_type.h". Usually it's constructed
56 # per target in a way like this:
57 # tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
58 # Note that the preferred order is:
59 # - specific target header "${cpu_type}/${cpu_type.h}"
60 # - generic headers like dbxelf.h elfos.h, netware.h, etc.
61 # - specializing target headers like ${cpu_type.h}/elf.h
62 # This helps to keep OS specific stuff out of the CPU
63 # defining header ${cpu_type}/${cpu_type.h}.
65 # tm_p_file Location of file with declarations for functions
68 # out_file The name of the machine description C support
69 # file, if different from "$cpu_type/$cpu_type.c".
71 # md_file The name of the machine-description file, if
72 # different from "$cpu_type/$cpu_type.md".
74 # tmake_file A list of machine-description-specific
75 # makefile-fragments, if different from
76 # "$cpu_type/t-$cpu_type".
78 # extra_modes The name of the file containing a list of extra
79 # machine modes, if necessary and different from
80 # "$cpu_type/$cpu_type-modes.def".
82 # extra_objs List of extra objects that should be linked into
83 # the compiler proper (cc1, cc1obj, cc1plus)
84 # depending on target.
86 # extra_headers List of used header files from the directory
89 # host_xmake_file List of host-specific makefile-fragments.
91 # extra_passes List of extra executables compiled for this target
92 # machine, used for compiling from source to object.
94 # extra_parts List of extra object files that should be compiled
95 # for this target machine.
97 # extra_programs Like extra_passes, but these are used when linking.
99 # host_extra_objs List of extra host-dependent objects that should
100 # be linked into the compiler proper.
102 # host_extra_gcc_objs List of extra host-dependent objects that should
103 # be linked into the gcc driver.
105 # out_host_hook_obj An object file that provides the host hooks.
107 # c_target_objs List of extra target-dependent objects that be
108 # linked into the C compiler only.
110 # cxx_target_objs List of extra target-dependent objects that be
111 # linked into the C++ compiler only.
113 # target_gtfiles List of extra source files with type information.
115 # host_xm_defines List of macros to define when compiling for the
118 # host_xm_file List of files to include when compiling for the
121 # xm_defines List of macros to define when compiling for the
124 # xm_file List of files to include when compiling for the
127 # use_collect2 Set to yes or no, depending on whether collect2
130 # target_cpu_default Set to override the default target model.
132 # gdb_needs_out_file_path
133 # Set to yes if gdb needs a dir command with
134 # `dirname $out_file`.
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 # need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide
145 # for this target. This is true iff
146 # MAX_LONG_TYPE_SIZE is 64. (The code which
147 # determines the underlying integral type for
148 # HOST_WIDE_INT cannot see the definition of
149 # MAX_LONG_TYPE_SIZE.)
151 # configure_default_options
152 # Set to an initializer for configure_default_options
153 # in configargs.h, based on --with-cpu et cetera.
155 # The following variables are used in each case-construct to build up the
156 # outgoing variables:
158 # xmake_file Makefile-fragment when this system is as a host,
159 # for host_xmake_file.
161 # extra_host_objs List of extra objects that should be linked into
162 # the compiler proper when this system is a host,
163 # for host_extra_objs.
165 # host_hook_obj An object file that provides the host hooks.
167 # exeext The suffix for executables on this system.
169 # gnu_ld Set to yes or no depending on whether the target
170 # system normally uses GNU ld.
184 host_hook_obj=host-default.o
187 # Set this to force installation and use of collect2.
189 # Set this to override the default target model.
191 # Set this if gdb needs a dir command with `dirname $out_file`
192 gdb_needs_out_file_path=
193 # Set this if the build machine requires executables to have a
196 # Set this to control which thread package will be used.
198 # Reinitialize these from the flag values every loop pass, since some
199 # configure entries modify them.
201 gnu_ld="$gnu_ld_flag"
202 enable_threads=$enable_threads_flag
203 default_use_cxa_atexit=no
207 # Don't carry these over build->host->target. Please.
211 # Obsolete configurations.
214 if test "x$enable_obsolete" != xyes; then
215 echo "*** Configuration $machine is obsolete." >&2
216 echo "*** Specify --enable-obsolete to build it anyway." >&2
217 echo "*** Support will be REMOVED in the next major release of GCC," >&2
218 echo "*** unless a maintainer comes forward." >&2
223 # Unsupported targets list. Do not put an entry in this list unless
224 # it would otherwise be caught by a more permissive pattern. The list
225 # should be in alphabetical order.
227 alpha*-*-linux*libc1* \
228 | i[34567]86-sequent-sysv \
229 | i[34567]86-sequent-sysv[123]* \
230 | i[34567]86-go32-* \
231 | i[34567]86-*-go32* \
232 | m68k-*-linux*aout* \
233 | m68k-*-linux*libc1* \
234 | mips64orion*-*-rtems* \
235 | powerpc-*-linux*libc1* \
236 | sparc-*-linux*aout* \
237 | sparc-*-linux*libc1* \
238 | sparc-hal-solaris2* \
245 echo "*** Configuration $machine not supported" 1>&2
250 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
251 # updated in each machine entry. Also set default extra_headers for some
254 cpu_type=`echo $machine | sed 's/-.*$//'`
268 extra_headers="mmintrin.h"
275 extra_headers="mmintrin.h"
279 extra_headers="mmintrin.h xmmintrin.h emmintrin.h pmmintrin.h"
283 extra_headers="mmintrin.h xmmintrin.h emmintrin.h pmmintrin.h"
287 extra_headers=ia64intrin.h
290 hppa*-*-* | parisc*-*-*)
295 extra_headers=math-68881.h
298 extra_headers=math-68881.h
306 extra_headers="ppc-asm.h altivec.h spe.h"
322 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
332 tm_file=${cpu_type}/${cpu_type}.h
333 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
335 tm_p_file=${cpu_type}/${cpu_type}-protos.h
338 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
340 extra_modes=${cpu_type}/${cpu_type}-modes.def
345 tm_file="i386/biarch64.h ${tm_file}"
349 # On a.out targets, we need to use collect2.
356 # Common parts for widely ported systems.
360 *-*-linux*libc1* | *-*-linux*aout*)
363 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
365 case x${enable_threads} in
366 x | xyes | xposix) thread_file='posix'
373 # On the Hurd, the setup is just about the same on
374 # each different CPU. The specific machines that we
375 # support are matched above and just set $cpu_type.
376 tm_file="${cpu_type}/gnu.h"
377 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
378 # GNU always uses ELF.
380 # GNU tools are the only tools.
383 # These details are the same as for Linux.
384 # But here we need a little extra magic.
385 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
388 tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
391 tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}"
396 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
397 if test x$enable_threads = xyes; then
399 tmake_file="${tmake_file} t-openbsd-thread"
403 tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic"
407 # NetBSD 2.0 and later get POSIX threads enabled by default.
408 # Allow them to be explicitly enabled on any other version.
409 case x${enable_threads} in
412 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
414 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
420 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
424 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
425 # ELF configurations. We will clear extra_parts in the
426 # a.out configurations.
428 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
429 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
433 # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
434 # default (unless overridden by --disable-__cxa_atexit).
436 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
437 default_use_cxa_atexit=yes
441 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
442 # This is the place-holder for the generic a.out configuration
443 # of FreeBSD. No actual configuration resides here since
444 # there was only ever a bare-bones ix86 configuration for
445 # a.out and it exists solely in the machine-specific section.
446 # This place-holder must exist to avoid dropping into
447 # the generic ELF configuration of FreeBSD (i.e. it must be
448 # ordered before that section).
451 # This is the generic ELF configuration of FreeBSD. Later
452 # machine-specific sections may refine and add to this
455 # Due to tm_file entry ordering issues that vary between cpu
456 # architectures, we only define fbsd_tm_file to allow the
457 # machine-specific section to dictate the final order of all
458 # entries of tm_file with the minor exception that components
459 # of the tm_file set here will always be of the form:
461 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
463 # The machine-specific section should not tamper with this
464 # ordering but may order all other entries of tm_file as it
465 # pleases around the provided core setting.
468 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
470 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
471 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
472 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
473 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
474 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
476 tmake_file="t-slibgcc-elf-ver t-freebsd"
478 case x${enable_threads} in
479 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
480 x | xyes | xpthreads | xposix)
482 tmake_file="${tmake_file} t-freebsd-thread"
483 # Before 5.0, FreeBSD can't bind shared libraries to -lc
484 # when "optionally" threaded via weak pthread_* checks.
486 *-*-freebsd[34] | *-*-freebsd[34].*)
487 tmake_file="${tmake_file} t-slibgcc-nolc-override";;
490 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
492 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
495 tm_file="${tm_file} darwin.h"
496 tm_p_file="${tm_p_file} darwin-protos.h"
497 tmake_file="t-darwin"
498 target_gtfiles="\$(srcdir)/config/darwin.c"
499 c_target_objs="darwin-c.o"
500 cxx_target_objs="darwin-c.o"
502 extra_objs="darwin.o"
503 case x${enable_threads} in
504 x | xyes | xposix) thread_file='posix'
510 tm_file="${tm_file} elfos.h svr4.h vxworks.h"
511 thread_file='vxworks'
517 # Support site-specific machine types.
519 rest=`echo $machine | sed -e "s/$cpu_type-//"`
520 tm_file=${cpu_type}/$rest.h
521 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
522 then xm_file=${cpu_type}/xm-$rest.h
524 if test -f $srcdir/config/${cpu_type}/x-$rest
525 then xmake_file=${cpu_type}/x-$rest
527 if test -f $srcdir/config/${cpu_type}/t-$rest
528 then tmake_file=${cpu_type}/t-$rest
533 tm_file="${tm_file} alpha/unicosmk.h"
535 # Don't include t-ieee for now because we don't support that yet
536 # tmake_file="alpha/t-ieee"
537 tmake_file="alpha/t-unicosmk"
540 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
541 target_cpu_default="MASK_GAS"
542 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
545 target_cpu_default="MASK_GAS"
546 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
549 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
550 target_cpu_default="MASK_GAS"
551 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
552 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
555 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
556 target_cpu_default="MASK_GAS"
557 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
561 tm_defines="OBSD_NO_DYNAMIC_LIBRARIES OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT"
562 tm_file="alpha/alpha.h openbsd.h alpha/openbsd.h"
563 # default x-alpha is only appropriate for dec-osf.
564 target_cpu_default="MASK_GAS"
565 tmake_file="alpha/t-alpha alpha/t-ieee"
569 if test x$stabs = xyes
571 tm_file="${tm_file} dbx.h"
573 if test x$gas != xyes
575 extra_passes="mips-tfile mips-tdump"
578 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
579 tm_file="${tm_file} alpha/osf.h"
580 extra_headers=va_list.h
583 # Set target_cpu_default except on 4.0a.
586 *) target_cpu_default=MASK_SUPPORT_ARCH
590 tm_file="${tm_file} alpha/osf5.h"
591 target_cpu_default=MASK_SUPPORT_ARCH
594 case x${enable_threads} in
595 x | xyes | xpthreads | xposix)
597 tmake_file="${tmake_file} alpha/t-osf-pthread"
602 tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
603 xm_file="alpha/xm-vms.h"
604 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
605 xmake_file=alpha/x-vms
607 # This removes the cpu type and manufacturer components and
608 # replaces "." with "_" in the operating system version.
609 case $host in *-*-*vms*)
610 target_alias=`echo $host \
611 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
618 tm_file="${tm_file} alpha/vms.h"
619 xm_file=alpha/xm-vms.h
620 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
621 xmake_file=alpha/x-vms
623 # This removes the cpu type and manufacturer components and
624 # replaces "." with "_" in the operating system version.
625 case $host in *-*-*vms*)
626 target_alias=`echo $host \
627 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
634 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
635 extra_parts="crtinit.o crtfini.o"
637 arm-*-coff* | armel-*-coff*)
638 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h"
639 tmake_file=arm/t-arm-coff
641 arm-semi-aof | armel-semi-aof)
642 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
643 tmake_file=arm/t-semi
645 arm*-*-freebsd*|strongarm*-*-freebsd*)
646 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
647 tmake_file="${tmake_file} arm/t-strongarm-elf"
650 tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
651 tmake_file="${tmake_file} arm/t-netbsd"
654 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
655 tmake_file="t-netbsd arm/t-netbsd"
659 arm*-*-linux*) # ARM GNU/Linux with ELF
660 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h"
661 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
662 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
664 case x${enable_threads} in
665 x | xyes | xpthreads | xposix)
670 arm*-*-uclinux*) # ARM ucLinux
671 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"
672 tmake_file=arm/t-arm-elf
675 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
676 tmake_file=arm/t-arm-elf
679 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"
680 tmake_file="arm/t-arm-elf t-rtems"
681 if test x$enable_threads = xyes; then
685 arm*-*-elf | ep9312-*-elf)
686 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
687 tmake_file=arm/t-arm-elf
690 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h arm/wince-pe.h"
691 tmake_file=arm/t-wince-pe
695 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h"
700 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-arm.h"
701 tmake_file=arm/t-arm-elf
704 tm_file="avr/avr.h dbxelf.h"
706 c4x-*-rtems* | tic4x-*-rtems*)
707 tmake_file="c4x/t-c4x t-rtems"
708 tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
709 if test x$enable_threads = xyes; then
712 c_target_objs="c4x-c.o"
713 cxx_target_objs="c4x-c.o"
717 c_target_objs="c4x-c.o"
718 cxx_target_objs="c4x-c.o"
721 tm_file="dbxelf.h ${tm_file} cris/aout.h"
723 tmake_file="cris/t-cris cris/t-aout"
725 cris-*-elf | cris-*-none)
726 tm_file="dbxelf.h elfos.h ${tm_file}"
727 tmake_file="cris/t-cris cris/t-elfmulti"
731 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
732 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
735 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
740 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
741 tmake_file=fr30/t-fr30
742 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
745 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h"
749 tmake_file="h8300/t-h8300 t-rtems"
750 tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h h8300/rtems.h rtems.h"
751 if test x$enable_threads = xyes; then
756 tmake_file="h8300/t-h8300 h8300/t-elf"
757 tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h"
760 tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h"
762 hppa*64*-*-linux* | parisc*64*-*-linux*)
763 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
764 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
765 pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
766 tmake_file=pa/t-linux64
770 hppa*-*-linux* | parisc*-*-linux*)
771 target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS"
772 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
773 pa/pa32-regs.h pa/pa32-linux.h"
774 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
776 # port not yet contributed.
778 # target_cpu_default="MASK_PA_11"
779 # tmake_file=pa/t-bsd
782 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
783 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
784 tmake_file="pa/t-bsd pa/t-pro"
785 xmake_file="pa/x-ada"
788 target_cpu_default="MASK_PA_11"
789 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h pa/pa-osf.h"
790 tmake_file="pa/t-bsd pa/t-pa"
791 xmake_file="pa/x-ada"
795 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
796 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h rtems.h"
797 tmake_file="pa/t-bsd pa/t-pro t-rtems"
798 xmake_file="pa/x-ada"
799 if test x$enable_threads = xyes; then
804 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h"
805 target_cpu_default="MASK_PA_11"
806 tmake_file="pa/t-bsd pa/t-pa"
807 xmake_file="pa/x-ada"
810 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
811 target_cpu_default="MASK_PA_11"
812 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
813 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
814 xmake_file="pa/x-ada"
815 if test x$enable_threads = x; then
816 enable_threads=$have_pthread_h
818 case x${enable_threads} in
820 tmake_file="${tmake_file} pa/t-dce-thr"
826 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
827 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
828 xmake_file="pa/x-ada"
829 if test x$enable_threads = x; then
830 enable_threads=$have_pthread_h
832 case x${enable_threads} in
834 tmake_file="${tmake_file} pa/t-dce-thr"
842 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
843 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
844 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
846 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \
847 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
848 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
851 tmake_file="pa/t-pa64 pa/t-pa-hpux"
852 xmake_file="pa/x-ada"
853 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
854 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
855 if test x$gnu_ld = xyes
857 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
859 case x${enable_threads} in
865 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
866 target_cpu_default="MASK_PA_11"
867 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
868 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
869 xmake_file="pa/x-ada"
870 case x${enable_threads} in
878 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
879 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
880 xmake_file="pa/x-ada"
881 case x${enable_threads} in
888 i370-*-opened*) # IBM 360/370/390 Architecture
889 xm_defines='FATAL_EXIT_CODE=12'
890 tm_file="i370/oe.h i370/i370.h"
891 tmake_file="i370/t-oe i370/t-i370"
892 c_target_objs="i370-c.o"
893 cxx_target_objs="i370-c.o"
896 xm_defines='FATAL_EXIT_CODE=12'
897 tm_file="i370/mvs.h i370/i370.h"
898 tmake_file="i370/t-i370"
899 c_target_objs="i370-c.o"
900 cxx_target_objs="i370-c.o"
903 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h i370/i370.h"
904 tmake_file="t-slibgcc-elf-ver t-linux"
908 i[34567]86-*-darwin*)
909 tm_file="${tm_file} i386/darwin.h"
912 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
913 tmake_file="i386/t-i386elf t-svr4"
915 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
916 xm_defines="SMALL_ARG_MAX"
917 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
918 extra_parts="crtbegin.o crtend.o"
919 tmake_file=i386/t-crtpic
921 i[34567]86-*-netware) # Intel 80386's running netware
922 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
923 tmake_file=i386/t-netware
925 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
928 tm_file="${tm_file} usegas.h"
930 xm_defines="SMALL_ARG_MAX"
931 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
933 extra_parts="crtbegin.o crtend.o"
936 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
938 i[34567]86-*-beoself* | i[34567]86-*-beos*)
939 tmake_file='i386/t-beos i386/t-crtpic'
940 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
941 extra_parts='crtbegin.o crtend.o'
943 i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*)
944 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
947 i[34567]86-*-freebsd*)
948 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
951 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h"
953 i[34567]86-*-netbsdelf*)
954 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
956 i[34567]86-*-netbsd*)
957 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
963 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h"
965 i[34567]86-*-openbsd*)
966 tm_file="i386/i386.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h i386/openbsd.h"
967 # needed to unconfuse gdb
968 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
969 # we need collect2 until our bug is fixed...
973 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
975 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
977 tmake_file="t-linux-aout i386/t-crtstuff"
978 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
981 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
982 # with ELF format using the
983 # GNU/Linux C library 5
984 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
985 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
986 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
988 if test x$enable_threads = xyes; then
992 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
993 # with ELF format using glibc 2
994 # aka GNU/Linux C library 6
995 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
996 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
999 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1000 i386/x86-64.h i386/linux64.h"
1001 tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64"
1005 i[34567]86-pc-msdosdjgpp*)
1006 xm_file=i386/xm-djgpp.h
1007 tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h"
1008 tmake_file=i386/t-djgpp
1012 case $host in *pc-msdosdjgpp*)
1017 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1018 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1019 tmake_file=t-libc-ok
1023 i[34567]86-*-lynxos*)
1024 if test x$gas = xyes
1026 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h svr3.h lynx.h i386/lynx.h"
1028 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
1032 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
1033 # tmake_file=t-libc-ok
1036 i[34567]86-*-nto-qnx*)
1037 tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h svr4.h i386/unix.h i386/nto.h"
1038 tmake_file=i386/t-nto
1042 i[34567]86-*-rtems*)
1043 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
1044 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1045 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1046 if test x$enable_threads = xyes; then
1050 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1051 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h"
1052 if test x$gas = xyes
1054 tm_file="usegas.h ${tm_file}"
1056 tmake_file=i386/t-sco5
1057 extra_parts="crtbegin.o crtend.o"
1059 i[34567]86-*-solaris2*)
1060 xm_defines="SMALL_ARG_MAX"
1061 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
1062 tmake_file="i386/t-sol2 t-svr4"
1063 if test x$gnu_ld = xyes; then
1064 tmake_file="$tmake_file t-slibgcc-elf-ver"
1066 tmake_file="$tmake_file t-slibgcc-sld"
1068 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1069 if test x${enable_threads} = x; then
1070 enable_threads=$have_pthread_h
1071 if test x${enable_threads} = x; then
1072 enable_threads=$have_thread_h
1075 if test x${enable_threads} = xyes; then
1076 if test x${have_pthread_h} = xyes; then
1079 thread_file='solaris'
1083 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1084 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1085 if test x$stabs = xyes
1087 tm_file="${tm_file} dbx.h"
1089 tmake_file="i386/t-crtpic t-svr4"
1090 extra_parts="crtbegin.o crtend.o"
1091 if test x$enable_threads = xyes; then
1095 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1096 xm_defines="SMALL_ARG_MAX"
1097 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
1098 if test x$stabs = xyes
1100 tm_file="${tm_file} dbx.h"
1102 tmake_file="i386/t-crtpic t-svr4"
1103 extra_parts="crtbegin.o crtend.o"
1105 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1106 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h i386/udk.h"
1107 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1108 extra_parts="crtbegin.o crtend.o"
1110 i[34567]86-*-sysv*) # Intel 80386's running system V
1111 if test x$gas = xyes
1113 if test x$stabs = xyes
1115 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
1116 tmake_file=i386/t-svr3dbx
1117 extra_parts="svr3.ifile svr3z.ifile"
1119 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
1120 extra_parts="crtbegin.o crtend.o"
1121 tmake_file=i386/t-crtstuff
1124 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
1125 extra_parts="crtbegin.o crtend.o"
1126 tmake_file=i386/t-crtstuff
1128 tmake_file="$tmake_file i386/t-crtpic"
1130 i386-*-vsta) # Intel 80386's running VSTa kernel
1131 xm_file="i386/xm-vsta.h"
1132 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/vsta.h"
1134 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1135 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h"
1136 xm_file=i386/xm-cygwin.h
1137 tmake_file="i386/t-cygming i386/t-cygwin"
1139 c_target_objs=cygwin2.o
1140 cxx_target_objs=cygwin2.o
1141 if test x$enable_threads = xyes; then
1146 i[34567]86-*-mingw32*)
1147 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
1148 xm_file=i386/xm-mingw32.h
1149 tmake_file="i386/t-cygming i386/t-mingw32"
1150 xmake_file=i386/x-mingw32
1152 if test x$enable_threads = xyes; then
1158 tm_file="${tm_file} i386/crtdll.h"
1160 *mingw32msv* | *mingw32*)
1165 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h"
1166 tmake_file="i386/t-cygwin i386/t-uwin"
1168 if test x$enable_threads = xyes; then
1173 i[34567]86-*-interix3*)
1174 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h"
1175 tmake_file="t-interix i386/t-interix"
1177 xmake_file="x-interix"
1178 if test x$enable_threads = xyes ; then
1181 if test x$stabs = xyes ; then
1182 tm_file="${tm_file} dbxcoff.h"
1185 i[34567]86-*-interix*)
1186 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
1187 tmake_file="t-interix i386/t-interix"
1189 if test x$enable_threads = xyes ; then
1192 if test x$stabs = xyes ; then
1193 tm_file="${tm_file} dbxcoff.h"
1197 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h kaos.h i386/kaos-i386.h"
1198 tmake_file="i386/t-i386elf t-svr4"
1201 tm_file="${tm_file} elfos.h svr4.h i860/sysv4.h"
1202 xmake_file=i860/x-sysv4
1203 tmake_file="i860/t-i860 i860/t-svr4"
1204 extra_parts="crtbegin.o crtend.o"
1207 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1208 tmake_file=i960/t-960bare
1209 c_target_objs="i960-c.o"
1210 cxx_target_objs="i960-c.o"
1213 tmake_file="i960/t-960bare t-rtems"
1214 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1215 if test x$enable_threads = xyes; then
1218 c_target_objs="i960-c.o"
1219 cxx_target_objs="i960-c.o"
1221 i960-*-*) # Default i960 environment.
1223 tmake_file=i960/t-960bare
1224 c_target_objs="i960-c.o"
1225 cxx_target_objs="i960-c.o"
1228 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1229 tmake_file="ia64/t-ia64"
1230 target_cpu_default="0"
1231 if test x$gas = xyes
1233 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1235 if test x$gnu_ld = xyes
1237 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1239 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1242 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1243 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1244 tmake_file="${tmake_file} ia64/t-ia64"
1245 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1248 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1249 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1250 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1251 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1252 if test x"$use_libunwind_exceptions" = xyes; then
1253 tmake_file="$tmake_file t-libunwind"
1257 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1258 tmake_file="ia64/t-ia64 ia64/t-hpux"
1259 target_cpu_default="MASK_GNU_AS"
1260 case x$enable_threads in
1266 c_target_objs="ia64-c.o"
1267 cxx_target_objs="ia64-c.o"
1270 tm_file="elfos.h ${tm_file}"
1273 tm_file="svr4.h elfos.h iq2000/iq2000.h"
1274 tmake_file=iq2000/t-iq2000
1275 out_file=iq2000/iq2000.c
1276 md_file=iq2000/iq2000.md
1279 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1280 extra_parts="crtinit.o crtfini.o"
1282 # m68hc11 and m68hc12 share the same machine description.
1283 m68hc11-*-*|m6811-*-*)
1284 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1285 tm_p_file="m68hc11/m68hc11-protos.h"
1286 md_file="m68hc11/m68hc11.md"
1287 out_file="m68hc11/m68hc11.c"
1288 tmake_file="m68hc11/t-m68hc11-gas"
1290 m68hc12-*-*|m6812-*-*)
1291 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1292 tm_p_file="m68hc11/m68hc11-protos.h"
1293 md_file="m68hc11/m68hc11.md"
1294 out_file="m68hc11/m68hc11.c"
1295 tmake_file="m68hc11/t-m68hc11-gas"
1297 m68000-hp-hpux*) # HP 9000 series 300
1298 tm_file="m68k/hp320base.h m68k/m68k.h m68k/hp320.h m68k/hp310.h"
1299 tm_defines="TARGET_DEFAULT=0" # 68000, no 68881, no bitfield ops
1300 if test x$gas = xyes
1302 tm_defines="${tm_defines} DBX_DEBUGGING_INFO=1 USE_GAS"
1304 tmake_file=m68k/t-hp320
1307 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1308 tm_file="m68k/hp320base.h m68k/m68k.h m68k/hp320.h"
1309 if test x$gas = xyes
1311 tm_defines="DBX_DEBUGGING_INFO=1 USE_GAS"
1313 tm_defines="NO_DOT_IN_LABEL NO_BUGS"
1317 m68k-hp-hpux*) # HP 9000 series 300
1318 tm_file="m68k/hp320base.h m68k/m68k.h m68k/hp320.h"
1319 if test x$gas = xyes
1321 tm_defines="DBX_DEBUGGING_INFO=1 USE_GAS"
1326 tmake_file=m68k/t-m68kbare
1327 tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kemb.h m68k/m68k-aout.h libgloss.h"
1330 tmake_file=m68k/t-m68kbare
1331 tm_defines="MOTOROLA USE_GAS"
1332 tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kemb.h dbxcoff.h m68k/coff.h dbx.h"
1334 m68020-*-elf* | m68k-*-elf*)
1335 tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1336 tmake_file=m68k/t-m68kelf
1337 extra_parts="crtbegin.o crtend.o"
1339 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1340 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1343 target_cpu_default="0"
1346 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1351 tm_file="m68k/m68k.h netbsd.h netbsd-aout.h m68k/netbsd.h"
1357 # needed to unconfuse gdb
1358 tm_defines="OBSD_OLD_GAS TARGET_DEFAULT=(MASK_68020|MASK_68881|MASK_BITFIELD)"
1359 tm_file="m68k/m68k.h openbsd.h m68k/openbsd.h"
1360 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1361 # we need collect2 until our bug is fixed...
1364 m68k-*-sysv4*) # Motorola m68k's running system V.4
1365 tm_file="m68k/m68k.h m68k/sgs.h dbxelf.h elfos.h svr4.h m68k/m68kv4.h"
1366 tm_defines="MOTOROLA SGS SGS_CMP_ORDER SGS_SWITCH_TABLES"
1368 extra_parts="crtbegin.o crtend.o"
1370 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1371 # with ELF format using glibc 2
1372 # aka the GNU/Linux C library 6.
1373 tm_file="m68k/m68k.h dbxelf.h elfos.h svr4.h linux.h m68k/linux.h"
1374 tm_defines="MOTOROLA USE_GAS LINUX_DEFAULT_ELF"
1375 tmake_file="t-slibgcc-elf-ver t-linux"
1378 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1379 tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h"
1380 extra_parts="crtbegin.o crtend.o"
1381 if test x$enable_threads = xyes; then
1386 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
1387 tmake_file=mcore/t-mcore
1390 tm_file="svr3.h dbxcoff.h ${tm_file} mcore/mcore-pe.h"
1391 tmake_file=mcore/t-mcore-pe
1393 mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI
1394 tm_file="${tm_file} mips/iris5.h"
1395 if test x$gas = xyes
1397 tm_file="${tm_file} mips/sdb.h mips/iris5gas.h mips/iris6-o32-gas.h"
1398 if test x$stabs = xyes
1400 tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
1402 tmake_file=mips/t-iris5-gas
1404 tm_file="${tm_file} mips/iris6-o32-as.h"
1405 tmake_file=mips/t-iris5-as
1407 tm_file="${tm_file} mips/iris6-o32.h"
1408 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1409 xm_file=mips/xm-iris5.h
1410 target_cpu_default="MASK_ABICALLS"
1411 # mips-tfile doesn't work yet
1412 # See comment in mips/iris5.h file.
1414 # if test x$enable_threads = xyes; then
1415 # thread_file='irix'
1418 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1419 tm_file="${tm_file} mips/iris5.h mips/iris6.h"
1420 if test "x$gnu_ld" = xyes
1422 tm_file="${tm_file} mips/iris6gld.h"
1424 tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
1425 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1426 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
1427 # if test x$enable_threads = xyes; then
1428 # thread_file='irix'
1431 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1432 tm_file="${tm_file} mips/iris5.h mips/iris6.h mips/cross64.h"
1433 xm_file=mips/xm-iris5.h
1434 tmake_file="mips/t-iris mips/t-cross64"
1435 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1436 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
1437 # See comment in mips/iris[56].h files.
1439 # if test x$enable_threads = xyes; then
1440 # thread_file='irix'
1443 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1444 tm_file="${tm_file} mips/iris5.h"
1445 if test x$gas = xyes
1447 tm_file="${tm_file} mips/sdb.h mips/iris5gas.h"
1448 if test x$stabs = xyes
1450 tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
1452 tmake_file=mips/t-iris5-gas
1454 tmake_file=mips/t-iris5-as
1456 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1457 xm_file=mips/xm-iris5.h
1458 target_cpu_default="MASK_ABICALLS"
1459 # mips-tfile doesn't work yet
1460 # See comment in mips/iris5.h file.
1462 # if test x$enable_threads = xyes; then
1463 # thread_file='irix'
1466 mips*-*-netbsd*) # NetBSD/mips, either endian.
1467 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1468 tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h"
1469 tmake_file="${tmake_file}"
1472 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h"
1473 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux64"
1475 # This default ABI is a partial lie: t-linux64 overrides the
1476 # DRIVER_SELF_SPEC that sets the default abi, in the spec file
1477 # that is installed. What GCC thinks of as the default must
1478 # remain as ABI_32 such that the SONAMEs of the libgcc shared
1479 # libraries remain compatible with those of mips-linux-gnu.
1480 tm_defines="MIPS_ISA_DEFAULT=1 MIPS_ABI_DEFAULT=ABI_32"
1481 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1482 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1485 if test x$enable_threads = xyes; then
1489 mips*-*-linux*) # Linux MIPS, either endian.
1490 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
1493 target_cpu_default="MASK_SOFT_FLOAT"
1494 tm_defines="MIPS_ISA_DEFAULT=32"
1497 tmake_file="t-slibgcc-elf-ver t-linux"
1500 tm_defines="OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS"
1501 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1502 tm_file="mips/mips.h openbsd.h mips/openbsd.h mips/sdb.h"
1505 tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=0";;
1506 *) tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN";;
1509 mipsisa32-*-elf* | mipsisa32el-*-elf*)
1510 tm_file="${tm_file} mips/elf.h"
1511 tmake_file=mips/t-isa3264
1512 tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
1514 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
1515 tm_file="${tm_file} mips/elf.h"
1516 tmake_file=mips/t-isa3264
1517 tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
1519 mipsisa64-*-elf* | mipsisa64el-*-elf*)
1520 tm_file="${tm_file} mips/elf.h"
1521 tmake_file=mips/t-isa3264
1522 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1523 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
1525 mipsisa64sr71k-*-elf*)
1526 tm_file="${tm_file} mips/elf.h"
1527 tmake_file=mips/t-sr71k
1528 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1529 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
1531 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1532 tm_file="${tm_file} mips/elf.h"
1533 tmake_file=mips/t-elf
1534 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1535 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1537 mips-*-elf* | mipsel-*-elf*)
1538 tm_file="${tm_file} mips/elf.h"
1539 tmake_file=mips/t-elf
1541 mips64-*-elf* | mips64el-*-elf*)
1542 tm_file="${tm_file} mips/elf64.h"
1543 tmake_file=mips/t-elf
1544 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1545 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1547 mips64vr-*-elf* | mips64vrel-*-elf*)
1548 tm_file="mips/vr.h ${tm_file} mips/elf64.h"
1549 tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1"
1550 tmake_file=mips/t-vr
1552 mips64orion-*-elf* | mips64orionel-*-elf*)
1553 tm_file="${tm_file} mips/elforion.h mips/elf64.h"
1554 tmake_file=mips/t-elf
1555 tmake_file=mips/t-elf
1556 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1557 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1560 tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
1561 tmake_file="mips/t-elf t-rtems"
1562 if test x$enable_threads = xyes; then
1566 mipstx39-*-elf* | mipstx39el-*-elf*)
1567 tm_file="${tm_file} mips/r3900.h mips/elf.h"
1568 tmake_file=mips/t-r3900
1570 mmix-knuth-mmixware)
1571 need_64bit_hwint=yes
1574 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1575 if test x$stabs = xyes
1577 tm_file="${tm_file} dbx.h"
1582 echo "GCC does not yet support the ${machine} target"; exit 1
1585 tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1586 # On NetBSD, the headers are already okay, except for math.h.
1587 tmake_file="t-netbsd ns32k/t-ns32k"
1592 tm_file="${tm_file} pdp11/2bsd.h"
1598 # port not yet contributed
1599 #powerpc-*-openbsd*)
1600 # tmake_file="${tmake_file} rs6000/t-fprules "
1604 tm_file="rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1606 x|xpowerpc64|xdefault64) tm_file="${tm_file} rs6000/default64.h";;
1608 tm_file="${tm_file} rs6000/linux64.h"
1609 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-ppccomm rs6000/t-linux64"
1612 tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux64.h rs6000/gnu.h"
1613 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
1616 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
1617 tmake_file="rs6000/t-fprules rs6000/t-beos"
1621 tm_file="${tm_file} rs6000/darwin.h"
1622 tmake_file="t-darwin rs6000/t-darwin"
1623 extra_headers=altivec.h
1624 # override ppc default
1626 # powerpc-darwin host support.
1627 host_hook_obj=host-darwin.o
1628 xmake_file=rs6000/x-darwin
1630 powerpc*-*-freebsd*)
1631 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
1632 tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1635 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1636 tmake_file="${tmake_file} rs6000/t-netbsd"
1638 powerpc-*-chorusos*)
1639 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
1640 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1641 case x${enable_threads} in
1642 xyes | xpthreads | xposix)
1648 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
1649 tmake_file="rs6000/t-spe rs6000/t-ppccomm"
1651 powerpc-*-eabisimaltivec*)
1652 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"
1653 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1656 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
1657 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1660 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1661 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1663 powerpc-*-eabialtivec*)
1664 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
1665 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1668 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
1669 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1672 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
1673 tmake_file="rs6000/t-fprules t-rtems rs6000/t-ppccomm"
1674 if test x$enable_threads = xyes; then
1678 powerpc-*-linux*altivec*)
1679 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
1680 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1682 powerpc-*-linux*spe*)
1683 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
1684 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1687 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
1688 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1690 powerpc-*-gnu-gnualtivec*)
1691 tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h"
1692 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1693 if test x$enable_threads = xyes; then
1698 tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/gnu.h"
1699 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1700 if test x$enable_threads = xyes; then
1704 powerpc-wrs-vxworks*)
1705 # We want vxworks.h after rs6000/sysv4.h, which unfortunately
1706 # means we have to redo the tm_file list from scratch.
1707 tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1708 tm_file="${tm_file} vxworks.h rs6000/vxworks.h"
1709 tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
1710 extra_headers=ppc-asm.h
1712 powerpc-wrs-windiss*)
1713 tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
1714 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1718 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1719 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1722 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1723 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1725 powerpcle-*-eabisim*)
1726 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"
1727 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1730 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
1731 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1734 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h kaos.h rs6000/kaos-ppc.h"
1735 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1738 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h kaos.h rs6000/kaos-ppc.h"
1739 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1741 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
1742 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
1743 tmake_file="rs6000/t-fprules rs6000/t-newas"
1747 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1748 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
1749 tmake_file=rs6000/t-aix43
1754 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1755 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
1756 tmake_file=rs6000/t-aix43
1761 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1762 tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
1763 tmake_file=rs6000/t-aix52
1769 tm_file="svr3.h lynx.h rs6000/lynxbase.h rs6000/rs6000.h rs6000/lynx.h"
1770 tmake_file=rs6000/t-fprules
1774 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1775 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff"
1778 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1779 tm_p_file=s390/s390-protos.h
1780 md_file=s390/s390.md
1781 extra_modes=s390/s390-modes.def
1782 out_file=s390/s390.c
1783 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64"
1785 sh-*-elf* | sh[2346l]*-*-elf* | sh*-*-kaos*)
1786 tmake_file="sh/t-sh sh/t-elf"
1789 tm_file="sh/little.h ${tm_file}"
1790 tmake_file="${tmake_file} sh/t-le"
1793 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h"
1796 tmake_file="${tmake_file} sh/t-sh64"
1797 tm_file="${tm_file} sh/sh64.h"
1798 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1800 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1801 sh4*) target_cpu_default="SELECT_SH4" ;;
1802 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1803 sh3*) target_cpu_default="SELECT_SH3" ;;
1804 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1805 sh2*) target_cpu_default="SELECT_SH2" ;;
1808 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1811 sh*-*-kaos*) tm_file="${tm_file} kaos.h sh/kaos-sh.h" ;;
1815 tmake_file="sh/t-sh sh/t-elf t-rtems"
1816 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h"
1817 if test x$enable_threads = xyes; then
1822 tmake_file="sh/t-sh t-rtems"
1823 tm_file="${tm_file} dbxcoff.h sh/coff.h sh/rtems.h rtems.h"
1824 if test x$enable_threads = xyes; then
1828 sh-*-linux* | sh[2346lbe]*-*-linux*)
1829 tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux"
1831 sh*be-*-* | sh*eb-*-*) ;;
1833 tm_file="sh/little.h ${tm_file}"
1834 tmake_file="${tmake_file} sh/t-le"
1837 tmake_file="${tmake_file} sh/t-linux"
1838 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
1841 tmake_file="${tmake_file} sh/t-sh64"
1842 tm_file="${tm_file} sh/sh64.h"
1843 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1845 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1846 sh4*) target_cpu_default="SELECT_SH4" ;;
1847 sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;;
1848 sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
1849 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1850 sh3*) target_cpu_default="SELECT_SH3" ;;
1851 sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;;
1852 sh2e[lb]*) target_cpu_default="SELECT_SH2" ;;
1853 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1854 sh2*) target_cpu_default="SELECT_SH2" ;;
1857 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1860 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1861 sh64-*-netbsd* | sh64l*-*-netbsd*)
1862 tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
1863 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
1866 tm_file="sh/little.h ${tm_file}"
1867 tmake_file="${tmake_file} sh/t-le"
1870 tmake_file="${tmake_file} sh/t-be"
1875 # SHmedia, 32-bit ABI
1876 target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT"
1877 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
1880 # SHmedia, 64-bit ABI
1881 target_cpu_default="SH5_BIT|SH4_BIT"
1882 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
1885 # SH3, software floating point
1886 target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
1887 tmake_file="${tmake_file} sh/t-netbsd"
1892 tm_file="${tm_file} dbxcoff.h sh/coff.h"
1895 tm_file="${tm_file} sparc/pbd.h"
1898 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
1901 tm_defines=OBSD_OLD_GAS
1902 tm_file="sparc/sparc.h openbsd.h sparc/openbsd.h"
1903 # needed to unconfuse gdb
1904 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
1905 # we need collect2 until our bug is fixed...
1909 tm_file="sparc/openbsd1-64.h sparc/sparc.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h"
1914 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
1915 tmake_file="sparc/t-elf sparc/t-crtfm"
1916 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1918 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1919 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
1920 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
1923 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
1924 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
1925 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1926 if test x$enable_threads = xyes; then
1930 sparc64-*-solaris2* | sparcv9-*-solaris2*)
1931 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h"
1932 if test x$gnu_ld = xyes; then
1933 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
1935 if test x$gas = xyes; then
1936 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1938 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
1939 if test x$gnu_ld = xyes; then
1940 tmake_file="$tmake_file t-slibgcc-elf-ver"
1942 tmake_file="$tmake_file t-slibgcc-sld"
1944 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
1945 if test x${enable_threads} = x ; then
1946 enable_threads=$have_pthread_h
1947 if test x${enable_threads} = x ; then
1948 enable_threads=$have_thread_h
1951 if test x${enable_threads} = xyes ; then
1952 if test x${have_pthread_h} = xyes ; then
1955 thread_file='solaris'
1958 need_64bit_hwint=yes
1961 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
1962 if test x$gnu_ld = xyes; then
1963 tm_file="${tm_file} sparc/sol2-gld.h"
1965 tmake_file="sparc/t-sol2 sparc/t-crtfm"
1966 if test x$gnu_ld = xyes; then
1967 tmake_file="$tmake_file t-slibgcc-elf-ver"
1969 tmake_file="$tmake_file t-slibgcc-sld"
1972 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
1973 if test x$gnu_ld = xno; then
1974 tm_file="${tm_file} sparc/sol26-sld.h"
1978 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
1979 if test x$gnu_ld = xyes; then
1980 tm_file="${tm_file} sparc/sol2-gld-bi.h"
1982 if test x$gas = xyes; then
1983 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1985 tmake_file="$tmake_file sparc/t-sol2-64"
1986 need_64bit_hwint=yes
1989 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1990 if test x${enable_threads} = x; then
1991 enable_threads=$have_pthread_h
1992 if test x${enable_threads} = x; then
1993 enable_threads=$have_thread_h
1996 if test x${enable_threads} = xyes; then
1997 if test x${have_pthread_h} = xyes; then
2000 thread_file='solaris'
2005 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sysv4-only.h"
2007 extra_parts="crtbegin.o crtend.o"
2010 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
2011 tmake_file=sparc/t-sparclite
2014 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h"
2015 tmake_file="sparc/t-sparclite sparc/t-crtfm"
2016 extra_parts="crtbegin.o crtend.o"
2019 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/sp86x-elf.h"
2020 tmake_file="sparc/t-sp86x sparc/t-crtfm"
2021 extra_parts="crtbegin.o crtend.o"
2024 tm_file="sparc/sparc.h sparc/aout.h sparc/sp64-aout.h"
2027 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h"
2028 tmake_file="${tmake_file} sparc/t-crtfm"
2029 extra_parts="crtbegin.o crtend.o"
2031 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
2032 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
2033 tmake_file="${tmake_file} sparc/t-crtfm"
2035 case "x$with_cpu" in
2037 x) with_cpu=ultrasparc ;;
2038 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
2040 need_64bit_hwint=yes
2042 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
2043 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
2044 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
2047 tmake_file="${tmake_file} sparc/t-netbsd64"
2048 tm_file="sparc/biarch64.h ${tm_file}"
2049 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2052 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2053 tmake_file=arm/t-strongarm-elf
2056 extra_modes=arm/arm-modes.def
2059 tm_file="arm/semi.h arm/aout.h arm/coff.h dbxcoff.h arm/strongarm-coff.h arm/arm.h arm/pe.h arm/strongarm-pe.h"
2060 tmake_file=arm/t-strongarm-pe
2063 extra_modes=arm/arm-modes.def
2067 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-strongarm.h"
2068 tmake_file=arm/t-strongarm-elf
2071 extra_modes=arm/arm-modes.def
2074 target_cpu_default="TARGET_CPU_v850e"
2075 tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2076 tm_p_file=v850/v850-protos.h
2077 tmake_file=v850/t-v850
2078 md_file=v850/v850.md
2079 out_file=v850/v850.c
2080 if test x$stabs = xyes
2082 tm_file="${tm_file} dbx.h"
2085 c_target_objs="v850-c.o"
2086 cxx_target_objs="v850-c.o"
2089 target_cpu_default="TARGET_CPU_generic"
2090 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2091 tmake_file=v850/t-v850
2092 if test x$stabs = xyes
2094 tm_file="${tm_file} dbx.h"
2097 c_target_objs="v850-c.o"
2098 cxx_target_objs="v850-c.o"
2100 vax-*-bsd*) # VAXen running BSD
2101 tm_file="${tm_file} vax/bsd.h"
2104 vax-*-sysv*) # VAXen running system V
2105 tm_file="${tm_file} vax/vaxv.h"
2108 tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
2111 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
2117 tm_file="vax/vax.h vax/openbsd1.h openbsd.h vax/openbsd.h"
2120 vax-*-ultrix*) # VAXen running ultrix
2121 tm_file="${tm_file} vax/ultrix.h"
2123 vax-*-vms*) # VAXen running VMS
2124 echo "Configuration $machine no longer supported" 1>&2
2127 vax-*-*) # VAX default entry
2130 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2131 tmake_file=arm/t-xscale-elf
2134 extra_modes=arm/arm-modes.def
2137 tm_file="arm/semi.h arm/aout.h arm/coff.h dbxcoff.h arm/xscale-coff.h arm/arm.h"
2138 tmake_file=arm/t-xscale-coff
2141 extra_modes=arm/arm-modes.def
2144 # For historical reasons, the target files omit the 'x'.
2145 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
2146 tm_p_file=stormy16/stormy16-protos.h
2147 md_file=stormy16/stormy16.md
2148 out_file=stormy16/stormy16.c
2149 tmake_file="stormy16/t-stormy16"
2150 extra_parts="crtbegin.o crtend.o"
2153 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
2154 tmake_file="xtensa/t-xtensa xtensa/t-elf"
2157 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
2158 tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa xtensa/t-linux"
2161 tm_file="mn10300/mn10300.h dbxelf.h elfos.h linux.h mn10300/linux.h"
2162 tmake_file="t-linux mn10300/t-linux"
2164 if test x$enable_threads = xyes; then
2167 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2171 echo "*** Configuration $machine not supported" 1>&2
2176 # Support for --with-cpu and related options (and a few unrelated options,
2178 case "x$with_cpu" in
2180 echo "--with-cpu must be passed a value" 1>&2
2185 # If there is no $with_cpu option, try to infer one from ${machine}.
2186 # This block sets nothing except for with_cpu.
2187 if test x$with_cpu = x
2191 # A Cirrus ARM variant.
2198 case $target_alias in
2208 pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2209 with_cpu=pentium-mmx
2216 i686-*-* | i786-*-*)
2217 case $target_alias in
2221 athlon_xp-*|athlon_mp-*|athlon_4-*)
2224 athlon_tbird-*|athlon-*)
2264 with_cpu="`echo $machine | sed 's/-.*$//'`"
2265 if [ x$with_cpu = xsparc64 ]; then
2272 # Similarly for --with-schedule.
2273 if test x$with_schedule = x; then
2276 # Override default PA8000 scheduling model.
2277 with_schedule=7100LC
2282 # Validate and mark as valid any --with options supported
2283 # by this target. In order to use a particular --with option
2284 # you must list it in supported_defaults; validating the value
2285 # is optional. This case statement should set nothing besides
2286 # supported_defaults.
2291 supported_defaults="cpu tune"
2292 for which in cpu tune; do
2293 eval "val=\$with_$which"
2296 | xev4 | xev45 | x21064 | xev5 | x21164 | xev56 | x21164a \
2297 | xpca56 | x21164PC | x21164pc | xev6 | x21264 | xev67 \
2301 echo "Unknown CPU used in --with-$which=$val" 1>&2
2309 supported_defaults="arch cpu float tune"
2310 for which in cpu tune; do
2311 eval "val=\$with_$which"
2314 | xarm[236789] | xarm250 | xarm[67][01]0 \
2315 | xarm60 | xarm620 | xarm7d | xarm7di \
2316 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
2317 | xarm70 | xarm700i | xarm710t | xarm720 \
2318 | xarm720t | xarm740t | xarm710c | xarm920 \
2319 | xarm920t | xarm940t | xarm9e | xarm10tdmi \
2320 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2322 | xxscale | xiwmmxt \
2324 | xstrongarm | xstrongarm110 | xstrongarm11[01]0)
2328 echo "Unknown CPU used in --with-$which=$val" 1>&2
2334 case "x$with_arch" in
2336 | xarmv[2345] | xarmv2a | xarmv3m | xarmv4t | xarmv5t \
2337 | xarmv5te | ep9312)
2341 echo "Unknown arch used in --with-arch=$with_arch" 1>&2
2346 case "x$with_float" in
2352 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2357 if test "x$with_arch" != x && test "x$with_cpu" != x; then
2358 echo "Warning: --with-arch overrides --with-cpu" 1>&2
2362 hppa*-*-* | parisc*-*-*)
2363 supported_defaults="arch schedule"
2365 case "x$with_arch" in
2366 x | x1.0 | x1.1 | x2.0)
2370 echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
2375 case "x$with_schedule" in
2376 x | x700 | x7100 | x7100LC | x7200 | x7300 | x8000)
2380 echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
2386 i[34567]86-*-* | x86_64-*-*)
2387 supported_defaults="arch cpu tune"
2388 for which in arch cpu tune; do
2389 eval "val=\$with_$which"
2393 | xi586 | xpentium | xpentium-mmx | xwinchip-c6 | xwinchip2 \
2394 | xc3 | xc3-2 | xi686 | xpentiumpro | xpentium2 | xpentium3 \
2395 | xpentium4 | xk6 | xk6-2 | xk6-3 | xathlon | xathlon-tbird \
2396 | xathlon-4 | xathlon-xp | xathlon-mp | xk8)
2400 echo "Unknown CPU given in --with-$which=$val." 1>&2
2408 supported_defaults="abi arch float tune"
2410 case "x$with_float" in
2416 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2421 case "x$with_abi" in
2423 | x32 | xo64 | xn32 | x64 | xeabi)
2427 echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
2433 powerpc*-*-* | rs6000-*-*)
2434 supported_defaults="cpu float tune"
2436 for which in cpu tune; do
2437 eval "val=\$with_$which"
2440 | xdefault32 | xdefault64 \
2442 | xpower | xpower2 | xpower3 | xpower4 \
2443 | xpowerpc | xpowerpc64 \
2444 | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
2445 | x401 | x403 | x405 | x405fp | x440 | x440fp | x505 \
2446 | x601 | x602 | x603 | x603e | xec603e | x604 \
2447 | x604e | x620 | x630 | x740 | x750 | x7400 | x7450 \
2448 | x8540 | x801 | x821 | x823 | x860 | x970)
2452 echo "Unknown cpu used in --with-$which=$val." 1>&2
2460 supported_defaults="arch mode tune"
2462 for which in arch tune; do
2463 eval "val=\$with_$which"
2466 | xg5 | xg6 | xz900 | xz990)
2470 echo "Unknown cpu used in --with-$which=$val." 1>&2
2476 case "x$with_mode" in
2482 echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2
2489 supported_defaults="cpu float tune"
2491 for which in cpu tune; do
2492 eval "val=\$with_$which"
2495 | xsparc | xsparcv9 | xsparc64 | xsparc86x \
2496 | xv7 | xcypress | xv8 | xsupersparc | xsparclite | xf930 \
2497 | xf934 | xhypersparc | xsparclite86x | xsparclet | tsc701 \
2498 | xv9 | xultrasparc | xultrasparc3)
2502 echo "Unknown cpu used in --with-$which=$val" 1>&2
2508 case "x$with_float" in
2514 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2521 supported_defaults=cpu
2522 case "x$with_cpu" in
2527 echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
2534 # Set some miscellaneous flags for particular targets.
2535 target_cpu_default2=
2538 if test x$gas = xyes
2540 target_cpu_default2="MASK_GAS"
2545 case "x$with_cpu" in
2548 target_cpu_default2="TARGET_CPU_generic"
2552 target_cpu_default2="TARGET_CPU_$with_cpu"
2557 hppa*-*-* | parisc*-*-*)
2558 if test x$gas = xyes
2560 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
2566 mips*-*-ecoff* | mips*-*-elf*)
2567 if test x$gas = xyes
2569 if test x$gnu_ld = xyes
2571 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
2573 target_cpu_default2="MASK_GAS"
2578 if test x$gas = xyes
2580 target_cpu_default2="MASK_GAS"
2586 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
2590 *mips/elf.h* | *mips/elf64.h*)
2591 tm_defines="OBJECT_FORMAT_ELF $tm_defines"
2594 if test "x$enable_gofast" = xyes
2596 tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
2597 tm_file="gofast.h $tm_file"
2598 tmake_file="mips/t-gofast $tmake_file"
2600 tmake_file="mips/t-mips $tmake_file"
2604 powerpc*-*-* | rs6000-*-*)
2605 if test x$enable_altivec = xyes
2607 tm_file="$tm_file rs6000/altivec-defs.h"
2609 # FIXME: The PowerPC port uses the value set at compile time,
2610 # although it's only cosmetic.
2611 if test "x$with_cpu" != x
2613 target_cpu_default2="\\\"$with_cpu\\\""
2615 out_file=rs6000/rs6000.c
2616 c_target_objs="${c_target_objs} rs6000-c.o"
2617 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
2618 tmake_file="rs6000/t-rs6000 ${tmake_file}"
2622 # Some standard aliases.
2628 with_cpu=sparclite86x
2630 xsparcv9 | xsparc64)
2635 # The Sparc port checks this value at compile-time.
2636 target_cpu_default2="TARGET_CPU_$with_cpu"
2639 # FIXME: The v850 is "special" in that it does not support
2640 # runtime CPU selection, only --with-cpu.
2641 case "x$with_cpu" in
2645 target_cpu_default2="TARGET_CPU_$with_cpu"
2652 all_defaults="abi cpu arch tune schedule float mode"
2653 for option in $all_defaults
2655 eval "val=\$with_$option"
2656 if test -n "$val"; then
2657 case " $supported_defaults " in
2661 echo "This target does not support --with-$option." 2>&1
2668 t="{ \"$option\", \"$val\" }"
2670 t="${t}, { \"$option\", \"$val\" }"
2676 configure_default_options="{ { NULL, NULL} }"
2678 configure_default_options="{ ${t} }"
2681 if test "$target_cpu_default2" != ""
2683 if test "$target_cpu_default" != ""
2685 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2687 target_cpu_default=$target_cpu_default2