OSDN Git Service

* fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
index 8fc8a99..1899bd9 100644 (file)
@@ -1367,64 +1367,64 @@ mips*-*-openbsd*)
         esac
        ;;
 mipsisa32-*-elf* | mipsisa32el-*-elf*)
-       tm_file="${tm_file} mips/elf.h"
+       tm_file="elfos.h ${tm_file} mips/elf.h"
        tmake_file=mips/t-isa3264
        tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
        use_fixproto=yes
        ;;
 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
-       tm_file="${tm_file} mips/elf.h"
+       tm_file="elfos.h ${tm_file} mips/elf.h"
        tmake_file=mips/t-isa3264
        tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
        use_fixproto=yes
        ;;
 mipsisa64-*-elf* | mipsisa64el-*-elf*)
-       tm_file="${tm_file} mips/elf.h"
+       tm_file="elfos.h ${tm_file} mips/elf.h"
        tmake_file=mips/t-isa3264
        target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
        tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
        use_fixproto=yes
        ;;
 mipsisa64sr71k-*-elf*)
-        tm_file="${tm_file} mips/elf.h"
+        tm_file="elfos.h ${tm_file} mips/elf.h"
         tmake_file=mips/t-sr71k
        target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
        tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
        use_fixproto=yes
         ;;
 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
-       tm_file="${tm_file} mips/elf.h"
+       tm_file="elfos.h ${tm_file} mips/elf.h"
        tmake_file=mips/t-elf
        target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
        tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
        use_fixproto=yes
        ;;
 mips-*-elf* | mipsel-*-elf*)
-       tm_file="${tm_file} mips/elf.h"
+       tm_file="elfos.h ${tm_file} mips/elf.h"
        tmake_file=mips/t-elf
        use_fixproto=yes
        ;;
 mips64-*-elf* | mips64el-*-elf*)
-       tm_file="${tm_file} mips/elf64.h"
+       tm_file="elfos.h ${tm_file} mips/elf.h"
        tmake_file=mips/t-elf
        target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
        tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
        use_fixproto=yes
        ;;
 mips64vr-*-elf* | mips64vrel-*-elf*)
-        tm_file="mips/vr.h ${tm_file} mips/elf64.h"
+        tm_file="mips/vr.h elfos.h ${tm_file} mips/elf.h"
         tmake_file=mips/t-vr
        use_fixproto=yes
         ;;
 mips64orion-*-elf* | mips64orionel-*-elf*)
-       tm_file="${tm_file} mips/elforion.h mips/elf64.h"
+       tm_file="elfos.h ${tm_file} mips/elforion.h mips/elf.h"
        tmake_file=mips/t-elf
        target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
        tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
        use_fixproto=yes
        ;;
 mips*-*-rtems*)
-       tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
+       tm_file="elfos.h ${tm_file} mips/elf.h mips/rtems.h rtems.h"
        tmake_file="mips/t-elf t-rtems mips/t-rtems"
        ;;
 mips-wrs-vxworks)
@@ -1442,7 +1442,7 @@ mips-wrs-windiss) # Instruction-level simulator for VxWorks.
        thread_file=
        ;;
 mipstx39-*-elf* | mipstx39el-*-elf*)
-       tm_file="${tm_file} mips/r3900.h mips/elf.h"
+       tm_file="elfos.h ${tm_file} mips/r3900.h mips/elf.h"
        tmake_file=mips/t-r3900
        use_fixproto=yes
        ;;
@@ -1746,12 +1746,21 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
        case `echo ${target} | sed 's/e[lb]-/-/'` in
        sh64*-*-netbsd*)        sh_cpu_target=sh5-64media ;;
        sh64* | sh5*-*-netbsd*) sh_cpu_target=sh5-32media ;;
+       sh4a_single_only*)      sh_cpu_target=sh4a-single-only ;;
+       sh4a_single*)           sh_cpu_target=sh4a-single ;;
+       sh4a_nofpu*)            sh_cpu_target=sh4a-nofpu ;;
+       sh4al)                  sh_cpu_target=sh4al ;;
+       sh4a*)                  sh_cpu_target=sh4a ;;
        sh4_single_only*)       sh_cpu_target=sh4-single-only ;;
        sh4_single*)            sh_cpu_target=sh4-single ;;
        sh4_nofpu*)             sh_cpu_target=sh4-nofpu ;;
        sh4* | sh-superh-*)     sh_cpu_target=sh4 ;;
        sh3e*)                  sh_cpu_target=sh3e ;;
        sh*-*-netbsd* | sh3*)   sh_cpu_target=sh3 ;;
