PR go/83787
commit1423c90a66984595686b339775b9bfcf2751d376
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Jan 2018 04:24:48 +0000 (18 04:24 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Jan 2018 04:24:48 +0000 (18 04:24 +0000)
tree5ead98e36600f6316433e622924edc24c1127ea8
parent0a82247b5bb50c2fb62e334bc20c35a1654c10ca
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256835 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/escape.cc
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/runtime.def
libgo/go/runtime/chan.go