]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: calls can clobber g on s390x
authorAustin Clements <austin@google.com>
Thu, 8 Feb 2018 15:31:07 +0000 (10:31 -0500)
committerAustin Clements <austin@google.com>
Tue, 13 Feb 2018 16:34:14 +0000 (16:34 +0000)
commitde186c63ce058b2ab43f324fe582dc2ab1369614
tree681ad13e990c4d18a7251fa4ab6ebc97cefecd6b
parentce5fa6d5e9977f30bbcc16b0b42d51896a1c40cc
cmd/compile: calls can clobber g on s390x

Because a call may ultimately invoke runtime.setg, we have to assume
that g may be clobbered by any call. All of the other architectures
that use a g register already do this, but it was missing from the
s390x caller save clobber set.

Change-Id: Ia931638d42c44979839f20d71097acf31475f423
Reviewed-on: https://go-review.googlesource.com/92835
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/S390XOps.go
src/cmd/compile/internal/ssa/opGen.go