OSDN Git Service

* include/profile/iterator_tracker.h (operator++): Fix returning
[pf3gnuchains/gcc-fork.git] / libgcc / config.host
index ef591be..bbf21a9 100644 (file)
@@ -1,6 +1,6 @@
 # libgcc host-specific configuration file.
 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
-# 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
 
 #This file is part of GCC.
 
@@ -98,6 +98,8 @@ avr-*-*)
 bfin*-*)
        cpu_type=bfin
        ;;
+cr16-*-*)
+       ;;
 fido-*-*)
        cpu_type=m68k
        ;;
@@ -170,7 +172,7 @@ 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
+  extra_parts="crt3.o crttms.o crttme.o"
   ;;
 *-*-freebsd*)
   # This is the generic ELF configuration of FreeBSD.  Later
@@ -211,7 +213,7 @@ case ${host} in
   esac
   ;;
 *-*-openbsd*)
-  tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic"
+  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"
@@ -389,6 +391,9 @@ avr-*-rtems*)
 avr-*-*)
        # Make HImode functions for AVR
        tmake_file="${cpu_type}/t-avr t-fpbit"
+       if test x${with_avrlibc} = xyes; then
+           tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
+       fi
        tm_file="$tm_file avr/avr-lib.h"
        ;;
 bfin*-elf*)
@@ -415,6 +420,10 @@ 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-fdpbit"
        ;;
@@ -600,6 +609,7 @@ i[34567]86-*-mingw*)
                tmake_eh_file="i386/t-sjlj-eh"
        else
                tmake_eh_file="i386/t-dw2-eh"
+               md_unwind_header=i386/w32-unwind.h
        fi
        # Shared libgcc DLL install dir depends on cross/native build.
        if test x${build} = x${host} ; then
@@ -608,7 +618,6 @@ i[34567]86-*-mingw*)
                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-mingw32 i386/t-crtfm i386/t-chkstk t-dfprules"
-       md_unwind_header=i386/w32-unwind.h
        ;;
 x86_64-*-mingw*)
        case ${target_thread_file} in
@@ -634,28 +643,28 @@ x86_64-*-mingw*)
        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"
        ;;
-i[34567]86-*-interix3*)
+i[34567]86-*-interix[3-9]*)
        tmake_file="$tmake_file i386/t-interix i386/t-chkstk"
        ;;
 ia64*-*-elf*)
        extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
-       tmake_file="ia64/t-ia64 ia64/t-eh-ia64 t-crtfm"
+       tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
        ;;
 ia64*-*-freebsd*)
        extra_parts="$extra_parts crtfastmath.o"
-       tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 t-crtfm"
+       tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
        ;;
 ia64*-*-linux*)
        # Don't use crtbeginT.o from *-*-linux* default.
        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
-       tmake_file="$tmake_file ia64/t-ia64 t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat ia64/t-eh-ia64 t-libunwind ia64/t-linux"
+       tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat ia64/t-eh-ia64 t-libunwind ia64/t-linux"
        if test x$with_system_libunwind != xyes ; then
                tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
        fi
        md_unwind_header=ia64/linux-unwind.h
        ;;
 ia64*-*-hpux*)
-       tmake_file="ia64/t-ia64 ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
+       tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
        ;;
 ia64-hp-*vms*)
        tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms"
@@ -663,7 +672,7 @@ ia64-hp-*vms*)
        md_unwind_header=ia64/vms-unwind.h
        ;;
 iq2000*-*-elf*)
-       tmake_file=t-fdpbit
+       tmake_file="iq2000/t-iq2000 t-fdpbit"
        # Don't use default.
        extra_parts=
         ;;
@@ -684,6 +693,7 @@ m32r-*-elf*)
        ;;
 m32r-*-rtems*)
        tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
+       extra_parts="$extra_parts crtinit.o crtfini.o"
        ;;
 m32rle-*-elf*)
        tmake_file=t-fdpbit
@@ -701,14 +711,14 @@ m68k*-*-netbsdelf*)
        ;;
 m68k*-*-openbsd*)
        ;;
-m68k-*-uclinux*)               # Motorola m68k/ColdFire running uClinux with uClibc
-       tmake_file="$tmake_file m68k/t-floatlib"
+m68k-*-uclinux*)       # Motorola m68k/ColdFire running uClinux with uClibc
+       tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
        md_unwind_header=m68k/linux-unwind.h
        ;;
 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"
+       tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
        # If not configured with --enable-sjlj-exceptions, bump the
        # libgcc version number.
        if test x$enable_sjlj_exceptions != xyes; then
@@ -738,20 +748,18 @@ mips-sgi-irix6.5*)
        ;;
 mips*-*-netbsd*)                       # NetBSD/mips, either endian.
        ;;
-mips64*-*-linux* | mipsisa64*-*-linux*)
-       extra_parts="$extra_parts crtfastmath.o"
-       tmake_file="${tmake_file} t-crtfm mips/t-mips16 mips/t-tpbit"
-       md_unwind_header=mips/linux-unwind.h
-       ;;
 mips*-*-linux*)                                # Linux MIPS, either endian.
        extra_parts="$extra_parts crtfastmath.o"
        tmake_file="${tmake_file} t-crtfm mips/t-mips16"
        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*-*-openbsd*)
        ;;
 mips*-sde-elf*)
