Commit 89f4fd3f authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

cmd/6g: fix build for nacl/amd64p32

Change-Id: I3de78f321c99f8f850a304f7d34c85d0fe254c0e
Signed-off-by: 's avatarShenghou Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/7975
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarDave Cheney <dave@cheney.net>
Reviewed-by: 's avatarRob Pike <r@golang.org>
parent 1c26176b
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment