OSDN Git Service

Index: gcc/ChangeLog
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
index 24364e8..085222e 100644 (file)
@@ -98,6 +98,9 @@
 #  extra_headers       List of used header files from the directory
 #                      config/${cpu_type}.
 #
+#  use_gcc_tgmath      If set, add tgmath.h to the list of used header
+#                      files.
+#
 #  extra_passes                List of extra executables compiled for this target
 #                      machine, used for compiling from source to object.
 #
 out_file=
 tmake_file=
 extra_headers=
+use_gcc_tgmath=yes
 extra_passes=
 extra_parts=
 extra_programs=
@@ -493,6 +497,7 @@ case ${target} in
   esac
   # Assume that glibc or uClibc are being used and so __cxa_atexit is provided.
   default_use_cxa_atexit=yes
+  use_gcc_tgmath=no
   ;;
 *-*-gnu*)
   # On the Hurd, the setup is just about the same on
@@ -516,6 +521,7 @@ case ${target} in
   esac
   # Assume that glibc is being used and so __cxa_atexit is provided.
   default_use_cxa_atexit=yes
+  use_gcc_tgmath=no
   ;;
 *-*-netbsd*)
   tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic"
@@ -700,7 +706,7 @@ arm-semi-aof | armel-semi-aof)
        tmake_file="arm/t-arm arm/t-semi"
        ;;
 arm-wrs-vxworks)
-       tm_file="elfos.h svr4.h arm/elf.h arm/aout.h ${tm_file} vx-common.h vxworks.h arm/vxworks.h"
+       tm_file="elfos.h arm/elf.h arm/aout.h ${tm_file} vx-common.h vxworks.h arm/vxworks.h"
        tmake_file="${tmake_file} arm/t-arm arm/t-vxworks"
        ;;
 arm*-*-freebsd*|strongarm*-*-freebsd*)
@@ -1054,11 +1060,11 @@ i[34567]86-*-darwin*)
        # then this file using that to set --with-cpu=i386 which has no -m64
        # support.
        with_cpu=${with_cpu:-generic}
-       tmake_file="${tmake_file} i386/t-fprules-softfp64 soft-fp/t-softfp"
+       tmake_file="${tmake_file} i386/t-fprules-softfp64 soft-fp/t-softfp i386/t-crtpc i386/t-crtfm"
        ;;
 x86_64-*-darwin*)
        with_cpu=${with_cpu:-generic}
-       tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin i386/t-fprules-softfp64 soft-fp/t-softfp"
+       tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin i386/t-fprules-softfp64 soft-fp/t-softfp i386/t-crtpc i386/t-crtfm"
        tm_file="${tm_file} ${cpu_type}/darwin64.h"
        ;;
 i[34567]86-*-elf*)
@@ -1673,24 +1679,35 @@ mips*-*-openbsd*)
        *)  tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN";;
         esac
        ;;
-mipsisa32-*-elf* | mipsisa32el-*-elf*)
-       tm_file="elfos.h ${tm_file} mips/elf.h"
-       tmake_file=mips/t-isa3264
-       tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
-       use_fixproto=yes
-       ;;
-mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
-       tm_file="elfos.h ${tm_file} mips/elf.h"
-       tmake_file=mips/t-isa3264
-       tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
-       use_fixproto=yes
-       ;;
+mipsisa32-*-elf* | mipsisa32el-*-elf* | \
+mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
 mipsisa64-*-elf* | mipsisa64el-*-elf*)
        tm_file="elfos.h ${tm_file} mips/elf.h"
        tmake_file=mips/t-isa3264
-       target_cpu_default="MASK_64BIT|MASK_FLOAT64"
-       tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
-       use_fixproto=yes
+       case ${target} in
+         mipsisa32r2*)
+           tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33"
+           ;;
+         mipsisa32*)
+           tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
+           ;;
+         mipsisa64*)
+           tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64"
+           ;;
+       esac
+       case ${target} in
+         mipsisa32*-*-elfoabi*)
+           tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_32"
+           tm_file="${tm_file} mips/elfoabi.h"
+           ;;
+         mipsisa64*-*-elfoabi*)
+           tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_O64"
+           tm_file="${tm_file} mips/elfoabi.h"
+           ;;
+         *-*-elf*)
+           tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI"
+           ;;
+       esac
        ;;
 mipsisa64sr71k-*-elf*)
         tm_file="elfos.h ${tm_file} mips/elf.h"
@@ -2824,7 +2841,7 @@ case "${target}" in
 
                case "$with_fpu" in
                "" \
-               | fpa | fpe2 | fpe3 | maverick | vfp )
+               | fpa | fpe2 | fpe3 | maverick | vfp | vfp3 )
                        # OK
                        ;;
                *)