-       tmake_file="mips/t-crtstuff mips/t-mips16"
+       tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
        case "${with_newlib}" in
          yes)
            # newlib / libgloss.
@@ -771,7 +779,7 @@ mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
        extra_parts="$extra_parts crti.o crtn.o"
        ;;
 mipsisa64sr71k-*-elf*)
-       tmake_file="mips/t-elf mips/t-crtstuff t-fdpbit"
+       tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
        extra_parts="$extra_parts crti.o crtn.o"
         ;;
 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
@@ -842,79 +850,88 @@ powerpc64-*-darwin*)
        tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
        extra_parts="$extra_parts crt2.o"
        ;;
-powerpc-*-freebsd*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp t-slibgcc-libgcc"
+powerpc*-*-freebsd*)
+       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
        extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
+       case ${host} in
+       powerpc64*)
+         tmake_file="${tmake_file} rs6000/t-freebsd64"
+         md_unwind_header=rs6000/freebsd-unwind.h
+         ;;
+       esac
        ;;
 powerpc-*-netbsd*)
-       tmake_file="$tmake_file rs6000/t-crtstuff"
+       tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
        ;;
 powerpc-*-eabispe*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic"
+       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic"
        extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
        ;;
 powerpc-*-eabisimaltivec*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
+       tmake_file="${tmake_file} rs6000/t-ppccomm 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-*-eabisim*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
+       tmake_file="${tmake_file} rs6000/t-ppccomm 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-*-elf*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
+       tmake_file="${tmake_file} rs6000/t-ppccomm 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*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
+       tmake_file="${tmake_file} rs6000/t-ppccomm 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-xilinx-eabi*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
+       tmake_file="${tmake_file} rs6000/t-ppccomm 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-*-eabi*)
-       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 crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
        ;;
 powerpc-*-rtems*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl 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-*-linux* | powerpc64-*-linux*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff rs6000/t-linux t-softfp-sfdf t-softfp-excl t-dfprules rs6000/t-ppc64-fp t-softfp t-slibgcc-libgcc"
+       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"
        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="rs6000/t-ppccomm-ldbl t-fdpbit"
+       tmake_file="$tmake_file rs6000/t-ppccomm t-fdpbit"
        ;;
 powerpc-*-lynxos*)
-       tmake_file="$tmake_file t-fdpbit"
+       tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
        ;;
 powerpcle-*-elf*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
+       tmake_file="${tmake_file} rs6000/t-ppccomm 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"
        ;;
 powerpcle-*-eabisim*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
+       tmake_file="${tmake_file} rs6000/t-ppccomm 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"
        ;;
 powerpcle-*-eabi*)
-       tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ppccomm-ldbl rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
+       tmake_file="${tmake_file} rs6000/t-ppccomm 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"
        ;;
 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
        md_unwind_header=rs6000/aix-unwind.h
-       tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-ibm-ldouble rs6000/t-slibgcc-aix"
+       tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
        ;;
 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
        md_unwind_header=rs6000/aix-unwind.h
-       tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-ibm-ldouble rs6000/t-slibgcc-aix"
+       tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
        ;;
 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-ibm-ldouble rs6000/t-slibgcc-aix"
+       tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
+       ;;
+rl78-*-elf)
+       tmake_file="$tm_file t-fdpbit rl78/t-rl78"
        ;;
 rx-*-elf)
        tmake_file="rx/t-rx t-fdpbit"
@@ -979,7 +996,10 @@ sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
 sh-*-rtems*)
        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 \
-               $sh_ic_extra_parts $sh_opt_extra_parts"
+               libic_invalidate_array_4-100.a \
+               libic_invalidate_array_4-200.a \
+               libic_invalidate_array_4a.a \
+               libgcc-Os-4-200.a libgcc-4-300.a"
        ;;
 sh-wrs-vxworks)
        tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
@@ -1038,7 +1058,7 @@ sparc64-*-elf*)
        extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
        ;;
 sparc64-*-rtems*)
-       tmake_file="$tmake_file sparc/t-elf t-crtfm"
+       tmake_file="$tmake_file t-crtfm"
        extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
        ;;
 sparc-wrs-vxworks)
@@ -1068,9 +1088,11 @@ spu-*-elf*)
                libgcc_cache64k.a libgcc_cache128k.a"
        ;;
 tic6x-*-uclinux)
-       tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp c6x/t-elf  c6x/t-uclinux t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
+       tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
+               c6x/t-elf  c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
+               t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
        tm_file="$tm_file c6x/c6x-abi.h"
-       extra_parts="crtbeginS.o crtendS.o crti.o crtn.o"
+       extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
        unwind_header=config/c6x/unwind-c6x.h
        ;;
 tic6x-*-elf)
@@ -1079,6 +1101,14 @@ tic6x-*-elf)
        extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
        unwind_header=config/c6x/unwind-c6x.h
        ;;
+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*)
+       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"
        ;;