diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-01-18 04:24:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-01-18 04:24:48 +0000 |
commit | a9411cce01dce8213c4133d2078c0b69e4d40844 (patch) | |
tree | 5ead98e36600f6316433e622924edc24c1127ea8 /libgo/go | |
parent | b7e60023a2ec1b4ec164b986444280ac8c6b3881 (diff) | |
download | gcc-a9411cce01dce8213c4133d2078c0b69e4d40844.zip gcc-a9411cce01dce8213c4133d2078c0b69e4d40844.tar.gz gcc-a9411cce01dce8213c4133d2078c0b69e4d40844.tar.bz2 |
re PR go/83787 (Many 32-bit Solaris/SPARC Go tests FAIL after Go1.10beta1 update)
PR go/83787
compiler: pass int to makechan, call makechan64 when appropriate
The update to 1.10beta1 changed makechan to take int instead of int64,
and added a makechan64 call for large values. Since the size is the
last argument to makechan, the old compiler which always passed a
64-bit int worked fine on 64-bit systems and little-endian 32-bit
systems, but broke on big-endian 32-bit systems. This CL fixes the
compiler to use the appropriate types.
This fixes GCC PR 83787.
Reviewed-on: https://go-review.googlesource.com/88077
From-SVN: r256835
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/runtime/chan.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgo/go/runtime/chan.go b/libgo/go/runtime/chan.go index 8db728d..bf708ae 100644 --- a/libgo/go/runtime/chan.go +++ b/libgo/go/runtime/chan.go @@ -26,6 +26,7 @@ import ( // themselves, so that the compiler will export them. // //go:linkname makechan runtime.makechan +//go:linkname makechan64 runtime.makechan64 //go:linkname chansend1 runtime.chansend1 //go:linkname chanrecv1 runtime.chanrecv1 //go:linkname chanrecv2 runtime.chanrecv2 |