]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: set base register of spill/restore to SP
authorKeith Randall <khr@golang.org>
Thu, 9 Mar 2017 00:31:02 +0000 (16:31 -0800)
committerKeith Randall <khr@golang.org>
Thu, 9 Mar 2017 01:19:00 +0000 (01:19 +0000)
commit67d69f899ce0fcd3d7aee0a07554fb84770020c0
tree06b723cffd66bd38c6e6b4abdd9d824963667fc0
parent3a1271dad7617a9766d21987b2c3cc0e683d2010
cmd/compile: set base register of spill/restore to SP

Previously the base register was unset, which lead to the disassembler
using "FP" instead of "SP" as the base register.  That lead to some
confusion as to what the difference betweeen the two was.
Be consistent and always use SP.

Fixes #19458

Change-Id: Ie8f8ee54653bd202c0cf6fbf1d350e3c8c8b67a0
Reviewed-on: https://go-review.googlesource.com/37971
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/ssa.go