Commit 1701a9d8 by Ian Lance Taylor

libgo: use gc's arch names as the default GOARCHs on MIPS

    
    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
parent 95eebd21
5a97e51022e3b7798f985714ced3e02d6e730b54 3f713ddb2a9a2a736f3a12d71c56cb7fd444afba
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -13769,9 +13769,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ...@@ -13769,9 +13769,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
case "$mips_abi" in case "$mips_abi" in
"o32") GOARCH=mipso32 ;; "o32") GOARCH=mips ;;
"n32") GOARCH=mipsn32 ;; "n32") GOARCH=mips64p32 ;;
"n64") GOARCH=mipsn64 ;; "n64") GOARCH=mips64 ;;
"o64") GOARCH=mipso64 ;; "o64") GOARCH=mipso64 ;;
esac esac
case "$mips_abi" in case "$mips_abi" in
...@@ -13785,7 +13785,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ...@@ -13785,7 +13785,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
;; ;;
esac esac
case "${host}" in case "${host}" in
mips*el) mips*el-*-*)
GOARCH="${GOARCH}le"
;; ;;
*) *)
GOARCH_BIGENDIAN=1 GOARCH_BIGENDIAN=1
......
...@@ -299,9 +299,9 @@ GOARCH_HUGEPAGESIZE="1 << 21" ...@@ -299,9 +299,9 @@ GOARCH_HUGEPAGESIZE="1 << 21"
[AC_MSG_ERROR([unknown MIPS ABI]) [AC_MSG_ERROR([unknown MIPS ABI])
[mips_abi="n32"]])])])]) [mips_abi="n32"]])])])])
case "$mips_abi" in case "$mips_abi" in
"o32") GOARCH=mipso32 ;; "o32") GOARCH=mips ;;
"n32") GOARCH=mipsn32 ;; "n32") GOARCH=mips64p32 ;;
"n64") GOARCH=mipsn64 ;; "n64") GOARCH=mips64 ;;
"o64") GOARCH=mipso64 ;; "o64") GOARCH=mipso64 ;;
esac esac
case "$mips_abi" in case "$mips_abi" in
...@@ -315,7 +315,8 @@ GOARCH_HUGEPAGESIZE="1 << 21" ...@@ -315,7 +315,8 @@ GOARCH_HUGEPAGESIZE="1 << 21"
;; ;;
esac esac
case "${host}" in case "${host}" in
mips*el) mips*el-*-*)
GOARCH="${GOARCH}le"
;; ;;
*) *)
GOARCH_BIGENDIAN=1 GOARCH_BIGENDIAN=1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment