]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/gc: fix build on big endian systems
authorShenghou Ma <minux@golang.org>
Sat, 2 May 2015 08:36:53 +0000 (04:36 -0400)
committerMinux Ma <minux@golang.org>
Sat, 2 May 2015 19:32:15 +0000 (19:32 +0000)
commit931328b8b837d0a827d05989f79f28725a704b71
tree38fc55ce97fdf2fffa07eda61139477d399c942c
parent76ace947aeaa53e4f743f0a3bc69cea17e63580a
cmd/internal/gc: fix build on big endian systems

The siz argument to both runtime.newproc and runtime.deferproc is
int32, not uintptr. This problem won't manifest on little-endian
systems because that stack slot is uintptr sized anyway. However,
on big-endian systems, it will make a difference.

Change-Id: I2351d1ec81839abe25375cff95e327b80764c2b5
Reviewed-on: https://go-review.googlesource.com/9647
Run-TryBot: Minux Ma <minux@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/internal/gc/cgen.go