aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShenghou Ma <minux@golang.org>2015-03-24 02:07:20 -0400
committerMinux Ma <minux@golang.org>2015-03-24 23:57:50 +0000
commit89f4fd3fd0d1d3660520f3bbb3500f2df1821f71 (patch)
tree503ebdea5dba6292d950fff9c3ab3371bec7747c /src
parent1c26176b67786151db0e4162ce6f8ad2f5c9ffd1 (diff)
downloadgo-89f4fd3fd0d1d3660520f3bbb3500f2df1821f71.tar.xz
cmd/6g: fix build for nacl/amd64p32
Change-Id: I3de78f321c99f8f850a304f7d34c85d0fe254c0e Signed-off-by: Shenghou Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/7975 TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net> Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/6g/galign.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/6g/galign.go b/src/cmd/6g/galign.go
index 8dab0369e3..a73ddc6475 100644
--- a/src/cmd/6g/galign.go
+++ b/src/cmd/6g/galign.go
@@ -65,7 +65,7 @@ func betypeinit() {
func main() {
if obj.Getgoos() == "nacl" {
- resvd = append(resvd, x86.REG_BP, x86.REG_SI)
+ resvd = append(resvd, x86.REG_BP, x86.REG_R15)
} else if obj.Framepointer_enabled != 0 {
resvd = append(resvd, x86.REG_BP)
}