aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/base
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2020-12-22 17:08:15 -0500
committerRuss Cox <rsc@golang.org>2020-12-22 17:08:17 -0500
commit91cc51e0053b6ed6ab096c949f46364002b54be1 (patch)
treed2188bab1a9518e8a99b37513064a37574c90717 /src/cmd/compile/internal/base
parente02a007ffdd374f38bc9a1cbf1b80a81b666df5a (diff)
parentec741b04470cda8df5902f1d8d84ab15cb2c8b8b (diff)
downloadgo-91cc51e0053b6ed6ab096c949f46364002b54be1.tar.gz
go-91cc51e0053b6ed6ab096c949f46364002b54be1.zip
[dev.typeparams] all: merge dev.regabi (ec741b0) into dev.typeparams
Conflicts: * src/cmd/compile/internal/gc/main.go Merge List: * 2020-12-22 ec741b0447 [dev.regabi] all: merge master (c9fb4eb) into dev.regabi * 2020-12-22 acc32ea124 [dev.regabi] codereview.cfg: add config for dev.regabi * 2020-12-22 c9fb4eb0a2 cmd/link: handle grouped resource sections * 2020-12-22 c40934b33d [dev.regabi] cmd/compile: adjust one case in walkexpr * 2020-12-22 280e7fd1ee [dev.regabi] cmd/compile: only access Func method on concrete types * 2020-12-22 51ba53f5c2 [dev.regabi] cmd/compile: separate misc for gc split * 2020-12-22 572f168ed2 [dev.regabi] cmd/compile: separate various from Main * 2020-12-22 3b12c6dc08 [dev.regabi] cmd/compile: separate typecheck more cleanly * 2020-12-22 7c8f5356ab [dev.regabi] cmd/compile: separate dowidth better * 2020-12-22 c06a354bcc test: trigger SIGSEGV instead of SIGTRAP in issue11656.go * 2020-12-22 0aa9b4709a cmd/pack: r command create output file if not exist * 2020-12-22 cb28c96be8 [dev.regabi] cmd/compile,cmd/link: initial support for ABI wrappers * 2020-12-22 c8610e4700 [dev.regabi] cmd/compile: add ir.BasicLit to represent literals * 2020-12-22 3512cde10a [dev.regabi] cmd/compile: stop reusing Ntype for OSLICELIT length * 2020-12-22 2755361e6a [dev.regabi] cmd/compile: change noder.declNames to returns ir.Names * 2020-12-22 301af2cb71 [dev.regabi] runtime/race: adjust test pattern match for ABI wrapper * 2020-12-22 4d27c4c223 runtime: correct error handling in several FreeBSD syscall wrappers * 2020-12-22 9b6147120a cmd/pack: treat compiler's -linkobj output as "compiler object" * 2020-12-22 306b2451c8 [dev.regabi] runtime: fix ABI targets in runtime.panic{Index,Slice} shims * 2020-12-21 bc7e4d9257 syscall: don't generate ptrace on iOS * 2020-12-21 94cfeca0a5 [dev.regabi] cmd/compile: stop using ONONAME with Name * 2020-12-21 cb4898a77d [dev.regabi] cmd/compile: simplify declaration importing * 2020-12-21 06915ac14d [dev.regabi] cmd/compile: move itabname call out of implements * 2020-12-21 6cff874c47 runtime/metrics: add Read examples * 2020-12-21 8438a5779b runtime: use _exit on darwin * 2020-12-21 cb95819cf6 runtime: detect netbsd netpoll overrun in sysmon * 2020-12-21 53c984d976 runtime: skip wakep call in wakeNetPoller on Plan 9 * 2020-12-21 9abbe27710 test: skip issue11656.go on mips/mips64/ppc64 Change-Id: Ia12a1892195f5e08bb41465374124c71a1a135f6
Diffstat (limited to 'src/cmd/compile/internal/base')
-rw-r--r--src/cmd/compile/internal/base/debug.go1
-rw-r--r--src/cmd/compile/internal/base/flag.go3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/base/debug.go b/src/cmd/compile/internal/base/debug.go
index 45a552a4d9..3acdcea846 100644
--- a/src/cmd/compile/internal/base/debug.go
+++ b/src/cmd/compile/internal/base/debug.go
@@ -51,6 +51,7 @@ type DebugFlags struct {
TypeAssert int `help:"print information about type assertion inlining"`
TypecheckInl int `help:"eager typechecking of inline function bodies"`
WB int `help:"print information about write barriers"`
+ ABIWrap int `help:"print information about ABI wrapper generation"`
any bool // set when any of the values have been set
}
diff --git a/src/cmd/compile/internal/base/flag.go b/src/cmd/compile/internal/base/flag.go
index 240258d6b8..898cb5470b 100644
--- a/src/cmd/compile/internal/base/flag.go
+++ b/src/cmd/compile/internal/base/flag.go
@@ -82,6 +82,8 @@ type CmdFlags struct {
CompilingRuntime bool "flag:\"+\" help:\"compiling runtime\""
// Longer names
+ ABIWrap bool "help:\"enable generation of ABI wrappers\""
+ ABIWrapLimit int "help:\"emit at most N ABI wrappers (for debugging)\""
AsmHdr string "help:\"write assembly header to `file`\""
Bench string "help:\"append benchmark times to `file`\""
BlockProfile string "help:\"write block profile to `file`\""
@@ -141,6 +143,7 @@ func ParseFlags() {
Flag.LowerP = &Ctxt.Pkgpath
Flag.LowerV = &Ctxt.Debugvlog
+ Flag.ABIWrap = objabi.Regabi_enabled != 0
Flag.Dwarf = objabi.GOARCH != "wasm"
Flag.DwarfBASEntries = &Ctxt.UseBASEntries
Flag.DwarfLocationLists = &Ctxt.Flag_locationlists