diff options
Diffstat (limited to 'src/cmd/compile/internal')
| -rw-r--r-- | src/cmd/compile/internal/gc/syntax.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/gc/walk.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/ssa/gen/PPC64.rules | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/ssa/layout.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/ssa/poset.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/ssa/stackalloc.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/types/pkg.go | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd/compile/internal/gc/syntax.go b/src/cmd/compile/internal/gc/syntax.go index eb2ab6b916..ab65ddebb4 100644 --- a/src/cmd/compile/internal/gc/syntax.go +++ b/src/cmd/compile/internal/gc/syntax.go @@ -45,7 +45,7 @@ type Node struct { // - ONAME nodes that refer to local variables use it to identify their stack frame position. // - ODOT, ODOTPTR, and OINDREGSP use it to indicate offset relative to their base address. // - OSTRUCTKEY uses it to store the named field's offset. - // - Named OLITERALs use it to to store their ambient iota value. + // - Named OLITERALs use it to store their ambient iota value. // Possibly still more uses. If you find any, document them. Xoffset int64 diff --git a/src/cmd/compile/internal/gc/walk.go b/src/cmd/compile/internal/gc/walk.go index 5aa2146a8c..1c398ef43c 100644 --- a/src/cmd/compile/internal/gc/walk.go +++ b/src/cmd/compile/internal/gc/walk.go @@ -34,7 +34,7 @@ func walk(fn *Node) { } } - // Propagate the used flag for typeswitch variables up to the NONAME in it's definition. + // Propagate the used flag for typeswitch variables up to the NONAME in its definition. for _, ln := range fn.Func.Dcl { if ln.Op == ONAME && (ln.Class() == PAUTO || ln.Class() == PAUTOHEAP) && ln.Name.Defn != nil && ln.Name.Defn.Op == OTYPESW && ln.Name.Used() { ln.Name.Defn.Left.Name.SetUsed(true) diff --git a/src/cmd/compile/internal/ssa/gen/PPC64.rules b/src/cmd/compile/internal/ssa/gen/PPC64.rules index 7d79c9ad50..21c12591c5 100644 --- a/src/cmd/compile/internal/ssa/gen/PPC64.rules +++ b/src/cmd/compile/internal/ssa/gen/PPC64.rules @@ -956,7 +956,7 @@ (MOVWZreg (MOVDconst [c])) -> (MOVDconst [int64(uint32(c))]) -// Lose widening ops fed to to stores +// Lose widening ops fed to stores (MOVBstore [off] {sym} ptr (MOV(B|BZ|H|HZ|W|WZ)reg x) mem) -> (MOVBstore [off] {sym} ptr x mem) (MOVHstore [off] {sym} ptr (MOV(H|HZ|W|WZ)reg x) mem) -> (MOVHstore [off] {sym} ptr x mem) (MOVWstore [off] {sym} ptr (MOV(W|WZ)reg x) mem) -> (MOVWstore [off] {sym} ptr x mem) diff --git a/src/cmd/compile/internal/ssa/layout.go b/src/cmd/compile/internal/ssa/layout.go index 15e111ae7c..78d5dc77fe 100644 --- a/src/cmd/compile/internal/ssa/layout.go +++ b/src/cmd/compile/internal/ssa/layout.go @@ -12,7 +12,7 @@ func layout(f *Func) { } // Register allocation may use a different order which has constraints -// imposed by the linear-scan algorithm. Note that that f.pass here is +// imposed by the linear-scan algorithm. Note that f.pass here is // regalloc, so the switch is conditional on -d=ssa/regalloc/test=N func layoutRegallocOrder(f *Func) []*Block { diff --git a/src/cmd/compile/internal/ssa/poset.go b/src/cmd/compile/internal/ssa/poset.go index 37b607977c..0e0e2789b1 100644 --- a/src/cmd/compile/internal/ssa/poset.go +++ b/src/cmd/compile/internal/ssa/poset.go @@ -114,7 +114,7 @@ type posetNode struct { // given that non-equality is not transitive, the only effect is that a later call // to SetEqual for the same values will fail. NonEqual checks whether it is known that // the nodes are different, either because SetNonEqual was called before, or because -// we know that that they are strictly ordered. +// we know that they are strictly ordered. // // It is implemented as a forest of DAGs; in each DAG, if node A dominates B, // it means that A<B. Equality is represented by mapping two SSA values to the same diff --git a/src/cmd/compile/internal/ssa/stackalloc.go b/src/cmd/compile/internal/ssa/stackalloc.go index 8d0ab93c64..7612585136 100644 --- a/src/cmd/compile/internal/ssa/stackalloc.go +++ b/src/cmd/compile/internal/ssa/stackalloc.go @@ -212,7 +212,7 @@ func (s *stackAllocState) stackalloc() { h := f.getHome(id) if h != nil && h.(LocalSlot).N == name.N && h.(LocalSlot).Off == name.Off { // A variable can interfere with itself. - // It is rare, but but it can happen. + // It is rare, but it can happen. s.nSelfInterfere++ goto noname } diff --git a/src/cmd/compile/internal/types/pkg.go b/src/cmd/compile/internal/types/pkg.go index e27c1fdba3..e502b986ae 100644 --- a/src/cmd/compile/internal/types/pkg.go +++ b/src/cmd/compile/internal/types/pkg.go @@ -135,7 +135,7 @@ func InternString(b []byte) string { return s } -// CleanroomDo invokes f in an environment with with no preexisting packages. +// CleanroomDo invokes f in an environment with no preexisting packages. // For testing of import/export only. func CleanroomDo(f func()) { saved := pkgMap |
