Add support for CFI directives in fp emulation routines for ARM.
[platform/upstream/gcc.git] / libgcc / config.host
index ffd047f..925db29 100644 (file)
@@ -1,6 +1,5 @@
 # libgcc host-specific configuration file.
-# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
-# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+# Copyright (C) 1997-2015 Free Software Foundation, Inc.
 
 #This file is part of GCC.
 
@@ -92,6 +91,9 @@ alpha*-*-*)
 am33_2.0-*-linux*)
        cpu_type=mn10300
        ;;
+arc*-*-*)
+       cpu_type=arc
+       ;;
 arm*-*-*)
        cpu_type=arm
        ;;
@@ -103,6 +105,9 @@ bfin*-*)
        ;;
 cr16-*-*)
        ;;
+crisv32-*-*)
+       cpu_type=cris
+       ;;
 fido-*-*)
        cpu_type=m68k
        ;;
@@ -135,17 +140,33 @@ microblaze*-*-*)
        cpu_type=microblaze
        ;;
 mips*-*-*)
+       # All MIPS targets provide a full set of FP routines.
        cpu_type=mips
-       tmake_file=mips/t-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*-*-*)
        ;;
-score*-*-*)
-       cpu_type=score
-       ;;
 sparc64*-*-*)
        cpu_type=sparc
        ;;
@@ -162,6 +183,12 @@ s390*-*-*)
 sh[123456789lbe]*-*-*)
        cpu_type=sh
        ;;
+tilegx*-*-*)
+       cpu_type=tilegx
+       ;;
+tilepro*-*-*)
+       cpu_type=tilepro
+       ;;
 v850*-*-*)
        cpu_type=v850
        ;;
@@ -177,6 +204,11 @@ case ${host} in
   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
@@ -199,6 +231,9 @@ case ${host} in
 *-*-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"
@@ -269,7 +304,8 @@ case ${host} in
 esac
 
 case ${host} in
-*-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2*)
+*-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
+  *-*-solaris2*)
   enable_execute_stack=enable-execute-stack-mprotect.c
   ;;
 i[34567]86-*-mingw* | x86_64-*-mingw*)
@@ -283,13 +319,15 @@ esac
 case ${host} in
 aarch64*-*-elf)
        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"
+       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"
+       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"
@@ -316,26 +354,42 @@ alpha*-dec-*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-vxworks t-fdpbit"
+       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"
+       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"
+       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
-       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*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
@@ -343,7 +397,7 @@ arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
        tm_file="$tm_file arm/bpabi-lib.h"
        case ${host} in
        arm*-*-eabi* | arm*-*-rtems*)
-         tmake_file="${tmake_file} arm/t-bpabi"
+         tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
          extra_parts="crtbegin.o crtend.o crti.o crtn.o"
          ;;
        arm*-*-symbianelf*)
@@ -398,13 +452,13 @@ cr16-*-elf)
        extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
         ;;
 crisv32-*-elf)
-       tmake_file="$tmake_file cris/t-cris t-fdpbit"
+       tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
        ;;
 cris-*-elf)
-       tmake_file="$tmake_file cris/t-cris t-fdpbit cris/t-elfmulti"
+       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-fdpbit cris/t-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"
@@ -416,13 +470,13 @@ fr30-*-elf)
        ;;
 frv-*-elf)
        tmake_file="$tmake_file frv/t-frv t-fdpbit"
-       tm_file="$tm_file frv/frv-abi.h"
+       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/frv-abi.h"
+       tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
        ;;
 h8300-*-rtems*)
        tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
@@ -434,23 +488,29 @@ h8300-*-elf*)
        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$enable_sjlj_exceptions = xyes; then
+       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$enable_sjlj_exceptions = xyes; then
+       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"
@@ -461,7 +521,7 @@ hppa[12]*-*-hpux10*)
 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$enable_sjlj_exceptions = xyes; then
+       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"
@@ -474,7 +534,7 @@ hppa*64*-*-hpux11*)
 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$enable_sjlj_exceptions = xyes; then
+       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"
@@ -502,6 +562,14 @@ i[34567]86-*-elf*)
 x86_64-*-elf*)
        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"
        ;;
@@ -522,20 +590,24 @@ 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 i386/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 i386/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 i386/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 i386/t-crtfm i386/t-crtstuff t-dfprules"
+       tm_file="${tm_file} i386/elf-lib.h"
        ;;
 i[34567]86-pc-msdosdjgpp*)
        ;;
@@ -546,20 +618,24 @@ i[34567]86-*-nto-qnx*)
        extra_parts=crtbegin.o
        ;;
 i[34567]86-*-rtems*)
-       tmake_file="$tmake_file i386/t-softfp i386/t-crtstuff"
+       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 i386/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 crtend.o crtfastmath.o"
+       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$enable_sjlj_exceptions = xyes; then
+       if test x$ac_cv_sjlj_exceptions = xyes; then
                tmake_eh_file="i386/t-sjlj-eh"
        else
                tmake_eh_file="i386/t-dw2-eh"
@@ -572,8 +648,31 @@ i[34567]86-*-cygwin*)
        fi
        tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin i386/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 i386/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"
@@ -583,7 +682,7 @@ i[34567]86-*-mingw*)
            ;;
        esac
        # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
-       if test x$enable_sjlj_exceptions = xyes; then
+       if test x$ac_cv_sjlj_exceptions = xyes; then
                tmake_eh_file="i386/t-sjlj-eh"
        else
                tmake_eh_file="i386/t-dw2-eh"
@@ -607,7 +706,7 @@ x86_64-*-mingw*)
            ;;
        esac
        # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
-       if test x$enable_sjlj_exceptions = xyes; then
+       if test x$ac_cv_sjlj_exceptions = xyes; then
                tmake_eh_file="i386/t-sjlj-eh"
        else
                tmake_eh_file="i386/t-seh-eh"
@@ -618,8 +717,11 @@ x86_64-*-mingw*)
        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-mingw32 t-dfprules i386/t-crtfm i386/t-chkstk"
-       extra_parts="$extra_parts crtfastmath.o"
+       tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 t-dfprules i386/t-crtfm i386/t-chkstk"
+       extra_parts="$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
        ;;
 i[34567]86-*-interix[3-9]*)
        tmake_file="$tmake_file i386/t-interix i386/t-chkstk"
@@ -697,9 +799,9 @@ m68k-*-linux*)                      # Motorola m68k's running GNU/Linux
                                # with ELF format using glibc 2
                                # aka the GNU/Linux C library 6.
        tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
-       # If not configured with --enable-sjlj-exceptions, bump the
+       # If not configured with setjmp/longjmp exceptions, bump the
        # libgcc version number.
-       if test x$enable_sjlj_exceptions != xyes; then
+       if test x$ac_cv_sjlj_exceptions != xyes; then
            tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
        fi
        md_unwind_header=m68k/linux-unwind.h
@@ -713,21 +815,31 @@ mcore-*-elf)
        extra_parts="$extra_parts crti.o crtn.o"
        ;;
 microblaze*-linux*)
-        tmake_file="$tmake_file t-slibgcc-nolc-override microblaze/t-microblaze t-fdpbit"
+       tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
        ;;
-microblaze*-*-*)
-        tmake_file="microblaze/t-microblaze t-fdpbit"
-       extra_parts="crtbegin.o crtend.o crti.o crtn.o"
+microblaze*-*-elf)
+       tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
+       extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
+       ;;
+microblaze*-*-rtems*)
+       tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
+       extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
        ;;
 mips*-*-netbsd*)                       # NetBSD/mips, either endian.
        ;;
 mips*-*-linux*)                                # Linux MIPS, either endian.
        extra_parts="$extra_parts crtfastmath.o"
-       tmake_file="${tmake_file} t-crtfm mips/t-mips16"
+       tmake_file="${tmake_file} t-crtfm"
+       case ${host} in
+         mips64r5900* | mipsr5900*)
+           # The MIPS16 support code uses floating point
+           # instructions that are not supported on r5900.
+           ;;
+         *)
+           tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
+           ;;
+       esac
        md_unwind_header=mips/linux-unwind.h
-       if test "${ac_cv_sizeof_long_double}" = 16; then
-               tmake_file="${tmake_file} mips/t-tpbit"
-       fi
        ;;
 mips*-sde-elf*)
        tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
