]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: setup to move Addrconst, Patch into cmd/internal/obj
authorRuss Cox <rsc@golang.org>
Mon, 21 Dec 2020 06:14:36 +0000 (01:14 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 21 Dec 2020 19:23:27 +0000 (19:23 +0000)
commit2153a99914c3c24b98cd4cfccd1d2f670273a4ac
tree321a13ace6a1508ba384b3c80771acc37f35baae
parent0bb0baf68338496ded6837294866c8ace3a14e44
[dev.regabi] cmd/compile: setup to move Addrconst, Patch into cmd/internal/obj

Deleting the Pc assignment from Patch is safe because the actual PCs
are not assigned until well after the compiler is done patching jumps.
And it proves that replacing uses of Patch with SetTarget will be safe later.

Change-Id: Iffcbe03f0b5949ccd4c91e79c1272cd06be0f434
Reviewed-on: https://go-review.googlesource.com/c/go/+/279296
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/gsubr.go
src/cmd/internal/obj/link.go