On Thu, Jan 19, 2017 at 6:27 PM, Ian Lance Taylor <i...@golang.org> wrote: > 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.
And another fix, for a similar problem that only appears at link time, not compile time. Bootstrapped on x86_64-pc-linux-gnu, checked list of files compiled on s390x. Committed to mainline. Ian
Index: gcc/go/gofrontend/MERGE =================================================================== --- gcc/go/gofrontend/MERGE (revision 244679) +++ gcc/go/gofrontend/MERGE (working copy) @@ -1,4 +1,4 @@ -a21ebb50459ba9608d0325ad1c1d62e6c9290186 +907f6e31975443993c47fa45e09cf85d0709b7e6 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. Index: libgo/go/math/big/arith_decl_s390x.go =================================================================== --- libgo/go/math/big/arith_decl_s390x.go (revision 244456) +++ libgo/go/math/big/arith_decl_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 !math_big_pure_go package big