diff options
| author | David Chase <drchase@google.com> | 2021-03-04 16:38:20 -0500 |
|---|---|---|
| committer | David Chase <drchase@google.com> | 2021-03-04 21:47:26 +0000 |
| commit | 9d3718e834fcf5b602b84539364606445cfc8a1a (patch) | |
| tree | bdb4edef0bfeb44dcde0c4d2a3898de3be394888 /src | |
| parent | c015f76acb73990d4cb7fb056165b64d79b1b037 (diff) | |
| download | go-9d3718e834fcf5b602b84539364606445cfc8a1a.tar.xz | |
cmd/compile: remove I-saw-a-register-pragma chatter
It is not multithreaded-compilation-safe, and also seems
to cause problems on the noopt-builder.
Change-Id: I52dbcd507d256990f1ec7c8040ec7b76595aae4f
Reviewed-on: https://go-review.googlesource.com/c/go/+/298850
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/compile/internal/ssagen/ssa.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cmd/compile/internal/ssagen/ssa.go b/src/cmd/compile/internal/ssagen/ssa.go index 2a281860af..881fdcc8f4 100644 --- a/src/cmd/compile/internal/ssagen/ssa.go +++ b/src/cmd/compile/internal/ssagen/ssa.go @@ -230,7 +230,6 @@ func abiForFunc(fn *ir.Func, abi0, abi1 *abi.ABIConfig) *abi.ABIConfig { base.ErrorfAt(fn.Pos(), "Calls to //go:registerparams method %s won't work, remove the pragma from the declaration.", name) } a = abi1 - base.WarnfAt(fn.Pos(), "declared function %v has register params", fn) } return a } @@ -4850,9 +4849,6 @@ func (s *state) call(n *ir.CallExpr, k callKind, returnResultAddr bool) *ssa.Val inRegistersImported := fn.Pragma()&ir.RegisterParams != 0 inRegistersSamePackage := fn.Func != nil && fn.Func.Pragma&ir.RegisterParams != 0 inRegisters = inRegistersImported || inRegistersSamePackage - if inRegisters { - s.f.Warnl(n.Pos(), "called function %v has register params", callee) - } break } closure = s.expr(fn) |
