libgo patch committed: Use gc toolchain names for MIPS variants
Ian Lance Taylor
iant@golang.org
Wed Jun 21 21:55:00 GMT 2017
This patch from James Cowgill changes libgo to use the gc toolchain
names for MIPS variants. Bootstrapped on x86_64-pc-linux-gnu.
Committed to mainline.
Ian
-------------- next part --------------
Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE (revision 249475)
+++ gcc/go/gofrontend/MERGE (working copy)
@@ -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: libgo/configure.ac
===================================================================
--- libgo/configure.ac (revision 249472)
+++ libgo/configure.ac (working copy)
@@ -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
More information about the Gcc-patches
mailing list