@@ -744,8 +856,10 @@ mips*-sde-elf*)
        ;;
 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
+mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
-mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
+mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
+mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
        tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
        extra_parts="$extra_parts crti.o crtn.o"
        ;;
@@ -761,10 +875,18 @@ mips-*-elf* | mipsel-*-elf*)
        tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
        extra_parts="$extra_parts crti.o crtn.o"
        ;;
+mipsr5900-*-elf* | mipsr5900el-*-elf*)
+       tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
+       extra_parts="$extra_parts crti.o crtn.o"
+       ;;
 mips64-*-elf* | mips64el-*-elf*)
        tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
        extra_parts="$extra_parts crti.o crtn.o"
        ;;
+mips64r5900-*-elf* | mips64r5900el-*-elf*)
+       tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
+       extra_parts="$extra_parts crti.o crtn.o"
+       ;;
 mips64vr-*-elf* | mips64vrel-*-elf*)
        tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
        extra_parts="$extra_parts crti.o crtn.o"
@@ -789,21 +911,52 @@ mmix-knuth-mmixware)
 mn10300-*-*)
        tmake_file=t-fdpbit
        ;;
-moxie-*-elf | moxie-*-uclinux*)
+moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux*)
        tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
-       extra_parts="$extra_parts crti.o crtn.o"
+       extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
        ;;
 moxie-*-rtems*)
        tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
        # Don't use default.
        extra_parts=
        ;;
+msp430*-*-elf)
+       tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
+       ;;
+nds32*-elf*)
+       # Basic makefile fragment and extra_parts for crt stuff.
+       # We also append c-isr library implementation.
+       tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
+       extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
+       # Append library definition makefile fragment according to --with-nds32-lib=X setting.
+       case "${with_nds32_lib}" in
+       "" | newlib)
+               # Append library definition makefile fragment t-nds32-newlib.
+               # Append 'soft-fp' software floating point make rule fragment provided by gcc.
+               tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
+               ;;
+       mculib)
+               # Append library definition makefile fragment t-nds32-mculib.
+               # The software floating point library is included in mculib.
+               tmake_file="${tmake_file} nds32/t-nds32-mculib"
+               ;;
+       *)
+               echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
+               exit 1
+               ;;
+       esac
+       ;;
+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
+       ;;
+nios2-*-*)
+       tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
+       extra_parts="$extra_parts crti.o crtn.o"
+       ;;
 pdp11-*-*)
        tmake_file="pdp11/t-pdp11 t-fdpbit"
        ;;
-picochip-*-*)
-       tmake_file="picochip/t-picochip t-fpbit"
-        ;;
 powerpc-*-darwin*)
        case ${host} in
        *-*-darwin9* | *-*-darwin[12][0-9]*)
@@ -835,7 +988,7 @@ powerpc-*-netbsd*)
        tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
        ;;
 powerpc-*-eabispe*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic"
+       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
        extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
        ;;
 powerpc-*-eabisimaltivec*)
@@ -847,7 +1000,7 @@ powerpc-*-eabisim*)
        extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
        ;;
 powerpc-*-elf*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
+       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
        extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
        ;;
 powerpc-*-eabialtivec*)
@@ -866,13 +1019,33 @@ powerpc-*-rtems*)
        tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
        extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
        ;;
-powerpc-*-linux* | powerpc64-*-linux*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-linux t-softfp-sfdf t-softfp-excl t-dfprules rs6000/t-ppc64-fp t-softfp t-slibgcc-libgcc"
+powerpc*-*-linux*)
+       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-linux t-dfprules rs6000/t-ppc64-fp t-slibgcc-libgcc"
+       case $ppc_fp_type in
+       64)
+               ;;
+       hard)
+               tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
+               ;;
+       soft)
+               tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
+               ;;
+       e500v1)
+               tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
+               ;;
+       e500v2)
+               tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
+               ;;
+       *)
+               echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
+               exit 1
+               ;;
+       esac
        extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
        md_unwind_header=rs6000/linux-unwind.h
        ;;
-powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
-       tmake_file="$tmake_file rs6000/t-ppccomm t-fdpbit"
+powerpc-wrs-vxworks|powerpc-wrs-vxworksae|powerpc-wrs-vxworksmils)
+       tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
        ;;
 powerpc-*-lynxos*)
        tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
