]> Cypherpunks repositories - gostls13.git/commit
cmd/dist,cmd/go: broaden use of asm macro GOEXPERIMENT_REGABI
authorThan McIntosh <thanm@google.com>
Wed, 14 Oct 2020 12:06:54 +0000 (08:06 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 19 Oct 2020 19:27:54 +0000 (19:27 +0000)
commit4d1cecdee8360ef12a817c124d7a04c9d29741c3
tree7322dd2ddc9be1716bed00a3f7fa176bdb2a75a9
parentab541a0560408999ac65d12bec2a3057994eda38
cmd/dist,cmd/go: broaden use of asm macro GOEXPERIMENT_REGABI

This extends a change made in https://golang.org/cl/252258 to the go
command (to define an asm macro when GOEXPERIMENT=regabi is in
effect); we need this same macro during the bootstrap build in order
to build the runtime correctly.

In addition, expand the set of packages where the macro is applied to
{runtime, reflect, syscall, runtime/internal/*}, and move the logic
for deciding when something is a "runtime package" out of the
assembler and into cmd/{go,dist}, introducing a new assembler command
line flag instead.

Updates #27539, #40724.

Change-Id: Ifcc7f029f56873584de1e543c55b0d3e54ad6c49
Reviewed-on: https://go-review.googlesource.com/c/go/+/262317
Trust: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/flags/flags.go
src/cmd/asm/main.go
src/cmd/dist/build.go
src/cmd/go/internal/work/gc.go