aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Chase <drchase@google.com>2021-03-04 16:38:20 -0500
committerDavid Chase <drchase@google.com>2021-03-04 21:47:26 +0000
commit9d3718e834fcf5b602b84539364606445cfc8a1a (patch)
treebdb4edef0bfeb44dcde0c4d2a3898de3be394888 /src
parentc015f76acb73990d4cb7fb056165b64d79b1b037 (diff)
downloadgo-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.go4
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)