+       sh2a_single_only*)      sh_cpu_target=sh2a-single-only ;;
+       sh2a_single*)           sh_cpu_target=sh2a-single ;;
+       sh2a_nofpu*)            sh_cpu_target=sh2a-nofpu ;;
+       sh2a*)                  sh_cpu_target=sh2a ;;
        sh2e*)                  sh_cpu_target=sh2e ;;
        sh2*)                   sh_cpu_target=sh2 ;;
        *)                      sh_cpu_target=sh1 ;;
@@ -1760,6 +1769,8 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
        case $sh_cpu_default in
        sh5-64media-nofpu | sh5-64media | \
          sh5-32media-nofpu | sh5-32media | sh5-compact-nofpu | sh5-compact | \
+         sh2a-single-only | sh2a-single | sh2a-nofpu | sh2a | \
+         sh4a-single-only | sh4a-single | sh4a-nofpu | sh4a | sh4al | \
          sh4-single-only | sh4-single | sh4-nofpu | sh4 | \
          sh3e | sh3 | sh2e | sh2 | sh1) ;;
        "")     sh_cpu_default=${sh_cpu_target} ;;
@@ -1773,7 +1784,7 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
                sh-superh-*)    sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;;
                sh*-*-linux*)   sh_multilibs=m1,m3e,m4 ;;
                sh*-*-netbsd*)  sh_multilibs=m3,m3e,m4 ;;
-               *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only ;;
+               *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;;
                esac
        fi
        target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr a-z- A-Z_`
@@ -1783,6 +1794,8 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
                case ${sh_multilib} in
                sh1 | sh2 | sh2e | sh3 | sh3e | \
                sh4 | sh4-single | sh4-single-only | sh4-nofpu | \
+               sh4a | sh4a-single | sh4a-single-only | sh4a-nofpu | sh4al | \
+               sh2a | sh2a-single | sh2a-single-only | sh2a-nofpu | \
                sh5-64media | sh5-64media-nofpu | \
                sh5-32media | sh5-32media-nofpu | \
                sh5-compact | sh5-compact-nofpu)
@@ -1796,7 +1809,7 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
                esac
        done
        if test x${enable_incomplete_targets} == xyes ; then
-               tm_defines="$tm_defines SUPPORT_SH1 SUPPORT_SH2E SUPPORT_SH4 SUPPORT_SH4_SINGLE SUPPORT_SH5_32MEDIA SUPPORT_SH5_32MEDIA_NOFPU SUPPORT_SH5_64MEDIA SUPPORT_SH5_64MEDIA_NOFPU"
+               tm_defines="$tm_defines SUPPORT_SH1 SUPPORT_SH2E SUPPORT_SH4 SUPPORT_SH4_SINGLE SUPPORT_SH2A SUPPORT_SH2A_SINGLE SUPPORT_SH5_32MEDIA SUPPORT_SH5_32MEDIA_NOFPU SUPPORT_SH5_64MEDIA SUPPORT_SH5_64MEDIA_NOFPU"
        fi
        use_fixproto=yes
        ;;
@@ -2476,9 +2489,15 @@ fi
                "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu )
                        # OK
                        ;;
+               m2a | m2a-single | m2a-single-only | m2a-nofpu)
+                       ;;
+               m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al)
+                       ;;
                *)
                        echo "Unknown CPU used in --with-cpu=$with_cpu, known values:"  1>&2
                        echo "m1 m2 m2e m3 m3e m4 m4-single m4-single-only m4-nofpu" 1>&2
+                       echo "m4a m4a-single m4a-single-only m4a-nofpu m4al" 1>&2
+                       echo "m2a m2a-single m2a-single-only m2a-nofpu" 1>&2
                        exit 1
                        ;;
                esac
@@ -2614,7 +2633,7 @@ fi
                                ;;
                esac
                case $tm_file in
-                       *mips/elf.h* | *mips/elf64.h*)
+                       *mips/elf.h*)
                                tm_defines="OBJECT_FORMAT_ELF $tm_defines"
                                ;;
                esac