diff options
author | David Chase <drchase@google.com> | 2021-03-24 14:20:12 -0400 |
---|---|---|
committer | David Chase <drchase@google.com> | 2021-03-30 03:28:19 +0000 |
commit | 33945869c12ce92933714426471ce4f5c4ec7b6b (patch) | |
tree | 97fab839454219f3d1ad7fa7cc6bb4896514eb4d /src/cmd/compile/internal/gc | |
parent | eeadfa2d3810c252f86a88ddd282b48be5abc6df (diff) | |
download | go-33945869c12ce92933714426471ce4f5c4ec7b6b.tar.gz go-33945869c12ce92933714426471ce4f5c4ec7b6b.zip |
cmd/compile: update default ABI choices for calls and bodyless fn stack maps
After recent discussion about bodyless functions, their wrappers,
their stack maps, nosplit, and callbacks, I was inspired to go and
be sure that more defaults were sensible. This may not be all --
currently rtcall is "ABIDefault" which I think is correct, but I
am not 100% certain.
Updates #40724.
Change-Id: I95b14ee0e5952fa53e7fea9f6f5192358aa24f23
Reviewed-on: https://go-review.googlesource.com/c/go/+/304549
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/cmd/compile/internal/gc')
-rw-r--r-- | src/cmd/compile/internal/gc/compile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/gc/compile.go b/src/cmd/compile/internal/gc/compile.go index e066d3345e..6db37919fa 100644 --- a/src/cmd/compile/internal/gc/compile.go +++ b/src/cmd/compile/internal/gc/compile.go @@ -44,7 +44,7 @@ func enqueueFunc(fn *ir.Func) { // Initialize ABI wrappers if necessary. ssagen.InitLSym(fn, false) types.CalcSize(fn.Type()) // TODO register args; remove this once all is done by abiutils - a := ssagen.AbiForFunc(fn) + a := ssagen.AbiForBodylessFuncStackMap(fn) abiInfo := a.ABIAnalyze(fn.Type(), true) // will set parameter spill/home locations correctly liveness.WriteFuncMap(fn, abiInfo) return |