1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
6 #This file is part of GNU CC.
8 #GNU CC is free software; you can redistribute it and/or modify
9 #it under the terms of the GNU General Public License as published by
10 #the Free Software Foundation; either version 2, or (at your option)
13 #GNU CC is distributed in the hope that it will be useful,
14 #but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 #GNU General Public License for more details.
18 #You should have received a copy of the GNU General Public License
19 #along with GNU CC; see the file COPYING. If not, write to
20 #the Free Software Foundation, 59 Temple Place - Suite 330,
21 #Boston, MA 02111-1307, USA.
23 # Initialization and defaults
26 AC_CONFIG_HEADER(auto-host.h:config.in)
33 # Check for bogus environment variables.
34 # Test if LIBRARY_PATH contains the notation for the current directory
35 # since this would lead to problems installing/building glibc.
36 # LIBRARY_PATH contains the current directory if one of the following
38 # - one of the terminals (":" and ";") is the first or last sign
39 # - two terminals occur directly after each other
40 # - the path contains an element with a dot in it
41 AC_MSG_CHECKING(LIBRARY_PATH variable)
43 case ${LIBRARY_PATH} in
44 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
45 library_path_setting="contains current directory"
48 library_path_setting="ok"
52 AC_MSG_RESULT($library_path_setting)
53 if test "$library_path_setting" != "ok"; then
55 *** LIBRARY_PATH shouldn't contain the current directory when
56 *** building gcc. Please change the environment variable
57 *** and run configure again.])
60 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
61 # since this would lead to problems installing/building glibc.
62 # GCC_EXEC_PREFIX contains the current directory if one of the following
64 # - one of the terminals (":" and ";") is the first or last sign
65 # - two terminals occur directly after each other
66 # - the path contains an element with a dot in it
67 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
69 case ${GCC_EXEC_PREFIX} in
70 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
71 gcc_exec_prefix_setting="contains current directory"
74 gcc_exec_prefix_setting="ok"
78 AC_MSG_RESULT($gcc_exec_prefix_setting)
79 if test "$gcc_exec_prefix_setting" != "ok"; then
81 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
82 *** building gcc. Please change the environment variable
83 *** and run configure again.])
86 # Check for additional parameters
90 [ --with-gnu-ld arrange to work with GNU ld.],
91 gnu_ld_flag="$with_gnu_ld",
96 [ --with-ld arrange to use the specified ld (full pathname).],
97 DEFAULT_LINKER="$with_ld")
98 if test x"${DEFAULT_LINKER+set}" = x"set"; then
99 if test ! -x "$DEFAULT_LINKER"; then
100 AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
101 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
104 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER",
105 [Define to enable the use of a default linker.])
110 [ --with-gnu-as arrange to work with GNU as.],
111 gas_flag="$with_gnu_as",
115 [ --with-as arrange to use the specified as (full pathname).],
116 DEFAULT_ASSEMBLER="$with_as")
117 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
118 if test ! -x "$DEFAULT_ASSEMBLER"; then
119 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
120 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
123 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER",
124 [Define to enable the use of a default assembler.])
129 [ --with-stabs arrange to use stabs instead of host debug format.],
135 [ --with-elf arrange to use ELF instead of host debug format.],
139 # Specify the local prefix
141 AC_ARG_WITH(local-prefix,
142 [ --with-local-prefix=DIR specifies directory to put local include.],
143 [case "${withval}" in
144 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
146 *) local_prefix=$with_local_prefix ;;
149 # Default local prefix if it is empty
150 if test x$local_prefix = x; then
151 local_prefix=/usr/local
154 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
155 # passed in by the toplevel make and thus we'd get different behavior
156 # depending on where we built the sources.
158 # Specify the g++ header file directory
159 AC_ARG_WITH(gxx-include-dir,
160 [ --with-gxx-include-dir=DIR
161 specifies directory to put g++ header files.],
162 [case "${withval}" in
163 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
165 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
168 if test x${gcc_gxx_include_dir} = x; then
169 if test x${enable_version_specific_runtime_libs} = xyes; then
170 gcc_gxx_include_dir='${libsubdir}/include/g++'
172 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
173 changequote(<<, >>)dnl
174 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
179 # Enable expensive internal checks
180 AC_ARG_ENABLE(checking,
181 [ --enable-checking[=LIST]
182 enable expensive run-time checks. With LIST,
183 enable only specific categories of checks.
184 Categories are: misc,tree,rtl,gc,gcac; default
190 ac_gc_always_collect=
191 case "${enableval}" in
192 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_rtl_checking=1 ;;
194 *) IFS="${IFS= }"; ac_save_IFS="$IFS" IFS="$IFS,"
195 set fnord $enableval; shift
200 misc) ac_checking=1 ;;
201 tree) ac_tree_checking=1 ;;
202 rtl) ac_rtl_checking=1 ;;
203 gc) ac_gc_checking=1 ;;
204 gcac) ac_gc_always_collect=1 ;;
205 *) AC_MSG_ERROR(unknown check category $check) ;;
210 if test x$ac_checking != x ; then
211 AC_DEFINE(ENABLE_CHECKING, 1,
212 [Define if you want more run-time sanity checks. This one gets a grab
213 bag of miscellaneous but relatively cheap checks.])
215 if test x$ac_tree_checking != x ; then
216 AC_DEFINE(ENABLE_TREE_CHECKING, 1,
217 [Define if you want all operations on trees (the basic data
218 structure of the front ends) to be checked for dynamic type safety
219 at runtime. This is moderately expensive.])
221 if test x$ac_rtl_checking != x ; then
222 AC_DEFINE(ENABLE_RTL_CHECKING, 1,
223 [Define if you want all operations on RTL (the basic data structure
224 of the optimizer and back end) to be checked for dynamic type safety
225 at runtime. This is quite expensive.])
227 if test x$ac_gc_checking != x ; then
228 AC_DEFINE(ENABLE_GC_CHECKING, 1,
229 [Define if you want the garbage collector to do object poisoning and
230 other memory allocation checks. This is quite expensive.])
232 if test x$ac_gc_always_collect != x ; then
233 AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
234 [Define if you want the garbage collector to operate in maximally
235 paranoid mode, validating the entire heap and collecting garbage at
236 every opportunity. This is extremely expensive.])
241 [ --disable-cpp don't provide a user-visible C preprocessor.],
242 [], [enable_cpp=yes])
244 AC_ARG_WITH(cpp_install_dir,
245 [ --with-cpp-install-dir=DIR
246 install the user visible C preprocessor in DIR
247 (relative to PREFIX) as well as PREFIX/bin.],
248 [if test x$withval = xyes; then
249 AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
250 elif test x$withval != xno; then
251 cpp_install_dir=$withval
254 dnl Disable this for the moment; the library interface is changing.
255 dnl # Link cpplib into the compiler proper, for C/C++/ObjC.
256 dnl AC_ARG_ENABLE(c-cpplib,
257 dnl [ --enable-c-cpplib link cpplib directly into C and C++ compilers
258 dnl (EXPERIMENTAL) (implies --enable-cpplib).],
259 dnl if test x$enable_c_cpplib != xno; then
260 dnl extra_c_objs="${extra_c_objs} libcpp.a"
261 dnl extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
262 dnl extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
265 # Enable Multibyte Characters for C/C++
266 AC_ARG_ENABLE(c-mbchar,
267 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
268 if test x$enable_c_mbchar != xno; then
269 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
273 # Pass with no value to take the default
274 # Pass with a value to specify a thread package
275 AC_ARG_ENABLE(threads,
276 [ --enable-threads enable thread usage for target GCC.
277 --enable-threads=LIB use LIB thread package for target GCC.],
278 if test x$enable_threads = xno; then
283 enable_threads_flag=$enable_threads
284 # Check if a valid thread package
285 case x${enable_threads_flag} in
288 target_thread_file='single'
292 target_thread_file=''
294 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
295 xsolaris | xwin32 | xdce | xvxworks)
296 target_thread_file=$enable_threads_flag
299 echo "$enable_threads is an unknown thread package" 1>&2
304 AC_ARG_ENABLE(objc-gc,
305 [ --enable-objc-gc enable the use of Boehm's garbage collector with
306 the GNU Objective-C runtime.],
307 if test x$enable_objc_gc = xno; then
315 [ --with-dwarf2 force the default debug format to be DWARF2.],
316 dwarf2="$with_dwarf2",
319 # Determine the host, build, and target systems
322 # Find the native compiler
326 # If the native compiler is GCC, we can enable warnings even in stage1.
327 # That's useful for people building cross-compilers, or just running a
329 if test "x$GCC" = "xyes"; then
330 stage1_warn_cflags='$(WARN_CFLAGS)'
332 stage1_warn_cflags=""
334 AC_SUBST(stage1_warn_cflags)
338 AC_MSG_CHECKING([whether a default assembler was specified])
339 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
340 if test x"$gas_flag" = x"no"; then
341 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
343 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
349 AC_MSG_CHECKING([whether a default linker was specified])
350 if test x"${DEFAULT_LINKER+set}" = x"set"; then
351 if test x"$gnu_ld_flag" = x"no"; then
352 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
354 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
360 # Find some useful tools
374 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
375 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
376 sys/resource.h sys/param.h sys/times.h sys/stat.h \
379 # Check for thread headers.
380 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
381 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
383 # See if GNAT has been installed
384 AC_CHECK_PROG(gnat, gnatbind, yes, no)
386 # See if the stage1 system preprocessor understands the ANSI C
387 # preprocessor stringification operator.
390 # Use <inttypes.h> only if it exists,
391 # doesn't clash with <sys/types.h>, and declares intmax_t.
392 AC_MSG_CHECKING(for inttypes.h)
393 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
395 [#include <sys/types.h>
396 #include <inttypes.h>],
398 [gcc_cv_header_inttypes_h=yes],
399 gcc_cv_header_inttypes_h=no)])
400 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
401 if test $gcc_cv_header_inttypes_h = yes; then
402 AC_DEFINE(HAVE_INTTYPES_H, 1,
403 [Define if you have a working <inttypes.h> header file.])
407 # Determine if enumerated bitfields are unsigned. ISO C says they can
408 # be either signed or unsigned.
410 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
411 [AC_TRY_RUN(#include <stdlib.h>
412 enum t { BLAH = 128 } ;
413 struct s_t { enum t member : 8; } s ;
417 if (s.member < 0) exit(1);
420 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
421 if test $gcc_cv_enum_bf_unsigned = yes; then
422 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
423 [Define if enumerated bitfields are treated as unsigned values.])
426 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
427 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
428 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
429 fputs_unlocked getrusage valloc)
431 # Make sure wchar_t is available
432 #AC_CHECK_TYPE(wchar_t, unsigned int)
434 gcc_AC_FUNC_VFPRINTF_DOPRNT
435 gcc_AC_FUNC_PRINTF_PTR
439 # Under some versions of uwin, vfork is notoriously buggy and the test
440 # can hang configure; on other versions, vfork exists just as a stub.
441 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
442 ac_cv_func_vfork_works=no
446 AC_FUNC_MMAP_ANYWHERE
449 # We will need to find libiberty.h and ansidecl.h
450 saved_CFLAGS="$CFLAGS"
451 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
452 gcc_AC_NEED_DECLARATIONS(bcopy bzero bcmp \
453 index rindex getenv atol sbrk abort atof getcwd getwd \
454 strsignal putc_unlocked fputs_unlocked strstr environ \
455 malloc realloc calloc free, [
456 #include "gansidecl.h"
457 #include "system.h"])
459 gcc_AC_NEED_DECLARATIONS(getrlimit setrlimit getrusage, [
460 #include "gansidecl.h"
462 #ifdef HAVE_SYS_RESOURCE_H
463 #include <sys/resource.h>
467 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
468 CFLAGS="$saved_CFLAGS"
470 # mkdir takes a single argument on some systems.
471 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
481 build_install_headers_dir=install-headers-tar
486 host_truncate_target=
489 # Decode the host machine, then the target machine.
490 # For the host machine, we save the xm_file variable as host_xm_file;
491 # then we decode the target machine and forget everything else
492 # that came from the host machine.
493 for machine in $build $host $target; do
507 # Set this to force installation and use of collect2.
509 # Set this to override the default target model.
511 # Set this to control how the header file directory is installed.
512 install_headers_dir=install-headers-tar
513 # Set this to a non-empty list of args to pass to cpp if the target
514 # wants its .md file passed through cpp.
516 # Set this if directory names should be truncated to 14 characters.
518 # Set this if gdb needs a dir command with `dirname $out_file`
519 gdb_needs_out_file_path=
520 # Set this if the build machine requires executables to have a
523 # Set this to control which thread package will be used.
525 # Reinitialize these from the flag values every loop pass, since some
526 # configure entries modify them.
528 gnu_ld="$gnu_ld_flag"
529 enable_threads=$enable_threads_flag
531 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
532 # updated in each machine entry.
534 cpu_type=`echo $machine | sed 's/-.*$//'`
573 tm_file=${cpu_type}/${cpu_type}.h
574 xm_file=${cpu_type}/xm-${cpu_type}.h
575 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
577 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
579 # On a.out targets, we need to use collect2.
586 # Common parts for linux-gnu and openbsd systems
589 xm_defines="HAVE_ATEXIT POSIX BSTRING"
592 tm_file=${cpu_type}/openbsd.h
593 tmake_file="t-libc-ok t-openbsd"
594 # avoid surprises, always provide an xm-openbsd file
595 xm_file=${cpu_type}/xm-openbsd.h
596 # don't depend on processor x-fragments as well
598 if test x$enable_threads = xyes; then
600 tmake_file="${tmake_file} t-openbsd-thread"
606 # Support site-specific machine types.
608 cpu_type=`echo $machine | sed -e 's/-.*//'`
609 rest=`echo $machine | sed -e "s/$cpu_type-//"`
610 xm_file=${cpu_type}/xm-$rest.h
611 tm_file=${cpu_type}/$rest.h
612 if test -f $srcdir/config/${cpu_type}/x-$rest; \
613 then xmake_file=${cpu_type}/x-$rest; \
616 if test -f $srcdir/config/${cpu_type}/t-$rest; \
617 then tmake_file=${cpu_type}/t-$rest; \
623 a29k-*-bsd* | a29k-*-sym1*)
624 tm_file="${tm_file} a29k/unix.h"
626 xmake_file=a29k/x-unix
629 a29k-*-udi | a29k-*-coff)
630 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
631 tmake_file=a29k/t-a29kbare
634 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
635 tmake_file=a29k/t-vx29k
636 extra_parts="crtbegin.o crtend.o"
637 thread_file='vxworks'
639 a29k-*-*) # Default a29k environment.
643 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
645 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
646 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
648 # GAS + IEEE_CONFORMANT
649 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
651 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
652 xmake_file="x-interix alpha/t-pe"
653 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
654 if test x$enable_threads = xyes ; then
657 if test x$stabs = xyes ; then
658 tm_file="${tm_file} dbxcoff.h"
660 #prefix='$$INTERIX_ROOT'/usr/contrib
661 #local_prefix='$$INTERIX_ROOT'/usr/contrib
663 alpha*-*-linux-gnuecoff*)
664 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
665 target_cpu_default="MASK_GAS"
666 tmake_file="alpha/t-alpha alpha/t-ieee"
671 alpha*-*-linux-gnulibc1*)
672 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
673 target_cpu_default="MASK_GAS"
674 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-linux alpha/t-crtbe alpha/t-ieee"
675 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
678 if test x$enable_threads = xyes; then
683 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
684 target_cpu_default="MASK_GAS"
685 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
686 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
689 if test x$enable_threads = xyes; then
694 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
695 target_cpu_default="MASK_GAS"
696 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
697 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
703 # default x-alpha is only appropriate for dec-osf.
704 target_cpu_default="MASK_GAS"
705 tmake_file="alpha/t-alpha alpha/t-ieee"
709 if test x$stabs = xyes
711 tm_file="${tm_file} dbx.h"
713 if test x$gas != xyes
715 extra_passes="mips-tfile mips-tdump"
718 tmake_file="alpha/t-alpha alpha/t-ieee"
721 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
726 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
729 tm_file="${tm_file} alpha/osf.h"
730 # Some versions of OSF4 (specifically X4.0-9 296.7) have
731 # a broken tar, so we use cpio instead.
732 install_headers_dir=install-headers-cpio
735 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
740 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
742 target_cpu_default=MASK_SUPPORT_ARCH
747 tm_file="${tm_file} dbx.h alpha/vxworks.h"
748 tmake_file="alpha/t-alpha alpha/t-ieee"
751 extra_passes="mips-tfile mips-tdump"
754 thread_file='vxworks'
757 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
758 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
759 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
760 xmake_file=winnt/x-winnt
761 extra_host_objs=oldnames.o
762 extra_gcc_objs="spawnv.o oldnames.o"
763 if test x$gnu_ld != xyes
765 extra_programs=ld.exe
767 if test x$enable_threads = xyes; then
773 xm_file="${xm_file} alpha/xm-vms.h"
774 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
777 extra_parts="crtinit.o crtfini.o"
779 arm-*-coff* | armel-*-coff*)
781 tmake_file=arm/t-arm-coff
785 tmake_file=arm/t-arm-coff
786 thread_file='vxworks'
789 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
791 tm_file=arm/riscix1-1.h
794 arm-*-riscix*) # Acorn RISC machine
797 tm_file=arm/rix-gas.h
801 xmake_file=arm/x-riscix
802 tmake_file=arm/t-riscix
805 arm-semi-aout | armel-semi-aout)
807 tmake_file=arm/t-semi
809 arm-semi-aof | armel-semi-aof)
810 tm_file=arm/semiaof.h
811 tmake_file=arm/t-semiaof
815 tmake_file="t-netbsd arm/t-netbsd"
818 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
821 tm_file=arm/linux-aout.h
822 tmake_file=arm/t-linux
825 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
826 xm_file=arm/xm-linux.h
828 tm_file="arm/linux-oldld.h arm/linux-elf.h"
831 tm_file="arm/linux-elf26.h $tm_file"
834 tmake_file="t-linux arm/t-linux"
835 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
837 case x${enable_threads} in
838 x | xyes | xpthreads | xposix)
843 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
844 xm_file=arm/xm-linux.h
846 tm_file="arm/linux-elf.h"
849 tm_file="arm/linux-elf26.h $tm_file"
852 tmake_file="t-linux arm/t-linux"
853 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
855 case x${enable_threads} in
856 x | xyes | xpthreads | xposix)
861 arm*-*-uclinux*) # ARM ucLinux
862 tm_file=arm/uclinux-elf.h
863 tmake_file=arm/t-arm-elf
867 tmake_file=arm/t-arm-aout
870 tm_file=arm/ecos-elf.h
871 tmake_file=arm/t-arm-elf
874 tm_file=arm/unknown-elf.h
875 tmake_file=arm/t-arm-elf
878 tm_file=arm/conix-elf.h
879 tmake_file=arm/t-arm-elf
882 tm_file=arm/unknown-elf-oabi.h
883 tmake_file=arm/t-arm-elf
892 c1-convex-*) # Convex C1
896 c2-convex-*) # Convex C2
909 target_cpu_default=16
916 clipper-intergraph-clix*)
917 tm_file="${tm_file} svr3.h clipper/clix.h"
918 xm_file=clipper/xm-clix.h
919 xmake_file=clipper/x-clix
920 extra_headers=va-clipper.h
921 extra_parts="crtbegin.o crtend.o"
922 install_headers_dir=install-headers-cpio
933 tm_file="fr30/fr30.h"
934 tmake_file=fr30/t-fr30
935 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
937 # This hasn't been upgraded to GCC 2.
938 # fx80-alliant-*) # Alliant FX/80
944 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
945 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
946 tmake_file="t-linux pa/t-linux"
947 extra_parts="crtbegin.o crtend.o"
950 if test x$enable_threads = xyes; then
955 target_cpu_default="MASK_PA_11"
956 tmake_file=pa/t-openbsd
959 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
960 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
961 xm_file=pa/xm-papro.h
965 target_cpu_default="MASK_PA_11"
966 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
970 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
971 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
972 xm_file=pa/xm-papro.h
976 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
980 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
981 target_cpu_default="MASK_PA_11"
985 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
989 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
990 xm_file=pa/xm-pahpux.h
991 xmake_file=pa/x-pa-hpux
994 tm_file="${tm_file} pa/gas.h"
996 install_headers_dir=install-headers-cpio
1000 hppa1.0-*-hpux8.0[0-2]*)
1002 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1003 xm_file=pa/xm-pahpux.h
1004 xmake_file=pa/x-pa-hpux
1005 if test x$gas = xyes
1007 tm_file="${tm_file} pa/pa-gas.h"
1009 tm_file="pa/pa-oldas.h ${tm_file}"
1011 install_headers_dir=install-headers-cpio
1015 hppa1.1-*-hpux8.0[0-2]*)
1017 target_cpu_default="MASK_PA_11"
1018 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1019 xm_file=pa/xm-pahpux.h
1020 xmake_file=pa/x-pa-hpux
1021 if test x$gas = xyes
1023 tm_file="${tm_file} pa/pa-gas.h"
1025 tm_file="pa/pa-oldas.h ${tm_file}"
1027 install_headers_dir=install-headers-cpio
1031 target_cpu_default="MASK_PA_11"
1032 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1033 xm_file=pa/xm-pahpux.h
1034 xmake_file=pa/x-pa-hpux
1035 if test x$gas = xyes
1037 tm_file="${tm_file} pa/pa-gas.h"
1039 install_headers_dir=install-headers-cpio
1043 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1044 xm_file=pa/xm-pahpux.h
1045 xmake_file=pa/x-pa-hpux
1046 if test x$gas = xyes
1048 tm_file="${tm_file} pa/pa-gas.h"
1050 install_headers_dir=install-headers-cpio
1053 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1054 target_cpu_default="MASK_PA_11"
1055 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1057 xm_file=pa/xm-pahpux.h
1058 xmake_file=pa/x-pa-hpux
1060 if test x$gas = xyes
1062 tm_file="${tm_file} pa/pa-gas.h"
1064 if test x$enable_threads = x; then
1065 enable_threads=$have_pthread_h
1067 if test x$enable_threads = xyes; then
1069 tmake_file="${tmake_file} pa/t-dce-thr"
1071 install_headers_dir=install-headers-cpio
1075 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1077 xm_file=pa/xm-pahpux.h
1078 xmake_file=pa/x-pa-hpux
1080 if test x$gas = xyes
1082 tm_file="${tm_file} pa/pa-gas.h"
1084 if test x$enable_threads = x; then
1085 enable_threads=$have_pthread_h
1087 if test x$enable_threads = xyes; then
1089 tmake_file="${tmake_file} pa/t-dce-thr"
1091 install_headers_dir=install-headers-cpio
1094 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1095 target_cpu_default="MASK_PA_11"
1096 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1098 xm_file=pa/xm-pahpux.h
1099 xmake_file=pa/x-pa-hpux
1101 if test x$gas = xyes
1103 tm_file="${tm_file} pa/pa-gas.h"
1105 # if test x$enable_threads = x; then
1106 # enable_threads=$have_pthread_h
1108 # if test x$enable_threads = xyes; then
1110 # tmake_file="${tmake_file} pa/t-dce-thr"
1112 install_headers_dir=install-headers-cpio
1116 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1118 xm_file=pa/xm-pahpux.h
1119 xmake_file=pa/x-pa-hpux
1120 if test x$gas = xyes
1122 tm_file="${tm_file} pa/pa-gas.h"
1124 # if test x$enable_threads = x; then
1125 # enable_threads=$have_pthread_h
1127 # if test x$enable_threads = xyes; then
1129 # tmake_file="${tmake_file} pa/t-dce-thr"
1131 install_headers_dir=install-headers-cpio
1134 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1135 target_cpu_default="MASK_PA_11"
1136 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1137 xm_file=pa/xm-pahpux.h
1138 xmake_file=pa/x-pa-hpux
1139 if test x$gas = xyes
1141 tm_file="${tm_file} pa/pa-gas.h"
1143 install_headers_dir=install-headers-cpio
1147 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1148 xm_file=pa/xm-pahpux.h
1149 xmake_file=pa/x-pa-hpux
1150 if test x$gas = xyes
1152 tm_file="${tm_file} pa/pa-gas.h"
1154 install_headers_dir=install-headers-cpio
1157 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1158 target_cpu_default="MASK_PA_11"
1159 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1160 xm_file=pa/xm-pahpux.h
1161 xmake_file=pa/x-pa-hpux
1162 if test x$gas = xyes
1164 tm_file="${tm_file} pa/pa-gas.h"
1166 install_headers_dir=install-headers-cpio
1170 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1171 xm_file=pa/xm-pahpux.h
1172 xmake_file=pa/x-pa-hpux
1173 if test x$gas = xyes
1175 tm_file="${tm_file} pa/pa-gas.h"
1177 install_headers_dir=install-headers-cpio
1181 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1182 target_cpu_default="MASK_PA_11"
1186 tm_file="${tm_file} pa/pa-mpeix.h"
1187 xm_file=pa/xm-pampeix.h
1188 xmake_file=pa/x-pa-mpeix
1189 echo "You must use gas. Assuming it is already installed."
1190 install_headers_dir=install-headers-tar
1193 i370-*-opened*) # IBM 360/370/390 Architecture
1194 xm_file=i370/xm-oe.h
1196 xmake_file=i370/x-oe
1197 tmake_file=i370/t-oe
1200 xm_file=i370/xm-mvs.h
1202 tmake_file=i370/t-mvs
1205 xm_file="xm-linux.h i370/xm-linux.h"
1207 tm_file="i370/linux.h ${tm_file}"
1208 tmake_file="t-linux i370/t-linux"
1209 # broken_install=yes
1210 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1211 # extra_parts="crtbegin.o crtend.o"
1215 if test x$enable_threads = xyes; then
1222 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1223 tm_file=i386/i386elf.h
1224 tmake_file=i386/t-i386elf
1228 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1230 if test x$gas = xyes
1232 tm_file=i386/aix386.h
1233 extra_parts="crtbegin.o crtend.o"
1234 tmake_file=i386/t-crtstuff
1236 tm_file=i386/aix386ng.h
1239 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1241 xmake_file=i386/x-aix
1244 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1246 xm_file="xm-alloca.h ${xm_file}"
1247 xm_defines="USG POSIX SMALL_ARG_MAX"
1248 xmake_file=i386/x-ncr3000
1249 if test x$stabs = xyes -a x$gas = xyes
1251 tm_file=i386/sysv4gdb.h
1253 tm_file=i386/sysv4.h
1255 extra_parts="crtbegin.o crtend.o"
1256 tmake_file=i386/t-crtpic
1262 xm_file=i386/xm-next.h
1263 tmake_file=i386/t-next
1264 xmake_file=i386/x-next
1265 extra_objs=nextstep.o
1266 extra_parts="crtbegin.o crtend.o"
1267 if test x$enable_threads = xyes; then
1272 i[34567]86-sequent-bsd*) # 80386 from Sequent
1275 if test x$gas = xyes
1277 tm_file=i386/seq-gas.h
1279 tm_file=i386/sequent.h
1283 i[34567]86-sequent-ptx1*)
1285 xm_defines="USG SVR3"
1286 xmake_file=i386/x-sysv3
1287 tm_file=i386/seq-sysv3.h
1288 tmake_file=i386/t-crtstuff
1289 extra_parts="crtbegin.o crtend.o"
1290 install_headers_dir=install-headers-cpio
1293 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1295 xm_defines="USG SVR3"
1296 xmake_file=i386/x-sysv3
1297 tm_file=i386/seq2-sysv3.h
1298 tmake_file=i386/t-crtstuff
1299 extra_parts="crtbegin.o crtend.o"
1300 install_headers_dir=install-headers-cpio
1303 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1305 xm_file="xm-alloca.h ${xm_file}"
1306 xm_defines="USG POSIX SMALL_ARG_MAX"
1308 tm_file=i386/ptx4-i.h
1310 extra_parts="crtbegin.o crtend.o"
1311 install_headers_dir=install-headers-cpio
1313 i386-sun-sunos*) # Sun i386 roadrunner
1319 i[34567]86-wrs-vxworks*)
1321 tm_file=i386/vxi386.h
1322 tmake_file=i386/t-i386bare
1323 thread_file='vxworks'
1328 tm_file=i386/i386-aout.h
1329 tmake_file=i386/t-i386bare
1332 i[34567]86-*-beospe*)
1334 xm_file=i386/xm-beos.h
1335 xm_defines="USE_C_ALLOCA"
1336 tmake_file=i386/t-beos
1337 tm_file=i386/beos-pe.h
1338 xmake_file=i386/x-beos
1342 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1344 xm_file=i386/xm-beos.h
1345 tmake_file='i386/t-beos i386/t-crtpic'
1346 tm_file=i386/beos-elf.h
1347 xmake_file=i386/x-beos
1349 extra_parts='crtbegin.o crtend.o'
1352 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1354 tm_file=i386/bsd386.h
1355 # tmake_file=t-libc-ok
1360 tm_file=i386/386bsd.h
1361 # tmake_file=t-libc-ok
1362 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1366 i[34567]86-*-freebsdelf*)
1368 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1369 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1370 tmake_file=t-freebsd
1374 case x${enable_threads} in
1375 xyes | xpthreads | xposix)
1377 tmake_file="${tmake_file} t-freebsd-thread"
1382 i[34567]86-*-freebsd*)
1384 tm_file="i386/freebsd.h i386/perform.h"
1385 tmake_file=t-freebsd
1388 i[34567]86-*-netbsd*)
1390 tm_file=i386/netbsd.h
1395 i[34567]86-*-openbsd*)
1397 # we need collect2 until our bug is fixed...
1403 tm_file=i386/i386-coff.h
1404 tmake_file=i386/t-i386bare
1407 i[34567]86-*-isc*) # 80386 running ISC system
1409 xm_file="${xm_file} i386/xm-isc.h"
1410 xm_defines="USG SVR3"
1413 i[34567]86-*-isc[34]*)
1415 xmake_file=i386/x-isc3
1418 xmake_file=i386/x-isc
1421 if test x$gas = xyes -a x$stabs = xyes
1423 tm_file=i386/iscdbx.h
1424 tmake_file=i386/t-svr3dbx
1425 extra_parts="svr3.ifile svr3z.ifile"
1427 tm_file=i386/isccoff.h
1428 tmake_file=i386/t-crtstuff
1429 extra_parts="crtbegin.o crtend.o"
1431 install_headers_dir=install-headers-cpio
1434 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1435 changequote([,])dnl # with a.out format using
1437 xmake_file=x-linux-aout
1438 tmake_file="t-linux-aout i386/t-crtstuff"
1439 tm_file=i386/linux-oldld.h
1444 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1445 changequote([,])dnl # with a.out format
1446 xmake_file=x-linux-aout
1447 tmake_file="t-linux-aout i386/t-crtstuff"
1448 tm_file=i386/linux-aout.h
1453 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1454 changequote([,])dnl # with ELF format using the
1455 # GNU/Linux C library 5
1457 tm_file=i386/linux.h
1458 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1459 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1462 if test x$enable_threads = xyes; then
1463 thread_file='single'
1467 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1468 changequote([,])dnl # with ELF format using glibc 2
1469 # aka GNU/Linux C library 6
1471 tm_file=i386/linux.h
1472 tmake_file="t-linux i386/t-crtstuff"
1473 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1476 if test x$enable_threads = xyes; then
1486 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1488 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1492 i[34567]86-pc-msdosdjgpp*)
1494 xm_file=i386/xm-djgpp.h
1495 tm_file=i386/djgpp.h
1496 tmake_file=i386/t-djgpp
1497 xmake_file=i386/x-djgpp
1501 case $host in *pc-msdosdjgpp*)
1507 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1510 tmake_file=t-libc-ok
1515 i[34567]86-*-lynxos*)
1517 if test x$gas = xyes
1521 tm_file=i386/lynx-ng.h
1523 xm_file=i386/xm-lynx.h
1524 tmake_file=i386/t-i386bare
1531 # tmake_file=t-libc-ok
1535 i[34567]86-*-osfrose*) # 386 using OSF/rose
1537 if test x$elf = xyes
1539 tm_file=i386/osfelf.h
1542 tm_file=i386/osfrose.h
1545 xm_file="i386/xm-osf.h ${xm_file}"
1546 xmake_file=i386/x-osfrose
1547 tmake_file=i386/t-osf
1548 extra_objs=halfpic.o
1551 i[34567]86-go32-rtems*)
1554 xm_file=i386/xm-go32.h
1555 tm_file=i386/go32-rtems.h
1556 tmake_file="i386/t-go32 t-rtems"
1559 i[34567]86-*-rtemscoff*)
1562 tm_file=i386/rtems.h
1563 tmake_file="i386/t-i386bare t-rtems"
1566 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1569 tm_file=i386/rtemself.h
1570 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1571 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1574 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1576 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1577 xm_defines="USG SVR3"
1578 xmake_file=i386/x-sco5
1579 install_headers_dir=install-headers-cpio
1581 if test x$gas = xyes
1583 tm_file="i386/sco5gas.h ${tm_file}"
1584 tmake_file=i386/t-sco5gas
1586 tmake_file=i386/t-sco5
1588 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1591 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1593 xm_file="${xm_file} i386/xm-sco.h"
1594 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1595 xmake_file=i386/x-sco4
1596 install_headers_dir=install-headers-cpio
1597 if test x$stabs = xyes
1599 tm_file=i386/sco4dbx.h
1600 tmake_file=i386/t-svr3dbx
1601 extra_parts="svr3.ifile svr3z.rfile"
1604 tmake_file=i386/t-crtstuff
1605 extra_parts="crtbegin.o crtend.o"
1607 # The default EAFS filesystem supports long file names.
1608 # Truncating the target makes $host != $target which
1609 # makes gcc think it is doing a cross-compile.
1610 # truncate_target=yes
1613 i[34567]86-*-sco*) # 80386 running SCO system
1615 xm_file=i386/xm-sco.h
1616 xmake_file=i386/x-sco
1617 install_headers_dir=install-headers-cpio
1618 if test x$stabs = xyes
1620 tm_file=i386/scodbx.h
1621 tmake_file=i386/t-svr3dbx
1622 extra_parts="svr3.ifile svr3z.rfile"
1625 extra_parts="crtbegin.o crtend.o"
1626 tmake_file=i386/t-crtstuff
1631 i[34567]86-*-solaris2*)
1633 xm_file="xm-alloca.h ${xm_file}"
1634 xm_defines="USG POSIX SMALL_ARG_MAX"
1636 if test x$gas = xyes; then
1637 # Only needed if gas does not support -s
1638 tm_file="i386/sol2gas.h ${tm_file}"
1640 tmake_file=i386/t-sol2
1641 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1643 if test x${enable_threads} = x; then
1644 enable_threads=$have_pthread_h
1645 if test x${enable_threads} = x; then
1646 enable_threads=$have_thread_h
1649 if test x${enable_threads} = xyes; then
1650 if test x${have_pthread_h} = xyes; then
1653 thread_file='solaris'
1658 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1660 xm_file="xm-alloca.h ${xm_file}"
1661 xm_defines="USG POSIX"
1662 tm_file=i386/sysv5.h
1663 if test x$stabs = xyes
1665 tm_file="${tm_file} dbx.h"
1667 tmake_file=i386/t-crtpic
1669 extra_parts="crtbegin.o crtend.o"
1670 if test x$enable_threads = xyes; then
1675 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1677 xm_file="xm-alloca.h ${xm_file}"
1678 xm_defines="USG POSIX SMALL_ARG_MAX"
1679 tm_file=i386/sysv4.h
1680 if test x$stabs = xyes
1682 tm_file="${tm_file} dbx.h"
1684 tmake_file=i386/t-crtpic
1686 extra_parts="crtbegin.o crtend.o"
1689 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1691 xm_file="xm-alloca.h ${xm_file}"
1692 xm_defines="USG POSIX"
1694 tmake_file="i386/t-crtpic i386/t-udk"
1696 extra_parts="crtbegin.o crtend.o"
1697 install_headers_dir=install-headers-cpio
1700 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1703 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1704 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1705 if test x$stabs = xyes
1707 tm_file=i386/osf1elfgdb.h
1709 tm_file=i386/osf1elf.h
1711 tmake_file=i386/t-osf1elf
1712 xmake_file=i386/x-osf1elf
1713 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1716 i[34567]86-*-sysv*) # Intel 80386's running system V
1718 xm_defines="USG SVR3"
1719 xmake_file=i386/x-sysv3
1720 if test x$gas = xyes
1722 if test x$stabs = xyes
1724 tm_file=i386/svr3dbx.h
1725 tmake_file=i386/t-svr3dbx
1726 extra_parts="svr3.ifile svr3z.rfile"
1728 tm_file=i386/svr3gas.h
1729 extra_parts="crtbegin.o crtend.o"
1730 tmake_file=i386/t-crtstuff
1733 tm_file=i386/sysv3.h
1734 extra_parts="crtbegin.o crtend.o"
1735 tmake_file=i386/t-crtstuff
1738 i386-*-vsta) # Intel 80386's running VSTa kernel
1739 xm_file="${xm_file} i386/xm-vsta.h"
1741 tmake_file=i386/t-vsta
1742 xmake_file=i386/x-vsta
1747 xm_file="${xm_file} i386/xm-cygwin.h"
1748 tmake_file=i386/t-cygwin
1749 tm_file=i386/win32.h
1750 xmake_file=i386/x-cygwin
1752 if test x$enable_threads = xyes; then
1758 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1760 xm_file="${xm_file} i386/xm-cygwin.h"
1761 tmake_file=i386/t-cygwin
1762 tm_file=i386/cygwin.h
1763 xmake_file=i386/x-cygwin
1765 if test x$enable_threads = xyes; then
1771 i[34567]86-*-mingw32*)
1773 tm_file=i386/mingw32.h
1774 xm_file="${xm_file} i386/xm-mingw32.h"
1775 tmake_file="i386/t-cygwin i386/t-mingw32"
1777 xmake_file=i386/x-cygwin
1778 if test x$enable_threads = xyes; then
1785 *minwg32crt* | *mingw32*)
1786 tm_file="${tm_file} i386/crtdll.h"
1794 xm_file="${xm_file} i386/xm-uwin.h"
1795 xm_defines="USG NO_STAB_H"
1796 tmake_file="i386/t-cygwin i386/t-uwin"
1798 xmake_file=i386/x-cygwin
1799 if test x$enable_threads = xyes; then
1805 i[34567]86-*-interix*)
1807 tm_file="i386/i386-interix.h interix.h"
1808 xm_file="i386/xm-i386-interix.h xm-interix.h"
1810 tmake_file="i386/t-interix"
1811 extra_objs=interix.o
1812 xmake_file=x-interix
1813 if test x$enable_threads = xyes ; then
1816 if test x$stabs = xyes ; then
1817 tm_file="${tm_file} dbxcoff.h"
1821 i[34567]86-*-winnt3*)
1823 tm_file=i386/win-nt.h
1824 out_file=i386/i386.c
1825 xm_file="xm-winnt.h ${xm_file}"
1826 xmake_file=winnt/x-winnt
1827 tmake_file=i386/t-winnt
1828 extra_host_objs="winnt.o oldnames.o"
1829 extra_gcc_objs="spawnv.o oldnames.o"
1830 if test x$gnu_ld != xyes
1832 extra_programs=ld.exe
1834 if test x$enable_threads = xyes; then
1839 i[34567]86-dg-dgux*)
1841 xm_file="xm-alloca.h ${xm_file}"
1842 xm_defines="USG POSIX"
1843 out_file=i386/dgux.c
1845 tmake_file=i386/t-dgux
1846 xmake_file=i386/x-dgux
1847 install_headers_dir=install-headers-cpio
1849 i860-alliant-*) # Alliant FX/2800
1850 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1851 xm_file="${xm_file}"
1852 xmake_file=i860/x-fx2800
1853 tmake_file=i860/t-fx2800
1854 extra_parts="crtbegin.o crtend.o"
1857 tm_file="${tm_file} i860/bsd.h"
1858 if test x$gas = xyes
1860 tm_file="${tm_file} i860/bsd-gas.h"
1865 tm_file="${tm_file} i860/mach.h"
1866 tmake_file=t-libc-ok
1868 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1869 tm_file="${tm_file} svr3.h i860/paragon.h"
1870 xm_defines="USG SVR3"
1874 tm_file="${tm_file} svr3.h i860/sysv3.h"
1875 xm_defines="USG SVR3"
1876 xmake_file=i860/x-sysv3
1877 extra_parts="crtbegin.o crtend.o"
1880 tm_file="${tm_file} svr4.h i860/sysv4.h"
1881 xm_defines="USG SVR3"
1882 xmake_file=i860/x-sysv4
1884 extra_parts="crtbegin.o crtend.o"
1886 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1887 tm_file="${tm_file} i960/vx960.h"
1888 tmake_file=i960/t-vxworks960
1890 thread_file='vxworks'
1892 i960-wrs-vxworks5* | i960-wrs-vxworks)
1893 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1894 tmake_file=i960/t-vxworks960
1896 thread_file='vxworks'
1899 tm_file="${tm_file} i960/vx960.h"
1900 tmake_file=i960/t-vxworks960
1902 thread_file='vxworks'
1905 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1906 tmake_file=i960/t-960bare
1910 tmake_file="i960/t-960bare t-rtems"
1911 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1914 i960-*-*) # Default i960 environment.
1919 tmake_file="ia64/t-ia64"
1920 target_cpu_default="0"
1921 if test x$gas = xyes
1923 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1925 if test x$gnu_ld = xyes
1927 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1931 tm_file=ia64/linux.h
1932 tmake_file="t-linux ia64/t-ia64"
1933 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1934 if test x$enable_threads = xyes; then
1939 extra_parts="crtinit.o crtfini.o"
1941 m68000-convergent-sysv*)
1943 xm_file="m68k/xm-3b1.h ${xm_file}"
1946 extra_headers=math-68881.h
1948 m68000-hp-bsd*) # HP 9000/200 running BSD
1949 tm_file=m68k/hp2bsd.h
1950 xmake_file=m68k/x-hp2bsd
1952 extra_headers=math-68881.h
1954 m68000-hp-hpux*) # HP 9000 series 300
1955 xm_file="xm-alloca.h ${xm_file}"
1957 if test x$gas = xyes
1959 xmake_file=m68k/x-hp320g
1960 tm_file=m68k/hp310g.h
1962 xmake_file=m68k/x-hp320
1963 tm_file=m68k/hp310.h
1965 install_headers_dir=install-headers-cpio
1967 extra_headers=math-68881.h
1972 extra_headers=math-68881.h
1975 tm_file=m68k/sun2o4.h
1977 extra_headers=math-68881.h
1980 xm_file="m68k/xm-3b1.h ${xm_file}"
1982 if test x$gas = xyes
1989 extra_headers=math-68881.h
1991 m68k-apple-aux*) # Apple Macintosh running A/UX
1992 xm_defines="USG AUX"
1993 tmake_file=m68k/t-aux
1994 install_headers_dir=install-headers-cpio
1995 extra_headers=math-68881.h
1996 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1998 if test "$gnu_ld" = yes
2000 tm_file="${tm_file} m68k/auxgld.h"
2002 tm_file="${tm_file} m68k/auxld.h"
2004 if test "$gas" = yes
2006 tm_file="${tm_file} m68k/auxgas.h"
2008 tm_file="${tm_file} m68k/auxas.h"
2010 tm_file="${tm_file} m68k/a-ux.h"
2014 tm_file=m68k/apollo68.h
2015 xmake_file=m68k/x-apollo68
2017 extra_headers=math-68881.h
2020 m68k-altos-sysv*) # Altos 3068
2021 if test x$gas = xyes
2023 tm_file=m68k/altos3068.h
2026 echo "The Altos is supported only with the GNU assembler" 1>&2
2029 extra_headers=math-68881.h
2031 m68k-bull-sysv*) # Bull DPX/2
2032 if test x$gas = xyes
2034 if test x$stabs = xyes
2036 tm_file=m68k/dpx2cdbx.h
2038 tm_file=m68k/dpx2g.h
2043 xm_file="xm-alloca.h ${xm_file}"
2045 xmake_file=m68k/x-dpx2
2047 extra_headers=math-68881.h
2049 m68k-atari-sysv4*) # Atari variant of V.4.
2050 tm_file=m68k/atari.h
2051 xm_file="xm-alloca.h ${xm_file}"
2052 xm_defines="USG FULL_PROTOTYPES"
2054 extra_parts="crtbegin.o crtend.o"
2055 extra_headers=math-68881.h
2058 m68k-motorola-sysv*)
2059 tm_file=m68k/mot3300.h
2060 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2061 if test x$gas = xyes
2063 xmake_file=m68k/x-mot3300-gas
2064 if test x$gnu_ld = xyes
2066 tmake_file=m68k/t-mot3300-gald
2068 tmake_file=m68k/t-mot3300-gas
2072 xmake_file=m68k/x-mot3300
2073 if test x$gnu_ld = xyes
2075 tmake_file=m68k/t-mot3300-gld
2077 tmake_file=m68k/t-mot3300
2081 gdb_needs_out_file_path=yes
2082 extra_parts="crt0.o mcrt0.o"
2083 extra_headers=math-68881.h
2086 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2087 tm_file=m68k/tower-as.h
2088 xm_defines="USG SVR3"
2089 xmake_file=m68k/x-tower
2090 extra_parts="crtbegin.o crtend.o"
2091 extra_headers=math-68881.h
2094 tm_file=m68k/plexus.h
2095 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2098 extra_headers=math-68881.h
2102 xm_file="xm-alloca.h ${xm_file}"
2104 extra_headers=math-68881.h
2107 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2108 xm_defines="USG unos"
2109 xmake_file=m68k/x-crds
2112 extra_headers=math-68881.h
2114 m68k-cbm-sysv4*) # Commodore variant of V.4.
2116 xm_file="xm-alloca.h ${xm_file}"
2117 xm_defines="USG FULL_PROTOTYPES"
2118 xmake_file=m68k/x-amix
2120 extra_parts="crtbegin.o crtend.o"
2121 extra_headers=math-68881.h
2125 tm_file=m68k/ccur-GAS.h
2126 xmake_file=m68k/x-ccur
2127 extra_headers=math-68881.h
2131 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2132 tm_file=m68k/hp3bsd44.h
2133 xmake_file=m68k/x-hp3bsd44
2135 extra_headers=math-68881.h
2138 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2139 tm_file=m68k/hp3bsd.h
2141 extra_headers=math-68881.h
2145 if test x$with_fp = xno
2147 tm_file=m68k/isi-nfp.h
2153 extra_headers=math-68881.h
2155 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2156 xm_file="xm-alloca.h ${xm_file}"
2158 if test x$gas = xyes
2160 xmake_file=m68k/x-hp320g
2161 tm_file=m68k/hp320g.h
2163 xmake_file=m68k/x-hp320
2164 tm_file=m68k/hpux7.h
2166 install_headers_dir=install-headers-cpio
2168 extra_headers=math-68881.h
2171 m68k-hp-hpux*) # HP 9000 series 300
2172 xm_file="xm-alloca.h ${xm_file}"
2174 if test x$gas = xyes
2176 xmake_file=m68k/x-hp320g
2177 tm_file=m68k/hp320g.h
2179 xmake_file=m68k/x-hp320
2180 tm_file=m68k/hp320.h
2182 install_headers_dir=install-headers-cpio
2184 extra_headers=math-68881.h
2188 tm_file=m68k/sun3mach.h
2190 extra_headers=math-68881.h
2194 if test x$gas = xyes
2196 tm_file=m68k/news3gas.h
2198 tm_file=m68k/news3.h
2201 extra_headers=math-68881.h
2204 m68k-sony-bsd* | m68k-sony-newsos*)
2205 if test x$gas = xyes
2207 tm_file=m68k/newsgas.h
2212 extra_headers=math-68881.h
2215 m68k-next-nextstep2*)
2216 tm_file=m68k/next21.h
2217 xm_file="m68k/xm-next.h ${xm_file}"
2218 tmake_file=m68k/t-next
2219 xmake_file=m68k/x-next
2220 extra_objs=nextstep.o
2221 extra_headers=math-68881.h
2226 m68k-next-nextstep[34]*)
2229 xm_file="m68k/xm-next.h ${xm_file}"
2230 tmake_file=m68k/t-next
2231 xmake_file=m68k/x-next
2232 extra_objs=nextstep.o
2233 extra_parts="crtbegin.o crtend.o"
2234 extra_headers=math-68881.h
2236 if test x$enable_threads = xyes; then
2241 if test x$with_fp = xno
2243 tm_file=m68k/sun3n3.h
2245 tm_file=m68k/sun3o3.h
2249 extra_headers=math-68881.h
2251 m68k-sun-sunos*) # For SunOS 4 (the default).
2252 if test x$with_fp = xno
2254 tm_file=m68k/sun3n.h
2260 extra_headers=math-68881.h
2263 tm_file=m68k/vxm68k.h
2264 tmake_file=m68k/t-vxworks68
2265 extra_headers=math-68881.h
2266 thread_file='vxworks'
2270 tmake_file=m68k/t-m68kbare
2271 tm_file="m68k/m68k-aout.h libgloss.h"
2272 extra_headers=math-68881.h
2276 tmake_file=m68k/t-m68kbare
2277 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2278 extra_headers=math-68881.h
2281 m68020-*-elf* | m68k-*-elf*)
2282 tm_file="m68k/m68020-elf.h"
2283 xm_file=m68k/xm-m68kv.h
2284 tmake_file=m68k/t-m68kelf
2285 header_files=math-68881.h
2288 if test x$gas = xyes
2292 tm_file=m68k/lynx-ng.h
2294 xm_file=m68k/xm-lynx.h
2296 tmake_file=m68k/t-lynx
2297 extra_headers=math-68881.h
2301 tm_file=m68k/netbsd.h
2308 # we need collect2 until our bug is fixed...
2311 m68k-*-sysv3*) # Motorola m68k's running system V.3
2312 xm_file="xm-alloca.h ${xm_file}"
2314 xmake_file=m68k/x-m68kv
2315 extra_parts="crtbegin.o crtend.o"
2316 extra_headers=math-68881.h
2319 m68k-*-sysv4*) # Motorola m68k's running system V.4
2320 tm_file=m68k/m68kv4.h
2321 xm_file="xm-alloca.h ${xm_file}"
2324 extra_parts="crtbegin.o crtend.o"
2325 extra_headers=math-68881.h
2328 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2331 tm_file=m68k/linux-aout.h
2332 tmake_file="t-linux-aout m68k/t-linux-aout"
2333 extra_headers=math-68881.h
2337 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2338 # with ELF format using the
2339 # GNU/Linux C library 5
2341 tm_file=m68k/linux.h
2342 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2343 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2344 extra_headers=math-68881.h
2348 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2349 # with ELF format using glibc 2
2350 # aka the GNU/Linux C library 6.
2352 tm_file=m68k/linux.h
2353 tmake_file="t-linux m68k/t-linux"
2354 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2355 extra_headers=math-68881.h
2358 if test x$enable_threads = xyes; then
2363 tmake_file=m68k/t-m68kbare
2364 tm_file=m68k/m68k-psos.h
2365 extra_headers=math-68881.h
2369 tmake_file="m68k/t-m68kbare t-rtems"
2370 tm_file=m68k/rtems.h
2371 extra_headers=math-68881.h
2374 m68k-*-rtemself*|m68k-*-rtems*)
2375 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2376 tm_file=m68k/rtemself.h
2377 extra_headers=math-68881.h
2383 tm_file=m88k/dguxbcs.h
2384 tmake_file=m88k/t-dguxbcs
2388 tmake_file=m88k/t-dgux
2391 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2392 xmake_file=m88k/x-dgux
2393 if test x$gas = xyes
2395 tmake_file=m88k/t-dgux-gas
2398 m88k-dolphin-sysv3*)
2399 tm_file=m88k/dolph.h
2400 extra_parts="crtbegin.o crtend.o"
2401 xm_file="m88k/xm-sysv3.h ${xm_file}"
2402 xmake_file=m88k/x-dolph
2403 if test x$gas = xyes
2405 tmake_file=m88k/t-m88k-gas
2408 m88k-tektronix-sysv3)
2409 tm_file=m88k/tekXD88.h
2410 extra_parts="crtbegin.o crtend.o"
2411 xm_file="m88k/xm-sysv3.h ${xm_file}"
2412 xmake_file=m88k/x-tekXD88
2413 if test x$gas = xyes
2415 tmake_file=m88k/t-m88k-gas
2419 tm_file=m88k/m88k-aout.h
2422 tm_file=m88k/m88k-coff.h
2423 tmake_file=m88k/t-bug
2427 extra_parts="crtbegin.o crtend.o"
2428 if test x$gas = xyes
2430 tmake_file=m88k/t-luna-gas
2432 tmake_file=m88k/t-luna
2436 tmake_file="${tmake_file} m88k/t-luna-gas"
2439 tm_file=m88k/sysv3.h
2440 extra_parts="crtbegin.o crtend.o"
2441 xm_file="m88k/xm-sysv3.h ${xm_file}"
2442 xmake_file=m88k/x-sysv3
2443 if test x$gas = xyes
2445 tmake_file=m88k/t-m88k-gas
2449 tm_file=m88k/sysv4.h
2450 extra_parts="crtbegin.o crtend.o"
2451 xmake_file=m88k/x-sysv4
2452 tmake_file=m88k/t-sysv4
2455 tm_file=mcore/mcore-elf.h
2456 tmake_file=mcore/t-mcore
2459 tm_file=mcore/mcore-pe.h
2460 tmake_file=mcore/t-mcore-pe
2462 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2463 if test "x$gnu_ld" = xyes
2465 tm_file="mips/iris6.h mips/iris6gld.h"
2467 tm_file=mips/iris6.h
2469 tmake_file=mips/t-iris6
2470 xm_file=mips/xm-iris6.h
2471 xmake_file=mips/x-iris6
2472 # if test x$enable_threads = xyes; then
2473 # thread_file='irix'
2477 tm_file="mips/elf.h mips/vxworks.h"
2478 tmake_file=mips/t-ecoff
2481 extra_parts="crtbegin.o crtend.o"
2482 thread_file='vxworks'
2484 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2485 tm_file="mips/iris6.h mips/cross64.h"
2487 xm_file="mips/xm-iris5.h"
2488 xmake_file=mips/x-iris
2489 tmake_file=mips/t-cross64
2490 # See comment in mips/iris[56].h files.
2492 # if test x$enable_threads = xyes; then
2493 # thread_file='irix'
2497 if test x$gas = xyes
2499 if test x$stabs = xyes
2501 tm_file=mips/iris5gdb.h
2503 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2506 tm_file=mips/sni-svr4.h
2509 xmake_file=mips/x-sni-svr4
2510 tmake_file=mips/t-mips-gas
2511 if test x$gnu_ld != xyes
2516 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2517 if test x$gas = xyes
2519 tm_file="mips/iris5.h mips/iris5gas.h"
2520 if test x$stabs = xyes
2522 tm_file="${tm_file} dbx.h"
2525 tm_file=mips/iris5.h
2528 xm_file="mips/xm-iris5.h"
2529 xmake_file=mips/x-iris
2530 # mips-tfile doesn't work yet
2531 tmake_file=mips/t-mips-gas
2532 # See comment in mips/iris5.h file.
2534 # if test x$enable_threads = xyes; then
2535 # thread_file='irix'
2538 mips-sgi-irix4loser*) # Mostly like a MIPS.
2539 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2540 if test x$stabs = xyes; then
2541 tm_file="${tm_file} dbx.h"
2544 xmake_file=mips/x-iris
2545 if test x$gas = xyes
2547 tmake_file=mips/t-mips-gas
2549 extra_passes="mips-tfile mips-tdump"
2551 if test x$gnu_ld != xyes
2555 # if test x$enable_threads = xyes; then
2556 # thread_file='irix'
2559 mips-sgi-irix4*) # Mostly like a MIPS.
2560 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2561 if test x$stabs = xyes; then
2562 tm_file="${tm_file} dbx.h"
2565 xmake_file=mips/x-iris
2566 if test x$gas = xyes
2568 tmake_file=mips/t-mips-gas
2570 extra_passes="mips-tfile mips-tdump"
2572 if test x$gnu_ld != xyes
2576 # if test x$enable_threads = xyes; then
2577 # thread_file='irix'
2580 mips-sgi-*) # Mostly like a MIPS.
2581 tm_file="mips/iris3.h ${tm_file}"
2582 if test x$stabs = xyes; then
2583 tm_file="${tm_file} dbx.h"
2586 xmake_file=mips/x-iris3
2587 if test x$gas = xyes
2589 tmake_file=mips/t-mips-gas
2591 extra_passes="mips-tfile mips-tdump"
2593 if test x$gnu_ld != xyes
2598 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2599 tm_file="mips/osfrose.h ${tm_file}"
2600 xmake_file=mips/x-osfrose
2601 tmake_file=mips/t-osfrose
2602 extra_objs=halfpic.o
2605 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2606 tm_file=mips/dec-osf1.h
2607 if test x$stabs = xyes; then
2608 tm_file="${tm_file} dbx.h"
2610 xmake_file=mips/x-dec-osf1
2611 if test x$gas = xyes
2613 tmake_file=mips/t-mips-gas
2615 tmake_file=mips/t-ultrix
2616 extra_passes="mips-tfile mips-tdump"
2618 if test x$gnu_ld != xyes
2623 mips-dec-bsd*) # Decstation running 4.4 BSD
2624 tm_file=mips/dec-bsd.h
2625 if test x$gas = xyes
2627 tmake_file=mips/t-mips-gas
2629 tmake_file=mips/t-ultrix
2630 extra_passes="mips-tfile mips-tdump"
2632 if test x$gnu_ld != xyes
2637 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2638 tm_file=mips/netbsd.h
2639 # On NetBSD, the headers are already okay, except for math.h.
2642 mips*-*-linux*) # Linux MIPS, either endian.
2645 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2646 *) tm_file="mips/elf.h mips/linux.h" ;;
2648 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2651 if test x$enable_threads = xyes; then
2655 mips*el-*-openbsd*) # mips little endian
2656 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2658 mips*-*-openbsd*) # mips big endian
2659 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2660 tm_file="mips/openbsd-be.h ${tm_file}"
2662 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2663 tm_file="mips/news4.h ${tm_file}"
2664 if test x$stabs = xyes; then
2665 tm_file="${tm_file} dbx.h"
2667 if test x$gas = xyes
2669 tmake_file=mips/t-mips-gas
2671 extra_passes="mips-tfile mips-tdump"
2673 if test x$gnu_ld != xyes
2677 xmake_file=mips/x-sony
2679 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2680 # That is based on svr4.
2681 # t-svr4 is not right because this system doesn't use ELF.
2682 tm_file="mips/news5.h ${tm_file}"
2683 if test x$stabs = xyes; then
2684 tm_file="${tm_file} dbx.h"
2687 if test x$gas = xyes
2689 tmake_file=mips/t-mips-gas
2691 extra_passes="mips-tfile mips-tdump"
2693 if test x$gnu_ld != xyes
2698 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2699 tm_file="mips/svr4-5.h mips/svr4-t.h"
2700 if test x$stabs = xyes; then
2701 tm_file="${tm_file} dbx.h"
2704 xmake_file=mips/x-sysv
2705 if test x$gas = xyes
2707 tmake_file=mips/t-mips-gas
2708 extra_parts="crtbegin.o crtend.o"
2710 tmake_file=mips/t-mips
2711 extra_passes="mips-tfile mips-tdump"
2713 if test x$gnu_ld != xyes
2718 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2719 tm_file="mips/ultrix.h ${tm_file}"
2720 if test x$stabs = xyes; then
2721 tm_file="${tm_file} dbx.h"
2723 xmake_file=mips/x-ultrix
2724 if test x$gas = xyes
2726 tmake_file=mips/t-mips-gas
2728 tmake_file=mips/t-ultrix
2729 extra_passes="mips-tfile mips-tdump"
2731 if test x$gnu_ld != xyes
2737 mips-*-riscos[56789]bsd*)
2739 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2740 if test x$stabs = xyes; then
2741 tm_file="${tm_file} dbx.h"
2743 if test x$gas = xyes
2745 tmake_file=mips/t-bsd-gas
2747 tmake_file=mips/t-bsd
2748 extra_passes="mips-tfile mips-tdump"
2750 if test x$gnu_ld != xyes
2756 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2758 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2759 if test x$stabs = xyes; then
2760 tm_file="${tm_file} dbx.h"
2762 if test x$gas = xyes
2764 tmake_file=mips/t-bsd-gas
2766 tmake_file=mips/t-bsd
2767 extra_passes="mips-tfile mips-tdump"
2769 if test x$gnu_ld != xyes
2775 mips-*-riscos[56789]sysv4*)
2777 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2778 if test x$stabs = xyes; then
2779 tm_file="${tm_file} dbx.h"
2781 xmake_file=mips/x-sysv
2782 if test x$gas = xyes
2784 tmake_file=mips/t-svr4-gas
2786 tmake_file=mips/t-svr4
2787 extra_passes="mips-tfile mips-tdump"
2789 if test x$gnu_ld != xyes
2795 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2797 tm_file="mips/svr4-4.h ${tm_file}"
2798 if test x$stabs = xyes; then
2799 tm_file="${tm_file} dbx.h"
2802 xmake_file=mips/x-sysv
2803 if test x$gas = xyes
2805 tmake_file=mips/t-svr4-gas
2807 tmake_file=mips/t-svr4
2808 extra_passes="mips-tfile mips-tdump"
2810 if test x$gnu_ld != xyes
2816 mips-*-riscos[56789]sysv*)
2818 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2819 if test x$stabs = xyes; then
2820 tm_file="${tm_file} dbx.h"
2823 xmake_file=mips/x-sysv
2824 if test x$gas = xyes
2826 tmake_file=mips/t-svr3-gas
2828 tmake_file=mips/t-svr3
2829 extra_passes="mips-tfile mips-tdump"
2831 if test x$gnu_ld != xyes
2836 mips-*-sysv* | mips-*-riscos*sysv*)
2837 tm_file="mips/svr3-4.h ${tm_file}"
2838 if test x$stabs = xyes; then
2839 tm_file="${tm_file} dbx.h"
2842 xmake_file=mips/x-sysv
2843 if test x$gas = xyes
2845 tmake_file=mips/t-svr3-gas
2847 tmake_file=mips/t-svr3
2848 extra_passes="mips-tfile mips-tdump"
2850 if test x$gnu_ld != xyes
2856 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2858 tm_file=mips/mips-5.h
2859 if test x$stabs = xyes; then
2860 tm_file="${tm_file} dbx.h"
2862 if test x$gas = xyes
2864 tmake_file=mips/t-mips-gas
2866 extra_passes="mips-tfile mips-tdump"
2868 if test x$gnu_ld != xyes
2876 tm_file=mips/ecoffl.h
2877 if test x$stabs = xyes; then
2878 tm_file="${tm_file} dbx.h"
2880 tmake_file=mips/t-ecoff
2883 tm_file="gofast.h mips/ecoff.h"
2884 if test x$stabs = xyes; then
2885 tm_file="${tm_file} dbx.h"
2887 tmake_file=mips/t-ecoff
2890 tm_file="mips/elfl.h"
2891 tmake_file=mips/t-elf
2894 tm_file="mips/elf.h"
2895 tmake_file=mips/t-elf
2898 tm_file="mips/elfl64.h"
2899 tmake_file=mips/t-elf
2901 mips64orionel-*-elf*)
2902 tm_file="mips/elforion.h mips/elfl64.h"
2903 tmake_file=mips/t-elf
2906 tm_file="mips/elf64.h"
2907 tmake_file=mips/t-elf
2910 tm_file="mips/elforion.h mips/elf64.h"
2911 tmake_file=mips/t-elf
2913 mips64orion-*-rtems*)
2914 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2915 tmake_file="mips/t-elf t-rtems"
2918 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2919 tmake_file=mips/t-r3900
2922 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2923 tmake_file=mips/t-r3900
2925 mips-*-*) # Default MIPS RISC-OS 4.0.
2926 if test x$stabs = xyes; then
2927 tm_file="${tm_file} dbx.h"
2929 if test x$gas = xyes
2931 tmake_file=mips/t-mips-gas
2933 extra_passes="mips-tfile mips-tdump"
2935 if test x$gnu_ld != xyes
2943 tm_file="mn10200/mn10200.h"
2944 if test x$stabs = xyes
2946 tm_file="${tm_file} dbx.h"
2952 tm_file="mn10300/mn10300.h"
2953 if test x$stabs = xyes
2955 tm_file="${tm_file} dbx.h"
2960 tm_file=ns32k/encore.h
2964 tm_file=ns32k/sequent.h
2968 tm_file=ns32k/tek6100.h
2972 tm_file=ns32k/tek6200.h
2975 # This has not been updated to GCC 2.
2978 # xmake_file=ns32k/x-genix
2979 # tm_file=ns32k/genix.h
2983 tm_file=ns32k/merlin.h
2987 tm_file=ns32k/pc532-mach.h
2991 tm_file=ns32k/pc532-min.h
2992 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2997 tm_file=ns32k/netbsd.h
2998 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2999 # On NetBSD, the headers are already okay, except for math.h.
3004 tm_file="${tm_file} pdp11/2bsd.h"
3013 # This has not been updated to GCC 2.
3016 # xmake_file=pyr/x-pyr
3021 tm_file="svr4.h pj/linux.h ${tm_file}"
3026 tm_file="svr4.h pj/pjl.h ${tm_file}"
3033 xmake_file=romp/x-mach
3040 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3044 tm_file=rs6000/beos.h
3045 xm_file=rs6000/xm-beos.h
3046 tmake_file=rs6000/t-beos
3047 xmake_file=rs6000/x-beos
3050 tm_file=rs6000/sysv4.h
3051 xm_file="rs6000/xm-sysv4.h"
3052 xm_defines="USG POSIX"
3053 extra_headers=ppc-asm.h
3054 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3055 xmake_file=rs6000/x-sysv4
3058 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3059 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3060 extra_headers=ppc-asm.h
3063 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3064 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3065 extra_headers=ppc-asm.h
3068 tm_file="rs6000/sysv4.h"
3069 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3070 extra_headers=ppc-asm.h
3073 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3074 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3075 extra_headers=ppc-asm.h
3078 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3079 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3080 extra_headers=ppc-asm.h
3082 powerpc-*-linux-gnulibc1)
3083 tm_file="rs6000/sysv4.h rs6000/linux.h"
3084 xm_file=rs6000/xm-sysv4.h
3085 out_file=rs6000/rs6000.c
3086 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3088 extra_headers=ppc-asm.h
3089 if test x$enable_threads = xyes; then
3093 powerpc-*-linux-gnu*)
3094 tm_file="rs6000/sysv4.h rs6000/linux.h"
3095 xm_file="rs6000/xm-sysv4.h"
3096 xm_defines="USG ${xm_defines}"
3097 out_file=rs6000/rs6000.c
3098 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3100 extra_headers=ppc-asm.h
3101 if test x$enable_threads = xyes; then
3105 powerpc-wrs-vxworks*)
3107 xm_file="rs6000/xm-sysv4.h"
3108 xm_defines="USG POSIX"
3109 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3110 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3111 extra_headers=ppc-asm.h
3112 thread_file='vxworks'
3114 powerpcle-wrs-vxworks*)
3116 xm_file="rs6000/xm-sysv4.h"
3117 xm_defines="USG POSIX"
3118 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3119 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3120 extra_headers=ppc-asm.h
3121 thread_file='vxworks'
3124 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3125 xm_file="rs6000/xm-sysv4.h"
3126 xm_defines="USG POSIX"
3127 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3128 xmake_file=rs6000/x-sysv4
3129 extra_headers=ppc-asm.h
3132 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3133 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3134 extra_headers=ppc-asm.h
3136 powerpcle-*-eabisim*)
3137 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3138 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3139 extra_headers=ppc-asm.h
3142 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3143 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3144 extra_headers=ppc-asm.h
3146 powerpcle-*-solaris2*)
3147 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3148 xm_file="rs6000/xm-sysv4.h"
3149 xm_defines="USG POSIX"
3150 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3151 xmake_file=rs6000/x-sysv4
3152 extra_headers=ppc-asm.h
3155 rs6000-ibm-aix3.[01]*)
3157 tm_file=rs6000/aix31.h
3158 xmake_file=rs6000/x-aix31
3163 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3165 tm_file=rs6000/aix3newas.h
3166 if test x$host != x$target
3168 tmake_file=rs6000/t-xnewas
3170 tmake_file=rs6000/t-newas
3176 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3178 tm_file=rs6000/aix41.h
3179 if test x$host != x$target
3181 tmake_file=rs6000/t-xnewas
3183 tmake_file=rs6000/t-newas
3185 if test "$gnu_ld" = yes
3187 xmake_file=rs6000/x-aix41-gld
3189 tmake_file="rs6000/t-newas rs6000/t-aix41"
3191 xmake_file=rs6000/x-aix41
3196 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3198 tm_file=rs6000/aix43.h
3199 tmake_file=rs6000/t-aix43
3200 xmake_file=rs6000/x-aix41
3205 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3207 tm_file=rs6000/aix43.h
3208 tmake_file=rs6000/t-aix43
3209 xmake_file=rs6000/x-aix41
3222 tm_file=rs6000/mach.h
3223 xm_file="${xm_file} rs6000/xm-mach.h"
3224 xmake_file=rs6000/x-mach
3228 tm_file=rs6000/lynx.h
3229 xm_file=rs6000/xm-lynx.h
3230 tmake_file=rs6000/t-rs6000
3231 xmake_file=rs6000/x-lynx
3239 tmake_file="sh/t-sh t-rtems"
3240 tm_file=sh/rtemself.h
3244 tmake_file="sh/t-sh t-rtems"
3253 xm_file="xm-alloca.h ${xm_file}"
3256 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3257 tm_file=sparc/vxsparc.h
3258 tmake_file=sparc/t-vxsparc
3260 thread_file='vxworks'
3263 tmake_file=sparc/t-sparcbare
3264 tm_file="sparc/aout.h libgloss.h"
3267 tm_file=sparc/netbsd.h
3272 # we need collect2 until our bug is fixed...
3280 tmake_file=sparc/t-elf
3281 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3285 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
3286 xm_file="${xm_file} sparc/xm-linux.h"
3287 tm_file=sparc/linux-aout.h
3291 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
3292 xm_file="${xm_file} sparc/xm-linux.h"
3294 tm_file=sparc/linux.h
3295 tmake_file="t-linux t-linux-gnulibc1"
3296 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3300 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3301 xm_file="${xm_file} sparc/xm-linux.h"
3303 tm_file=sparc/linux.h
3304 tmake_file="t-linux"
3305 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3307 if test x$enable_threads = xyes; then
3313 if test x$gas = xyes
3315 tm_file=sparc/lynx.h
3317 tm_file=sparc/lynx-ng.h
3319 xm_file=sparc/xm-lynx.h
3320 tmake_file=sparc/t-sunos41
3324 tmake_file="sparc/t-sparcbare t-rtems"
3325 tm_file=sparc/rtems.h
3327 sparc-*-rtems*|sparc-*-rtemself*)
3328 tm_file="sparc/rtemself.h"
3329 tmake_file="sparc/t-elf t-rtems"
3330 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3334 sparcv9-*-solaris2*)
3335 if test x$gnu_ld = xyes
3337 tm_file=sparc/sol2-64.h
3339 tm_file=sparc/sol2-sld-64.h
3341 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3342 xm_defines="USG POSIX"
3343 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3344 xmake_file=sparc/x-sysv4
3345 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3347 if test x${enable_threads} = x ; then
3348 enable_threads=$have_pthread_h
3349 if test x${enable_threads} = x ; then
3350 enable_threads=$have_thread_h
3353 if test x${enable_threads} = xyes ; then
3354 if test x${have_pthread_h} = xyes ; then
3357 thread_file='solaris'
3361 sparc-hal-solaris2*)
3362 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3363 xm_defines="USG POSIX"
3364 tm_file="sparc/sol2.h sparc/hal.h"
3365 tmake_file="sparc/t-halos sparc/t-sol2"
3366 xmake_file=sparc/x-sysv4
3367 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3378 thread_file='solaris'
3381 if test x$gnu_ld = xyes
3383 tm_file=sparc/sol2.h
3385 tm_file=sparc/sol2-sld.h
3387 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3388 xm_defines="USG POSIX"
3389 tmake_file=sparc/t-sol2
3390 xmake_file=sparc/x-sysv4
3391 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3394 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3397 if test x$gnu_ld = xyes
3399 tm_file=sparc/sol2-64.h
3401 tm_file=sparc/sol2-sld-64.h
3403 tmake_file="$tmake_file sparc/t-sol2-64"
3416 if test x${enable_threads} = x; then
3417 enable_threads=$have_pthread_h
3418 if test x${enable_threads} = x; then
3419 enable_threads=$have_thread_h
3422 if test x${enable_threads} = xyes; then
3423 if test x${have_pthread_h} = xyes; then
3426 thread_file='solaris'
3431 tm_file=sparc/sunos4.h
3432 tmake_file=sparc/t-sunos40
3436 tm_file=sparc/sunos4.h
3437 tmake_file=sparc/t-sunos41
3439 if test x$gas = xyes; then
3440 tm_file="${tm_file} sparc/sun4gas.h"
3444 tm_file=sparc/sun4o3.h
3448 tm_file=sparc/sysv4.h
3449 xm_file="sparc/xm-sysv4.h"
3450 xm_defines="USG POSIX"
3452 xmake_file=sparc/x-sysv4
3453 extra_parts="crtbegin.o crtend.o"
3456 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3457 xm_defines="USG POSIX"
3458 tm_file=sparc/vxsim.h
3459 tmake_file=sparc/t-vxsparc
3460 xmake_file=sparc/x-sysv4
3463 tm_file="sparc/splet.h libgloss.h"
3464 tmake_file=sparc/t-splet
3467 tm_file="sparc/litecoff.h libgloss.h"
3468 tmake_file=sparc/t-sparclite
3471 tm_file="sparc/lite.h aoutos.h libgloss.h"
3472 tmake_file=sparc/t-sparclite
3475 tm_file="sparc/liteelf.h"
3476 tmake_file=sparc/t-sparclite
3477 extra_parts="crtbegin.o crtend.o"
3480 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3481 tmake_file=sparc/t-sp86x
3484 tm_file="sparc/sp86x-elf.h"
3485 tmake_file=sparc/t-sp86x
3486 extra_parts="crtbegin.o crtend.o"
3489 tmake_file=sparc/t-sp64
3490 tm_file=sparc/sp64-aout.h
3493 tmake_file=sparc/t-sp64
3494 tm_file=sparc/sp64-elf.h
3495 extra_parts="crtbegin.o crtend.o"
3497 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3498 tmake_file="t-linux sparc/t-linux64"
3499 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3500 tm_file=sparc/linux64.h
3502 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3504 if test x$enable_threads = xyes; then
3509 # This hasn't been upgraded to GCC 2.
3510 # tahoe-harris-*) # Harris tahoe, using COFF.
3511 # tm_file=tahoe/harris.h
3513 # tahoe-*-bsd*) # tahoe running BSD
3518 *** The Thumb targets have been depreciated. The equivalent
3519 *** ARM based toolchain can now generated Thumb instructions
3520 *** when the -mthumb switch is given to the compiler.])
3522 # This hasn't been upgraded to GCC 2.
3529 tm_file="v850/rtems.h"
3530 xm_file="v850/xm-v850.h"
3531 tmake_file="v850/t-v850 t-rtems"
3532 if test x$stabs = xyes
3534 tm_file="${tm_file} dbx.h"
3539 target_cpu_default="TARGET_CPU_generic"
3541 tm_file="v850/v850.h"
3542 xm_file="v850/xm-v850.h"
3543 tmake_file=v850/t-v850
3544 if test x$stabs = xyes
3546 tm_file="${tm_file} dbx.h"
3550 vax-*-bsd*) # vaxen running BSD
3554 vax-*-sysv*) # vaxen running system V
3555 tm_file="${tm_file} vax/vaxv.h"
3560 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3566 tmake_file="${tmake_file} vax/t-openbsd"
3568 vax-*-ultrix*) # vaxen running ultrix
3569 tm_file="${tm_file} vax/ultrix.h"
3573 vax-*-vms*) # vaxen running VMS
3574 xm_file=vax/xm-vms.h
3578 vax-*-*) # vax default entry
3582 xm_file="${xm_file} xm-svr3"
3586 echo "Configuration $machine not supported" 1>&2
3593 ;; # Existing GNU/Linux systems do not use the GNU setup.
3595 # On the GNU system, the setup is just about the same on
3596 # each different CPU. The specific machines that GNU
3597 # supports are matched above and just set $cpu_type.
3598 xm_file="xm-gnu.h ${xm_file}"
3599 tm_file=${cpu_type}/gnu.h
3600 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3601 # GNU always uses ELF.
3603 # GNU tools are the only tools.
3606 xmake_file=x-linux # These details are the same as Linux.
3607 tmake_file=t-gnu # These are not.
3610 xmake_try_sysv=x-sysv
3611 install_headers_dir=install-headers-cpio
3614 install_headers_dir=install-headers-cpio
3618 # Distinguish i[34567]86
3619 # Also, do not run mips-tfile on MIPS if using gas.