@@ -899,7 +1072,8 @@ rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
        ;;
 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
        md_unwind_header=rs6000/aix-unwind.h
-       tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
+       tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
+       extra_parts="crtcxa.o crtcxa_s.o"
        ;;
 rl78-*-elf)
        tmake_file="$tm_file t-fdpbit rl78/t-rl78"
@@ -914,6 +1088,9 @@ s390-*-linux*)
        ;;
 s390x-*-linux*)
        tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux"
+       if test "${host_address}" = 32; then
+          tmake_file="${tmake_file} s390/32/t-floattodi"
+       fi
        md_unwind_header=s390/linux-unwind.h
        ;;
 s390x-ibm-tpf*)
@@ -921,10 +1098,6 @@ s390x-ibm-tpf*)
        extra_parts="crtbeginS.o crtendS.o"
        md_unwind_header=s390/tpf-unwind.h
        ;;
-score-*-elf)
-       tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp"
-       extra_parts="$extra_parts crti.o crtn.o"
-        ;;
 sh-*-elf* | sh[12346l]*-*-elf*)
        tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
        extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
@@ -1072,16 +1245,16 @@ tic6x-*-elf)
        extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
        unwind_header=config/c6x/unwind-c6x.h
        ;;
-tilegx-*-linux*)
+tilegx*-*-linux*)
        tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf tilegx/t-softfp t-softfp tilegx/t-tilegx"
        md_unwind_header=tilepro/linux-unwind.h
         ;;
-tilepro-*-linux*)
+tilepro*-*-linux*)
        tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro"
        md_unwind_header=tilepro/linux-unwind.h
         ;;
 v850*-*-*)
-       tmake_file="v850/t-v850 t-fdpbit"
+       tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
        ;;
 vax-*-linux*)
        tmake_file="$tmake_file vax/t-linux"
@@ -1090,6 +1263,10 @@ vax-*-netbsdelf*)
        ;;
 vax-*-openbsd*)
        ;;
+visium-*-elf*)
+        extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
+        tmake_file="visium/t-visium t-fdpbit"
+        ;;
 xstormy16-*-elf)
        tmake_file="stormy16/t-stormy16 t-fdpbit"
        ;;
@@ -1098,7 +1275,7 @@ xtensa*-*-elf*)
        extra_parts="$extra_parts crti.o crtn.o"
        ;;
 xtensa*-*-linux*)
-       tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux"
+       tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
        md_unwind_header=xtensa/linux-unwind.h
        ;;
 am33_2.0-*-linux*)
@@ -1113,6 +1290,10 @@ mep*-*-*)
        tmake_file="mep/t-mep t-fdpbit"
        extra_parts="crtbegin.o crtend.o"
        ;;
+nvptx-*)
+       tmake_file="$tmake_file nvptx/t-nvptx"
+       extra_parts="crt0.o"
+       ;;
 *)
        echo "*** Configuration ${host} not supported" 1>&2
        exit 1
@@ -1130,7 +1311,7 @@ i[34567]86-*-linux* | x86_64-*-linux* | \
   i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
   i[34567]86-*-knetbsd*-gnu | \
   i[34567]86-*-gnu*)
-       tmake_file="${tmake_file} t-tls i386/t-linux"
+       tmake_file="${tmake_file} t-tls i386/t-linux t-slibgcc-libgcc"
        if test "$libgcc_cv_cfi" = "yes"; then
                tmake_file="${tmake_file} t-stack i386/t-stack-i386"
        fi
@@ -1143,7 +1324,9 @@ i[34567]86-*-darwin* | x86_64-*-darwin* | \
   i[34567]86-*-linux* | x86_64-*-linux* | \
   i[34567]86-*-gnu* | \
   i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
-  i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \
+  i[34567]86-*-cygwin* | x86_64-*-cygwin* | \
+  i[34567]86-*-mingw* | x86_64-*-mingw* | \
+  i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \
   i[34567]86-*-freebsd* | x86_64-*-freebsd* | \
   i[34567]86-*-openbsd* | x86_64-*-openbsd*)
        tmake_file="${tmake_file} t-softfp-tf"