libgo: use gc's arch names as the default GOARCHs on MIPS
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 21 Jun 2017 21:55:34 +0000 (21:55 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 21 Jun 2017 21:55:34 +0000 (21:55 +0000)
    This means that the gc tools and gofrontend agree on the architecture names
    for the 3 MIPS ABIs which should allow a gofrontend compiler to build go.

    Reviewed-on: https://go-review.googlesource.com/46153

From-SVN: r249476

gcc/go/gofrontend/MERGE
libgo/configure
libgo/configure.ac

index d9c21fa3ce892f885f5ad4720f3b09f439f51f4e..0c0d6e5869ab89780a94c8a86dec466078b19c2b 100644 (file)
@@ -1,4 +1,4 @@
-5a97e51022e3b7798f985714ced3e02d6e730b54
+3f713ddb2a9a2a736f3a12d71c56cb7fd444afba
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 0700b7b6bb60530e24b952c2f835d7336db9047c..f120ed4d4dc1d2e4ff2ced3d87328548f4386a9f 100755 (executable)
@@ -13769,9 +13769,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     case "$mips_abi" in
-    "o32") GOARCH=mipso32 ;;
-    "n32") GOARCH=mipsn32 ;;
-    "n64") GOARCH=mipsn64 ;;
+    "o32") GOARCH=mips ;;
+    "n32") GOARCH=mips64p32 ;;
+    "n64") GOARCH=mips64 ;;
     "o64") GOARCH=mipso64 ;;
     esac
     case "$mips_abi" in
@@ -13785,7 +13785,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         ;;
     esac
     case "${host}" in
-    mips*el)
+    mips*el-*-*)
+       GOARCH="${GOARCH}le"
         ;;
     *)
        GOARCH_BIGENDIAN=1
index d16547f4487121579b3e9afd80f75772f449123a..bded202fea29639b71d8e26d5981f3df34913d70 100644 (file)
@@ -299,9 +299,9 @@ GOARCH_HUGEPAGESIZE="1 << 21"
        [AC_MSG_ERROR([unknown MIPS ABI])
 [mips_abi="n32"]])])])])
     case "$mips_abi" in
-    "o32") GOARCH=mipso32 ;;
-    "n32") GOARCH=mipsn32 ;;
-    "n64") GOARCH=mipsn64 ;;
+    "o32") GOARCH=mips ;;
+    "n32") GOARCH=mips64p32 ;;
+    "n64") GOARCH=mips64 ;;
     "o64") GOARCH=mipso64 ;;
     esac
     case "$mips_abi" in
@@ -315,7 +315,8 @@ GOARCH_HUGEPAGESIZE="1 << 21"
         ;;
     esac
     case "${host}" in
-    mips*el)
+    mips*el-*-*)
+        GOARCH="${GOARCH}le"
         ;;
     *)
        GOARCH_BIGENDIAN=1