This libgo patch recognizes aarch64_be as arm64be.  I don't know if
anything else is needed for aarch64_be support, but this at least is
required.  This is for GCC PR 92810.  Bootstrapped on
x86_64-pc-linux-gnu.  Committed to mainline.

Ian
Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE     (revision 279010)
+++ gcc/go/gofrontend/MERGE     (working copy)
@@ -1,4 +1,4 @@
-a59794347b9db6dc2101a65c3e1a068051c0ee81
+e32651d37e0c43bb7595ac94363b079610bed746
 
 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 278984)
+++ libgo/configure.ac  (working copy)
@@ -240,6 +240,9 @@ case ${host} in
   aarch64-*-*)
     GOARCH=arm64
     ;;
+  aarch64_be-*-*)
+    GOARCH=arm64be
+    ;;
   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
     GOARCH=arm
     case ${host} in

Reply via email to