]> Cypherpunks repositories - gostls13.git/commitdiff
cmd: fix mismatched symbols
authorcui fliter <imcusg@gmail.com>
Tue, 7 Mar 2023 15:04:26 +0000 (23:04 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 7 Mar 2023 17:31:14 +0000 (17:31 +0000)
Change-Id: Ib2c4ddec9740f7c21c180c9f0980394dceeedfaa
Reviewed-on: https://go-review.googlesource.com/c/go/+/473975
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/abi/abiutils.go
src/cmd/compile/internal/compare/compare.go
src/cmd/compile/internal/ssa/debug.go
src/cmd/compile/internal/walk/order.go
src/cmd/covdata/metamerge.go

index 9fc0bc45c85cc544bef40a44d59f602fb88b9e65..71fbb88888087f483e92c596e893453c11edd8c3 100644 (file)
@@ -92,7 +92,7 @@ type RegIndex uint8
 // ABIParamAssignment holds information about how a specific param or
 // result will be passed: in registers (in which case 'Registers' is
 // populated) or on the stack (in which case 'Offset' is set to a
-// non-negative stack offset. The values in 'Registers' are indices
+// non-negative stack offset). The values in 'Registers' are indices
 // (as described above), not architected registers.
 type ABIParamAssignment struct {
        Type      *types.Type
index 9758be1fe88da00d1804d4449c9d83ed62114c64..d8ae7bf24a3153529d32ed346b06194721032619 100644 (file)
@@ -321,7 +321,7 @@ func eqfield(p ir.Node, q ir.Node, op ir.Op, field *types.Sym) ir.Node {
 
 // eqmem returns the node
 //
-//     memequal(&p.field, &q.field, size])
+//     memequal(&p.field, &q.field, size)
 func eqmem(p ir.Node, q ir.Node, field *types.Sym, size int64) ir.Node {
        nx := typecheck.Expr(typecheck.NodAddr(ir.NewSelectorExpr(base.Pos, ir.OXDOT, p, field)))
        ny := typecheck.Expr(typecheck.NodAddr(ir.NewSelectorExpr(base.Pos, ir.OXDOT, q, field)))
index 0cd006b21ccf66f6136381734d0a6ffa99e71d7a..0af052294b32d5f221dff5febe281bf5a9ba3643 100644 (file)
@@ -1751,7 +1751,7 @@ func isNamedRegParam(p abi.ABIParamAssignment) bool {
 // it constructs a 2-element location list: the first element holds
 // the input register, and the second element holds the stack location
 // of the param (the assumption being that when optimization is off,
-// each input param reg will be spilled in the prolog.
+// each input param reg will be spilled in the prolog).
 func BuildFuncDebugNoOptimized(ctxt *obj.Link, f *Func, loggingEnabled bool, stackOffset func(LocalSlot) int32, rval *FuncDebug) {
 
        pri := f.ABISelf.ABIAnalyzeFuncType(f.Type.FuncType())
index 038844af262b4f335505a18da8675507fa1d2f8b..243b682ebbebde5593b06f4ed198f702a38d78bf 100644 (file)
@@ -303,7 +303,7 @@ func (o *orderState) mapKeyTemp(outerPos src.XPos, t *types.Type, n ir.Node) ir.
 // For:
 //
 //     x = m[string(k)]
-//     x = m[T1{... Tn{..., string(k), ...}]
+//     x = m[T1{... Tn{..., string(k), ...}}]
 //
 // where k is []byte, T1 to Tn is a nesting of struct and array literals,
 // the allocation of backing bytes for the string can be avoided
index 7f157426c04f1d26ad1ec41a912bd2ddec4158e8..b224984f68ebf6954d9f7dffb9d6b9ac01efff85 100644 (file)
@@ -166,7 +166,7 @@ func (mm *metaMerge) beginPod() {
 //
 // Case 2: if this is a select merge (-pkg is in effect), then at
 // this point we write out a new smaller meta-data file that includes
-// only the packages of interest). At this point we also emit a merged
+// only the packages of interest. At this point we also emit a merged
 // counter data file as well.
 //
 // Case 3: if "-pcombine" is in effect, we don't write anything at