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 # extra_passes List of extra executables compiled for this target
90 # machine, used for compiling from source to object.
92 # extra_parts List of extra object files that should be compiled
93 # for this target machine.
95 # extra_programs Like extra_passes, but these are used when linking.
97 # c_target_objs List of extra target-dependent objects that be
98 # linked into the C compiler only.
100 # cxx_target_objs List of extra target-dependent objects that be
101 # linked into the C++ compiler only.
103 # target_gtfiles List of extra source files with type information.
105 # xm_defines List of macros to define when compiling for the
108 # xm_file List of files to include when compiling for the
111 # use_collect2 Set to yes or no, depending on whether collect2
114 # target_cpu_default Set to override the default target model.
116 # gdb_needs_out_file_path
117 # Set to yes if gdb needs a dir command with
118 # `dirname $out_file`.
120 # thread_file Set to control which thread package to use.
122 # gas Set to yes or no depending on whether the target
123 # system normally uses GNU as.
125 # need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide
126 # for this target. This is true iff
127 # MAX_LONG_TYPE_SIZE is 64. (The code which
128 # determines the underlying integral type for
129 # HOST_WIDE_INT cannot see the definition of
130 # MAX_LONG_TYPE_SIZE.)
132 # configure_default_options
133 # Set to an initializer for configure_default_options
134 # in configargs.h, based on --with-cpu et cetera.
136 # The following variables are used in each case-construct to build up the
137 # outgoing variables:
139 # gnu_ld Set to yes or no depending on whether the target
140 # system normally uses GNU ld.
154 # Set this to force installation and use of collect2.
156 # Set this to override the default target model.
158 # Set this if gdb needs a dir command with `dirname $out_file`
159 gdb_needs_out_file_path=
160 # Set this to control which thread package will be used.
162 # Reinitialize these from the flag values every loop pass, since some
163 # configure entries modify them.
165 gnu_ld="$gnu_ld_flag"
166 enable_threads=$enable_threads_flag
167 default_use_cxa_atexit=no
171 # Don't carry these over build->host->target. Please.
175 # Obsolete configurations.
178 if test "x$enable_obsolete" != xyes; then
179 echo "*** Configuration $machine is obsolete." >&2
180 echo "*** Specify --enable-obsolete to build it anyway." >&2
181 echo "*** Support will be REMOVED in the next major release of GCC," >&2
182 echo "*** unless a maintainer comes forward." >&2
187 # Unsupported targets list. Do not put an entry in this list unless
188 # it would otherwise be caught by a more permissive pattern. The list
189 # should be in alphabetical order.
191 alpha*-*-linux*libc1* \
192 | i[34567]86-sequent-sysv \
193 | i[34567]86-sequent-sysv[123]* \
194 | i[34567]86-go32-* \
195 | i[34567]86-*-go32* \
196 | m68k-*-linux*aout* \
197 | m68k-*-linux*libc1* \
198 | mips64orion*-*-rtems* \
199 | powerpc-*-linux*libc1* \
200 | sparc-*-linux*aout* \
201 | sparc-*-linux*libc1* \
202 | sparc-hal-solaris2* \
209 echo "*** Configuration $machine not supported" 1>&2
214 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
215 # updated in each machine entry. Also set default extra_headers for some
218 cpu_type=`echo $machine | sed 's/-.*$//'`
232 extra_headers="mmintrin.h"
239 extra_headers="mmintrin.h"
243 extra_headers="mmintrin.h xmmintrin.h emmintrin.h pmmintrin.h"
247 extra_headers="mmintrin.h xmmintrin.h emmintrin.h pmmintrin.h"
251 extra_headers=ia64intrin.h
254 hppa*-*-* | parisc*-*-*)
259 extra_headers=math-68881.h
262 extra_headers=math-68881.h
270 extra_headers="ppc-asm.h altivec.h spe.h"
286 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
296 tm_file=${cpu_type}/${cpu_type}.h
297 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
299 tm_p_file=${cpu_type}/${cpu_type}-protos.h
302 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
304 extra_modes=${cpu_type}/${cpu_type}-modes.def
309 tm_file="i386/biarch64.h ${tm_file}"
313 # On a.out targets, we need to use collect2.
320 # Common parts for widely ported systems.
324 *-*-linux*libc1* | *-*-linux*aout*)
327 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
329 case x${enable_threads} in
330 x | xyes | xposix) thread_file='posix'
337 # On the Hurd, the setup is just about the same on
338 # each different CPU. The specific machines that we
339 # support are matched above and just set $cpu_type.
340 tm_file="${cpu_type}/gnu.h"
341 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
342 # GNU always uses ELF.
344 # GNU tools are the only tools.
347 # These details are the same as for Linux.
348 # But here we need a little extra magic.
349 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
352 tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
355 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}"
360 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
361 if test x$enable_threads = xyes; then
363 tmake_file="${tmake_file} t-openbsd-thread"
367 tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic"
371 # NetBSD 2.0 and later get POSIX threads enabled by default.
372 # Allow them to be explicitly enabled on any other version.
373 case x${enable_threads} in
376 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
378 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
384 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
388 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
389 # ELF configurations. We will clear extra_parts in the
390 # a.out configurations.
392 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
393 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
397 # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
398 # default (unless overridden by --disable-__cxa_atexit).
400 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
401 default_use_cxa_atexit=yes
405 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
406 # This is the place-holder for the generic a.out configuration
407 # of FreeBSD. No actual configuration resides here since
408 # there was only ever a bare-bones ix86 configuration for
409 # a.out and it exists solely in the machine-specific section.
410 # This place-holder must exist to avoid dropping into
411 # the generic ELF configuration of FreeBSD (i.e. it must be
412 # ordered before that section).
415 # This is the generic ELF configuration of FreeBSD. Later
416 # machine-specific sections may refine and add to this
419 # Due to tm_file entry ordering issues that vary between cpu
420 # architectures, we only define fbsd_tm_file to allow the
421 # machine-specific section to dictate the final order of all
422 # entries of tm_file with the minor exception that components
423 # of the tm_file set here will always be of the form:
425 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
427 # The machine-specific section should not tamper with this
428 # ordering but may order all other entries of tm_file as it
429 # pleases around the provided core setting.
432 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
434 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
435 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
436 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
437 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
438 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
440 tmake_file="t-slibgcc-elf-ver t-freebsd"
441 case x${enable_threads} in
442 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
443 x | xyes | xpthreads | xposix)
445 tmake_file="${tmake_file} t-freebsd-thread"
446 # Before 5.0, FreeBSD can't bind shared libraries to -lc
447 # when "optionally" threaded via weak pthread_* checks.
449 *-*-freebsd[34] | *-*-freebsd[34].*)
450 tmake_file="${tmake_file} t-slibgcc-nolc-override";;
453 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
455 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
458 tm_file="${tm_file} darwin.h"
459 tm_p_file="${tm_p_file} darwin-protos.h"
460 tmake_file="t-darwin"
461 target_gtfiles="\$(srcdir)/config/darwin.c"
462 c_target_objs="darwin-c.o"
463 cxx_target_objs="darwin-c.o"
465 extra_objs="darwin.o"
466 case x${enable_threads} in
467 x | xyes | xposix) thread_file='posix'
473 tm_file="${tm_file} elfos.h svr4.h vxworks.h"
474 thread_file='vxworks'
480 # Support site-specific machine types.
482 rest=`echo $machine | sed -e "s/$cpu_type-//"`
483 tm_file=${cpu_type}/$rest.h
484 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
485 then xm_file=${cpu_type}/xm-$rest.h
487 if test -f $srcdir/config/${cpu_type}/t-$rest
488 then tmake_file=${cpu_type}/t-$rest
493 tm_file="${tm_file} alpha/unicosmk.h"
495 # Don't include t-ieee for now because we don't support that yet
496 # tmake_file="alpha/t-ieee"
497 tmake_file="alpha/t-unicosmk"
500 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
501 target_cpu_default="MASK_GAS"
502 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
505 target_cpu_default="MASK_GAS"
506 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
509 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
510 target_cpu_default="MASK_GAS"
511 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
512 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
515 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
516 target_cpu_default="MASK_GAS"
517 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
521 tm_defines="OBSD_NO_DYNAMIC_LIBRARIES OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT"
522 tm_file="alpha/alpha.h openbsd.h alpha/openbsd.h"
523 # default x-alpha is only appropriate for dec-osf.
524 target_cpu_default="MASK_GAS"
525 tmake_file="alpha/t-alpha alpha/t-ieee"
529 if test x$stabs = xyes
531 tm_file="${tm_file} dbx.h"
533 if test x$gas != xyes
535 extra_passes="mips-tfile mips-tdump"
538 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
539 tm_file="${tm_file} alpha/osf.h"
540 extra_headers=va_list.h
543 # Set target_cpu_default except on 4.0a.
546 *) target_cpu_default=MASK_SUPPORT_ARCH
550 tm_file="${tm_file} alpha/osf5.h"
551 target_cpu_default=MASK_SUPPORT_ARCH
554 case x${enable_threads} in
555 x | xyes | xpthreads | xposix)
557 tmake_file="${tmake_file} alpha/t-osf-pthread"
562 tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
563 xm_file="alpha/xm-vms.h"
564 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
569 tm_file="${tm_file} alpha/vms.h"
570 xm_file=alpha/xm-vms.h
571 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
576 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
577 extra_parts="crtinit.o crtfini.o"
579 arm-*-coff* | armel-*-coff*)
580 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h"
581 tmake_file=arm/t-arm-coff
583 arm-semi-aof | armel-semi-aof)
584 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
585 tmake_file=arm/t-semi
587 arm*-*-freebsd*|strongarm*-*-freebsd*)
588 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
589 tmake_file="${tmake_file} arm/t-strongarm-elf"
592 tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
593 tmake_file="${tmake_file} arm/t-netbsd"
596 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
597 tmake_file="t-netbsd arm/t-netbsd"
601 arm*-*-linux*) # ARM GNU/Linux with ELF
602 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"
603 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
604 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
606 case x${enable_threads} in
607 x | xyes | xpthreads | xposix)
612 arm*-*-uclinux*) # ARM ucLinux
613 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"
614 tmake_file=arm/t-arm-elf
617 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
618 tmake_file=arm/t-arm-elf
621 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"
622 tmake_file="arm/t-arm-elf t-rtems"
623 if test x$enable_threads = xyes; then
627 arm*-*-elf | ep9312-*-elf)
628 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
629 tmake_file=arm/t-arm-elf
632 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h arm/wince-pe.h"
633 tmake_file=arm/t-wince-pe
637 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h"
642 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"
643 tmake_file=arm/t-arm-elf
646 tm_file="avr/avr.h dbxelf.h"
648 c4x-*-rtems* | tic4x-*-rtems*)
649 tmake_file="c4x/t-c4x t-rtems"
650 tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
651 if test x$enable_threads = xyes; then
654 c_target_objs="c4x-c.o"
655 cxx_target_objs="c4x-c.o"
659 c_target_objs="c4x-c.o"
660 cxx_target_objs="c4x-c.o"
663 tm_file="dbxelf.h ${tm_file} cris/aout.h"
665 tmake_file="cris/t-cris cris/t-aout"
667 cris-*-elf | cris-*-none)
668 tm_file="dbxelf.h elfos.h ${tm_file}"
669 tmake_file="cris/t-cris cris/t-elfmulti"
673 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
674 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
677 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
682 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
683 tmake_file=fr30/t-fr30
684 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
687 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h"
691 tmake_file="h8300/t-h8300 t-rtems"
692 tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h h8300/rtems.h rtems.h"
693 if test x$enable_threads = xyes; then
698 tmake_file="h8300/t-h8300 h8300/t-elf"
699 tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h"
702 tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h"
704 hppa*64*-*-linux* | parisc*64*-*-linux*)
705 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
706 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
707 pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
708 tmake_file=pa/t-linux64
712 hppa*-*-linux* | parisc*-*-linux*)
713 target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS"
714 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
715 pa/pa32-regs.h pa/pa32-linux.h"
716 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
718 # port not yet contributed.
720 # target_cpu_default="MASK_PA_11"
721 # tmake_file=pa/t-bsd
724 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
725 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
726 tmake_file="pa/t-bsd pa/t-pro"
729 target_cpu_default="MASK_PA_11"
730 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h pa/pa-osf.h"
731 tmake_file="pa/t-bsd pa/t-pa"
735 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
736 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"
737 tmake_file="pa/t-bsd pa/t-pro t-rtems"
738 if test x$enable_threads = xyes; then
743 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h"
744 target_cpu_default="MASK_PA_11"
745 tmake_file="pa/t-bsd pa/t-pa"
748 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
749 target_cpu_default="MASK_PA_11"
750 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"
751 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
752 if test x$enable_threads = x; then
753 enable_threads=$have_pthread_h
755 case x${enable_threads} in
757 tmake_file="${tmake_file} pa/t-dce-thr"
763 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"
764 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
765 if test x$enable_threads = x; then
766 enable_threads=$have_pthread_h
768 case x${enable_threads} in
770 tmake_file="${tmake_file} pa/t-dce-thr"
778 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
779 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
780 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
782 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \
783 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
784 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
787 tmake_file="pa/t-pa64 pa/t-pa-hpux"
788 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
789 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
790 if test x$gnu_ld = xyes
792 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
794 case x${enable_threads} in
800 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
801 target_cpu_default="MASK_PA_11"
802 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"
803 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
804 case x${enable_threads} in
812 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"
813 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
814 case x${enable_threads} in
821 i370-*-opened*) # IBM 360/370/390 Architecture
822 xm_defines='FATAL_EXIT_CODE=12'
823 tm_file="i370/oe.h i370/i370.h"
824 tmake_file="i370/t-oe i370/t-i370"
825 c_target_objs="i370-c.o"
826 cxx_target_objs="i370-c.o"
829 xm_defines='FATAL_EXIT_CODE=12'
830 tm_file="i370/mvs.h i370/i370.h"
831 tmake_file="i370/t-i370"
832 c_target_objs="i370-c.o"
833 cxx_target_objs="i370-c.o"
836 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h i370/i370.h"
837 tmake_file="t-slibgcc-elf-ver t-linux"
841 i[34567]86-*-darwin*)
842 tm_file="${tm_file} i386/darwin.h"
845 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
846 tmake_file="i386/t-i386elf t-svr4"
848 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
849 xm_defines="SMALL_ARG_MAX"
850 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
851 extra_parts="crtbegin.o crtend.o"
852 tmake_file=i386/t-crtpic
854 i[34567]86-*-netware) # Intel 80386's running netware
855 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
856 tmake_file=i386/t-netware
858 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
861 tm_file="${tm_file} usegas.h"
863 xm_defines="SMALL_ARG_MAX"
864 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
866 extra_parts="crtbegin.o crtend.o"
869 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
871 i[34567]86-*-beoself* | i[34567]86-*-beos*)
872 tmake_file='i386/t-beos i386/t-crtpic'
873 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
874 extra_parts='crtbegin.o crtend.o'
876 i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*)
877 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
880 i[34567]86-*-freebsd*)
881 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
884 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"
886 i[34567]86-*-netbsdelf*)
887 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
889 i[34567]86-*-netbsd*)
890 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
896 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"
898 i[34567]86-*-openbsd*)
899 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"
900 # needed to unconfuse gdb
901 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
902 # we need collect2 until our bug is fixed...
906 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
908 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
910 tmake_file="t-linux-aout i386/t-crtstuff"
911 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
914 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
915 # with ELF format using the
916 # GNU/Linux C library 5
917 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
918 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
919 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
921 if test x$enable_threads = xyes; then
925 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
926 # with ELF format using glibc 2
927 # aka GNU/Linux C library 6
928 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
929 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
932 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
933 i386/x86-64.h i386/linux64.h"
934 tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64"
938 i[34567]86-pc-msdosdjgpp*)
939 xm_file=i386/xm-djgpp.h
940 tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h"
941 tmake_file=i386/t-djgpp
945 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
946 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
951 i[34567]86-*-lynxos*)
954 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h svr3.h lynx.h i386/lynx.h"
956 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
960 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
961 # tmake_file=t-libc-ok
964 i[34567]86-*-nto-qnx*)
965 tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h svr4.h i386/unix.h i386/nto.h"
966 tmake_file=i386/t-nto
971 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
972 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
973 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
974 if test x$enable_threads = xyes; then
978 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
979 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h"
982 tm_file="usegas.h ${tm_file}"
984 tmake_file=i386/t-sco5
985 extra_parts="crtbegin.o crtend.o"
987 i[34567]86-*-solaris2*)
988 xm_defines="SMALL_ARG_MAX"
989 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
990 tmake_file="i386/t-sol2 t-svr4"
991 if test x$gnu_ld = xyes; then
992 tmake_file="$tmake_file t-slibgcc-elf-ver"
994 tmake_file="$tmake_file t-slibgcc-sld"
996 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
997 if test x${enable_threads} = x; then
998 enable_threads=$have_pthread_h
999 if test x${enable_threads} = x; then
1000 enable_threads=$have_thread_h
1003 if test x${enable_threads} = xyes; then
1004 if test x${have_pthread_h} = xyes; then
1007 thread_file='solaris'
1011 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1012 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1013 if test x$stabs = xyes
1015 tm_file="${tm_file} dbx.h"
1017 tmake_file="i386/t-crtpic t-svr4"
1018 extra_parts="crtbegin.o crtend.o"
1019 if test x$enable_threads = xyes; then
1023 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1024 xm_defines="SMALL_ARG_MAX"
1025 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
1026 if test x$stabs = xyes
1028 tm_file="${tm_file} dbx.h"
1030 tmake_file="i386/t-crtpic t-svr4"
1031 extra_parts="crtbegin.o crtend.o"
1033 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1034 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"
1035 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1036 extra_parts="crtbegin.o crtend.o"
1038 i[34567]86-*-sysv*) # Intel 80386's running system V
1039 if test x$gas = xyes
1041 if test x$stabs = xyes
1043 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
1044 tmake_file=i386/t-svr3dbx
1045 extra_parts="svr3.ifile svr3z.ifile"
1047 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
1048 extra_parts="crtbegin.o crtend.o"
1049 tmake_file=i386/t-crtstuff
1052 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
1053 extra_parts="crtbegin.o crtend.o"
1054 tmake_file=i386/t-crtstuff
1056 tmake_file="$tmake_file i386/t-crtpic"
1058 i386-*-vsta) # Intel 80386's running VSTa kernel
1059 xm_file="i386/xm-vsta.h"
1060 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/vsta.h"
1062 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1063 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h"
1064 xm_file=i386/xm-cygwin.h
1065 tmake_file="i386/t-cygming i386/t-cygwin"
1067 c_target_objs=cygwin2.o
1068 cxx_target_objs=cygwin2.o
1069 if test x$enable_threads = xyes; then
1073 i[34567]86-*-mingw32*)
1074 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
1075 xm_file=i386/xm-mingw32.h
1076 tmake_file="i386/t-cygming i386/t-mingw32"
1078 if test x$enable_threads = xyes; then
1083 tm_file="${tm_file} i386/crtdll.h"
1085 *mingw32msv* | *mingw32*)
1090 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h"
1091 tmake_file="i386/t-cygwin i386/t-uwin"
1093 if test x$enable_threads = xyes; then
1097 i[34567]86-*-interix3*)
1098 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"
1099 tmake_file="t-interix i386/t-interix"
1101 if test x$enable_threads = xyes ; then
1104 if test x$stabs = xyes ; then
1105 tm_file="${tm_file} dbxcoff.h"
1108 i[34567]86-*-interix*)
1109 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
1110 tmake_file="t-interix i386/t-interix"
1112 if test x$enable_threads = xyes ; then
1115 if test x$stabs = xyes ; then
1116 tm_file="${tm_file} dbxcoff.h"
1120 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h kaos.h i386/kaos-i386.h"
1121 tmake_file="i386/t-i386elf t-svr4"
1124 tm_file="${tm_file} elfos.h svr4.h i860/sysv4.h"
1125 tmake_file="i860/t-i860 i860/t-svr4"
1126 extra_parts="crtbegin.o crtend.o"
1129 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1130 tmake_file=i960/t-960bare
1131 c_target_objs="i960-c.o"
1132 cxx_target_objs="i960-c.o"
1135 tmake_file="i960/t-960bare t-rtems"
1136 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1137 if test x$enable_threads = xyes; then
1140 c_target_objs="i960-c.o"
1141 cxx_target_objs="i960-c.o"
1143 i960-*-*) # Default i960 environment.
1145 tmake_file=i960/t-960bare
1146 c_target_objs="i960-c.o"
1147 cxx_target_objs="i960-c.o"
1150 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1151 tmake_file="ia64/t-ia64"
1152 target_cpu_default="0"
1153 if test x$gas = xyes
1155 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1157 if test x$gnu_ld = xyes
1159 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1161 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1164 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1165 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1166 tmake_file="${tmake_file} ia64/t-ia64"
1167 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1170 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1171 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1172 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1173 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1174 if test x"$use_libunwind_exceptions" = xyes; then
1175 tmake_file="$tmake_file t-libunwind"
1179 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1180 tmake_file="ia64/t-ia64 ia64/t-hpux"
1181 target_cpu_default="MASK_GNU_AS"
1182 case x$enable_threads in
1188 c_target_objs="ia64-c.o"
1189 cxx_target_objs="ia64-c.o"
1192 tm_file="elfos.h ${tm_file}"
1195 tm_file="svr4.h elfos.h iq2000/iq2000.h"
1196 tmake_file=iq2000/t-iq2000
1197 out_file=iq2000/iq2000.c
1198 md_file=iq2000/iq2000.md
1201 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1202 extra_parts="crtinit.o crtfini.o"
1204 # m68hc11 and m68hc12 share the same machine description.
1205 m68hc11-*-*|m6811-*-*)
1206 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1207 tm_p_file="m68hc11/m68hc11-protos.h"
1208 md_file="m68hc11/m68hc11.md"
1209 out_file="m68hc11/m68hc11.c"
1210 tmake_file="m68hc11/t-m68hc11-gas"
1212 m68hc12-*-*|m6812-*-*)
1213 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1214 tm_p_file="m68hc11/m68hc11-protos.h"
1215 md_file="m68hc11/m68hc11.md"
1216 out_file="m68hc11/m68hc11.c"
1217 tmake_file="m68hc11/t-m68hc11-gas"
1219 m68000-hp-hpux*) # HP 9000 series 300
1220 tm_file="m68k/hp320base.h m68k/m68k.h m68k/hp320.h m68k/hp310.h"
1221 tm_defines="TARGET_DEFAULT=0" # 68000, no 68881, no bitfield ops
1222 if test x$gas = xyes
1224 tm_defines="${tm_defines} DBX_DEBUGGING_INFO=1 USE_GAS"
1226 tmake_file=m68k/t-hp320
1229 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1230 tm_file="m68k/hp320base.h m68k/m68k.h m68k/hp320.h"
1231 if test x$gas = xyes
1233 tm_defines="DBX_DEBUGGING_INFO=1 USE_GAS"
1235 tm_defines="NO_DOT_IN_LABEL NO_BUGS"
1239 m68k-hp-hpux*) # HP 9000 series 300
1240 tm_file="m68k/hp320base.h m68k/m68k.h m68k/hp320.h"
1241 if test x$gas = xyes
1243 tm_defines="DBX_DEBUGGING_INFO=1 USE_GAS"
1248 tmake_file=m68k/t-m68kbare
1249 tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kemb.h m68k/m68k-aout.h libgloss.h"
1252 tmake_file=m68k/t-m68kbare
1253 tm_defines="MOTOROLA USE_GAS"
1254 tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kemb.h dbxcoff.h m68k/coff.h dbx.h"
1256 m68020-*-elf* | m68k-*-elf*)
1257 tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1258 tmake_file=m68k/t-m68kelf
1259 extra_parts="crtbegin.o crtend.o"
1261 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1262 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1265 target_cpu_default="0"
1268 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1273 tm_file="m68k/m68k.h netbsd.h netbsd-aout.h m68k/netbsd.h"
1279 # needed to unconfuse gdb
1280 tm_defines="OBSD_OLD_GAS TARGET_DEFAULT=(MASK_68020|MASK_68881|MASK_BITFIELD)"
1281 tm_file="m68k/m68k.h openbsd.h m68k/openbsd.h"
1282 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1283 # we need collect2 until our bug is fixed...
1286 m68k-*-sysv4*) # Motorola m68k's running system V.4
1287 tm_file="m68k/m68k.h m68k/sgs.h dbxelf.h elfos.h svr4.h m68k/m68kv4.h"
1288 tm_defines="MOTOROLA SGS SGS_CMP_ORDER SGS_SWITCH_TABLES"
1290 extra_parts="crtbegin.o crtend.o"
1292 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1293 # with ELF format using glibc 2
1294 # aka the GNU/Linux C library 6.
1295 tm_file="m68k/m68k.h dbxelf.h elfos.h svr4.h linux.h m68k/linux.h"
1296 tm_defines="MOTOROLA USE_GAS"
1297 tmake_file="t-slibgcc-elf-ver t-linux"
1300 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1301 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"
1302 extra_parts="crtbegin.o crtend.o"
1303 if test x$enable_threads = xyes; then
1308 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
1309 tmake_file=mcore/t-mcore
1312 tm_file="svr3.h dbxcoff.h ${tm_file} mcore/mcore-pe.h"
1313 tmake_file=mcore/t-mcore-pe
1315 mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI
1316 tm_file="${tm_file} mips/iris5.h"
1317 if test x$gas = xyes
1319 tm_file="${tm_file} mips/sdb.h mips/iris5gas.h mips/iris6-o32-gas.h"
1320 if test x$stabs = xyes
1322 tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
1324 tmake_file=mips/t-iris5-gas
1326 tm_file="${tm_file} mips/iris6-o32-as.h"
1327 tmake_file=mips/t-iris5-as
1329 tm_file="${tm_file} mips/iris6-o32.h"
1330 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1331 xm_file=mips/xm-iris5.h
1332 target_cpu_default="MASK_ABICALLS"
1333 # mips-tfile doesn't work yet
1334 # See comment in mips/iris5.h file.
1336 # if test x$enable_threads = xyes; then
1337 # thread_file='irix'
1340 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1341 tm_file="${tm_file} mips/iris5.h mips/iris6.h"
1342 if test "x$gnu_ld" = xyes
1344 tm_file="${tm_file} mips/iris6gld.h"
1346 tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
1347 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1348 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
1349 # if test x$enable_threads = xyes; then
1350 # thread_file='irix'
1353 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1354 tm_file="${tm_file} mips/iris5.h mips/iris6.h mips/cross64.h"
1355 xm_file=mips/xm-iris5.h
1356 tmake_file="mips/t-iris mips/t-cross64"
1357 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1358 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
1359 # See comment in mips/iris[56].h files.
1361 # if test x$enable_threads = xyes; then
1362 # thread_file='irix'
1365 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1366 tm_file="${tm_file} mips/iris5.h"
1367 if test x$gas = xyes
1369 tm_file="${tm_file} mips/sdb.h mips/iris5gas.h"
1370 if test x$stabs = xyes
1372 tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
1374 tmake_file=mips/t-iris5-gas
1376 tmake_file=mips/t-iris5-as
1378 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1379 xm_file=mips/xm-iris5.h
1380 target_cpu_default="MASK_ABICALLS"
1381 # mips-tfile doesn't work yet
1382 # See comment in mips/iris5.h file.
1384 # if test x$enable_threads = xyes; then
1385 # thread_file='irix'
1388 mips*-*-netbsd*) # NetBSD/mips, either endian.
1389 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1390 tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h"
1391 tmake_file="${tmake_file}"
1394 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h"
1395 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux64"
1397 # This default ABI is a partial lie: t-linux64 overrides the
1398 # DRIVER_SELF_SPEC that sets the default abi, in the spec file
1399 # that is installed. What GCC thinks of as the default must
1400 # remain as ABI_32 such that the SONAMEs of the libgcc shared
1401 # libraries remain compatible with those of mips-linux-gnu.
1402 tm_defines="MIPS_ISA_DEFAULT=1 MIPS_ABI_DEFAULT=ABI_32"
1403 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1404 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1407 if test x$enable_threads = xyes; then
1411 mips*-*-linux*) # Linux MIPS, either endian.
1412 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
1415 target_cpu_default="MASK_SOFT_FLOAT"
1416 tm_defines="MIPS_ISA_DEFAULT=32"
1419 tmake_file="t-slibgcc-elf-ver t-linux"
1422 tm_defines="OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS"
1423 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1424 tm_file="mips/mips.h openbsd.h mips/openbsd.h mips/sdb.h"
1427 tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=0";;
1428 *) tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN";;
1431 mipsisa32-*-elf* | mipsisa32el-*-elf*)
1432 tm_file="${tm_file} mips/elf.h"
1433 tmake_file=mips/t-isa3264
1434 tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
1436 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
1437 tm_file="${tm_file} mips/elf.h"
1438 tmake_file=mips/t-isa3264
1439 tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
1441 mipsisa64-*-elf* | mipsisa64el-*-elf*)
1442 tm_file="${tm_file} mips/elf.h"
1443 tmake_file=mips/t-isa3264
1444 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1445 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
1447 mipsisa64sr71k-*-elf*)
1448 tm_file="${tm_file} mips/elf.h"
1449 tmake_file=mips/t-sr71k
1450 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1451 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
1453 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1454 tm_file="${tm_file} mips/elf.h"
1455 tmake_file=mips/t-elf
1456 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1457 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1459 mips-*-elf* | mipsel-*-elf*)
1460 tm_file="${tm_file} mips/elf.h"
1461 tmake_file=mips/t-elf
1463 mips64-*-elf* | mips64el-*-elf*)
1464 tm_file="${tm_file} mips/elf64.h"
1465 tmake_file=mips/t-elf
1466 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1467 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1469 mips64vr-*-elf* | mips64vrel-*-elf*)
1470 tm_file="mips/vr.h ${tm_file} mips/elf64.h"
1471 tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1"
1472 tmake_file=mips/t-vr
1474 mips64orion-*-elf* | mips64orionel-*-elf*)
1475 tm_file="${tm_file} mips/elforion.h mips/elf64.h"
1476 tmake_file=mips/t-elf
1477 tmake_file=mips/t-elf
1478 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1479 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1482 tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
1483 tmake_file="mips/t-elf t-rtems"
1484 if test x$enable_threads = xyes; then
1488 mipstx39-*-elf* | mipstx39el-*-elf*)
1489 tm_file="${tm_file} mips/r3900.h mips/elf.h"
1490 tmake_file=mips/t-r3900
1492 mmix-knuth-mmixware)
1493 need_64bit_hwint=yes
1496 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1497 if test x$stabs = xyes
1499 tm_file="${tm_file} dbx.h"
1504 echo "GCC does not yet support the ${machine} target"; exit 1
1507 tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1508 # On NetBSD, the headers are already okay, except for math.h.
1509 tmake_file="t-netbsd ns32k/t-ns32k"
1514 tm_file="${tm_file} pdp11/2bsd.h"
1520 # port not yet contributed
1521 #powerpc-*-openbsd*)
1522 # tmake_file="${tmake_file} rs6000/t-fprules "
1526 tm_file="rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1528 x|xpowerpc64|xdefault64) tm_file="${tm_file} rs6000/default64.h";;
1530 tm_file="${tm_file} rs6000/linux64.h"
1531 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-ppccomm rs6000/t-linux64"
1534 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"
1535 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
1538 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
1539 tmake_file="rs6000/t-fprules rs6000/t-beos"
1543 tm_file="${tm_file} rs6000/darwin.h"
1544 tmake_file="t-darwin rs6000/t-darwin"
1545 extra_headers=altivec.h
1546 # override ppc default
1549 powerpc*-*-freebsd*)
1550 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
1551 tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1554 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1555 tmake_file="${tmake_file} rs6000/t-netbsd"
1557 powerpc-*-chorusos*)
1558 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
1559 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1560 case x${enable_threads} in
1561 xyes | xpthreads | xposix)
1567 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
1568 tmake_file="rs6000/t-spe rs6000/t-ppccomm"
1570 powerpc-*-eabisimaltivec*)
1571 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"
1572 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1575 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
1576 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1579 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1580 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1582 powerpc-*-eabialtivec*)
1583 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
1584 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1587 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
1588 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1591 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
1592 tmake_file="rs6000/t-fprules t-rtems rs6000/t-ppccomm"
1593 if test x$enable_threads = xyes; then
1597 powerpc-*-linux*altivec*)
1598 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
1599 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1601 powerpc-*-linux*spe*)
1602 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
1603 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1606 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
1607 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1609 powerpc-*-gnu-gnualtivec*)
1610 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"
1611 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1612 if test x$enable_threads = xyes; then
1617 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"
1618 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1619 if test x$enable_threads = xyes; then
1623 powerpc-wrs-vxworks*)
1624 # We want vxworks.h after rs6000/sysv4.h, which unfortunately
1625 # means we have to redo the tm_file list from scratch.
1626 tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1627 tm_file="${tm_file} vxworks.h rs6000/vxworks.h"
1628 tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
1629 extra_headers=ppc-asm.h
1631 powerpc-wrs-windiss*)
1632 tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
1633 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1637 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1638 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1641 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1642 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1644 powerpcle-*-eabisim*)
1645 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"
1646 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1649 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
1650 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1653 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h kaos.h rs6000/kaos-ppc.h"
1654 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1657 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"
1658 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1660 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
1661 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
1662 tmake_file="rs6000/t-fprules rs6000/t-newas"
1666 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1667 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
1668 tmake_file=rs6000/t-aix43
1673 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1674 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
1675 tmake_file=rs6000/t-aix43
1680 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1681 tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
1682 tmake_file=rs6000/t-aix52
1688 tm_file="svr3.h lynx.h rs6000/lynxbase.h rs6000/rs6000.h rs6000/lynx.h"
1689 tmake_file=rs6000/t-fprules
1693 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1694 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff"
1697 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1698 tm_p_file=s390/s390-protos.h
1699 md_file=s390/s390.md
1700 extra_modes=s390/s390-modes.def
1701 out_file=s390/s390.c
1702 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64"
1704 sh-*-elf* | sh[2346l]*-*-elf* | sh*-*-kaos*)
1705 tmake_file="sh/t-sh sh/t-elf"
1708 tm_file="sh/little.h ${tm_file}"
1709 tmake_file="${tmake_file} sh/t-le"
1712 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h"
1715 tmake_file="${tmake_file} sh/t-sh64"
1716 tm_file="${tm_file} sh/sh64.h"
1717 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1719 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1720 sh4*) target_cpu_default="SELECT_SH4" ;;
1721 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1722 sh3*) target_cpu_default="SELECT_SH3" ;;
1723 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1724 sh2*) target_cpu_default="SELECT_SH2" ;;
1727 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1730 sh*-*-kaos*) tm_file="${tm_file} kaos.h sh/kaos-sh.h" ;;
1734 tmake_file="sh/t-sh sh/t-elf t-rtems"
1735 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h"
1736 if test x$enable_threads = xyes; then
1741 tmake_file="sh/t-sh t-rtems"
1742 tm_file="${tm_file} dbxcoff.h sh/coff.h sh/rtems.h rtems.h"
1743 if test x$enable_threads = xyes; then
1747 sh-*-linux* | sh[2346lbe]*-*-linux*)
1748 tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux"
1750 sh*be-*-* | sh*eb-*-*) ;;
1752 tm_file="sh/little.h ${tm_file}"
1753 tmake_file="${tmake_file} sh/t-le"
1756 tmake_file="${tmake_file} sh/t-linux"
1757 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
1760 tmake_file="${tmake_file} sh/t-sh64"
1761 tm_file="${tm_file} sh/sh64.h"
1762 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1764 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1765 sh4*) target_cpu_default="SELECT_SH4" ;;
1766 sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;;
1767 sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
1768 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1769 sh3*) target_cpu_default="SELECT_SH3" ;;
1770 sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;;
1771 sh2e[lb]*) target_cpu_default="SELECT_SH2" ;;
1772 sh2e*) target_cpu_default="SELECT_SH2E" ;;
1773 sh2*) target_cpu_default="SELECT_SH2" ;;
1776 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1779 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1780 sh64-*-netbsd* | sh64l*-*-netbsd*)
1781 tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
1782 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
1785 tm_file="sh/little.h ${tm_file}"
1786 tmake_file="${tmake_file} sh/t-le"
1789 tmake_file="${tmake_file} sh/t-be"
1794 # SHmedia, 32-bit ABI
1795 target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT"
1796 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
1799 # SHmedia, 64-bit ABI
1800 target_cpu_default="SH5_BIT|SH4_BIT"
1801 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
1804 # SH3, software floating point
1805 target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
1806 tmake_file="${tmake_file} sh/t-netbsd"
1811 tm_file="${tm_file} dbxcoff.h sh/coff.h"
1814 tm_file="${tm_file} sparc/pbd.h"
1817 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
1820 tm_defines=OBSD_OLD_GAS
1821 tm_file="sparc/sparc.h openbsd.h sparc/openbsd.h"
1822 # needed to unconfuse gdb
1823 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
1824 # we need collect2 until our bug is fixed...
1828 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"
1833 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
1834 tmake_file="sparc/t-elf sparc/t-crtfm"
1835 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1837 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1838 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
1839 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
1842 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"
1843 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
1844 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1845 if test x$enable_threads = xyes; then
1849 sparc64-*-solaris2* | sparcv9-*-solaris2*)
1850 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"
1851 if test x$gnu_ld = xyes; then
1852 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
1854 if test x$gas = xyes; then
1855 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1857 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
1858 if test x$gnu_ld = xyes; then
1859 tmake_file="$tmake_file t-slibgcc-elf-ver"
1861 tmake_file="$tmake_file t-slibgcc-sld"
1863 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
1864 if test x${enable_threads} = x ; then
1865 enable_threads=$have_pthread_h
1866 if test x${enable_threads} = x ; then
1867 enable_threads=$have_thread_h
1870 if test x${enable_threads} = xyes ; then
1871 if test x${have_pthread_h} = xyes ; then
1874 thread_file='solaris'
1877 need_64bit_hwint=yes
1880 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
1881 if test x$gnu_ld = xyes; then
1882 tm_file="${tm_file} sparc/sol2-gld.h"
1884 tmake_file="sparc/t-sol2 sparc/t-crtfm"
1885 if test x$gnu_ld = xyes; then
1886 tmake_file="$tmake_file t-slibgcc-elf-ver"
1888 tmake_file="$tmake_file t-slibgcc-sld"
1891 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
1892 if test x$gnu_ld = xno; then
1893 tm_file="${tm_file} sparc/sol26-sld.h"
1897 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
1898 if test x$gnu_ld = xyes; then
1899 tm_file="${tm_file} sparc/sol2-gld-bi.h"
1901 if test x$gas = xyes; then
1902 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1904 tmake_file="$tmake_file sparc/t-sol2-64"
1905 need_64bit_hwint=yes
1908 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1909 if test x${enable_threads} = x; then
1910 enable_threads=$have_pthread_h
1911 if test x${enable_threads} = x; then
1912 enable_threads=$have_thread_h
1915 if test x${enable_threads} = xyes; then
1916 if test x${have_pthread_h} = xyes; then
1919 thread_file='solaris'
1924 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sysv4-only.h"
1926 extra_parts="crtbegin.o crtend.o"
1929 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
1930 tmake_file=sparc/t-sparclite
1933 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"
1934 tmake_file="sparc/t-sparclite sparc/t-crtfm"
1935 extra_parts="crtbegin.o crtend.o"
1938 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"
1939 tmake_file="sparc/t-sp86x sparc/t-crtfm"
1940 extra_parts="crtbegin.o crtend.o"
1943 tm_file="sparc/sparc.h sparc/aout.h sparc/sp64-aout.h"
1946 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h"
1947 tmake_file="${tmake_file} sparc/t-crtfm"
1948 extra_parts="crtbegin.o crtend.o"
1950 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1951 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
1952 tmake_file="${tmake_file} sparc/t-crtfm"
1953 case "x$with_cpu" in
1955 x) with_cpu=ultrasparc ;;
1956 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
1958 need_64bit_hwint=yes
1960 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1961 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
1962 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
1965 tmake_file="${tmake_file} sparc/t-netbsd64"
1966 tm_file="sparc/biarch64.h ${tm_file}"
1967 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
1970 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
1971 tmake_file=arm/t-strongarm-elf
1974 extra_modes=arm/arm-modes.def
1977 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"
1978 tmake_file=arm/t-strongarm-pe
1981 extra_modes=arm/arm-modes.def
1985 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"
1986 tmake_file=arm/t-strongarm-elf
1989 extra_modes=arm/arm-modes.def
1992 target_cpu_default="TARGET_CPU_v850e"
1993 tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
1994 tm_p_file=v850/v850-protos.h
1995 tmake_file=v850/t-v850e
1996 md_file=v850/v850.md
1997 out_file=v850/v850.c
1998 if test x$stabs = xyes
2000 tm_file="${tm_file} dbx.h"
2003 c_target_objs="v850-c.o"
2004 cxx_target_objs="v850-c.o"
2007 target_cpu_default="TARGET_CPU_generic"
2008 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2009 tmake_file=v850/t-v850
2010 if test x$stabs = xyes
2012 tm_file="${tm_file} dbx.h"
2015 c_target_objs="v850-c.o"
2016 cxx_target_objs="v850-c.o"
2018 vax-*-bsd*) # VAXen running BSD
2019 tm_file="${tm_file} vax/bsd.h"
2022 vax-*-sysv*) # VAXen running system V
2023 tm_file="${tm_file} vax/vaxv.h"
2026 tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
2029 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
2035 tm_file="vax/vax.h vax/openbsd1.h openbsd.h vax/openbsd.h"
2038 vax-*-ultrix*) # VAXen running ultrix
2039 tm_file="${tm_file} vax/ultrix.h"
2041 vax-*-vms*) # VAXen running VMS
2042 echo "Configuration $machine no longer supported" 1>&2
2045 vax-*-*) # VAX default entry
2048 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2049 tmake_file=arm/t-xscale-elf
2052 extra_modes=arm/arm-modes.def
2055 tm_file="arm/semi.h arm/aout.h arm/coff.h dbxcoff.h arm/xscale-coff.h arm/arm.h"
2056 tmake_file=arm/t-xscale-coff
2059 extra_modes=arm/arm-modes.def
2062 # For historical reasons, the target files omit the 'x'.
2063 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
2064 tm_p_file=stormy16/stormy16-protos.h
2065 md_file=stormy16/stormy16.md
2066 out_file=stormy16/stormy16.c
2067 tmake_file="stormy16/t-stormy16"
2068 extra_parts="crtbegin.o crtend.o"
2071 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
2072 tmake_file="xtensa/t-xtensa xtensa/t-elf"
2075 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
2076 tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa xtensa/t-linux"
2079 tm_file="mn10300/mn10300.h dbxelf.h elfos.h linux.h mn10300/linux.h"
2080 tmake_file="t-linux mn10300/t-linux"
2082 if test x$enable_threads = xyes; then
2085 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2089 echo "*** Configuration $machine not supported" 1>&2
2094 # Support for --with-cpu and related options (and a few unrelated options,
2096 case "x$with_cpu" in
2098 echo "--with-cpu must be passed a value" 1>&2
2103 # If there is no $with_cpu option, try to infer one from ${machine}.
2104 # This block sets nothing except for with_cpu.
2105 if test x$with_cpu = x
2109 # A Cirrus ARM variant.
2116 case $target_alias in
2126 pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2127 with_cpu=pentium-mmx
2134 i686-*-* | i786-*-*)
2135 case $target_alias in
2139 athlon_xp-*|athlon_mp-*|athlon_4-*)
2142 athlon_tbird-*|athlon-*)
2182 with_cpu="`echo $machine | sed 's/-.*$//'`"
2183 if [ x$with_cpu = xsparc64 ]; then
2190 # Similarly for --with-schedule.
2191 if test x$with_schedule = x; then
2194 # Override default PA8000 scheduling model.
2195 with_schedule=7100LC
2200 # Validate and mark as valid any --with options supported
2201 # by this target. In order to use a particular --with option
2202 # you must list it in supported_defaults; validating the value
2203 # is optional. This case statement should set nothing besides
2204 # supported_defaults.
2209 supported_defaults="cpu tune"
2210 for which in cpu tune; do
2211 eval "val=\$with_$which"
2214 | xev4 | xev45 | x21064 | xev5 | x21164 | xev56 | x21164a \
2215 | xpca56 | x21164PC | x21164pc | xev6 | x21264 | xev67 \
2219 echo "Unknown CPU used in --with-$which=$val" 1>&2
2227 supported_defaults="arch cpu float tune"
2228 for which in cpu tune; do
2229 eval "val=\$with_$which"
2232 | xarm[236789] | xarm250 | xarm[67][01]0 \
2233 | xarm60 | xarm620 | xarm7d | xarm7di \
2234 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
2235 | xarm70 | xarm700i | xarm710t | xarm720 \
2236 | xarm720t | xarm740t | xarm710c | xarm920 \
2237 | xarm920t | xarm940t | xarm9e | xarm10tdmi \
2238 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2240 | xxscale | xiwmmxt \
2242 | xstrongarm | xstrongarm110 | xstrongarm11[01]0)
2246 echo "Unknown CPU used in --with-$which=$val" 1>&2
2252 case "x$with_arch" in
2254 | xarmv[2345] | xarmv2a | xarmv3m | xarmv4t | xarmv5t \
2255 | xarmv5te | ep9312)
2259 echo "Unknown arch used in --with-arch=$with_arch" 1>&2
2264 case "x$with_float" in
2270 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2275 if test "x$with_arch" != x && test "x$with_cpu" != x; then
2276 echo "Warning: --with-arch overrides --with-cpu" 1>&2
2280 hppa*-*-* | parisc*-*-*)
2281 supported_defaults="arch schedule"
2283 case "x$with_arch" in
2284 x | x1.0 | x1.1 | x2.0)
2288 echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
2293 case "x$with_schedule" in
2294 x | x700 | x7100 | x7100LC | x7200 | x7300 | x8000)
2298 echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
2304 i[34567]86-*-* | x86_64-*-*)
2305 supported_defaults="arch cpu tune"
2306 for which in arch cpu tune; do
2307 eval "val=\$with_$which"
2311 | xi586 | xpentium | xpentium-mmx | xwinchip-c6 | xwinchip2 \
2312 | xc3 | xc3-2 | xi686 | xpentiumpro | xpentium2 | xpentium3 \
2313 | xpentium4 | xk6 | xk6-2 | xk6-3 | xathlon | xathlon-tbird \
2314 | xathlon-4 | xathlon-xp | xathlon-mp | xk8)
2318 echo "Unknown CPU given in --with-$which=$val." 1>&2
2326 supported_defaults="abi arch float tune"
2328 case "x$with_float" in
2334 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2339 case "x$with_abi" in
2341 | x32 | xo64 | xn32 | x64 | xeabi)
2345 echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
2351 powerpc*-*-* | rs6000-*-*)
2352 supported_defaults="cpu float tune"
2354 for which in cpu tune; do
2355 eval "val=\$with_$which"
2358 | xdefault32 | xdefault64 \
2360 | xpower | xpower2 | xpower3 | xpower4 \
2361 | xpowerpc | xpowerpc64 \
2362 | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
2363 | x401 | x403 | x405 | x405fp | x440 | x440fp | x505 \
2364 | x601 | x602 | x603 | x603e | xec603e | x604 \
2365 | x604e | x620 | x630 | x740 | x750 | x7400 | x7450 \
2366 | x8540 | x801 | x821 | x823 | x860 | x970)
2370 echo "Unknown cpu used in --with-$which=$val." 1>&2
2378 supported_defaults="arch mode tune"
2380 for which in arch tune; do
2381 eval "val=\$with_$which"
2384 | xg5 | xg6 | xz900 | xz990)
2388 echo "Unknown cpu used in --with-$which=$val." 1>&2
2394 case "x$with_mode" in
2400 echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2
2407 supported_defaults="cpu float tune"
2409 for which in cpu tune; do
2410 eval "val=\$with_$which"
2413 | xsparc | xsparcv9 | xsparc64 | xsparc86x \
2414 | xv7 | xcypress | xv8 | xsupersparc | xsparclite | xf930 \
2415 | xf934 | xhypersparc | xsparclite86x | xsparclet | tsc701 \
2416 | xv9 | xultrasparc | xultrasparc3)
2420 echo "Unknown cpu used in --with-$which=$val" 1>&2
2426 case "x$with_float" in
2432 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2439 supported_defaults=cpu
2440 case "x$with_cpu" in
2445 echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
2452 # Set some miscellaneous flags for particular targets.
2453 target_cpu_default2=
2456 if test x$gas = xyes
2458 target_cpu_default2="MASK_GAS"
2463 case "x$with_cpu" in
2466 target_cpu_default2="TARGET_CPU_generic"
2470 target_cpu_default2="TARGET_CPU_$with_cpu"
2475 hppa*-*-* | parisc*-*-*)
2476 if test x$gas = xyes
2478 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
2484 mips*-*-ecoff* | mips*-*-elf*)
2485 if test x$gas = xyes
2487 if test x$gnu_ld = xyes
2489 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
2491 target_cpu_default2="MASK_GAS"
2496 if test x$gas = xyes
2498 target_cpu_default2="MASK_GAS"
2504 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
2508 *mips/elf.h* | *mips/elf64.h*)
2509 tm_defines="OBJECT_FORMAT_ELF $tm_defines"
2512 if test "x$enable_gofast" = xyes
2514 tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
2515 tm_file="gofast.h $tm_file"
2516 tmake_file="mips/t-gofast $tmake_file"
2518 tmake_file="mips/t-mips $tmake_file"
2522 powerpc*-*-* | rs6000-*-*)
2523 if test x$enable_altivec = xyes
2525 tm_file="$tm_file rs6000/altivec-defs.h"
2527 # FIXME: The PowerPC port uses the value set at compile time,
2528 # although it's only cosmetic.
2529 if test "x$with_cpu" != x
2531 target_cpu_default2="\\\"$with_cpu\\\""
2533 out_file=rs6000/rs6000.c
2534 c_target_objs="${c_target_objs} rs6000-c.o"
2535 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
2536 tmake_file="rs6000/t-rs6000 ${tmake_file}"
2540 # Some standard aliases.
2546 with_cpu=sparclite86x
2548 xsparcv9 | xsparc64)
2553 # The Sparc port checks this value at compile-time.
2554 target_cpu_default2="TARGET_CPU_$with_cpu"
2557 # FIXME: The v850 is "special" in that it does not support
2558 # runtime CPU selection, only --with-cpu.
2559 case "x$with_cpu" in
2563 target_cpu_default2="TARGET_CPU_$with_cpu"
2570 all_defaults="abi cpu arch tune schedule float mode"
2571 for option in $all_defaults
2573 eval "val=\$with_$option"
2574 if test -n "$val"; then
2575 case " $supported_defaults " in
2579 echo "This target does not support --with-$option." 2>&1
2586 t="{ \"$option\", \"$val\" }"
2588 t="${t}, { \"$option\", \"$val\" }"
2594 configure_default_options="{ { NULL, NULL} }"
2596 configure_default_options="{ ${t} }"
2599 if test "$target_cpu_default2" != ""
2601 if test "$target_cpu_default" != ""
2603 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2605 target_cpu_default=$target_cpu_default2