* gfortran.dg/ieee/ieee_1.F90: Revert rename.
[gcc.git] / libgcc / config.host
index 6390273bfeffc5f6b56feac2a0a3f4da7d29b15b..5f13a9f18bf6303bebb728d6b112b4d0450cee6c 100644 (file)
@@ -1,5 +1,5 @@
 # libgcc host-specific configuration file.
-# Copyright (C) 1997-2013 Free Software Foundation, Inc.
+# Copyright (C) 1997-2014 Free Software Foundation, Inc.
 
 #This file is part of GCC.
 
@@ -140,8 +140,27 @@ 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
@@ -167,6 +186,12 @@ s390*-*-*)
 sh[123456789lbe]*-*-*)
        cpu_type=sh
        ;;
+tilegx*-*-*)
+       cpu_type=tilegx
+       ;;
+tilepro*-*-*)
+       cpu_type=tilepro
+       ;;
 v850*-*-*)
        cpu_type=v850
        ;;
@@ -182,6 +207,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
@@ -203,7 +233,10 @@ 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 vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
+  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"
@@ -274,7 +307,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*)
@@ -330,7 +364,7 @@ arc*-*-linux-uclibc*)
        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-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
+       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*-*-netbsdelf*)
@@ -345,10 +379,10 @@ arm*-*-linux*)                    # ARM GNU/Linux with ELF
        ;;
 arm*-*-uclinux*)               # ARM ucLinux
        tmake_file="${tmake_file} t-fixedpoint-gnu-prefix"
+       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*)
@@ -517,6 +551,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"
        ;;
@@ -561,7 +603,7 @@ 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]*)
@@ -751,6 +793,10 @@ 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.
@@ -766,9 +812,6 @@ mips*-*-linux*)                             # Linux MIPS, either endian.
            ;;
        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"
@@ -850,6 +893,38 @@ moxie-*-rtems*)
 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"
+       extra_parts="$extra_parts crti.o crtn.o"
+       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"
        ;;
@@ -967,6 +1042,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*)
@@ -1125,16 +1203,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"
@@ -1151,7 +1229,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*)
@@ -1198,6 +1276,7 @@ i[34567]86-*-darwin* | x86_64-*-darwin* | \
   i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
   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"