OSDN Git Service

gcc:
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
index 78e20e6..3a834d4 100644 (file)
@@ -292,7 +292,7 @@ xscale-*-*)
        ;;
 i[34567]86-*-*)
        cpu_type=i386
-       extra_headers="mmintrin.h xmmintrin.h emmintrin.h"
+       extra_headers="mmintrin.h xmmintrin.h emmintrin.h pmmintrin.h"
        ;;
 x86_64-*-*)
        cpu_type=i386
@@ -1391,21 +1391,23 @@ mcore-*-pe*)
        tmake_file=mcore/t-mcore-pe
        ;;
 mips-sgi-irix6*o32)            # SGI System V.4., IRIX 6, O32 ABI
+       tm_file="${tm_file} mips/iris5.h"
        if test x$gas = xyes
        then
-               tm_file="mips/iris5.h mips/iris5gas.h mips/iris6-o32-gas.h"
+               tm_file="${tm_file} mips/iris5gas.h mips/iris6-o32-gas.h"
                if test x$stabs = xyes
                then
                        tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
                fi
                tmake_file=mips/t-iris5-gas
        else
-               tm_file="mips/iris5.h mips/iris6-o32-as.h"
+               tm_file="${tm_file} mips/iris6-o32-as.h"
                tmake_file=mips/t-iris5-as
        fi
        tm_file="${tm_file} mips/iris6-o32.h"
        tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
        xm_file=mips/xm-iris5.h
+       target_cpu_default="MASK_ABICALLS"
        # mips-tfile doesn't work yet
        # See comment in mips/iris5.h file.
        use_collect2=yes
@@ -1414,21 +1416,24 @@ mips-sgi-irix6*o32)             # SGI System V.4., IRIX 6, O32 ABI
 #      fi
        ;;
 mips-sgi-irix6*)               # SGI System V.4., IRIX 6
+       tm_file="${tm_file} mips/iris5.h mips/iris6.h"
        if test "x$gnu_ld" = xyes
        then
-               tm_file="mips/iris6.h mips/iris6gld.h"
-       else
-               tm_file=mips/iris6.h
+               tm_file="${tm_file} mips/iris6gld.h"
        fi
        tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
+       target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
+       tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
 #      if test x$enable_threads = xyes; then
 #              thread_file='irix'
 #      fi
        ;;
 mips-sgi-irix5cross64)         # Irix5 host, Irix 6 target, cross64
-       tm_file="mips/iris6.h mips/cross64.h"
+       tm_file="${tm_file} mips/iris5.h mips/iris6.h mips/cross64.h"
        xm_file=mips/xm-iris5.h
        tmake_file="mips/t-iris mips/t-cross64"
+       target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
+       tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
        # See comment in mips/iris[56].h files.
        use_collect2=yes
 #      if test x$enable_threads = xyes; then
@@ -1436,20 +1441,21 @@ mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
 #      fi
        ;;
 mips-sgi-irix5*)               # SGI System V.4., IRIX 5
+       tm_file="${tm_file} mips/iris5.h"
        if test x$gas = xyes
        then
-               tm_file="mips/iris5.h mips/iris5gas.h"
+               tm_file="${tm_file} mips/iris5gas.h"
                if test x$stabs = xyes
                then
                        tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
                fi
                tmake_file=mips/t-iris5-gas
        else
-               tm_file=mips/iris5.h
                tmake_file=mips/t-iris5-as
        fi
        tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
        xm_file=mips/xm-iris5.h
+       target_cpu_default="MASK_ABICALLS"
        # mips-tfile doesn't work yet
        # See comment in mips/iris5.h file.
        use_collect2=yes
@@ -2444,6 +2450,35 @@ then
                done
                ;;
 
+       s390*-*-*)
+               supported_defaults="arch mode tune"
+
+               for which in arch tune; do
+                       eval "val=\$with_$which"
+                       case x$val in
+                       x \
+                       | xg5 | xg6 | xz900 | xz990)
+                               # OK
+                               ;;
+                       *)
+                               echo "Unknown cpu used in --with-$which=$val." 1>&2
+                               exit 1
+                               ;;
+                       esac
+               done
+
+               case "x$with_mode" in
+               x \
+               | xesa | xzarch)
+                       # OK
+                       ;;
+               *)
+                       echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2
+                       exit 1
+                       ;;
+               esac
+               ;;
+
        sparc*-*-*)
                supported_defaults="cpu float tune"
 
@@ -2608,7 +2643,7 @@ then
        esac
 
        t=
-       all_defaults="abi cpu arch tune schedule float"
+       all_defaults="abi cpu arch tune schedule float mode"
        for option in $all_defaults
        do
                eval "val=\$with_$option"