This patch to libgo fixes the build on s390x GNU/Linux by ignoring an
s390x-specific file that only works in conjunction with s390x assembly
code that has not (yet) been ported to gccgo.  Bootstrapped and ran Go
tests on x86_64-pc-linux-gnu, which admittedly proves little.
Verified that the right files are selected when building for s390.
This fixes GCC PR 79146.

Ian
Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE     (revision 244563)
+++ gcc/go/gofrontend/MERGE     (working copy)
@@ -1,4 +1,4 @@
-2b3d389f961b8461b3fdf42318a628f68b56f8b1
+a21ebb50459ba9608d0325ad1c1d62e6c9290186
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
Index: libgo/go/crypto/elliptic/p256_s390x.go
===================================================================
--- libgo/go/crypto/elliptic/p256_s390x.go      (revision 244456)
+++ libgo/go/crypto/elliptic/p256_s390x.go      (working copy)
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build ignore
 // -build s390x
 
 package elliptic

Reply via email to