diff options
-rw-r--r-- | target/config/Config.in.binutils | 2 | ||||
-rw-r--r-- | target/config/Config.in.compiler | 2 | ||||
-rw-r--r-- | target/config/Config.in.float | 4 | ||||
-rw-r--r-- | target/nios2/uclibc-ng.config | 35 | ||||
-rw-r--r-- | toolchain/gcc/patches/5.4.0/nios2-Add-IJMP_REGS-enum.patch | 103 | ||||
-rw-r--r-- | toolchain/gcc/patches/5.4.0/nios2-soft-fp.patch | 14 | ||||
-rw-r--r-- | toolchain/gcc/patches/6.2.0/nios2-soft-fp.patch | 1401 |
7 files changed, 1544 insertions, 17 deletions
diff --git a/target/config/Config.in.binutils b/target/config/Config.in.binutils index b4b7b629d..7457009a0 100644 --- a/target/config/Config.in.binutils +++ b/target/config/Config.in.binutils @@ -40,6 +40,7 @@ config ADK_TOOLCHAIN_BINUTILS_2_26_1 depends on !ADK_TARGET_ARCH_LM32 depends on !ADK_TARGET_ARCH_MICROBLAZE depends on !ADK_TARGET_ARCH_NDS32 + depends on !ADK_TARGET_ARCH_NIOS2 config ADK_TOOLCHAIN_BINUTILS_2_25_1 bool "2.25.1" @@ -50,6 +51,7 @@ config ADK_TOOLCHAIN_BINUTILS_2_25_1 depends on !ADK_TARGET_ARCH_H8300 depends on !ADK_TARGET_ARCH_MOXIE depends on !ADK_TARGET_ARCH_NDS32 + depends on !ADK_TARGET_ARCH_NIOS2 depends on !ADK_TARGET_CPU_CRIS_CRISV10 config ADK_TOOLCHAIN_BINUTILS_2_24 diff --git a/target/config/Config.in.compiler b/target/config/Config.in.compiler index 513aa74e6..28b718b53 100644 --- a/target/config/Config.in.compiler +++ b/target/config/Config.in.compiler @@ -62,6 +62,7 @@ config ADK_TOOLCHAIN_GCC_5 depends on !ADK_TARGET_ARCH_M32R depends on !ADK_TARGET_ARCH_METAG depends on !ADK_TARGET_ARCH_NDS32 + depends on !ADK_TARGET_ARCH_NIOS2 depends on !ADK_TARGET_ARCH_OR1K depends on !ADK_TARGET_SYSTEM_KINETIS_K70 depends on !(ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_SH) @@ -77,6 +78,7 @@ config ADK_TOOLCHAIN_GCC_4_9 depends on !ADK_TARGET_ARCH_CR16 depends on !ADK_TARGET_ARCH_H8300 depends on !ADK_TARGET_ARCH_METAG + depends on !ADK_TARGET_ARCH_NIOS2 depends on !ADK_TARGET_ARCH_OR1K depends on !ADK_TARGET_ARCH_TILE depends on !ADK_TARGET_CPU_MIPS_MIPS32R6 diff --git a/target/config/Config.in.float b/target/config/Config.in.float index 640f2f234..693010633 100644 --- a/target/config/Config.in.float +++ b/target/config/Config.in.float @@ -6,6 +6,7 @@ prompt "Float configuration" depends on ADK_TARGET_ARCH_ARM || \ ADK_TARGET_ARCH_M68K || \ ADK_TARGET_ARCH_MIPS || \ + ADK_TARGET_ARCH_NIOS2 || \ ADK_TARGET_ARCH_PPC config ADK_TARGET_HARD_FLOAT @@ -23,7 +24,8 @@ endchoice config ADK_TARGET_FLOAT string - depends on !ADK_TARGET_ARCH_M68K + depends on !ADK_TARGET_ARCH_M68K \ + && !ADK_TARGET_ARCH_NIOS2 default "hard" if ADK_TARGET_HARD_FLOAT default "soft" if ADK_TARGET_SOFT_FLOAT default "softfp" if ADK_TARGET_SOFTFP_FLOAT diff --git a/target/nios2/uclibc-ng.config b/target/nios2/uclibc-ng.config index 590394cd8..cfefebc50 100644 --- a/target/nios2/uclibc-ng.config +++ b/target/nios2/uclibc-ng.config @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# uClibc-ng 1.0.15 C Library Configuration +# uClibc-ng 1.0.18 C Library Configuration # # TARGET_alpha is not set # TARGET_arc is not set @@ -19,6 +19,7 @@ # TARGET_metag is not set # TARGET_microblaze is not set # TARGET_mips is not set +# TARGET_nds32 is not set TARGET_nios2=y # TARGET_or1k is not set # TARGET_powerpc is not set @@ -33,40 +34,43 @@ TARGET_nios2=y TARGET_ARCH="nios2" FORCE_OPTIONS_FOR_ARCH=y TARGET_SUBARCH="" -UCLIBC_FORMAT_FLAT=y -# UCLIBC_FORMAT_FLAT_SEP_DATA is not set -# UCLIBC_FORMAT_SHARED_FLAT is not set -ARCH_LITTLE_ENDIAN=y # -# Using Little Endian +# Using ELF file format # -ARCH_HAS_NO_MMU=y +ARCH_LITTLE_ENDIAN=y # -# Target CPU lacks a memory management unit (MMU) +# Using Little Endian # -# UCLIBC_HAS_FLOATS is not set +ARCH_HAS_MMU=y +ARCH_USE_MMU=y +UCLIBC_HAS_FLOATS=y # UCLIBC_HAS_FPU is not set +UCLIBC_HAS_SOFT_FLOAT=y +DO_C99_MATH=y +# DO_XSI_MATH is not set +# UCLIBC_HAS_FENV is not set KERNEL_HEADERS="" -UCLIBC_UCLINUX_BROKEN_MUNMAP=y HAVE_DOT_CONFIG=y # # General Library Settings # -HAVE_NO_PIC=y +DOPIC=y ARCH_HAS_NO_SHARED=y ARCH_HAS_NO_LDSO=y UCLIBC_CTOR_DTOR=y # HAS_NO_THREADS is not set -UCLIBC_HAS_LINUXTHREADS=y +UCLIBC_HAS_THREADS_NATIVE=y UCLIBC_HAS_THREADS=y -PTHREADS_DEBUG_SUPPORT=y +UCLIBC_HAS_TLS=y +# PTHREADS_DEBUG_SUPPORT is not set UCLIBC_HAS_SYSLOG=y UCLIBC_HAS_LFS=y MALLOC=y # MALLOC_SIMPLE is not set +# MALLOC_STANDARD is not set MALLOC_GLIBC_COMPAT=y # UCLIBC_HAS_OBSTACK is not set UCLIBC_DYNAMIC_ATEXIT=y @@ -104,7 +108,6 @@ UCLIBC_GRP_BUFFER_SIZE=256 # Support various families of functions # UCLIBC_LINUX_MODULE_26=y -# UCLIBC_LINUX_MODULE_24 is not set UCLIBC_LINUX_SPECIFIC=y UCLIBC_HAS_GNU_ERROR=y UCLIBC_BSD_SPECIFIC=y @@ -141,6 +144,7 @@ UCLIBC_HAS_LIBNSL_STUB=y # UCLIBC_HAS_STRING_GENERIC_OPT=y UCLIBC_HAS_STRING_ARCH_OPT=y +UCLIBC_HAS_STDIO_FUTEXES=y UCLIBC_HAS_CTYPE_TABLES=y UCLIBC_HAS_CTYPE_SIGNED=y # UCLIBC_HAS_CTYPE_UNSAFE is not set @@ -148,6 +152,7 @@ UCLIBC_HAS_CTYPE_CHECKED=y # UCLIBC_HAS_CTYPE_ENFORCED is not set UCLIBC_HAS_WCHAR=y # UCLIBC_HAS_LOCALE is not set +# UCLIBC_HAS_HEXADECIMAL_FLOATS is not set UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9 # UCLIBC_HAS_STDIO_BUFSIZ_256 is not set @@ -213,10 +218,8 @@ UCLIBC_BUILD_NOEXECSTACK=y CROSS_COMPILER_PREFIX="" UCLIBC_EXTRA_CFLAGS="" # DODEBUG is not set -# DODEBUG_PT is not set # DOSTRIP is not set # DOASSERTS is not set # UCLIBC_MALLOC_DEBUGGING is not set WARNINGS="-Wall" # EXTRA_WARNINGS is not set -# DOMULTI is not set diff --git a/toolchain/gcc/patches/5.4.0/nios2-Add-IJMP_REGS-enum.patch b/toolchain/gcc/patches/5.4.0/nios2-Add-IJMP_REGS-enum.patch new file mode 100644 index 000000000..7a8c843e5 --- /dev/null +++ b/toolchain/gcc/patches/5.4.0/nios2-Add-IJMP_REGS-enum.patch @@ -0,0 +1,103 @@ +From 920a898d2a04933c13eb808a513bc5822e91f70a Mon Sep 17 00:00:00 2001 +From: sandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Tue, 12 May 2015 15:57:22 +0000 +Subject: [PATCH] gcc/nios2: Add IJMP_REGS enum + +2015-05-12 Chung-Lin Tang <cltang@codesourcery.com> + Sandra Loosemore <sandra@codesourcery.com> + + gcc/ + * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum + value. + (REG_CLASS_NAMES): Add "IJMP_REGS". + (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS. + * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to + use new "c" register constraint. + * config/nios2/constraint.md (c): New register constraint + corresponding to IJMP_REGS. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223082 138bc75d-0d04-0410-961f-82ee72b054a4 + +[Romain: rebase on gcc 5.4] +Signed-off-by: Romain Naour <romain.naour@gmail.com> +--- + gcc/config/nios2/constraints.md | 3 +++ + gcc/config/nios2/nios2.h | 11 +++++++---- + gcc/config/nios2/nios2.md | 4 ++-- + 3 files changed, 12 insertions(+), 6 deletions(-) + +diff --git a/gcc/config/nios2/constraints.md b/gcc/config/nios2/constraints.md +index f4bd9f7..735f892 100644 +--- a/gcc/config/nios2/constraints.md ++++ b/gcc/config/nios2/constraints.md +@@ -39,6 +39,9 @@ + + ;; Register constraints + ++(define_register_constraint "c" "IJMP_REGS" ++ "A register suitable for an indirect jump.") ++ + (define_register_constraint "j" "SIB_REGS" + "A register suitable for an indirect sibcall.") + +diff --git a/gcc/config/nios2/nios2.h b/gcc/config/nios2/nios2.h +index 117983d..7c329ae 100644 +--- a/gcc/config/nios2/nios2.h ++++ b/gcc/config/nios2/nios2.h +@@ -173,6 +173,7 @@ enum reg_class + { + NO_REGS, + SIB_REGS, ++ IJMP_REGS, + GP_REGS, + ALL_REGS, + LIM_REG_CLASSES +@@ -183,6 +184,7 @@ enum reg_class + #define REG_CLASS_NAMES \ + { "NO_REGS", \ + "SIB_REGS", \ ++ "IJMP_REGS", \ + "GP_REGS", \ + "ALL_REGS" } + +@@ -190,10 +192,11 @@ enum reg_class + + #define REG_CLASS_CONTENTS \ + { \ +- /* NO_REGS */ { 0, 0}, \ +- /* SIB_REGS */ { 0xfe0c, 0}, \ +- /* GP_REGS */ {~0, 0}, \ +- /* ALL_REGS */ {~0,~0} \ ++ /* NO_REGS */ { 0, 0}, \ ++ /* SIB_REGS */ { 0xfe0c, 0}, \ ++ /* IJMP_REGS */ { 0x7fffffff, 0}, \ ++ /* GP_REGS */ {~0, 0}, \ ++ /* ALL_REGS */ {~0,~0} \ + } + + +diff --git a/gcc/config/nios2/nios2.md b/gcc/config/nios2/nios2.md +index 7b35d269..36ef101 100644 +--- a/gcc/config/nios2/nios2.md ++++ b/gcc/config/nios2/nios2.md +@@ -697,7 +697,7 @@ + ; check or adjust for overflow. + + (define_insn "indirect_jump" +- [(set (pc) (match_operand:SI 0 "register_operand" "r"))] ++ [(set (pc) (match_operand:SI 0 "register_operand" "c"))] + "" + "jmp\\t%0" + [(set_attr "type" "control")]) +@@ -811,7 +811,7 @@ + + (define_insn "*tablejump" + [(set (pc) +- (match_operand:SI 0 "register_operand" "r")) ++ (match_operand:SI 0 "register_operand" "c")) + (use (label_ref (match_operand 1 "" "")))] + "" + "jmp\\t%0" +-- +2.5.5 + diff --git a/toolchain/gcc/patches/5.4.0/nios2-soft-fp.patch b/toolchain/gcc/patches/5.4.0/nios2-soft-fp.patch new file mode 100644 index 000000000..5b147ae5f --- /dev/null +++ b/toolchain/gcc/patches/5.4.0/nios2-soft-fp.patch @@ -0,0 +1,14 @@ +diff -Nur gcc-5.3.0.orig/libgcc/config.host gcc-5.3.0/libgcc/config.host +--- gcc-5.3.0.orig/libgcc/config.host 2015-10-01 14:01:18.000000000 +0200 ++++ gcc-5.3.0/libgcc/config.host 2016-05-30 00:20:39.299872144 +0200 +@@ -948,6 +948,10 @@ + ;; + esac + ;; ++nios2-*-linux-uclibc*) ++ tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc t-softfp-sfdf t-softfp" ++ md_unwind_header=nios2/linux-unwind.h ++ ;; + nios2-*-linux*) + tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc" + md_unwind_header=nios2/linux-unwind.h diff --git a/toolchain/gcc/patches/6.2.0/nios2-soft-fp.patch b/toolchain/gcc/patches/6.2.0/nios2-soft-fp.patch new file mode 100644 index 000000000..551ee72dc --- /dev/null +++ b/toolchain/gcc/patches/6.2.0/nios2-soft-fp.patch @@ -0,0 +1,1401 @@ +diff -Nur gcc-6.2.0.orig/libgcc/config.host gcc-6.2.0/libgcc/config.host +--- gcc-6.2.0.orig/libgcc/config.host 2016-05-17 08:15:52.000000000 +0200 ++++ gcc-6.2.0/libgcc/config.host 2016-10-15 14:42:53.971919904 +0200 +@@ -962,6 +962,10 @@ + ;; + esac + ;; ++nios2-*-linux-uclibc*) ++ tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc t-softfp-sfdf t-softfp" ++ md_unwind_header=nios2/linux-unwind.h ++ ;; + nios2-*-linux*) + tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc" + md_unwind_header=nios2/linux-unwind.h +diff -Nur gcc-6.2.0.orig/libgcc/config.host.orig gcc-6.2.0/libgcc/config.host.orig +--- gcc-6.2.0.orig/libgcc/config.host.orig 1970-01-01 01:00:00.000000000 +0100 ++++ gcc-6.2.0/libgcc/config.host.orig 2016-05-17 08:15:52.000000000 +0200 +@@ -0,0 +1,1383 @@ ++# libgcc host-specific configuration file. ++# Copyright (C) 1997-2016 Free Software Foundation, Inc. ++ ++#This file is part of GCC. ++ ++#GCC is free software; you can redistribute it and/or modify it under ++#the terms of the GNU General Public License as published by the Free ++#Software Foundation; either version 3, or (at your option) any later ++#version. ++ ++#GCC is distributed in the hope that it will be useful, but WITHOUT ++#ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ++#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ++#for more details. ++ ++#You should have received a copy of the GNU General Public License ++#along with GCC; see the file COPYING3. If not see ++#<http://www.gnu.org/licenses/>. ++ ++# This is the libgcc host-specific configuration file ++# where a configuration type is mapped to different system-specific ++# definitions and files. This is invoked by the autoconf-generated ++# configure script. Putting it in a separate shell file lets us skip ++# running autoconf when modifying host-specific information. ++ ++# This file bears an obvious resemblance to gcc/config.gcc. The cases ++# should be kept similar, to ease moving library-specific settings ++# from config.gcc to this file. That is also why tmake_file is ++# left as tmake_file, rather than hmake_file, even though this library ++# switches on ${host}. ++ ++# This file switches on the shell variable ${host}, and also uses the ++# following shell variables: ++# ++# with_* Various variables as set by configure. ++ ++# This file sets the following shell variables for use by the ++# autoconf-generated configure script: ++# ++# asm_hidden_op The assembler pseudo-op to use for hide ++# lists for object files implemented in ++# assembly (with -fvisibility=hidden for C). ++# The default is ".hidden". ++# cpu_type The name of the cpu, if different from the first ++# chunk of the canonical host name. ++# enable_execute_stack The name of a source file implementing ++# __enable_execute_stack. ++# extra_parts List of extra object files that should be compiled ++# for this target machine. This may be overridden ++# by setting EXTRA_PARTS in a tmake_file fragment. ++# If either is set, EXTRA_PARTS and ++# EXTRA_MULTILIB_PARTS inherited from the GCC ++# subdirectory will be ignored. ++# md_unwind_header The name of a header file defining ++# MD_FALLBACK_FRAME_STATE_FOR. ++# sfp_machine_header The name of a sfp-machine.h header file for soft-fp. ++# Defaults to "$cpu_type/sfp-machine.h" if it exists, ++# no-sfp-machine.h otherwise. ++# tmake_file A list of machine-description-specific ++# makefile fragments. ++# tm_defines List of target macros to define for all compilations. ++# tm_file A list of target macro files used only for code ++# built for the target, not the host. These files ++# are relative to $srcdir/config and must not have ++# the same names as files in $srcdir/../gcc/config. ++# unwind_header The name of the header file declaring the unwind ++# runtime interface routines. ++ ++asm_hidden_op=.hidden ++enable_execute_stack= ++extra_parts= ++tmake_file= ++tm_file= ++tm_define= ++md_unwind_header=no-unwind.h ++unwind_header=unwind-generic.h ++ ++# Set default cpu_type so it can be updated in each machine entry. ++cpu_type=`echo ${host} | sed 's/-.*$//'` ++case ${host} in ++m32c*-*-*) ++ cpu_type=m32c ++ tmake_file=t-fdpbit ++ ;; ++aarch64*-*-*) ++ cpu_type=aarch64 ++ ;; ++alpha*-*-*) ++ cpu_type=alpha ++ ;; ++am33_2.0-*-linux*) ++ cpu_type=mn10300 ++ ;; ++arc*-*-*) ++ cpu_type=arc ++ ;; ++arm*-*-*) ++ cpu_type=arm ++ ;; ++avr-*-*) ++ cpu_type=avr ++ ;; ++bfin*-*) ++ cpu_type=bfin ++ ;; ++cr16-*-*) ++ ;; ++crisv32-*-*) ++ cpu_type=cris ++ ;; ++fido-*-*) ++ cpu_type=m68k ++ ;; ++frv*) cpu_type=frv ++ ;; ++ft32*) cpu_type=ft32 ++ ;; ++moxie*) cpu_type=moxie ++ ;; ++i[34567]86-*-*) ++ cpu_type=i386 ++ ;; ++x86_64-*-*) ++ cpu_type=i386 ++ ;; ++ia64-*-*) ++ ;; ++hppa*-*-*) ++ cpu_type=pa ++ ;; ++lm32*-*-*) ++ cpu_type=lm32 ++ ;; ++m32r*-*-*) ++ cpu_type=m32r ++ ;; ++m68k-*-*) ++ ;; ++mep*-*-*) ++ ;; ++microblaze*-*-*) ++ cpu_type=microblaze ++ ;; ++mips*-*-*) ++ # All MIPS targets provide a full set of FP routines. ++ cpu_type=mips ++ tmake_file="mips/t-mips" ++ if test "${libgcc_cv_mips_hard_float}" = yes; then ++ tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp" ++ else ++ tmake_file="${tmake_file} t-softfp-sfdf" ++ fi ++ if test "${ac_cv_sizeof_long_double}" = 16; then ++ tmake_file="${tmake_file} mips/t-softfp-tf" ++ fi ++ if test "${host_address}" = 64; then ++ tmake_file="${tmake_file} mips/t-mips64" ++ fi ++ tmake_file="${tmake_file} t-softfp" ++ ;; ++nds32*-*) ++ cpu_type=nds32 ++ ;; ++nios2*-*-*) ++ cpu_type=nios2 ++ ;; ++powerpc*-*-*) ++ cpu_type=rs6000 ++ ;; ++rs6000*-*-*) ++ ;; ++sparc64*-*-*) ++ cpu_type=sparc ++ ;; ++sparc*-*-*) ++ cpu_type=sparc ++ ;; ++spu*-*-*) ++ cpu_type=spu ++ ;; ++s390*-*-*) ++ cpu_type=s390 ++ ;; ++# Note the 'l'; we need to be able to match e.g. "shle" or "shl". ++sh[123456789lbe]*-*-*) ++ cpu_type=sh ++ ;; ++tilegx*-*-*) ++ cpu_type=tilegx ++ ;; ++tilepro*-*-*) ++ cpu_type=tilepro ++ ;; ++v850*-*-*) ++ cpu_type=v850 ++ ;; ++tic6x-*-*) ++ cpu_type=c6x ++ ;; ++esac ++ ++# Common parts for widely ported systems. ++case ${host} in ++*-*-darwin*) ++ asm_hidden_op=.private_extern ++ tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin" ++ extra_parts="crt3.o crttms.o crttme.o" ++ ;; ++*-*-dragonfly*) ++ tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" ++ tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" ++ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" ++ ;; ++*-*-freebsd*) ++ # This is the generic ELF configuration of FreeBSD. Later ++ # machine-specific sections may refine and add to this ++ # configuration. ++ tmake_file="$tmake_file t-freebsd t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" ++ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" ++ case ${target_thread_file} in ++ posix) ++ tmake_file="${tmake_file} t-freebsd-thread" ++ # Before 5.0, FreeBSD can't bind shared libraries to -lc ++ # when "optionally" threaded via weak pthread_* checks. ++ case ${host} in ++ *-*-freebsd[34] | *-*-freebsd[34].*) ++ tmake_file="${tmake_file} t-slibgcc-nolc-override" ++ ;; ++ esac ++ ;; ++ esac ++ ;; ++*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) ++ tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-linux" ++ extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" ++ if test x$enable_vtable_verify = xyes; then ++ extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" ++ fi ++ ;; ++*-*-lynxos*) ++ tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic" ++ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" ++ ;; ++*-*-netbsd*) ++ tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" ++ # NetBSD 1.7 and later are set up to use GCC's crtstuff for ++ # ELF configurations. We will clear extra_parts in the ++ # a.out configurations. ++ case ${host} in ++ *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) ++ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" ++ ;; ++ esac ++ ;; ++*-*-openbsd*) ++ tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" ++ case ${target_thread_file} in ++ posix) ++ tmake_file="$tmake_file t-openbsd-thread" ++ ;; ++ esac ++ ;; ++*-*-rtems*) ++ tmake_file="$tmake_file t-rtems" ++ extra_parts="crtbegin.o crtend.o" ++ ;; ++*-*-solaris2*) ++ # Unless linker support and dl_iterate_phdr are present, ++ # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c. ++ tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver" ++ if test $with_gnu_ld = yes; then ++ tmake_file="$tmake_file t-slibgcc-gld" ++ else ++ tmake_file="$tmake_file t-slibgcc-sld" ++ fi ++ # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES. ++ tmake_file="$tmake_file $cpu_type/t-sol2" ++ extra_parts="gmon.o crtbegin.o crtend.o" ++ if test "${libgcc_cv_solaris_crts}" = yes; then ++ # Solaris 11.x and 12 provide crt1.o, crti.o, and crtn.o as part of the ++ # base system. crtp.o and crtpg.o implement the compiler-dependent parts. ++ extra_parts="$extra_parts crtp.o crtpg.o" ++ # If the Solaris CRTs are present, both ld and gld will have PIE support. ++ extra_parts="$extra_parts crtbeginS.o crtendS.o" ++ else ++ case ${host} in ++ i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*) ++ # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as ++ # part of the base system. ++ ;; ++ sparc*-*-solaris2.1[0-9]*) ++ # Solaris 10+/SPARC lacks crt1.o and gcrt1.o. ++ extra_parts="$extra_parts crt1.o gcrt1.o" ++ ;; ++ esac ++ fi ++ if test x$enable_vtable_verify = xyes; then ++ extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" ++ fi ++ ;; ++*-*-uclinux*) ++ extra_parts="crtbegin.o crtend.o" ++ ;; ++*-*-*vms*) ++ tmake_file="vms/t-vms" ++ extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o" ++ ;; ++*-*-vxworks*) ++ tmake_file=t-vxworks ++ ;; ++*-*-elf) ++ extra_parts="crtbegin.o crtend.o" ++ ;; ++esac ++ ++case ${host} in ++*-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \ ++ *-*-solaris2*) ++ enable_execute_stack=enable-execute-stack-mprotect.c ++ ;; ++i[34567]86-*-mingw* | x86_64-*-mingw*) ++ enable_execute_stack=config/i386/enable-execute-stack-mingw32.c ++ ;; ++*) ++ enable_execute_stack=enable-execute-stack-empty.c; ++ ;; ++esac ++ ++case ${host} in ++aarch64*-*-elf | aarch64*-*-rtems*) ++ extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" ++ extra_parts="$extra_parts crtfastmath.o" ++ tmake_file="${tmake_file} ${cpu_type}/t-aarch64" ++ tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" ++ ;; ++aarch64*-*-linux*) ++ extra_parts="$extra_parts crtfastmath.o" ++ md_unwind_header=aarch64/linux-unwind.h ++ tmake_file="${tmake_file} ${cpu_type}/t-aarch64" ++ tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" ++ ;; ++alpha*-*-linux*) ++ tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux" ++ extra_parts="$extra_parts crtfastmath.o" ++ md_unwind_header=alpha/linux-unwind.h ++ ;; ++alpha*-*-freebsd*) ++ tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm" ++ extra_parts="$extra_parts crtbeginT.o crtfastmath.o" ++ ;; ++alpha*-*-netbsd*) ++ tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" ++ ;; ++alpha*-*-openbsd*) ++ tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" ++ ;; ++alpha64-dec-*vms*) ++ tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms" ++ extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o" ++ md_unwind_header=alpha/vms-unwind.h ++ ;; ++alpha*-dec-*vms*) ++ tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms" ++ extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o" ++ md_unwind_header=alpha/vms-unwind.h ++ ;; ++arc*-*-elf*) ++ tmake_file="arc/t-arc-newlib arc/t-arc" ++ extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o libgmon.a crtg.o crtgend.o" ++ ;; ++arc*-*-linux-uclibc*) ++ tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc700-uClibc arc/t-arc" ++ extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o libgmon.a crtg.o crtgend.o" ++ ;; ++arm-wrs-vxworks) ++ tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" ++ extra_parts="$extra_parts crti.o crtn.o" ++ ;; ++arm*-*-freebsd*) # ARM FreeBSD EABI ++ tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf" ++ tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd t-slibgcc-libgcc" ++ tm_file="${tm_file} arm/bpabi-lib.h" ++ unwind_header=config/arm/unwind-arm.h ++ tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" ++ ;; ++arm*-*-netbsdelf*) ++ tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover" ++ ;; ++arm*-*-linux*) # ARM GNU/Linux with ELF ++ tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm" ++ tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc" ++ tm_file="$tm_file arm/bpabi-lib.h" ++ unwind_header=config/arm/unwind-arm.h ++ tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" ++ extra_parts="$extra_parts crtfastmath.o" ++ ;; ++arm*-*-uclinux*) # ARM ucLinux ++ tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm" ++ tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" ++ tmake_file="${tmake_file} arm/t-bpabi" ++ tm_file="$tm_file arm/bpabi-lib.h" ++ unwind_header=config/arm/unwind-arm.h ++ extra_parts="$extra_parts crti.o crtn.o" ++ ;; ++arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*) ++ tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix" ++ tm_file="$tm_file arm/bpabi-lib.h" ++ case ${host} in ++ arm*-*-eabi* | arm*-*-rtems*) ++ tmake_file="${tmake_file} arm/t-bpabi t-crtfm" ++ extra_parts="crtbegin.o crtend.o crti.o crtn.o" ++ ;; ++ arm*-*-symbianelf*) ++ tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override" ++ tm_file="$tm_file arm/symbian-lib.h" ++ # Symbian OS provides its own startup code. ++ ;; ++ esac ++ tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" ++ extra_parts="$extra_parts crtfastmath.o" ++ unwind_header=config/arm/unwind-arm.h ++ ;; ++avr-*-rtems*) ++ tmake_file="$tmake_file avr/t-avr avr/t-rtems t-fpbit" ++ tm_file="$tm_file avr/avr-lib.h" ++ # Don't use default. ++ extra_parts= ++ ;; ++avr-*-*) ++ # Make HImode functions for AVR ++ tmake_file="${cpu_type}/t-avr t-fpbit" ++ if test x${with_avrlibc} != xno; then ++ tmake_file="$tmake_file ${cpu_type}/t-avrlibc" ++ fi ++ tm_file="$tm_file avr/avr-lib.h" ++ ;; ++bfin*-elf*) ++ tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit" ++ extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o" ++ ;; ++bfin*-uclinux*) ++ tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit" ++ extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o" ++ md_unwind_header=bfin/linux-unwind.h ++ ;; ++bfin*-linux-uclibc*) ++ tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux" ++ # No need to build crtbeginT.o on uClibc systems. Should probably ++ # be moved to the OS specific section above. ++ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" ++ md_unwind_header=bfin/linux-unwind.h ++ ;; ++bfin*-rtems*) ++ tmake_file="$tmake_file bfin/t-bfin t-fdpbit" ++ extra_parts="$extra_parts crti.o crtn.o" ++ ;; ++bfin*-*) ++ tmake_file="$tmake_file bfin/t-bfin t-fdpbit" ++ extra_parts="crtbegin.o crtend.o crti.o crtn.o" ++ ;; ++cr16-*-elf) ++ tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit" ++ extra_parts="$extra_parts crti.o crtn.o crtlibid.o" ++ ;; ++crisv32-*-elf) ++ tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp" ++ ;; ++cris-*-elf) ++ tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti" ++ ;; ++cris-*-linux* | crisv32-*-linux*) ++ tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux" ++ ;; ++epiphany-*-elf*) ++ tmake_file="epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf" ++ extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o" ++ ;; ++fr30-*-elf) ++ tmake_file="$tmake_file fr30/t-fr30 t-fdpbit" ++ extra_parts="$extra_parts crti.o crtn.o" ++ ;; ++frv-*-elf) ++ tmake_file="$tmake_file frv/t-frv t-fdpbit" ++ tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h" ++ # Don't use crtbegin.o, crtend.o. ++ extra_parts="frvbegin.o frvend.o" ++ ;; ++frv-*-*linux*) ++ tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit" ++ tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h" ++ ;; ++ft32-*-elf) ++ tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp" ++ extra_parts="$extra_parts crti.o crti-hw.o crtn.o" ++ ;; ++h8300-*-rtems*) ++ tmake_file="$tmake_file h8300/t-h8300 t-fpbit" ++ tm_file="$tm_file h8300/h8300-lib.h" ++ extra_parts="$extra_parts crti.o crtn.o" ++ ;; ++h8300-*-elf*) ++ tmake_file="$tmake_file h8300/t-h8300 t-fpbit" ++ tm_file="$tm_file h8300/h8300-lib.h" ++ extra_parts="$extra_parts crti.o crtn.o" ++ ;; ++h8300-*-linux*) ++ tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp" ++ tm_file="$tm_file h8300/h8300-lib.h" ++ ;; ++hppa*64*-*-linux*) ++ tmake_file="$tmake_file pa/t-linux pa/t-linux64" ++ extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" ++ ;; ++hppa*-*-linux*) ++ tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc" ++ # Set the libgcc version number ++ if test x$ac_cv_sjlj_exceptions = xyes; then ++ tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" ++ else ++ tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" ++ fi ++ extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" ++ md_unwind_header=pa/linux-unwind.h ++ ;; ++hppa[12]*-*-hpux10*) ++ tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc" ++ # Set the libgcc version number ++ if test x$ac_cv_sjlj_exceptions = xyes; then ++ tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" ++ else ++ tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" ++ fi ++ tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux" ++ md_unwind_header=pa/hpux-unwind.h ++ ;; ++hppa*64*-*-hpux11*) ++ tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc" ++ # Set the libgcc version number ++ if test x$ac_cv_sjlj_exceptions = xyes; then ++ tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" ++ else ++ tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" ++ fi ++ tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux" ++ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \ ++ libgcc_stub.a" ++ md_unwind_header=pa/hpux-unwind.h ++ ;; ++hppa[12]*-*-hpux11*) ++ tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc" ++ # Set the libgcc version number ++ if test x$ac_cv_sjlj_exceptions = xyes; then ++ tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" ++ else ++ tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" ++ fi ++ tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux" ++ extra_parts="libgcc_stub.a" ++ md_unwind_header=pa/hpux-unwind.h ++ ;; ++hppa*-*-openbsd*) ++ tmake_file="$tmake_file pa/t-openbsd" ++ ;; ++i[34567]86-*-darwin*) ++ tmake_file="$tmake_file i386/t-crtpc t-crtfm" ++ tm_file="$tm_file i386/darwin-lib.h" ++ extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" ++ ;; ++x86_64-*-darwin*) ++ tmake_file="$tmake_file i386/t-crtpc t-crtfm" ++ tm_file="$tm_file i386/darwin-lib.h" ++ extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" ++ ;; ++i[34567]86-*-elfiamcu) ++ tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/32/t-iamcu i386/t-softfp t-softfp t-dfprules" ++ ;; ++i[34567]86-*-elf*) ++ tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" ++ ;; ++x86_64-*-elf* | x86_64-*-rtems*) ++ tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" ++ ;; ++i[34567]86-*-dragonfly*) ++ tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" ++ md_unwind_header=i386/dragonfly-unwind.h ++ ;; ++x86_64-*-dragonfly*) ++ tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" ++ md_unwind_header=i386/dragonfly-unwind.h ++ ;; ++i[34567]86-*-freebsd*) ++ tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" ++ md_unwind_header=i386/freebsd-unwind.h ++ ;; ++x86_64-*-freebsd*) ++ tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" ++ md_unwind_header=i386/freebsd-unwind.h ++ ;; ++i[34567]86-*-netbsdelf*) ++ ;; ++x86_64-*-netbsd*) ++ tmake_file="${tmake_file} i386/t-crtstuff" ++ ;; ++i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) ++ ;; ++i[34567]86-*-openbsd*) ++ ;; ++x86_64-*-openbsd*) ++ ;; ++i[34567]86-*-linux*) ++ extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" ++ tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" ++ tm_file="${tm_file} i386/elf-lib.h" ++ md_unwind_header=i386/linux-unwind.h ++ ;; ++i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu) ++ extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" ++ tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" ++ tm_file="${tm_file} i386/elf-lib.h" ++ ;; ++x86_64-*-linux*) ++ extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" ++ tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" ++ tm_file="${tm_file} i386/elf-lib.h" ++ md_unwind_header=i386/linux-unwind.h ++ ;; ++x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) ++ extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" ++ tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" ++ tm_file="${tm_file} i386/elf-lib.h" ++ ;; ++i[34567]86-pc-msdosdjgpp*) ++ ;; ++i[34567]86-*-lynxos*) ++ ;; ++i[34567]86-*-nto-qnx*) ++ tmake_file="$tmake_file i386/t-nto t-libgcc-pic" ++ extra_parts=crtbegin.o ++ ;; ++i[34567]86-*-rtems*) ++ tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdf t-softfp" ++ extra_parts="$extra_parts crti.o crtn.o" ++ ;; ++i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) ++ tmake_file="$tmake_file i386/t-crtpc t-crtfm" ++ extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" ++ tm_file="${tm_file} i386/elf-lib.h" ++ md_unwind_header=i386/sol2-unwind.h ++ ;; ++i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae) ++ ;; ++i[34567]86-*-cygwin*) ++ extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o" ++ if test x$enable_vtable_verify = xyes; then ++ extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" ++ fi ++ # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h ++ if test x$ac_cv_sjlj_exceptions = xyes; then ++ tmake_eh_file="i386/t-sjlj-eh" ++ else ++ tmake_eh_file="i386/t-dw2-eh" ++ fi ++ # Shared libgcc DLL install dir depends on cross/native build. ++ if test x${build} = x${host} ; then ++ tmake_dlldir_file="i386/t-dlldir" ++ else ++ tmake_dlldir_file="i386/t-dlldir-x" ++ fi ++ tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin t-crtfm i386/t-chkstk t-dfprules" ++ ;; ++x86_64-*-cygwin*) ++ extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o" ++ if test x$enable_vtable_verify = xyes; then ++ extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" ++ fi ++ # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h ++ if test x$ac_cv_sjlj_exceptions = xyes; then ++ tmake_eh_file="i386/t-sjlj-eh" ++ else ++ tmake_eh_file="i386/t-seh-eh" ++ fi ++ # Shared libgcc DLL install dir depends on cross/native build. ++ if test x${build} = x${host} ; then ++ tmake_dlldir_file="i386/t-dlldir" ++ else ++ tmake_dlldir_file="i386/t-dlldir-x" ++ fi ++ # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that ++ tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin t-crtfm t-dfprules i386/t-chkstk" ++ ;; ++i[34567]86-*-mingw*) ++ extra_parts="crtbegin.o crtend.o crtfastmath.o" ++ if test x$enable_vtable_verify = xyes; then ++ extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" ++ fi ++ case ${target_thread_file} in ++ win32) ++ tmake_file="$tmake_file i386/t-gthr-win32" ++ ;; ++ posix) ++ tmake_file="i386/t-mingw-pthread $tmake_file" |